Skip to content

Commit

Permalink
Add support for customer website_url field (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
whobubble authored Feb 8, 2024
1 parent 9639764 commit ef7b3d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions chartmogul/api/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class _Schema(Schema):
currency = fields.String()
currency_sign = fields.String(data_key="currency-sign")
address = fields.Nested(Address._Schema, allow_none=True, unknown=EXCLUDE)
website_url = fields.String()

@post_load
def make(self, data, **kwargs):
Expand Down
4 changes: 4 additions & 0 deletions test/api/test_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"billing-system-type": "Stripe",
"currency": "USD",
"currency-sign": "$",
"website_url": "https://chartmogul.com",
}

allContacts = {"entries": [entry], "cursor": "cursor==", "has_more": True}
Expand Down Expand Up @@ -140,6 +141,7 @@
billing_system_type="Stripe",
currency="USD",
currency_sign="$",
website_url="https://chartmogul.com",
)

createCustomer = {
Expand Down Expand Up @@ -191,6 +193,7 @@
{"key": "salesRep", "value": "Gabi", "type": "String"},
],
},
"website_url": "https://chartmogul.com"
}

sentCreateExpected = {
Expand Down Expand Up @@ -242,6 +245,7 @@
"name": "Example Company",
"state": "Alaska",
"zip": "0185128",
"website_url": "https://chartmogul.com",
}

contact = {
Expand Down

0 comments on commit ef7b3d2

Please sign in to comment.