-
Notifications
You must be signed in to change notification settings - Fork 460
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
Add "OnBehalfOf" to subscriptions #700
Add "OnBehalfOf" to subscriptions #700
Conversation
@klauspost Thank you for the pull request! Since this field represents an Account id (acct_123) it can be Expanded and return an Account object too. Would you be up for changing your PR to support this? You can see how we do this on the Charge resource here for Let me know if it'd be easier for us to do the changes! |
@remi-stripe I don't really see how that works. Unless you always "expand", I can't really figure out how it falls back to the ID.
Thanks - I would appreciate that since I don't really get how the expand functionality works. |
@klauspost This idea is that the library will automatically deserialize the value, if it's a string it will only set Let me know if that clarifies how to do this. Otherwise I can take over in a separate PR instead to show you! |
Ahh.. The |
Correct, it's a bit of magic we put on all resources that can be expanded so that it "just works". |
It seems like `OnBehalfOf` was added to SubscriptionParams but not the subscription objects themselves. Added to `Subscription` and `Charge`.
c6c1d8a
to
74c5e6e
Compare
@remi-stripe Updated :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you for the quick work
@klauspost Released as 51.1.0. Thanks for working on this, that's awesome! |
* Set metadata on add_invoice_items and proration data * Tests for built-in metadata and proration settings * Missing types * typing fix
It seems like
OnBehalfOf
was added to SubscriptionParams but not the subscription objects themselves.