Skip to content

Commit

Permalink
Update generated code for v657
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 14, 2023
1 parent 9ff621a commit 784783a
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v656
v657
57 changes: 57 additions & 0 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("paynow")
Paynow paynow;

@SerializedName("paypal")
Paypal paypal;

@SerializedName("pix")
Pix pix;

Expand Down Expand Up @@ -2155,6 +2158,60 @@ 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.
*
* <p>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.
*
* <p>Providing this parameter will <a
* href="https://stripe.com/docs/payments/save-during-payment">attach the payment method</a>
* 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 <a
* href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer after
* the transaction completes.
*
* <p>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 <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
*
* <p>One of {@code none}, or {@code off_session}.
*/
@SerializedName("setup_future_usage")
String setupFutureUsage;

/**
* The Stripe connected account IDs of the sellers on the platform for this transaction
* (optional). Only allowed when <a
* href="https://stripe.com/docs/connect/separate-charges-and-transfers">separate charges and
* transfers</a> are used.
*/
@SerializedName("subsellers")
List<String> subsellers;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down

0 comments on commit 784783a

Please sign in to comment.