Closed emanuelen5 closed 7 months ago
The codebase has been updated to reflect a change in how identifiers are managed when interacting with the Stripe API. Previously used stripe_id
properties on various objects have been replaced with a standardized id
property. This change affects the creation and referencing of payment methods, customers, discounts, products, prices, setup intents, and subscriptions within the Stripe-related modules.
File(s) | Change Summary |
---|---|
api/src/shop/pay.py , api/src/shop/stripe_payment_intent.py |
Updated functions to use payment_method.id and stripe_customer.id instead of their .stripe_id counterparts. |
api/src/shop/stripe_customer.py |
Modified _create_stripe_customer to set makeradmin_member.stripe_customer_id to stripe_customer.id rather than stripe_id . |
api/src/shop/stripe_discounts.py , api/src/shop/stripe_product_price.py , api/src/shop/stripe_setup_intent.py , api/src/shop/stripe_subscriptions.py |
Replaced stripe_id with id for Stripe objects like coupons, products, prices, and setup intents. |
api/src/shop/test/subscriptions_test.py |
Updated test references to use id instead of stripe_id for Stripe customer, payment method, and clock objects. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit