Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request dj-stripe#332 from cloudsmith-io/bugfix-business-v…
Browse files Browse the repository at this point in the history
…at-id

Fix for customer business VAT id being required
  • Loading branch information
kavdev authored Jul 6, 2016
2 parents f1d1cea + c7f25ef commit 095edf6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion djstripe/stripe_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ class Meta:
expand_fields = ["default_source"]

account_balance = StripeIntegerField(null=True, help_text="Current balance, if any, being stored on the customer's account. If negative, the customer has credit to apply to the next invoice. If positive, the customer has an amount owed that will be added to the next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account for recurring charges.")
business_vat_id = StripeCharField(max_length=20, null=True, help_text="The customer's VAT identification number.")
business_vat_id = StripeCharField(max_length=20, null=True, help_text="The customer's VAT identification number.", stripe_required=False)
currency = StripeCharField(max_length=3, null=True, help_text="The currency the customer can be charged in for recurring billing purposes (subscriptions, invoices, invoice items).")
delinquent = StripeBooleanField(default=False, help_text="Whether or not the latest charge for the customer's latest invoice has failed.")
shipping = StripeJSONField(null=True, help_text="Shipping information associated with the customer.")
Expand Down
2 changes: 0 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ def sources(self):
"id": "cus_6lsBvm5rJ0zyHc",
"object": "customer",
"account_balance": 0,
"business_vat_id": None,
"created": 1439229084,
"currency": "usd",
"default_source": deepcopy(FAKE_CARD),
Expand Down Expand Up @@ -602,7 +601,6 @@ def sources(self):
"id": "cus_4UbFSo9tl62jqj",
"object": "customer",
"account_balance": 0,
"business_vat_id": None,
"created": 1439229084,
"currency": "usd",
"default_source": deepcopy(FAKE_CARD_II),
Expand Down

0 comments on commit 095edf6

Please sign in to comment.