Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balance fields should probably be StripeQuantumCurrencyAmountField #971

Closed
therefromhere opened this issue Sep 5, 2019 · 0 comments · Fixed by #976
Closed

Balance fields should probably be StripeQuantumCurrencyAmountField #971

therefromhere opened this issue Sep 5, 2019 · 0 comments · Fixed by #976

Comments

@therefromhere
Copy link
Contributor

therefromhere commented Sep 5, 2019

These fields are currently IntegerFields, but should probably be StripeQuantumCurrencyAmountField, since they're storing an integer currency value:

  • Customer.balance
  • Invoice.starting_balance
  • Invoice.ending_balance

Should just be a matter of updating the models in question and their existing migrations (since StripeQuantumCurrencyAmountField subclasses IntegerField).

(see #955 for bigger tidyup of currency amount fields)

therefromhere added a commit to prismaticd/dj-stripe that referenced this issue Sep 7, 2019
Instead of a plain IntegerField.  Note that this is non-breaking change since it's still an integer number of cents.

Resolves dj-stripe#971
therefromhere added a commit that referenced this issue Sep 7, 2019
Instead of a plain IntegerField.  Note that this is non-breaking change since it's still an integer number of cents.

Resolves #971
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant