-
Notifications
You must be signed in to change notification settings - Fork 571
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 support for the Checkout Session resource #1440
Conversation
d1d70d0
to
343a924
Compare
343a924
to
abbf853
Compare
abbf853
to
3016427
Compare
3016427
to
b8b46b2
Compare
1209c51
to
38c0c25
Compare
38c0c25
to
e332277
Compare
Updated most of the PR to match the new resource shape. Still a few things to fix in tests |
e332277
to
d69ada8
Compare
cc @matt-stripe for awareness |
d69ada8
to
1683163
Compare
@ob-stripe Fixed what you found. PTAL |
/// <c>LineItems</c>. Usage with <c>SubscriptionData</c> is not yet available. | ||
/// </summary> | ||
[JsonProperty("customer")] | ||
public string CustomerId { get; set; } |
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.
I'm not sure if we're super consistent w/ regards to ordering the attributes alphabetically per attribute name (CustomerId
) or per JSON name (customer
), but in Session
, CustomerId
appears after CustomerEmail
. Can you quickly check if there's a common style we use for this and update the PR to be consistent?
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.
There's no style beyond "remi does not know his alphabet". Will fix.
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.
Ha okay I know why. It's because if something is expandable then it ends up appearing first. But I'd rather re-alphabetize when it becomes expandable.
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.
Just one more minor nit.
1683163
to
66ef745
Compare
Okay re-assigning to @mickjermsurawong-stripe to triple check based on the work we will do on stripe-java |
66ef745
to
6f5d071
Compare
Okay so now Also we will need a new release of stripe-mock to test this properly. |
6f5d071
to
a48aa5f
Compare
@ob-stripe Mick released a new stripe-mock that allows for expanding the right resource and I updated tests. Can you have one last deep look so that we can release? |
This resource is now ready to be released. The PR has been updated to match the latest spec.
r? @ob-stripe
cc @stripe/api-libraries