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 #1315

Merged
merged 4 commits into from
Feb 26, 2022
Merged

API Updates #1315

merged 4 commits into from
Feb 26, 2022

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Feb 25, 2022

Codegen for openapi 3c477c0.
r? @richardm-stripe
cc @stripe/api-libraries

Changelog

  • Add support for konbini_payments on AccountUpdateParams.capabilities, AccountCreateParams.capabilities, and Account.capabilities
  • Add support for konbini on Charge.payment_method_details, CheckoutSessionCreateParams.payment_method_options, Checkout.Session.payment_method_options, InvoiceCreateParams.payment_settings.payment_method_options, InvoiceUpdateParams.payment_settings.payment_method_options, Invoice.payment_settings.payment_method_options, PaymentIntentCreateParams.payment_method_data, PaymentIntentCreateParams.payment_method_options, PaymentIntentUpdateParams.payment_method_data, PaymentIntentUpdateParams.payment_method_options, PaymentIntentConfirmParams.payment_method_data, PaymentIntentConfirmParams.payment_method_options, PaymentIntent.payment_method_options, PaymentMethodCreateParams, PaymentMethod, SubscriptionCreateParams.payment_settings.payment_method_options, SubscriptionUpdateParams.payment_settings.payment_method_options, and Subscription.payment_settings.payment_method_options
  • Add support for new value konbini on enums CheckoutSessionCreateParams.payment_method_types[] and PaymentMethodCreateParams.type
  • Add support for new value konbini on enums CustomerListPaymentMethodsParams.type and PaymentMethodListParams.type
  • Add support for new value konbini on enums InvoiceCreateParams.payment_settings.payment_method_types[], InvoiceUpdateParams.payment_settings.payment_method_types[], SubscriptionCreateParams.payment_settings.payment_method_types[], and SubscriptionUpdateParams.payment_settings.payment_method_types[]
  • Add support for new value konbini on enums PaymentIntentCreateParams.payment_method_data.type, PaymentIntentUpdateParams.payment_method_data.type, and PaymentIntentConfirmParams.payment_method_data.type
  • Add support for konbini_display_details on PaymentIntent.next_action

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class NextActionKonbiniDisplayDetailsStores extends StripeObject {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is almost certainly not what we want. Should be just public static class Stores and be an inner class of NextActionKonbiniDisplayDetails

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class NextActionKonbiniDisplayDetailsStoresStore extends StripeObject {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should also be an inner class.

To be really consistent, each of these would be separate classes, too...

* created by the subscription.
*/
@SerializedName("konbini")
Invoice.PaymentMethodOptions.Konbini konbini;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're going to have to unshare this.

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public class SetupIntentTypeSpecificPaymentMethodOptionsClient extends StripeObject {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oof this should not be generated.

Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

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

LGTM

@richardm-stripe richardm-stripe merged commit eb08098 into master Feb 26, 2022
@richardm-stripe richardm-stripe deleted the latest-codegen branch February 26, 2022 02: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.

None yet

3 participants