Skip to content

Commit

Permalink
Update generated code for v987
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 24, 2024
1 parent d784d6c commit 9e9805d
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v985
v987
16 changes: 16 additions & 0 deletions src/main/java/com/stripe/model/Mandate.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("acss_debit")
AcssDebit acssDebit;

@SerializedName("amazon_pay")
AmazonPay amazonPay;

@SerializedName("au_becs_debit")
AuBecsDebit auBecsDebit;

Expand All @@ -213,6 +216,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("payto")
Payto payto;

@SerializedName("revolut_pay")
RevolutPay revolutPay;

@SerializedName("sepa_debit")
SepaDebit sepaDebit;

Expand Down Expand Up @@ -259,6 +265,11 @@ public static class AcssDebit extends StripeObject {
String transactionType;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AmazonPay extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -406,6 +417,11 @@ public static class Payto extends StripeObject {
String startDate;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RevolutPay extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
40 changes: 40 additions & 0 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -3018,6 +3018,26 @@ public static class AmazonPay extends StripeObject {
*/
@SerializedName("capture_method")
String captureMethod;

/**
* 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;
}

@Getter
Expand Down Expand Up @@ -4227,6 +4247,26 @@ public static class RevolutPay extends StripeObject {
*/
@SerializedName("capture_method")
String captureMethod;

/**
* 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;
}

@Getter
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/stripe/model/SetupAttempt.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("acss_debit")
AcssDebit acssDebit;

@SerializedName("amazon_pay")
AmazonPay amazonPay;

@SerializedName("au_becs_debit")
AuBecsDebit auBecsDebit;

Expand Down Expand Up @@ -306,6 +309,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("payto")
Payto payto;

@SerializedName("revolut_pay")
RevolutPay revolutPay;

@SerializedName("sepa_debit")
SepaDebit sepaDebit;

Expand All @@ -328,6 +334,11 @@ public static class PaymentMethodDetails extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class AcssDebit extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AmazonPay extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -801,6 +812,11 @@ public static class Paypal extends StripeObject {}
@EqualsAndHashCode(callSuper = false)
public static class Payto extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RevolutPay extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
44 changes: 42 additions & 2 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,27 @@ public static class Alipay extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AmazonPay extends StripeObject {}
public static class AmazonPay extends StripeObject {
/**
* 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;
}

@Getter
@Setter
Expand Down Expand Up @@ -2301,7 +2321,27 @@ public static class Pix extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RevolutPay extends StripeObject {}
public static class RevolutPay extends StripeObject {
/**
* 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;
}

@Getter
@Setter
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/stripe/param/InvoiceCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -3849,6 +3849,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("acss_debit")
ACSS_DEBIT("acss_debit"),

@SerializedName("amazon_pay")
AMAZON_PAY("amazon_pay"),

@SerializedName("au_becs_debit")
AU_BECS_DEBIT("au_becs_debit"),

Expand Down Expand Up @@ -3903,6 +3906,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("promptpay")
PROMPTPAY("promptpay"),

@SerializedName("revolut_pay")
REVOLUT_PAY("revolut_pay"),

@SerializedName("sepa_credit_transfer")
SEPA_CREDIT_TRANSFER("sepa_credit_transfer"),

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/stripe/param/InvoiceUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -3886,6 +3886,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("acss_debit")
ACSS_DEBIT("acss_debit"),

@SerializedName("amazon_pay")
AMAZON_PAY("amazon_pay"),

@SerializedName("au_becs_debit")
AU_BECS_DEBIT("au_becs_debit"),

Expand Down Expand Up @@ -3940,6 +3943,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("promptpay")
PROMPTPAY("promptpay"),

@SerializedName("revolut_pay")
REVOLUT_PAY("revolut_pay"),

@SerializedName("sepa_credit_transfer")
SEPA_CREDIT_TRANSFER("sepa_credit_transfer"),

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/stripe/param/SubscriptionCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -5961,6 +5961,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("acss_debit")
ACSS_DEBIT("acss_debit"),

@SerializedName("amazon_pay")
AMAZON_PAY("amazon_pay"),

@SerializedName("au_becs_debit")
AU_BECS_DEBIT("au_becs_debit"),

Expand Down Expand Up @@ -6015,6 +6018,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("promptpay")
PROMPTPAY("promptpay"),

@SerializedName("revolut_pay")
REVOLUT_PAY("revolut_pay"),

@SerializedName("sepa_credit_transfer")
SEPA_CREDIT_TRANSFER("sepa_credit_transfer"),

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/stripe/param/SubscriptionUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -6239,6 +6239,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("acss_debit")
ACSS_DEBIT("acss_debit"),

@SerializedName("amazon_pay")
AMAZON_PAY("amazon_pay"),

@SerializedName("au_becs_debit")
AU_BECS_DEBIT("au_becs_debit"),

Expand Down Expand Up @@ -6293,6 +6296,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("promptpay")
PROMPTPAY("promptpay"),

@SerializedName("revolut_pay")
REVOLUT_PAY("revolut_pay"),

@SerializedName("sepa_credit_transfer")
SEPA_CREDIT_TRANSFER("sepa_credit_transfer"),

Expand Down

0 comments on commit 9e9805d

Please sign in to comment.