Skip to content

Commit de4e0a2

Browse files
authored
Allow customer_external_id field (#30)
1 parent 00461c3 commit de4e0a2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

chartmogul/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"""
3030

3131
__title__ = 'chartmogul'
32-
__version__ = '1.2.3'
32+
__version__ = '1.2.4'
3333
__build__ = 0x000000
3434
__author__ = 'ChartMogul Ltd'
3535
__license__ = 'MIT'

chartmogul/api/invoice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class _Schema(Schema):
4242
uuid = fields.String()
4343
external_id = fields.String(allow_none=True)
4444
customer_uuid = fields.String(allow_none=True)
45+
customer_external_id = fields.String(allow_none=True)
4546
data_source_uuid = fields.String(allow_none=True)
4647

4748
currency = fields.String()

test/api/test_invoice.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"external_id": "INV0001",
1818
"date": datetime(2015, 11, 1, 0, 0, 0), # "2015-11-01 00:00:00",
1919
"currency": "USD",
20+
"customer_external_id": "ext-id",
2021
# "2015-11-15 00:00:00",
2122
"due_date": datetime(2015, 11, 15, 0, 0, 0),
2223
"line_items": [
@@ -63,6 +64,7 @@
6364
u"date": u"2015-11-01T00:00:00",
6465
u"currency": u"USD",
6566
u"due_date": u"2015-11-15T00:00:00",
67+
u"customer_external_id": u"ext-id",
6668
u"line_items": [
6769
{
6870
u"type": "subscription",

0 commit comments

Comments
 (0)