diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0ad25f52ebc..9f46827f56a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2023 \ No newline at end of file +v2025 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index f7d773eac50..a11cd7a32fd 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1243,15 +1243,6 @@ public static class Capabilities extends StripeObject { @SerializedName("paynow_payments") String paynowPayments; - /** - * The status of the Paypay capability of the account, or whether the account can directly - * process Paypay payments. - * - *

One of {@code active}, {@code inactive}, or {@code pending}. - */ - @SerializedName("paypay_payments") - String paypayPayments; - /** * The status of the pix payments capability of the account, or whether the account can directly * process pix charges. diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 276b5c8aabb..ba9efcaf66b 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1273,9 +1273,6 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("paypal") Paypal paypal; - @SerializedName("paypay") - Paypay paypay; - @SerializedName("pix") Pix pix; @@ -3572,15 +3569,6 @@ public static class SellerProtection extends StripeObject { } } - /** - * For more details about Paypay, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Paypay extends StripeObject {} - /** * For more details about Pix, please refer to the API * Reference. diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index 1cdd8be1f9a..b4eaa24b022 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -407,9 +407,6 @@ public static class PaymentMethodPreview extends StripeObject { @SerializedName("paypal") Paypal paypal; - @SerializedName("paypay") - Paypay paypay; - @SerializedName("pix") Pix pix; @@ -450,9 +447,9 @@ public static class PaymentMethodPreview extends StripeObject { * kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way}, * {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code nz_bank_account}, {@code * oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, - * {@code paypay}, {@code pix}, {@code promptpay}, {@code revolut_pay}, {@code samsung_pay}, - * {@code satispay}, {@code sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code - * us_bank_account}, {@code wechat_pay}, or {@code zip}. + * {@code pix}, {@code promptpay}, {@code revolut_pay}, {@code samsung_pay}, {@code satispay}, + * {@code sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, + * {@code wechat_pay}, or {@code zip}. */ @SerializedName("type") String type; @@ -2079,15 +2076,6 @@ public static class Paypal extends StripeObject { String payerId; } - /** - * For more details about Paypay, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Paypay extends StripeObject {} - /** * For more details about Pix, please refer to the API * Reference. diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index 1ce9341ee21..b5fdfa0277a 100644 --- a/src/main/java/com/stripe/model/Dispute.java +++ b/src/main/java/com/stripe/model/Dispute.java @@ -138,8 +138,8 @@ public class Dispute extends ApiResource * warning_under_review}, {@code warning_closed}, {@code needs_response}, {@code under_review}, * {@code won}, {@code lost}, or {@code prevented}. * - *

One of {@code lost}, {@code needs_response}, {@code under_review}, {@code warning_closed}, - * {@code warning_needs_response}, {@code warning_under_review}, or {@code won}. + *

One of {@code lost}, {@code needs_response}, {@code prevented}, {@code under_review}, {@code + * warning_closed}, {@code warning_needs_response}, {@code warning_under_review}, or {@code won}. */ @SerializedName("status") String status; diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index 20689bedd9a..f2b0bf19aff 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -2640,9 +2640,6 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("paypal") Paypal paypal; - @SerializedName("paypay") - Paypay paypay; - @SerializedName("pix") Pix pix; @@ -4478,15 +4475,6 @@ public static class Paypal extends StripeObject { String setupFutureUsage; } - /** - * For more details about Paypay, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Paypay extends StripeObject {} - /** * For more details about Pix, please refer to the API * Reference. diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index 438529dfa7f..f6bfa2b5a95 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -206,9 +206,6 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore

API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Paypay extends StripeObject {} - /** * For more details about Pix, please refer to the API * Reference. @@ -2639,7 +2626,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(payco, responseGetter); trySetResponseGetter(paynow, responseGetter); trySetResponseGetter(paypal, responseGetter); - trySetResponseGetter(paypay, responseGetter); trySetResponseGetter(pix, responseGetter); trySetResponseGetter(promptpay, responseGetter); trySetResponseGetter(radarOptions, responseGetter); diff --git a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java index 36815874197..ad21e06edf3 100644 --- a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java +++ b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java @@ -209,9 +209,6 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId { @SerializedName("paypal") Paypal paypal; - @SerializedName("paypay") - Paypay paypay; - @SerializedName("pix") Pix pix; @@ -2391,57 +2388,6 @@ public static class DisplayPreference extends StripeObject { } } - /** - * For more details about Paypay, please refer to the API - * Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class Paypay extends StripeObject { - /** - * Whether this payment method may be offered at checkout. True if {@code display_preference} is - * {@code on} and the payment method's capability is active. - */ - @SerializedName("available") - Boolean available; - - @SerializedName("display_preference") - DisplayPreference displayPreference; - - /** - * For more details about DisplayPreference, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class DisplayPreference extends StripeObject { - /** - * For child configs, whether or not the account's preference will be observed. If {@code - * false}, the parent configuration's default is used. - */ - @SerializedName("overridable") - Boolean overridable; - - /** - * The account's display preference. - * - *

One of {@code none}, {@code off}, or {@code on}. - */ - @SerializedName("preference") - String preference; - - /** - * The effective display preference value. - * - *

One of {@code off}, or {@code on}. - */ - @SerializedName("value") - String value; - } - } - /** * For more details about Pix, please refer to the API * Reference. @@ -3096,7 +3042,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(payco, responseGetter); trySetResponseGetter(paynow, responseGetter); trySetResponseGetter(paypal, responseGetter); - trySetResponseGetter(paypay, responseGetter); trySetResponseGetter(pix, responseGetter); trySetResponseGetter(promptpay, responseGetter); trySetResponseGetter(revolutPay, responseGetter); diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java index 02a708c5fb4..10d09fd38da 100644 --- a/src/main/java/com/stripe/param/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/AccountCreateParams.java @@ -1456,10 +1456,6 @@ public static class Capabilities { @SerializedName("paynow_payments") PaynowPayments paynowPayments; - /** The paypay_payments capability. */ - @SerializedName("paypay_payments") - PaypayPayments paypayPayments; - /** The pix_payments capability. */ @SerializedName("pix_payments") PixPayments pixPayments; @@ -1573,7 +1569,6 @@ private Capabilities( PayByBankPayments payByBankPayments, PaycoPayments paycoPayments, PaynowPayments paynowPayments, - PaypayPayments paypayPayments, PixPayments pixPayments, PromptpayPayments promptpayPayments, RevolutPayPayments revolutPayPayments, @@ -1635,7 +1630,6 @@ private Capabilities( this.payByBankPayments = payByBankPayments; this.paycoPayments = paycoPayments; this.paynowPayments = paynowPayments; - this.paypayPayments = paypayPayments; this.pixPayments = pixPayments; this.promptpayPayments = promptpayPayments; this.revolutPayPayments = revolutPayPayments; @@ -1748,8 +1742,6 @@ public static class Builder { private PaynowPayments paynowPayments; - private PaypayPayments paypayPayments; - private PixPayments pixPayments; private PromptpayPayments promptpayPayments; @@ -1831,7 +1823,6 @@ public AccountCreateParams.Capabilities build() { this.payByBankPayments, this.paycoPayments, this.paynowPayments, - this.paypayPayments, this.pixPayments, this.promptpayPayments, this.revolutPayPayments, @@ -2169,13 +2160,6 @@ public Builder setPaynowPayments( return this; } - /** The paypay_payments capability. */ - public Builder setPaypayPayments( - AccountCreateParams.Capabilities.PaypayPayments paypayPayments) { - this.paypayPayments = paypayPayments; - return this; - } - /** The pix_payments capability. */ public Builder setPixPayments(AccountCreateParams.Capabilities.PixPayments pixPayments) { this.pixPayments = pixPayments; @@ -5729,86 +5713,6 @@ public Builder setRequested(Boolean requested) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PaypayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Passing true requests the capability for the account, if it is not already requested. A - * requested capability may not immediately become active. Any requirements to activate the - * capability are returned in the {@code requirements} arrays. - */ - @SerializedName("requested") - Boolean requested; - - private PaypayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.PaypayPayments build() { - return new AccountCreateParams.Capabilities.PaypayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Capabilities.PaypayPayments#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountCreateParams.Capabilities.PaypayPayments#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Passing true requests the capability for the account, if it is not already requested. A - * requested capability may not immediately become active. Any requirements to activate the - * capability are returned in the {@code requirements} arrays. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class PixPayments { diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java index e23fb227dfc..11d4ac97776 100644 --- a/src/main/java/com/stripe/param/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountUpdateParams.java @@ -1554,10 +1554,6 @@ public static class Capabilities { @SerializedName("paynow_payments") PaynowPayments paynowPayments; - /** The paypay_payments capability. */ - @SerializedName("paypay_payments") - PaypayPayments paypayPayments; - /** The pix_payments capability. */ @SerializedName("pix_payments") PixPayments pixPayments; @@ -1671,7 +1667,6 @@ private Capabilities( PayByBankPayments payByBankPayments, PaycoPayments paycoPayments, PaynowPayments paynowPayments, - PaypayPayments paypayPayments, PixPayments pixPayments, PromptpayPayments promptpayPayments, RevolutPayPayments revolutPayPayments, @@ -1733,7 +1728,6 @@ private Capabilities( this.payByBankPayments = payByBankPayments; this.paycoPayments = paycoPayments; this.paynowPayments = paynowPayments; - this.paypayPayments = paypayPayments; this.pixPayments = pixPayments; this.promptpayPayments = promptpayPayments; this.revolutPayPayments = revolutPayPayments; @@ -1846,8 +1840,6 @@ public static class Builder { private PaynowPayments paynowPayments; - private PaypayPayments paypayPayments; - private PixPayments pixPayments; private PromptpayPayments promptpayPayments; @@ -1929,7 +1921,6 @@ public AccountUpdateParams.Capabilities build() { this.payByBankPayments, this.paycoPayments, this.paynowPayments, - this.paypayPayments, this.pixPayments, this.promptpayPayments, this.revolutPayPayments, @@ -2267,13 +2258,6 @@ public Builder setPaynowPayments( return this; } - /** The paypay_payments capability. */ - public Builder setPaypayPayments( - AccountUpdateParams.Capabilities.PaypayPayments paypayPayments) { - this.paypayPayments = paypayPayments; - return this; - } - /** The pix_payments capability. */ public Builder setPixPayments(AccountUpdateParams.Capabilities.PixPayments pixPayments) { this.pixPayments = pixPayments; @@ -5827,86 +5811,6 @@ public Builder setRequested(Boolean requested) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class PaypayPayments { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * Passing true requests the capability for the account, if it is not already requested. A - * requested capability may not immediately become active. Any requirements to activate the - * capability are returned in the {@code requirements} arrays. - */ - @SerializedName("requested") - Boolean requested; - - private PaypayPayments(Map extraParams, Boolean requested) { - this.extraParams = extraParams; - this.requested = requested; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Boolean requested; - - /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.PaypayPayments build() { - return new AccountUpdateParams.Capabilities.PaypayPayments( - this.extraParams, this.requested); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Capabilities.PaypayPayments#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link AccountUpdateParams.Capabilities.PaypayPayments#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Passing true requests the capability for the account, if it is not already requested. A - * requested capability may not immediately become active. Any requirements to activate the - * capability are returned in the {@code requirements} arrays. - */ - public Builder setRequested(Boolean requested) { - this.requested = requested; - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class PixPayments { diff --git a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java index 4b43a90f184..00c89595810 100644 --- a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java +++ b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java @@ -506,13 +506,6 @@ public static class PaymentMethodData { @SerializedName("paypal") Paypal paypal; - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - @SerializedName("paypay") - Paypay paypay; - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -653,7 +646,6 @@ private PaymentMethodData( Payco payco, Paynow paynow, Paypal paypal, - Paypay paypay, Pix pix, Promptpay promptpay, RadarOptions radarOptions, @@ -709,7 +701,6 @@ private PaymentMethodData( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; @@ -813,8 +804,6 @@ public static class Builder { private Paypal paypal; - private Paypay paypay; - private Pix pix; private Promptpay promptpay; @@ -887,7 +876,6 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.radarOptions, @@ -1326,15 +1314,6 @@ public Builder setPaypal(ConfirmationTokenCreateParams.PaymentMethodData.Paypal return this; } - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - public Builder setPaypay(ConfirmationTokenCreateParams.PaymentMethodData.Paypay paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -4720,64 +4699,6 @@ public Builder putAllExtraParam(Map map) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public ConfirmationTokenCreateParams.PaymentMethodData.Paypay build() { - return new ConfirmationTokenCreateParams.PaymentMethodData.Paypay(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfirmationTokenCreateParams.PaymentMethodData.Paypay#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link ConfirmationTokenCreateParams.PaymentMethodData.Paypay#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -5855,9 +5776,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java index b4c972f3a90..dbb8572498c 100644 --- a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java +++ b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java @@ -351,9 +351,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java index b0a61b4f634..66b1285304b 100644 --- a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java +++ b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java @@ -351,9 +351,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index ad41528a52c..8429e073501 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -1286,13 +1286,6 @@ public static class PaymentMethodData { @SerializedName("paypal") Paypal paypal; - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - @SerializedName("paypay") - Paypay paypay; - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -1433,7 +1426,6 @@ private PaymentMethodData( Payco payco, Paynow paynow, Paypal paypal, - Paypay paypay, Pix pix, Promptpay promptpay, RadarOptions radarOptions, @@ -1489,7 +1481,6 @@ private PaymentMethodData( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; @@ -1593,8 +1584,6 @@ public static class Builder { private Paypal paypal; - private Paypay paypay; - private Pix pix; private Promptpay promptpay; @@ -1667,7 +1656,6 @@ public PaymentIntentConfirmParams.PaymentMethodData build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.radarOptions, @@ -2104,15 +2092,6 @@ public Builder setPaypal(PaymentIntentConfirmParams.PaymentMethodData.Paypal pay return this; } - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - public Builder setPaypay(PaymentIntentConfirmParams.PaymentMethodData.Paypay paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -5484,64 +5463,6 @@ public Builder putAllExtraParam(Map map) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentConfirmParams.PaymentMethodData.Paypay build() { - return new PaymentIntentConfirmParams.PaymentMethodData.Paypay(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -6617,9 +6538,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), @@ -6947,13 +6865,6 @@ public static class PaymentMethodOptions { @SerializedName("paypal") Object paypal; - /** - * If this is a {@code paypay} PaymentMethod, this sub-hash contains details about the PayPay - * payment method options. - */ - @SerializedName("paypay") - Object paypay; - /** * If this is a {@code pix} PaymentMethod, this sub-hash contains details about the Pix payment * method options. @@ -7079,7 +6990,6 @@ private PaymentMethodOptions( Object payco, Object paynow, Object paypal, - Object paypay, Object pix, Object promptpay, Object revolutPay, @@ -7132,7 +7042,6 @@ private PaymentMethodOptions( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.revolutPay = revolutPay; @@ -7232,8 +7141,6 @@ public static class Builder { private Object paypal; - private Object paypay; - private Object pix; private Object promptpay; @@ -7301,7 +7208,6 @@ public PaymentIntentConfirmParams.PaymentMethodOptions build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.revolutPay, @@ -8054,24 +7960,6 @@ public Builder setPaypal(EmptyParam paypal) { return this; } - /** - * If this is a {@code paypay} PaymentMethod, this sub-hash contains details about the PayPay - * payment method options. - */ - public Builder setPaypay(PaymentIntentConfirmParams.PaymentMethodOptions.Paypay paypay) { - this.paypay = paypay; - return this; - } - - /** - * If this is a {@code paypay} PaymentMethod, this sub-hash contains details about the PayPay - * payment method options. - */ - public Builder setPaypay(EmptyParam paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this sub-hash contains details about the Pix * payment method options. @@ -18168,124 +18056,6 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Controls when the funds are captured from the customer's account. - * - *

If provided, this parameter overrides the behavior of the top-level capture_method - * for this payment method type when finalizing the payment with this payment method type. - * - *

If {@code capture_method} is already set on the PaymentIntent, providing an empty value - * for this parameter unsets the stored value for this payment method type. - */ - @SerializedName("capture_method") - ApiRequestParams.EnumParam captureMethod; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(ApiRequestParams.EnumParam captureMethod, Map extraParams) { - this.captureMethod = captureMethod; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private ApiRequestParams.EnumParam captureMethod; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentConfirmParams.PaymentMethodOptions.Paypay build() { - return new PaymentIntentConfirmParams.PaymentMethodOptions.Paypay( - this.captureMethod, this.extraParams); - } - - /** - * Controls when the funds are captured from the customer's account. - * - *

If provided, this parameter overrides the behavior of the top-level capture_method - * for this payment method type when finalizing the payment with this payment method type. - * - *

If {@code capture_method} is already set on the PaymentIntent, providing an empty - * value for this parameter unsets the stored value for this payment method type. - */ - public Builder setCaptureMethod( - PaymentIntentConfirmParams.PaymentMethodOptions.Paypay.CaptureMethod captureMethod) { - this.captureMethod = captureMethod; - return this; - } - - /** - * Controls when the funds are captured from the customer's account. - * - *

If provided, this parameter overrides the behavior of the top-level capture_method - * for this payment method type when finalizing the payment with this payment method type. - * - *

If {@code capture_method} is already set on the PaymentIntent, providing an empty - * value for this parameter unsets the stored value for this payment method type. - */ - public Builder setCaptureMethod(EmptyParam captureMethod) { - this.captureMethod = captureMethod; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.Paypay#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.Paypay#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - public enum CaptureMethod implements ApiRequestParams.EnumParam { - @SerializedName("manual") - MANUAL("manual"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - CaptureMethod(String value) { - this.value = value; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -21615,9 +21385,6 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index baf46c8ee93..61ec1c41e7b 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -1792,13 +1792,6 @@ public static class PaymentMethodData { @SerializedName("paypal") Paypal paypal; - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - @SerializedName("paypay") - Paypay paypay; - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -1939,7 +1932,6 @@ private PaymentMethodData( Payco payco, Paynow paynow, Paypal paypal, - Paypay paypay, Pix pix, Promptpay promptpay, RadarOptions radarOptions, @@ -1995,7 +1987,6 @@ private PaymentMethodData( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; @@ -2099,8 +2090,6 @@ public static class Builder { private Paypal paypal; - private Paypay paypay; - private Pix pix; private Promptpay promptpay; @@ -2173,7 +2162,6 @@ public PaymentIntentCreateParams.PaymentMethodData build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.radarOptions, @@ -2605,15 +2593,6 @@ public Builder setPaypal(PaymentIntentCreateParams.PaymentMethodData.Paypal payp return this; } - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - public Builder setPaypay(PaymentIntentCreateParams.PaymentMethodData.Paypay paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -5977,64 +5956,6 @@ public Builder putAllExtraParam(Map map) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentCreateParams.PaymentMethodData.Paypay build() { - return new PaymentIntentCreateParams.PaymentMethodData.Paypay(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentCreateParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentCreateParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -7110,9 +7031,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), @@ -7440,13 +7358,6 @@ public static class PaymentMethodOptions { @SerializedName("paypal") Object paypal; - /** - * If this is a {@code paypay} PaymentMethod, this sub-hash contains details about the PayPay - * payment method options. - */ - @SerializedName("paypay") - Object paypay; - /** * If this is a {@code pix} PaymentMethod, this sub-hash contains details about the Pix payment * method options. @@ -7572,7 +7483,6 @@ private PaymentMethodOptions( Object payco, Object paynow, Object paypal, - Object paypay, Object pix, Object promptpay, Object revolutPay, @@ -7625,7 +7535,6 @@ private PaymentMethodOptions( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.revolutPay = revolutPay; @@ -7725,8 +7634,6 @@ public static class Builder { private Object paypal; - private Object paypay; - private Object pix; private Object promptpay; @@ -7794,7 +7701,6 @@ public PaymentIntentCreateParams.PaymentMethodOptions build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.revolutPay, @@ -8545,24 +8451,6 @@ public Builder setPaypal(EmptyParam paypal) { return this; } - /** - * If this is a {@code paypay} PaymentMethod, this sub-hash contains details about the PayPay - * payment method options. - */ - public Builder setPaypay(PaymentIntentCreateParams.PaymentMethodOptions.Paypay paypay) { - this.paypay = paypay; - return this; - } - - /** - * If this is a {@code paypay} PaymentMethod, this sub-hash contains details about the PayPay - * payment method options. - */ - public Builder setPaypay(EmptyParam paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this sub-hash contains details about the Pix * payment method options. @@ -18646,124 +18534,6 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Controls when the funds are captured from the customer's account. - * - *

If provided, this parameter overrides the behavior of the top-level capture_method - * for this payment method type when finalizing the payment with this payment method type. - * - *

If {@code capture_method} is already set on the PaymentIntent, providing an empty value - * for this parameter unsets the stored value for this payment method type. - */ - @SerializedName("capture_method") - ApiRequestParams.EnumParam captureMethod; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(ApiRequestParams.EnumParam captureMethod, Map extraParams) { - this.captureMethod = captureMethod; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private ApiRequestParams.EnumParam captureMethod; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentCreateParams.PaymentMethodOptions.Paypay build() { - return new PaymentIntentCreateParams.PaymentMethodOptions.Paypay( - this.captureMethod, this.extraParams); - } - - /** - * Controls when the funds are captured from the customer's account. - * - *

If provided, this parameter overrides the behavior of the top-level capture_method - * for this payment method type when finalizing the payment with this payment method type. - * - *

If {@code capture_method} is already set on the PaymentIntent, providing an empty - * value for this parameter unsets the stored value for this payment method type. - */ - public Builder setCaptureMethod( - PaymentIntentCreateParams.PaymentMethodOptions.Paypay.CaptureMethod captureMethod) { - this.captureMethod = captureMethod; - return this; - } - - /** - * Controls when the funds are captured from the customer's account. - * - *

If provided, this parameter overrides the behavior of the top-level capture_method - * for this payment method type when finalizing the payment with this payment method type. - * - *

If {@code capture_method} is already set on the PaymentIntent, providing an empty - * value for this parameter unsets the stored value for this payment method type. - */ - public Builder setCaptureMethod(EmptyParam captureMethod) { - this.captureMethod = captureMethod; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.Paypay#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.Paypay#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - public enum CaptureMethod implements ApiRequestParams.EnumParam { - @SerializedName("manual") - MANUAL("manual"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - CaptureMethod(String value) { - this.value = value; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -22212,9 +21982,6 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 7e3478dbda6..5639d9bdb44 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -1153,13 +1153,6 @@ public static class PaymentMethodData { @SerializedName("paypal") Paypal paypal; - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - @SerializedName("paypay") - Paypay paypay; - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -1300,7 +1293,6 @@ private PaymentMethodData( Payco payco, Paynow paynow, Paypal paypal, - Paypay paypay, Pix pix, Promptpay promptpay, RadarOptions radarOptions, @@ -1356,7 +1348,6 @@ private PaymentMethodData( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; @@ -1460,8 +1451,6 @@ public static class Builder { private Paypal paypal; - private Paypay paypay; - private Pix pix; private Promptpay promptpay; @@ -1534,7 +1523,6 @@ public PaymentIntentUpdateParams.PaymentMethodData build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.radarOptions, @@ -1966,15 +1954,6 @@ public Builder setPaypal(PaymentIntentUpdateParams.PaymentMethodData.Paypal payp return this; } - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - public Builder setPaypay(PaymentIntentUpdateParams.PaymentMethodData.Paypay paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -5475,64 +5454,6 @@ public Builder putAllExtraParam(Map map) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentUpdateParams.PaymentMethodData.Paypay build() { - return new PaymentIntentUpdateParams.PaymentMethodData.Paypay(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -6642,9 +6563,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), @@ -6972,13 +6890,6 @@ public static class PaymentMethodOptions { @SerializedName("paypal") Object paypal; - /** - * If this is a {@code paypay} PaymentMethod, this sub-hash contains details about the PayPay - * payment method options. - */ - @SerializedName("paypay") - Object paypay; - /** * If this is a {@code pix} PaymentMethod, this sub-hash contains details about the Pix payment * method options. @@ -7104,7 +7015,6 @@ private PaymentMethodOptions( Object payco, Object paynow, Object paypal, - Object paypay, Object pix, Object promptpay, Object revolutPay, @@ -7157,7 +7067,6 @@ private PaymentMethodOptions( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.revolutPay = revolutPay; @@ -7257,8 +7166,6 @@ public static class Builder { private Object paypal; - private Object paypay; - private Object pix; private Object promptpay; @@ -7326,7 +7233,6 @@ public PaymentIntentUpdateParams.PaymentMethodOptions build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.revolutPay, @@ -8077,24 +7983,6 @@ public Builder setPaypal(EmptyParam paypal) { return this; } - /** - * If this is a {@code paypay} PaymentMethod, this sub-hash contains details about the PayPay - * payment method options. - */ - public Builder setPaypay(PaymentIntentUpdateParams.PaymentMethodOptions.Paypay paypay) { - this.paypay = paypay; - return this; - } - - /** - * If this is a {@code paypay} PaymentMethod, this sub-hash contains details about the PayPay - * payment method options. - */ - public Builder setPaypay(EmptyParam paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this sub-hash contains details about the Pix * payment method options. @@ -18377,124 +18265,6 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Controls when the funds are captured from the customer's account. - * - *

If provided, this parameter overrides the behavior of the top-level capture_method - * for this payment method type when finalizing the payment with this payment method type. - * - *

If {@code capture_method} is already set on the PaymentIntent, providing an empty value - * for this parameter unsets the stored value for this payment method type. - */ - @SerializedName("capture_method") - ApiRequestParams.EnumParam captureMethod; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(ApiRequestParams.EnumParam captureMethod, Map extraParams) { - this.captureMethod = captureMethod; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private ApiRequestParams.EnumParam captureMethod; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentUpdateParams.PaymentMethodOptions.Paypay build() { - return new PaymentIntentUpdateParams.PaymentMethodOptions.Paypay( - this.captureMethod, this.extraParams); - } - - /** - * Controls when the funds are captured from the customer's account. - * - *

If provided, this parameter overrides the behavior of the top-level capture_method - * for this payment method type when finalizing the payment with this payment method type. - * - *

If {@code capture_method} is already set on the PaymentIntent, providing an empty - * value for this parameter unsets the stored value for this payment method type. - */ - public Builder setCaptureMethod( - PaymentIntentUpdateParams.PaymentMethodOptions.Paypay.CaptureMethod captureMethod) { - this.captureMethod = captureMethod; - return this; - } - - /** - * Controls when the funds are captured from the customer's account. - * - *

If provided, this parameter overrides the behavior of the top-level capture_method - * for this payment method type when finalizing the payment with this payment method type. - * - *

If {@code capture_method} is already set on the PaymentIntent, providing an empty - * value for this parameter unsets the stored value for this payment method type. - */ - public Builder setCaptureMethod(EmptyParam captureMethod) { - this.captureMethod = captureMethod; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.Paypay#extraParams} for - * the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.Paypay#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - public enum CaptureMethod implements ApiRequestParams.EnumParam { - @SerializedName("manual") - MANUAL("manual"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - CaptureMethod(String value) { - this.value = value; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -21912,9 +21682,6 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index ddb02080037..548080a5e27 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -6763,9 +6763,6 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index 1c847e15d71..62934fddc16 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -5502,9 +5502,6 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java index 2ff4ccf9657..4d99b399601 100644 --- a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java @@ -383,10 +383,6 @@ public class PaymentMethodConfigurationCreateParams extends ApiRequestParams { @SerializedName("paypal") Paypal paypal; - /** Customers can pay with PayPay online or using the PayPay app. */ - @SerializedName("paypay") - Paypay paypay; - /** * Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and * approve payments by scanning a QR code in their preferred banking app. Check this extraParams; - - private Paypay(DisplayPreference displayPreference, Map extraParams) { - this.displayPreference = displayPreference; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private DisplayPreference displayPreference; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentMethodConfigurationCreateParams.Paypay build() { - return new PaymentMethodConfigurationCreateParams.Paypay( - this.displayPreference, this.extraParams); - } - - /** Whether or not the payment method should be displayed. */ - public Builder setDisplayPreference( - PaymentMethodConfigurationCreateParams.Paypay.DisplayPreference displayPreference) { - this.displayPreference = displayPreference; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` - * call, and subsequent calls add additional key/value pairs to the original map. See {@link - * PaymentMethodConfigurationCreateParams.Paypay#extraParams} for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. - * See {@link PaymentMethodConfigurationCreateParams.Paypay#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DisplayPreference { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The account's preference for whether or not to display this payment method. */ - @SerializedName("preference") - Preference preference; - - private DisplayPreference(Map extraParams, Preference preference) { - this.extraParams = extraParams; - this.preference = preference; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Preference preference; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentMethodConfigurationCreateParams.Paypay.DisplayPreference build() { - return new PaymentMethodConfigurationCreateParams.Paypay.DisplayPreference( - this.extraParams, this.preference); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * PaymentMethodConfigurationCreateParams.Paypay.DisplayPreference#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * PaymentMethodConfigurationCreateParams.Paypay.DisplayPreference#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** The account's preference for whether or not to display this payment method. */ - public Builder setPreference( - PaymentMethodConfigurationCreateParams.Paypay.DisplayPreference.Preference preference) { - this.preference = preference; - return this; - } - } - - public enum Preference implements ApiRequestParams.EnumParam { - @SerializedName("none") - NONE("none"), - - @SerializedName("off") - OFF("off"), - - @SerializedName("on") - ON("on"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Preference(String value) { - this.value = value; - } - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { diff --git a/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java b/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java index b72b5ec81c5..df04c36daf4 100644 --- a/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java @@ -384,10 +384,6 @@ public class PaymentMethodConfigurationUpdateParams extends ApiRequestParams { @SerializedName("paypal") Paypal paypal; - /** Customers can pay with PayPay online or using the PayPay app. */ - @SerializedName("paypay") - Paypay paypay; - /** * Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate and * approve payments by scanning a QR code in their preferred banking app. Check this extraParams; - - private Paypay(DisplayPreference displayPreference, Map extraParams) { - this.displayPreference = displayPreference; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private DisplayPreference displayPreference; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentMethodConfigurationUpdateParams.Paypay build() { - return new PaymentMethodConfigurationUpdateParams.Paypay( - this.displayPreference, this.extraParams); - } - - /** Whether or not the payment method should be displayed. */ - public Builder setDisplayPreference( - PaymentMethodConfigurationUpdateParams.Paypay.DisplayPreference displayPreference) { - this.displayPreference = displayPreference; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` - * call, and subsequent calls add additional key/value pairs to the original map. See {@link - * PaymentMethodConfigurationUpdateParams.Paypay#extraParams} for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. - * See {@link PaymentMethodConfigurationUpdateParams.Paypay#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - @EqualsAndHashCode(callSuper = false) - public static class DisplayPreference { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The account's preference for whether or not to display this payment method. */ - @SerializedName("preference") - Preference preference; - - private DisplayPreference(Map extraParams, Preference preference) { - this.extraParams = extraParams; - this.preference = preference; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Preference preference; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentMethodConfigurationUpdateParams.Paypay.DisplayPreference build() { - return new PaymentMethodConfigurationUpdateParams.Paypay.DisplayPreference( - this.extraParams, this.preference); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * PaymentMethodConfigurationUpdateParams.Paypay.DisplayPreference#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link - * PaymentMethodConfigurationUpdateParams.Paypay.DisplayPreference#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** The account's preference for whether or not to display this payment method. */ - public Builder setPreference( - PaymentMethodConfigurationUpdateParams.Paypay.DisplayPreference.Preference preference) { - this.preference = preference; - return this; - } - } - - public enum Preference implements ApiRequestParams.EnumParam { - @SerializedName("none") - NONE("none"), - - @SerializedName("off") - OFF("off"), - - @SerializedName("on") - ON("on"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Preference(String value) { - this.value = value; - } - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { diff --git a/src/main/java/com/stripe/param/PaymentMethodCreateParams.java b/src/main/java/com/stripe/param/PaymentMethodCreateParams.java index 1b631b810f6..c078566d69a 100644 --- a/src/main/java/com/stripe/param/PaymentMethodCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodCreateParams.java @@ -325,13 +325,6 @@ public class PaymentMethodCreateParams extends ApiRequestParams { @SerializedName("paypal") Paypal paypal; - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay payment - * method. - */ - @SerializedName("paypay") - Paypay paypay; - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -475,7 +468,6 @@ private PaymentMethodCreateParams( String paymentMethod, Paynow paynow, Paypal paypal, - Paypay paypay, Pix pix, Promptpay promptpay, RadarOptions radarOptions, @@ -535,7 +527,6 @@ private PaymentMethodCreateParams( this.paymentMethod = paymentMethod; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; @@ -647,8 +638,6 @@ public static class Builder { private Paypal paypal; - private Paypay paypay; - private Pix pix; private Promptpay promptpay; @@ -725,7 +714,6 @@ public PaymentMethodCreateParams build() { this.paymentMethod, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.radarOptions, @@ -1211,15 +1199,6 @@ public Builder setPaypal(PaymentMethodCreateParams.Paypal paypal) { return this; } - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - public Builder setPaypay(PaymentMethodCreateParams.Paypay paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -4726,62 +4705,6 @@ public Builder putAllExtraParam(Map map) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Map of extra parameters for custom features not available in this client library. The content - * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each - * key/value pair is serialized as if the key is a root-level field (serialized) name in this - * param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentMethodCreateParams.Paypay build() { - return new PaymentMethodCreateParams.Paypay(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` - * call, and subsequent calls add additional key/value pairs to the original map. See {@link - * PaymentMethodCreateParams.Paypay#extraParams} for the field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. - * See {@link PaymentMethodCreateParams.Paypay#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -5907,9 +5830,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/PaymentMethodListParams.java b/src/main/java/com/stripe/param/PaymentMethodListParams.java index 4f8008d81e2..601afa01c3b 100644 --- a/src/main/java/com/stripe/param/PaymentMethodListParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodListParams.java @@ -324,9 +324,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index c134bdb0aa6..4bcd9097ef6 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -920,13 +920,6 @@ public static class PaymentMethodData { @SerializedName("paypal") Paypal paypal; - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - @SerializedName("paypay") - Paypay paypay; - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -1067,7 +1060,6 @@ private PaymentMethodData( Payco payco, Paynow paynow, Paypal paypal, - Paypay paypay, Pix pix, Promptpay promptpay, RadarOptions radarOptions, @@ -1123,7 +1115,6 @@ private PaymentMethodData( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; @@ -1227,8 +1218,6 @@ public static class Builder { private Paypal paypal; - private Paypay paypay; - private Pix pix; private Promptpay promptpay; @@ -1301,7 +1290,6 @@ public SetupIntentConfirmParams.PaymentMethodData build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.radarOptions, @@ -1733,15 +1721,6 @@ public Builder setPaypal(SetupIntentConfirmParams.PaymentMethodData.Paypal paypa return this; } - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - public Builder setPaypay(SetupIntentConfirmParams.PaymentMethodData.Paypay paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -5105,64 +5084,6 @@ public Builder putAllExtraParam(Map map) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public SetupIntentConfirmParams.PaymentMethodData.Paypay build() { - return new SetupIntentConfirmParams.PaymentMethodData.Paypay(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link SetupIntentConfirmParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link SetupIntentConfirmParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -6238,9 +6159,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 2394cf4b2e6..a621bb1a5c7 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -1396,13 +1396,6 @@ public static class PaymentMethodData { @SerializedName("paypal") Paypal paypal; - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - @SerializedName("paypay") - Paypay paypay; - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -1543,7 +1536,6 @@ private PaymentMethodData( Payco payco, Paynow paynow, Paypal paypal, - Paypay paypay, Pix pix, Promptpay promptpay, RadarOptions radarOptions, @@ -1599,7 +1591,6 @@ private PaymentMethodData( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; @@ -1703,8 +1694,6 @@ public static class Builder { private Paypal paypal; - private Paypay paypay; - private Pix pix; private Promptpay promptpay; @@ -1777,7 +1766,6 @@ public SetupIntentCreateParams.PaymentMethodData build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.radarOptions, @@ -2208,15 +2196,6 @@ public Builder setPaypal(SetupIntentCreateParams.PaymentMethodData.Paypal paypal return this; } - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - public Builder setPaypay(SetupIntentCreateParams.PaymentMethodData.Paypay paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -5579,64 +5558,6 @@ public Builder putAllExtraParam(Map map) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public SetupIntentCreateParams.PaymentMethodData.Paypay build() { - return new SetupIntentCreateParams.PaymentMethodData.Paypay(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link SetupIntentCreateParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link SetupIntentCreateParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -6712,9 +6633,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index b7b2546c6b4..4e41f335ac2 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -733,13 +733,6 @@ public static class PaymentMethodData { @SerializedName("paypal") Paypal paypal; - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - @SerializedName("paypay") - Paypay paypay; - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -880,7 +873,6 @@ private PaymentMethodData( Payco payco, Paynow paynow, Paypal paypal, - Paypay paypay, Pix pix, Promptpay promptpay, RadarOptions radarOptions, @@ -936,7 +928,6 @@ private PaymentMethodData( this.payco = payco; this.paynow = paynow; this.paypal = paypal; - this.paypay = paypay; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; @@ -1040,8 +1031,6 @@ public static class Builder { private Paypal paypal; - private Paypay paypay; - private Pix pix; private Promptpay promptpay; @@ -1114,7 +1103,6 @@ public SetupIntentUpdateParams.PaymentMethodData build() { this.payco, this.paynow, this.paypal, - this.paypay, this.pix, this.promptpay, this.radarOptions, @@ -1545,15 +1533,6 @@ public Builder setPaypal(SetupIntentUpdateParams.PaymentMethodData.Paypal paypal return this; } - /** - * If this is a {@code paypay} PaymentMethod, this hash contains details about the PayPay - * payment method. - */ - public Builder setPaypay(SetupIntentUpdateParams.PaymentMethodData.Paypay paypay) { - this.paypay = paypay; - return this; - } - /** * If this is a {@code pix} PaymentMethod, this hash contains details about the Pix payment * method. @@ -5053,64 +5032,6 @@ public Builder putAllExtraParam(Map map) { } } - @Getter - @EqualsAndHashCode(callSuper = false) - public static class Paypay { - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private Paypay(Map extraParams) { - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public SetupIntentUpdateParams.PaymentMethodData.Paypay build() { - return new SetupIntentUpdateParams.PaymentMethodData.Paypay(this.extraParams); - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link SetupIntentUpdateParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putExtraParam(String key, Object value) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link SetupIntentUpdateParams.PaymentMethodData.Paypay#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - } - @Getter @EqualsAndHashCode(callSuper = false) public static class Pix { @@ -6220,9 +6141,6 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 5c95b411cd8..8b23c41c1fb 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -19381,9 +19381,6 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"), @@ -19717,9 +19714,6 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("paypal") PAYPAL("paypal"), - @SerializedName("paypay") - PAYPAY("paypay"), - @SerializedName("pix") PIX("pix"),