dj-stripe / dj-stripe

dj-stripe automatically syncs your Stripe Data to your local database as pre-implemented Django Models allowing you to use the Django ORM, in your code, to work with the data making it easier and faster.

Home Page:https://dj-stripe.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Subscription objects are missing a currency field

czue opened this issue · comments

Describe the bug

Stripe subscription objects have a currency field (https://stripe.com/docs/api/subscriptions/object#subscription_object-currency), however this is missing from dj-stripe.

This is a problem if you are using multi-currency subscriptions, because you can't easily tell which currency the subscription is in, making it difficult to show the correct information.

Note: I wasn't sure whether to file this as a bug or API update, since I couldn't figure out when this was added to the API

To Reproduce

N/A

Software versions

  • Dj-Stripe version: 2.8.1
  • Python version: 3.11.3
  • Django version: 4.2.4
  • Stripe API version: 2023-08-16
  • Database type and version: Postgres 14

Similarly it would be nice to have currency_options on Price objects. That should maybe be a separate issue

dj-stripe 3.0 will have a full dictionary of all fields up-to-date from the latest sync. These two fields will not be added (we're removing most fields), but they will be in that new json dict.

I'm closing this as it's done by default.