From 64b88bb966f4c43d69ffb139e3a94d2be5b488a7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 10:21:17 +0000 Subject: [PATCH] Update generated code for v657 --- OPENAPI_VERSION | 2 +- .../com/stripe/model/checkout/Session.java | 48 +++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 341fbefcb59..26c2426487d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v655 \ No newline at end of file +v657 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 99a7114b072..c89724c7268 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -1330,6 +1330,9 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("paynow") Paynow paynow; + @SerializedName("paypal") + Paypal paypal; + @SerializedName("pix") Pix pix; @@ -2065,6 +2068,51 @@ public static class Paynow extends StripeObject { String setupFutureUsage; } + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Paypal extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + + /** Preferred locale of the PayPal checkout page that the customer is redirected to. */ + @SerializedName("preferred_locale") + String preferredLocale; + + /** + * A reference of the PayPal transaction visible to customer which is mapped to PayPal's + * invoice ID. This must be a globally unique ID if you have configured in your PayPal + * settings to block multiple payments per invoice ID. + */ + @SerializedName("reference") + String reference; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

Providing this parameter will attach the payment method + * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any + * required actions from the user are complete. If no Customer was provided, the payment + * method can still be attached to a Customer after + * the transaction completes. + * + *

When processing card payments, Stripe also uses {@code setup_future_usage} to + * dynamically optimize your payment flow and comply with regional legislation and network + * rules, such as SCA. + * + *

One of {@code none}, or {@code off_session}. + */ + @SerializedName("setup_future_usage") + String setupFutureUsage; + } + @Getter @Setter @EqualsAndHashCode(callSuper = false)