Skip to content

Commit

Permalink
fix: create_subsidy_deposit - metadata is optional
Browse files Browse the repository at this point in the history
ENT-9133
  • Loading branch information
pwnage101 committed Jul 22, 2024
1 parent 632d51e commit d84a3f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Change Log
Unreleased
**********

[0.4.5]
*******
* fix: create_subsidy_deposit - metadata is optional (ENT-9133)

[0.4.4]
*******
* feat: add support for deposit creation (ENT-9133)
Expand Down
2 changes: 1 addition & 1 deletion edx_enterprise_subsidy_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Client for interacting with the enterprise-subsidy service..
"""

__version__ = '0.4.4'
__version__ = '0.4.5'

from .client import EnterpriseSubsidyAPIClient, EnterpriseSubsidyAPIClientV2, get_enterprise_subsidy_api_client
5 changes: 3 additions & 2 deletions edx_enterprise_subsidy_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def create_subsidy_deposit(
desired_deposit_quantity,
sales_contract_reference_id,
sales_contract_reference_provider,
metadata,
metadata=None,
idempotency_key=None,
):
"""
Expand All @@ -400,8 +400,9 @@ def create_subsidy_deposit(
'desired_deposit_quantity': desired_deposit_quantity,
'sales_contract_reference_id': sales_contract_reference_id,
'sales_contract_reference_provider': sales_contract_reference_provider,
'metadata': metadata,
}
if metadata is not None:
request_payload['metadata'] = metadata
if idempotency_key is not None:
request_payload['idempotency_key'] = idempotency_key
response = self.client.post(
Expand Down

0 comments on commit d84a3f6

Please sign in to comment.