Skip to content

Commit a86aa48

Browse files
authored
[DP-495] new optional parameter data_source_uuid on Invoice (#12)
1 parent 7404b2e commit a86aa48

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
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.1.4'
32+
__version__ = '1.1.5'
3333
__build__ = 0x000000
3434
__author__ = 'ChartMogul Ltd'
3535
__license__ = 'MIT'

chartmogul/api/invoice.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ class Invoice(Resource):
3939

4040
class _Schema(Schema):
4141
uuid = fields.String()
42-
customer_uuid = fields.String(allow_none=True)
4342
external_id = fields.String(allow_none=True)
43+
customer_uuid = fields.String(allow_none=True)
44+
data_source_uuid = fields.String(allow_none=True)
45+
46+
currency = fields.String()
4447
date = fields.DateTime()
4548
due_date = fields.DateTime(allow_none=True)
46-
currency = fields.String()
49+
4750
line_items = fields.Nested(LineItem._Schema, many=True)
4851
transactions = fields.Nested(Transaction._Schema, many=True)
4952

0 commit comments

Comments
 (0)