Skip to content
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

API Updates #2366

Merged
merged 2 commits into from
Sep 1, 2021
Merged

API Updates #2366

merged 2 commits into from
Sep 1, 2021

Conversation

richardm-stripe
Copy link
Contributor

Codegen for openapi 944e56f.
r? @dcr-stripe
cc @stripe/api-libraries

Changelog

  • Add support for AfterExpiration, ConsentCollection, and ExpiresAt on CheckoutSessionCreateOptions and CheckoutSession
  • Add support for Consent and RecoveredFrom on CheckoutSession

/// </summary>
[JsonProperty("expires_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime? ExpiresAt { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this nullable? Shouldn't it be either always set or the entire hash is null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - from the checkout team:

after_expiration.recovery.enabled should be required - after_expiration.recovery.allow_promotion_codes is optional on the write side with a default of false - so the resource [should] have that field as required as well. after_expiration.recovery.url and after_expiration.recovery.expires_at will be null until the Checkout Session expires, so those are correct

@richardm-stripe
Copy link
Contributor Author

re-r? @remi-stripe with the latest changes

@richardm-stripe richardm-stripe merged commit 7ae2bca into master Sep 1, 2021
@richardm-stripe richardm-stripe deleted the latest-codegen branch September 1, 2021 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants