Skip to content

Commit

Permalink
Allow customer_external_id field (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassansin authored Sep 3, 2019
1 parent 00461c3 commit de4e0a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chartmogul/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"""

__title__ = 'chartmogul'
__version__ = '1.2.3'
__version__ = '1.2.4'
__build__ = 0x000000
__author__ = 'ChartMogul Ltd'
__license__ = 'MIT'
Expand Down
1 change: 1 addition & 0 deletions chartmogul/api/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class _Schema(Schema):
uuid = fields.String()
external_id = fields.String(allow_none=True)
customer_uuid = fields.String(allow_none=True)
customer_external_id = fields.String(allow_none=True)
data_source_uuid = fields.String(allow_none=True)

currency = fields.String()
Expand Down
2 changes: 2 additions & 0 deletions test/api/test_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"external_id": "INV0001",
"date": datetime(2015, 11, 1, 0, 0, 0), # "2015-11-01 00:00:00",
"currency": "USD",
"customer_external_id": "ext-id",
# "2015-11-15 00:00:00",
"due_date": datetime(2015, 11, 15, 0, 0, 0),
"line_items": [
Expand Down Expand Up @@ -63,6 +64,7 @@
u"date": u"2015-11-01T00:00:00",
u"currency": u"USD",
u"due_date": u"2015-11-15T00:00:00",
u"customer_external_id": u"ext-id",
u"line_items": [
{
u"type": "subscription",
Expand Down

0 comments on commit de4e0a2

Please sign in to comment.