Skip to content

Commit

Permalink
Update client get endpoints for MCS [chch16182] (#31)
Browse files Browse the repository at this point in the history
* Add subscription_set_external_id to the response from Subscription and Invoice

* Change version and copyright year
  • Loading branch information
velinarusjakova authored and pkopac committed Sep 20, 2019
1 parent de4e0a2 commit f5203bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chartmogul/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"""

__title__ = 'chartmogul'
__version__ = '1.2.4'
__version__ = '1.2.5'
__build__ = 0x000000
__author__ = 'ChartMogul Ltd'
__license__ = 'MIT'
__copyright__ = 'Copyright 2017 ChartMogul Ltd'
__copyright__ = 'Copyright 2019 ChartMogul Ltd'
1 change: 1 addition & 0 deletions chartmogul/api/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class _Schema(Schema):
type = fields.String()
subscription_uuid = fields.String(allow_none=True)
subscription_external_id = fields.String(allow_none=True)
subscription_set_external_id = fields.String(allow_none=True)
plan_uuid = fields.String(allow_none=True)
prorated = fields.Boolean()
service_period_start = fields.DateTime(allow_none=True)
Expand Down
1 change: 1 addition & 0 deletions chartmogul/api/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class _Schema(Schema):
# /import namespace
uuid = fields.String(allow_none=True)
external_id = fields.String(allow_none=True)
subscription_set_external_id = fields.String(allow_none=True)
plan_uuid = fields.String(allow_none=True)
customer_uuid = fields.String(allow_none=True)
data_source_uuid = fields.String(allow_none=True)
Expand Down
1 change: 1 addition & 0 deletions test/api/test_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def test_list_imported_subscriptions(self, mock_requests):
{
"uuid": "sub_e6bc5407-e258-4de0-bb43-61faaf062035",
"external_id": "sub_0001",
"subscription_set_external_id": "sub_set_0001",
"plan_uuid": "pl_eed05d54-75b4-431b-adb2-eb6b9e543206",
"data_source_uuid": "ds_fef05d54-47b4-431b-aed2-eb6b9e545430",
"cancellation_dates":[]
Expand Down

0 comments on commit f5203bc

Please sign in to comment.