Skip to content

Commit

Permalink
Add event order to subscription event (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpdal authored Jan 30, 2024
1 parent e76897b commit 9639764
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions chartmogul/api/subscription_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class _Schema(Schema):
tax_amount_in_cents = fields.Int(allow_none=True)
retracted_event_id = fields.String(allow_none=True)
external_id = fields.String(allow_none=True)
event_order = fields.Int(allow_none=True)

@post_load
def make(self, data, **kwargs):
Expand Down
2 changes: 2 additions & 0 deletions test/api/test_subscription_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"plan_external_id": "gol d_monthly",
"currency": "USD",
"amount_in_cents": 1000,
"event_order": 123,
}

sub_ev_list_expected = {
Expand All @@ -37,6 +38,7 @@
"plan_external_id": "gol d_monthly",
"currency": "USD",
"amount_in_cents": 1000,
"event_order": 123,
}
],
"cursor": "cursor==",
Expand Down

0 comments on commit 9639764

Please sign in to comment.