Shopify / rbi-central

MIT License
55 stars 36 forks source link

Add missing payment_method_details to stripe.rbi #272

Closed Tonkpils closed 1 month ago

Tonkpils commented 1 month ago

Type of Change

Changes

Stripe Charges respond to payment_method_details which returns a StripeObject that responds to different methods depending on the type returned https://docs.stripe.com/api/charges/object#charge_object-payment_method_details

Tonkpils commented 1 month ago

Turning this back to draft since Sorbet complains about this at runtime since the object returned by payment_method_details.card is a Stripe::StripeObject and not a Stripe::Card 😬