diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8f166ae2e06..c626f7dd819 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1268 \ No newline at end of file +v1319 \ No newline at end of file diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java index f10ace355e9..631e13a482b 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -2,5 +2,5 @@ package com.stripe; final class ApiVersion { - public static final String CURRENT = "2024-09-30.acacia"; + public static final String CURRENT = "2024-10-28.acacia"; } diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 67ad20ce8ef..01322ffc7ce 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -64,7 +64,7 @@ public class Account extends ApiResource implements MetadataStore, Paym @SerializedName("capabilities") Capabilities capabilities; - /** Whether the account can create live charges. */ + /** Whether the account can process charges. */ @SerializedName("charges_enabled") Boolean chargesEnabled; @@ -120,6 +120,10 @@ public class Account extends ApiResource implements MetadataStore, Paym @SerializedName("future_requirements") FutureRequirements futureRequirements; + /** The groups associated with the account. */ + @SerializedName("groups") + Groups groups; + /** Unique identifier for the object. */ @Getter(onMethod_ = {@Override}) @SerializedName("id") @@ -159,7 +163,7 @@ public class Account extends ApiResource implements MetadataStore, Paym @SerializedName("object") String object; - /** Whether Stripe can send payouts to this account. */ + /** Whether the funds in this account can be paid out. */ @SerializedName("payouts_enabled") Boolean payoutsEnabled; @@ -728,6 +732,10 @@ public Account update(AccountUpdateParams params, RequestOptions options) throws return getResponseGetter().request(request, Account.class); } + /** + * For more details about BusinessProfile, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -785,6 +793,10 @@ public static class BusinessProfile extends StripeObject { @SerializedName("url") String url; + /** + * For more details about AnnualRevenue, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -812,6 +824,10 @@ public static class AnnualRevenue extends StripeObject { String fiscalYearEnd; } + /** + * For more details about MonthlyEstimatedRevenue, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -833,6 +849,10 @@ public static class MonthlyEstimatedRevenue extends StripeObject { } } + /** + * For more details about Capabilities, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -864,6 +884,15 @@ public static class Capabilities extends StripeObject { @SerializedName("afterpay_clearpay_payments") String afterpayClearpayPayments; + /** + * The status of the Alma capability of the account, or whether the account can directly process + * Alma payments. + * + *

One of {@code active}, {@code inactive}, or {@code pending}. + */ + @SerializedName("alma_payments") + String almaPayments; + /** * The status of the AmazonPay capability of the account, or whether the account can directly * process AmazonPay payments. @@ -1044,6 +1073,15 @@ public static class Capabilities extends StripeObject { @SerializedName("jp_bank_transfer_payments") String jpBankTransferPayments; + /** + * The status of the KakaoPay capability of the account, or whether the account can directly + * process KakaoPay payments. + * + *

One of {@code active}, {@code inactive}, or {@code pending}. + */ + @SerializedName("kakao_pay_payments") + String kakaoPayPayments; + /** * The status of the Klarna payments capability of the account, or whether the account can * directly process Klarna charges. @@ -1062,6 +1100,15 @@ public static class Capabilities extends StripeObject { @SerializedName("konbini_payments") String konbiniPayments; + /** + * The status of the KrCard capability of the account, or whether the account can directly + * process KrCard payments. + * + *

One of {@code active}, {@code inactive}, or {@code pending}. + */ + @SerializedName("kr_card_payments") + String krCardPayments; + /** * The status of the legacy payments capability of the account. * @@ -1106,6 +1153,15 @@ public static class Capabilities extends StripeObject { @SerializedName("mx_bank_transfer_payments") String mxBankTransferPayments; + /** + * The status of the NaverPay capability of the account, or whether the account can directly + * process NaverPay payments. + * + *

One of {@code active}, {@code inactive}, or {@code pending}. + */ + @SerializedName("naver_pay_payments") + String naverPayPayments; + /** * The status of the OXXO payments capability of the account, or whether the account can * directly process OXXO charges. @@ -1124,6 +1180,15 @@ public static class Capabilities extends StripeObject { @SerializedName("p24_payments") String p24Payments; + /** + * The status of the Payco capability of the account, or whether the account can directly + * process Payco payments. + * + *

One of {@code active}, {@code inactive}, or {@code pending}. + */ + @SerializedName("payco_payments") + String paycoPayments; + /** * The status of the paynow payments capability of the account, or whether the account can * directly process paynow charges. @@ -1151,6 +1216,15 @@ public static class Capabilities extends StripeObject { @SerializedName("revolut_pay_payments") String revolutPayPayments; + /** + * The status of the SamsungPay capability of the account, or whether the account can directly + * process SamsungPay payments. + * + *

One of {@code active}, {@code inactive}, or {@code pending}. + */ + @SerializedName("samsung_pay_payments") + String samsungPayPayments; + /** * The status of the SEPA customer_balance payments (EUR currency) capability of the account, or * whether the account can directly process SEPA customer_balance charges. @@ -1257,6 +1331,10 @@ public static class Capabilities extends StripeObject { String zipPayments; } + /** + * For more details about Company, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1373,6 +1451,10 @@ public static class Company extends StripeObject { @SerializedName("verification") Verification verification; + /** + * For more details about AddressKana, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1409,6 +1491,10 @@ public static class AddressKana extends StripeObject { String town; } + /** + * For more details about AddressKanji, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1445,6 +1531,10 @@ public static class AddressKanji extends StripeObject { String town; } + /** + * For more details about OwnershipDeclaration, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1462,6 +1552,10 @@ public static class OwnershipDeclaration extends StripeObject { String userAgent; } + /** + * For more details about Verification, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1469,6 +1563,10 @@ public static class Verification extends StripeObject { @SerializedName("document") Document document; + /** + * For more details about Document, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1548,6 +1646,10 @@ public void setFrontObject(File expandableObject) { } } + /** + * For more details about Controller, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1586,6 +1688,10 @@ public static class Controller extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Fees, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1603,6 +1709,10 @@ public static class Fees extends StripeObject { String payer; } + /** + * For more details about Losses, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1617,6 +1727,10 @@ public static class Losses extends StripeObject { String payments; } + /** + * For more details about StripeDashboard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1632,6 +1746,10 @@ public static class StripeDashboard extends StripeObject { } } + /** + * For more details about FutureRequirements, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1697,6 +1815,10 @@ public static class FutureRequirements extends StripeObject { @SerializedName("pending_verification") List pendingVerification; + /** + * For more details about Alternative, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1713,6 +1835,10 @@ public static class Alternative extends StripeObject { List originalFieldsDue; } + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1795,6 +1921,27 @@ public static class Errors extends StripeObject { } } + /** + * For more details about Groups, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Groups extends StripeObject { + /** + * The group the account is in to determine their payments pricing, and null if the account is + * on customized pricing. See + * the Platform pricing tool documentation for details. + */ + @SerializedName("payments_pricing") + String paymentsPricing; + } + + /** + * For more details about Requirements, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1866,6 +2013,10 @@ public static class Requirements extends StripeObject { @SerializedName("pending_verification") List pendingVerification; + /** + * For more details about Alternative, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1882,6 +2033,10 @@ public static class Alternative extends StripeObject { List originalFieldsDue; } + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1964,6 +2119,10 @@ public static class Errors extends StripeObject { } } + /** + * For more details about Settings, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1998,6 +2157,10 @@ public static class Settings extends StripeObject { @SerializedName("treasury") Treasury treasury; + /** + * For more details about BacsDebitPayments, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2022,6 +2185,10 @@ public static class BacsDebitPayments extends StripeObject { String serviceUserNumber; } + /** + * For more details about Branding, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2090,6 +2257,10 @@ public void setLogoObject(File expandableObject) { } } + /** + * For more details about CardIssuing, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2097,6 +2268,10 @@ public static class CardIssuing extends StripeObject { @SerializedName("tos_acceptance") TosAcceptance tosAcceptance; + /** + * For more details about TosAcceptance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2121,6 +2296,10 @@ public static class TosAcceptance extends StripeObject { } } + /** + * For more details about CardPayments, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2157,6 +2336,10 @@ public static class CardPayments extends StripeObject { @SerializedName("statement_descriptor_prefix_kanji") String statementDescriptorPrefixKanji; + /** + * For more details about DeclineOn, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2178,6 +2361,10 @@ public static class DeclineOn extends StripeObject { } } + /** + * For more details about Dashboard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2198,6 +2385,10 @@ public static class Dashboard extends StripeObject { String timezone; } + /** + * For more details about Invoices, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2256,6 +2447,10 @@ public void setDefaultAccountTaxIdObjects(List objs) { } } + /** + * For more details about Payments, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2304,6 +2499,10 @@ public static class Payments extends StripeObject { String statementDescriptorPrefixKanji; } + /** + * For more details about Payouts, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2328,6 +2527,10 @@ public static class Payouts extends StripeObject { @SerializedName("statement_descriptor") String statementDescriptor; + /** + * For more details about Schedule, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2360,6 +2563,10 @@ public static class Schedule extends StripeObject { } } + /** + * For more details about SepaDebitPayments, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2369,6 +2576,10 @@ public static class SepaDebitPayments extends StripeObject { String creditorId; } + /** + * For more details about Treasury, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2376,6 +2587,10 @@ public static class Treasury extends StripeObject { @SerializedName("tos_acceptance") TosAcceptance tosAcceptance; + /** + * For more details about TosAcceptance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2401,6 +2616,10 @@ public static class TosAcceptance extends StripeObject { } } + /** + * For more details about TosAcceptance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2436,6 +2655,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(controller, responseGetter); trySetResponseGetter(externalAccounts, responseGetter); trySetResponseGetter(futureRequirements, responseGetter); + trySetResponseGetter(groups, responseGetter); trySetResponseGetter(individual, responseGetter); trySetResponseGetter(requirements, responseGetter); trySetResponseGetter(settings, responseGetter); diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java index 8b6066ae6e9..c1c73e05ba9 100644 --- a/src/main/java/com/stripe/model/AccountSession.java +++ b/src/main/java/com/stripe/model/AccountSession.java @@ -118,6 +118,10 @@ public static AccountSession create(AccountSessionCreateParams params, RequestOp return getGlobalResponseGetter().request(request, AccountSession.class); } + /** + * For more details about Components, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -155,6 +159,10 @@ public static class Components extends StripeObject { @SerializedName("tax_settings") TaxSettings taxSettings; + /** + * For more details about AccountManagement, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -166,21 +174,40 @@ public static class AccountManagement extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; } } + /** + * For more details about AccountOnboarding, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -192,21 +219,40 @@ public static class AccountOnboarding extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; } } + /** + * For more details about Balances, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -218,10 +264,24 @@ public static class Balances extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow payout schedule to be changed. Default {@code true} when Stripe owns * Loss Liability, default {@code false} otherwise. @@ -231,9 +291,10 @@ public static class Features extends StripeObject { /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; @@ -254,6 +315,10 @@ public static class Features extends StripeObject { } } + /** + * For more details about Documents, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -265,12 +330,20 @@ public static class Documents extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject {} } + /** + * For more details about NotificationBanner, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -282,21 +355,40 @@ public static class NotificationBanner extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; } } + /** + * For more details about PaymentDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -308,6 +400,10 @@ public static class PaymentDetails extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -339,6 +435,10 @@ public static class Features extends StripeObject { } } + /** + * For more details about Payments, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -350,6 +450,10 @@ public static class Payments extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -381,6 +485,10 @@ public static class Features extends StripeObject { } } + /** + * For more details about Payouts, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -392,10 +500,24 @@ public static class Payouts extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow payout schedule to be changed. Default {@code true} when Stripe owns * Loss Liability, default {@code false} otherwise. @@ -405,9 +527,10 @@ public static class Features extends StripeObject { /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; @@ -428,6 +551,10 @@ public static class Features extends StripeObject { } } + /** + * For more details about PayoutsList, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -439,12 +566,20 @@ public static class PayoutsList extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject {} } + /** + * For more details about TaxRegistrations, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -456,12 +591,20 @@ public static class TaxRegistrations extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject {} } + /** + * For more details about TaxSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -473,6 +616,10 @@ public static class TaxSettings extends StripeObject { @SerializedName("features") Features features; + /** + * For more details about Features, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/ApplicationFee.java b/src/main/java/com/stripe/model/ApplicationFee.java index 3e585a18c90..827a1e345c1 100644 --- a/src/main/java/com/stripe/model/ApplicationFee.java +++ b/src/main/java/com/stripe/model/ApplicationFee.java @@ -302,6 +302,10 @@ public static ApplicationFee retrieve( return getGlobalResponseGetter().request(request, ApplicationFee.class); } + /** + * For more details about FeeSource, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Balance.java b/src/main/java/com/stripe/model/Balance.java index c9195790fd5..deb715064ae 100644 --- a/src/main/java/com/stripe/model/Balance.java +++ b/src/main/java/com/stripe/model/Balance.java @@ -135,6 +135,10 @@ public static Balance retrieve(BalanceRetrieveParams params, RequestOptions opti return getGlobalResponseGetter().request(request, Balance.class); } + /** + * For more details about Available, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -154,6 +158,10 @@ public static class Available extends StripeObject { @SerializedName("source_types") SourceTypes sourceTypes; + /** + * For more details about SourceTypes, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -172,6 +180,10 @@ public static class SourceTypes extends StripeObject { } } + /** + * For more details about ConnectReserved, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -191,6 +203,10 @@ public static class ConnectReserved extends StripeObject { @SerializedName("source_types") SourceTypes sourceTypes; + /** + * For more details about SourceTypes, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -209,6 +225,10 @@ public static class SourceTypes extends StripeObject { } } + /** + * For more details about InstantAvailable, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -232,6 +252,10 @@ public static class InstantAvailable extends StripeObject { @SerializedName("source_types") SourceTypes sourceTypes; + /** + * For more details about NetAvailable, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -247,6 +271,10 @@ public static class NetAvailable extends StripeObject { @SerializedName("source_types") SourceTypes sourceTypes; + /** + * For more details about SourceTypes, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -265,6 +293,10 @@ public static class SourceTypes extends StripeObject { } } + /** + * For more details about SourceTypes, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -283,6 +315,10 @@ public static class SourceTypes extends StripeObject { } } + /** + * For more details about Issuing, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -291,6 +327,10 @@ public static class Issuing extends StripeObject { @SerializedName("available") List available; + /** + * For more details about Available, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -310,6 +350,10 @@ public static class Available extends StripeObject { @SerializedName("source_types") SourceTypes sourceTypes; + /** + * For more details about SourceTypes, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -329,6 +373,10 @@ public static class SourceTypes extends StripeObject { } } + /** + * For more details about Pending, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -348,6 +396,10 @@ public static class Pending extends StripeObject { @SerializedName("source_types") SourceTypes sourceTypes; + /** + * For more details about SourceTypes, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/BalanceTransaction.java b/src/main/java/com/stripe/model/BalanceTransaction.java index 004ea474eb5..7fd49308ac9 100644 --- a/src/main/java/com/stripe/model/BalanceTransaction.java +++ b/src/main/java/com/stripe/model/BalanceTransaction.java @@ -288,6 +288,10 @@ public static BalanceTransaction retrieve( return getGlobalResponseGetter().request(request, BalanceTransaction.class); } + /** + * For more details about FeeDetail, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/BankAccount.java b/src/main/java/com/stripe/model/BankAccount.java index c0ee9156f8b..a6bd812c960 100644 --- a/src/main/java/com/stripe/model/BankAccount.java +++ b/src/main/java/com/stripe/model/BankAccount.java @@ -494,6 +494,10 @@ public BankAccount delete(Map params, RequestOptions options) return getResponseGetter().request(request, BankAccount.class); } + /** + * For more details about FutureRequirements, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -530,6 +534,10 @@ public static class FutureRequirements extends StripeObject { @SerializedName("pending_verification") List pendingVerification; + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -612,6 +620,10 @@ public static class Errors extends StripeObject { } } + /** + * For more details about Requirements, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -648,6 +660,10 @@ public static class Requirements extends StripeObject { @SerializedName("pending_verification") List pendingVerification; + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Capability.java b/src/main/java/com/stripe/model/Capability.java index 5446816aa3d..d4d7e063612 100644 --- a/src/main/java/com/stripe/model/Capability.java +++ b/src/main/java/com/stripe/model/Capability.java @@ -138,6 +138,10 @@ public Capability update(CapabilityUpdateParams params, RequestOptions options) return getResponseGetter().request(request, Capability.class); } + /** + * For more details about FutureRequirements, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -212,6 +216,10 @@ public static class FutureRequirements extends StripeObject { @SerializedName("pending_verification") List pendingVerification; + /** + * For more details about Alternative, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -228,6 +236,10 @@ public static class Alternative extends StripeObject { List originalFieldsDue; } + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -310,6 +322,10 @@ public static class Errors extends StripeObject { } } + /** + * For more details about Requirements, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -382,6 +398,10 @@ public static class Requirements extends StripeObject { @SerializedName("pending_verification") List pendingVerification; + /** + * For more details about Alternative, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -398,6 +418,10 @@ public static class Alternative extends StripeObject { List originalFieldsDue; } + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Card.java b/src/main/java/com/stripe/model/Card.java index c4750548d93..5a907833e8d 100644 --- a/src/main/java/com/stripe/model/Card.java +++ b/src/main/java/com/stripe/model/Card.java @@ -491,6 +491,10 @@ public Card delete(Map params, RequestOptions options) throws St return getResponseGetter().request(request, Card.class); } + /** + * For more details about Networks, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/CashBalance.java b/src/main/java/com/stripe/model/CashBalance.java index 6b069e779a1..bffa58ecf4a 100644 --- a/src/main/java/com/stripe/model/CashBalance.java +++ b/src/main/java/com/stripe/model/CashBalance.java @@ -127,6 +127,10 @@ public CashBalance update(CashBalanceUpdateParams params, RequestOptions options return getResponseGetter().request(request, CashBalance.class); } + /** + * For more details about Settings, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 40cffbd08fc..3ba6cd29506 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -921,6 +921,10 @@ public Charge update(ChargeUpdateParams params, RequestOptions options) throws S return getResponseGetter().request(request, Charge.class); } + /** + * For more details about BillingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -942,6 +946,10 @@ public static class BillingDetails extends StripeObject { String phone; } + /** + * For more details about FraudDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -958,6 +966,10 @@ public static class FraudDetails extends StripeObject { String userReport; } + /** + * For more details about Level3, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -980,6 +992,10 @@ public static class Level3 extends StripeObject { @SerializedName("shipping_from_zip") String shippingFromZip; + /** + * For more details about LineItem, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1004,6 +1020,10 @@ public static class LineItem extends StripeObject { } } + /** + * For more details about Outcome, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1088,6 +1108,10 @@ public void setRuleObject(Rule expandableObject) { this.rule = new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about Rule, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1107,6 +1131,10 @@ public static class Rule extends StripeObject implements HasId { } } + /** + * For more details about PaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1129,6 +1157,9 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("alipay") Alipay alipay; + @SerializedName("alma") + Alma alma; + @SerializedName("amazon_pay") AmazonPay amazonPay; @@ -1177,12 +1208,18 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("interac_present") InteracPresent interacPresent; + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + @SerializedName("klarna") Klarna klarna; @SerializedName("konbini") Konbini konbini; + @SerializedName("kr_card") + KrCard krCard; + @SerializedName("link") Link link; @@ -1192,12 +1229,18 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("multibanco") Multibanco multibanco; + @SerializedName("naver_pay") + NaverPay naverPay; + @SerializedName("oxxo") Oxxo oxxo; @SerializedName("p24") P24 p24; + @SerializedName("payco") + Payco payco; + @SerializedName("paynow") Paynow paynow; @@ -1213,6 +1256,9 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("revolut_pay") RevolutPay revolutPay; + @SerializedName("samsung_pay") + SamsungPay samsungPay; + @SerializedName("sepa_credit_transfer") SepaCreditTransfer sepaCreditTransfer; @@ -1255,6 +1301,10 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("zip") Zip zip; + /** + * For more details about AchCreditTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1276,6 +1326,10 @@ public static class AchCreditTransfer extends StripeObject { String swiftCode; } + /** + * For more details about AchDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1313,6 +1367,10 @@ public static class AchDebit extends StripeObject { String routingNumber; } + /** + * For more details about AcssDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1345,6 +1403,10 @@ public static class AcssDebit extends StripeObject { String transitNumber; } + /** + * For more details about Affirm, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1354,6 +1416,10 @@ public static class Affirm extends StripeObject { String transactionId; } + /** + * For more details about AfterpayClearpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1367,6 +1433,10 @@ public static class AfterpayClearpay extends StripeObject { String reference; } + /** + * For more details about Alipay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1390,11 +1460,28 @@ public static class Alipay extends StripeObject { String transactionId; } + /** + * For more details about Alma, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Alma extends StripeObject {} + + /** + * For more details about AmazonPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmazonPay extends StripeObject {} + /** + * For more details about AuBecsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1419,6 +1506,10 @@ public static class AuBecsDebit extends StripeObject { String mandate; } + /** + * For more details about BacsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1443,6 +1534,10 @@ public static class BacsDebit extends StripeObject { String sortCode; } + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1533,6 +1628,10 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) { } } + /** + * For more details about Blik, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1542,6 +1641,10 @@ public static class Blik extends StripeObject { String buyerId; } + /** + * For more details about Boleto, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1554,6 +1657,10 @@ public static class Boleto extends StripeObject { String taxId; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1695,6 +1802,10 @@ public static class Card extends StripeObject { @SerializedName("wallet") Wallet wallet; + /** + * For more details about Checks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1721,6 +1832,10 @@ public static class Checks extends StripeObject { String cvcCheck; } + /** + * For more details about ExtendedAuthorization, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1735,6 +1850,10 @@ public static class ExtendedAuthorization extends StripeObject { String status; } + /** + * For more details about IncrementalAuthorization, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1748,6 +1867,10 @@ public static class IncrementalAuthorization extends StripeObject { String status; } + /** + * For more details about Installments, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1756,6 +1879,10 @@ public static class Installments extends StripeObject { @SerializedName("plan") Plan plan; + /** + * For more details about Plan, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1780,6 +1907,10 @@ public static class Plan extends StripeObject { } } + /** + * For more details about Multicapture, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1793,6 +1924,10 @@ public static class Multicapture extends StripeObject { String status; } + /** + * For more details about NetworkToken, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1805,6 +1940,10 @@ public static class NetworkToken extends StripeObject { Boolean used; } + /** + * For more details about Overcapture, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1822,6 +1961,10 @@ public static class Overcapture extends StripeObject { String status; } + /** + * For more details about ThreeDSecure, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1894,6 +2037,10 @@ public static class ThreeDSecure extends StripeObject { String version; } + /** + * For more details about Wallet, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1932,26 +2079,46 @@ public static class Wallet extends StripeObject { @SerializedName("visa_checkout") VisaCheckout visaCheckout; + /** + * For more details about AmexExpressCheckout, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmexExpressCheckout extends StripeObject {} + /** + * For more details about ApplePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class ApplePay extends StripeObject {} + /** + * For more details about GooglePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class GooglePay extends StripeObject {} + /** + * For more details about Link, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Link extends StripeObject {} + /** + * For more details about Masterpass, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1987,11 +2154,19 @@ public static class Masterpass extends StripeObject { com.stripe.model.Address shippingAddress; } + /** + * For more details about SamsungPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class SamsungPay extends StripeObject {} + /** + * For more details about VisaCheckout, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2029,6 +2204,10 @@ public static class VisaCheckout extends StripeObject { } } + /** + * For more details about CardPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2198,6 +2377,10 @@ public static class CardPresent extends StripeObject { @SerializedName("wallet") Wallet wallet; + /** + * For more details about Offline, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2215,6 +2398,10 @@ public static class Offline extends StripeObject { String type; } + /** + * For more details about Receipt, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2266,6 +2453,10 @@ public static class Receipt extends StripeObject { String transactionStatusInformation; } + /** + * For more details about Wallet, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2279,6 +2470,10 @@ public static class Wallet extends StripeObject { } } + /** + * For more details about Cashapp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2292,11 +2487,19 @@ public static class Cashapp extends StripeObject { String cashtag; } + /** + * For more details about CustomerBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class CustomerBalance extends StripeObject {} + /** + * For more details about Eps, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2327,6 +2530,10 @@ public static class Eps extends StripeObject { String verifiedName; } + /** + * For more details about Fpx, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2351,6 +2558,10 @@ public static class Fpx extends StripeObject { String transactionId; } + /** + * For more details about Giropay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2376,6 +2587,10 @@ public static class Giropay extends StripeObject { String verifiedName; } + /** + * For more details about Grabpay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2385,6 +2600,10 @@ public static class Grabpay extends StripeObject { String transactionId; } + /** + * For more details about Ideal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2476,6 +2695,10 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) { } } + /** + * For more details about InteracPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2605,6 +2828,10 @@ public static class InteracPresent extends StripeObject { @SerializedName("receipt") Receipt receipt; + /** + * For more details about Receipt, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2657,6 +2884,23 @@ public static class Receipt extends StripeObject { } } + /** + * For more details about KakaoPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KakaoPay extends StripeObject { + /** A unique identifier for the buyer as determined by the local payment processor. */ + @SerializedName("buyer_id") + String buyerId; + } + + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2686,6 +2930,10 @@ public static class Klarna extends StripeObject { @SerializedName("preferred_locale") String preferredLocale; + /** + * For more details about PayerDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2694,6 +2942,10 @@ public static class PayerDetails extends StripeObject { @SerializedName("address") com.stripe.model.Charge.PaymentMethodDetails.Klarna.PayerDetails.Address address; + /** + * For more details about Address, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2705,6 +2957,10 @@ public static class Address extends StripeObject { } } + /** + * For more details about Konbini, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2716,6 +2972,10 @@ public static class Konbini extends StripeObject { @SerializedName("store") Store store; + /** + * For more details about Store, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2730,6 +2990,39 @@ public static class Store extends StripeObject { } } + /** + * For more details about KrCard, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KrCard extends StripeObject { + /** + * The local credit or debit card brand. + * + *

One of {@code bc}, {@code citi}, {@code hana}, {@code hyundai}, {@code jeju}, {@code + * jeonbuk}, {@code kakaobank}, {@code kbank}, {@code kdbbank}, {@code kookmin}, {@code + * kwangju}, {@code lotte}, {@code mg}, {@code nh}, {@code post}, {@code samsung}, {@code + * savingsbank}, {@code shinhan}, {@code shinhyup}, {@code suhyup}, {@code tossbank}, or + * {@code woori}. + */ + @SerializedName("brand") + String brand; + + /** A unique identifier for the buyer as determined by the local payment processor. */ + @SerializedName("buyer_id") + String buyerId; + + /** The last four digits of the card. This may not be present for American Express cards. */ + @SerializedName("last4") + String last4; + } + + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2742,6 +3035,10 @@ public static class Link extends StripeObject { String country; } + /** + * For more details about Mobilepay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2750,6 +3047,10 @@ public static class Mobilepay extends StripeObject { @SerializedName("card") Card card; + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2776,6 +3077,10 @@ public static class Card extends StripeObject { } } + /** + * For more details about Multibanco, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2789,6 +3094,23 @@ public static class Multibanco extends StripeObject { String reference; } + /** + * For more details about NaverPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class NaverPay extends StripeObject { + /** A unique identifier for the buyer as determined by the local payment processor. */ + @SerializedName("buyer_id") + String buyerId; + } + + /** + * For more details about Oxxo, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2798,6 +3120,10 @@ public static class Oxxo extends StripeObject { String number; } + /** + * For more details about P24, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2828,6 +3154,23 @@ public static class P24 extends StripeObject { String verifiedName; } + /** + * For more details about Payco, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Payco extends StripeObject { + /** A unique identifier for the buyer as determined by the local payment processor. */ + @SerializedName("buyer_id") + String buyerId; + } + + /** + * For more details about Paynow, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2837,6 +3180,10 @@ public static class Paynow extends StripeObject { String reference; } + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2870,6 +3217,10 @@ public static class Paypal extends StripeObject { @SerializedName("transaction_id") String transactionId; + /** + * For more details about SellerProtection, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2888,6 +3239,10 @@ public static class SellerProtection extends StripeObject { } } + /** + * For more details about Pix, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2897,6 +3252,10 @@ public static class Pix extends StripeObject { String bankTransactionId; } + /** + * For more details about Promptpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2906,11 +3265,32 @@ public static class Promptpay extends StripeObject { String reference; } + /** + * For more details about RevolutPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class RevolutPay extends StripeObject {} + /** + * For more details about SamsungPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class SamsungPay extends StripeObject { + /** A unique identifier for the buyer as determined by the local payment processor. */ + @SerializedName("buyer_id") + String buyerId; + } + + /** + * For more details about SepaCreditTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2928,6 +3308,10 @@ public static class SepaCreditTransfer extends StripeObject { String iban; } + /** + * For more details about SepaDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2965,6 +3349,10 @@ public static class SepaDebit extends StripeObject { String mandate; } + /** + * For more details about Sofort, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3060,11 +3448,19 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) { } } + /** + * For more details about StripeAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class StripeAccount extends StripeObject {} + /** + * For more details about Swish, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3085,11 +3481,19 @@ public static class Swish extends StripeObject { String verifiedPhoneLast4; } + /** + * For more details about Twint, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Twint extends StripeObject {} + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3158,11 +3562,19 @@ public void setMandateObject(Mandate expandableObject) { } } + /** + * For more details about Wechat, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Wechat extends StripeObject {} + /** + * For more details about WechatPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3179,6 +3591,10 @@ public static class WechatPay extends StripeObject { String transactionId; } + /** + * For more details about Zip, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3202,6 +3618,10 @@ public static class RadarOptions extends StripeObject { String session; } + /** + * For more details about TransferData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index 086c71c1518..7be185f94ae 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -247,6 +247,9 @@ public static class PaymentMethodPreview extends StripeObject { @SerializedName("allow_redisplay") String allowRedisplay; + @SerializedName("alma") + Alma alma; + @SerializedName("amazon_pay") AmazonPay amazonPay; @@ -307,12 +310,18 @@ public static class PaymentMethodPreview extends StripeObject { @SerializedName("interac_present") InteracPresent interacPresent; + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + @SerializedName("klarna") Klarna klarna; @SerializedName("konbini") Konbini konbini; + @SerializedName("kr_card") + KrCard krCard; + @SerializedName("link") Link link; @@ -322,12 +331,18 @@ public static class PaymentMethodPreview extends StripeObject { @SerializedName("multibanco") Multibanco multibanco; + @SerializedName("naver_pay") + NaverPay naverPay; + @SerializedName("oxxo") Oxxo oxxo; @SerializedName("p24") P24 p24; + @SerializedName("payco") + Payco payco; + @SerializedName("paynow") Paynow paynow; @@ -343,6 +358,9 @@ public static class PaymentMethodPreview extends StripeObject { @SerializedName("revolut_pay") RevolutPay revolutPay; + @SerializedName("samsung_pay") + SamsungPay samsungPay; + @SerializedName("sepa_debit") SepaDebit sepaDebit; @@ -361,13 +379,15 @@ public static class PaymentMethodPreview extends StripeObject { * type. * *

One of {@code acss_debit}, {@code affirm}, {@code afterpay_clearpay}, {@code alipay}, - * {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code bancontact}, {@code - * blik}, {@code boleto}, {@code card}, {@code card_present}, {@code cashapp}, {@code - * customer_balance}, {@code eps}, {@code fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, - * {@code interac_present}, {@code klarna}, {@code konbini}, {@code link}, {@code mobilepay}, - * {@code multibanco}, {@code oxxo}, {@code p24}, {@code paynow}, {@code paypal}, {@code pix}, - * {@code promptpay}, {@code revolut_pay}, {@code sepa_debit}, {@code sofort}, {@code swish}, - * {@code twint}, {@code us_bank_account}, {@code wechat_pay}, or {@code zip}. + * {@code alma}, {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code + * bancontact}, {@code blik}, {@code boleto}, {@code card}, {@code card_present}, {@code + * cashapp}, {@code customer_balance}, {@code eps}, {@code fpx}, {@code giropay}, {@code + * grabpay}, {@code ideal}, {@code interac_present}, {@code kakao_pay}, {@code klarna}, {@code + * konbini}, {@code kr_card}, {@code link}, {@code mobilepay}, {@code multibanco}, {@code + * naver_pay}, {@code oxxo}, {@code p24}, {@code payco}, {@code paynow}, {@code paypal}, {@code + * pix}, {@code promptpay}, {@code revolut_pay}, {@code samsung_pay}, {@code sepa_debit}, {@code + * sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code wechat_pay}, or {@code + * zip}. */ @SerializedName("type") String type; @@ -399,6 +419,10 @@ public void setCustomerObject(Customer expandableObject) { this.customer = new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about AcssDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -427,26 +451,55 @@ public static class AcssDebit extends StripeObject { String transitNumber; } + /** + * For more details about Affirm, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Affirm extends StripeObject {} + /** + * For more details about AfterpayClearpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AfterpayClearpay extends StripeObject {} + /** + * For more details about Alipay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Alipay extends StripeObject {} + /** + * For more details about Alma, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Alma extends StripeObject {} + + /** + * For more details about AmazonPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmazonPay extends StripeObject {} + /** + * For more details about AuBecsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -467,6 +520,10 @@ public static class AuBecsDebit extends StripeObject { String last4; } + /** + * For more details about BacsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -487,11 +544,19 @@ public static class BacsDebit extends StripeObject { String sortCode; } + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Bancontact extends StripeObject {} + /** + * For more details about BillingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -513,11 +578,19 @@ public static class BillingDetails extends StripeObject { String phone; } + /** + * For more details about Blik, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Blik extends StripeObject {} + /** + * For more details about Boleto, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -527,6 +600,10 @@ public static class Boleto extends StripeObject { String taxId; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -627,6 +704,10 @@ public static class Card extends StripeObject { @SerializedName("wallet") Wallet wallet; + /** + * For more details about Checks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -653,6 +734,10 @@ public static class Checks extends StripeObject { String cvcCheck; } + /** + * For more details about GeneratedFrom, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -690,6 +775,10 @@ public void setSetupAttemptObject(SetupAttempt expandableObject) { new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about PaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -704,6 +793,10 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("type") String type; + /** + * For more details about CardPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -876,6 +969,10 @@ public static class CardPresent extends StripeObject { @SerializedName("wallet") Wallet wallet; + /** + * For more details about Offline, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -893,6 +990,10 @@ public static class Offline extends StripeObject { String type; } + /** + * For more details about Receipt, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -946,6 +1047,10 @@ public static class Receipt extends StripeObject { String transactionStatusInformation; } + /** + * For more details about Wallet, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -961,6 +1066,10 @@ public static class Wallet extends StripeObject { } } + /** + * For more details about Networks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -978,6 +1087,10 @@ public static class Networks extends StripeObject { String preferred; } + /** + * For more details about ThreeDSecureUsage, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -987,6 +1100,10 @@ public static class ThreeDSecureUsage extends StripeObject { Boolean supported; } + /** + * For more details about Wallet, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1025,26 +1142,46 @@ public static class Wallet extends StripeObject { @SerializedName("visa_checkout") VisaCheckout visaCheckout; + /** + * For more details about AmexExpressCheckout, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmexExpressCheckout extends StripeObject {} + /** + * For more details about ApplePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class ApplePay extends StripeObject {} + /** + * For more details about GooglePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class GooglePay extends StripeObject {} + /** + * For more details about Link, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Link extends StripeObject {} + /** + * For more details about Masterpass, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1080,11 +1217,19 @@ public static class Masterpass extends StripeObject { Address shippingAddress; } + /** + * For more details about SamsungPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class SamsungPay extends StripeObject {} + /** + * For more details about VisaCheckout, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1122,6 +1267,10 @@ public static class VisaCheckout extends StripeObject { } } + /** + * For more details about CardPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1234,6 +1383,10 @@ public static class CardPresent extends StripeObject { @SerializedName("wallet") Wallet wallet; + /** + * For more details about Networks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1247,6 +1400,10 @@ public static class Networks extends StripeObject { String preferred; } + /** + * For more details about Offline, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1264,6 +1421,10 @@ public static class Offline extends StripeObject { String type; } + /** + * For more details about Wallet, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1277,6 +1438,10 @@ public static class Wallet extends StripeObject { } } + /** + * For more details about Cashapp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1290,11 +1455,19 @@ public static class Cashapp extends StripeObject { String cashtag; } + /** + * For more details about CustomerBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class CustomerBalance extends StripeObject {} + /** + * For more details about Eps, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1317,6 +1490,10 @@ public static class Eps extends StripeObject { String bank; } + /** + * For more details about Fpx, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1337,16 +1514,28 @@ public static class Fpx extends StripeObject { String bank; } + /** + * For more details about Giropay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Giropay extends StripeObject {} + /** + * For more details about Grabpay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Grabpay extends StripeObject {} + /** + * For more details about Ideal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1372,6 +1561,10 @@ public static class Ideal extends StripeObject { String bic; } + /** + * For more details about InteracPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1467,6 +1660,10 @@ public static class InteracPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * For more details about Networks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1481,6 +1678,19 @@ public static class Networks extends StripeObject { } } + /** + * For more details about KakaoPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KakaoPay extends StripeObject {} + + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1489,6 +1699,10 @@ public static class Klarna extends StripeObject { @SerializedName("dob") Dob dob; + /** + * For more details about Dob, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1507,11 +1721,44 @@ public static class Dob extends StripeObject { } } + /** + * For more details about Konbini, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Konbini extends StripeObject {} + /** + * For more details about KrCard, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KrCard extends StripeObject { + /** + * The local credit or debit card brand. + * + *

One of {@code bc}, {@code citi}, {@code hana}, {@code hyundai}, {@code jeju}, {@code + * jeonbuk}, {@code kakaobank}, {@code kbank}, {@code kdbbank}, {@code kookmin}, {@code + * kwangju}, {@code lotte}, {@code mg}, {@code nh}, {@code post}, {@code samsung}, {@code + * savingsbank}, {@code shinhan}, {@code shinhyup}, {@code suhyup}, {@code tossbank}, or + * {@code woori}. + */ + @SerializedName("brand") + String brand; + + /** The last four digits of the card. This may not be present for American Express cards. */ + @SerializedName("last4") + String last4; + } + + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1526,21 +1773,54 @@ public static class Link extends StripeObject { String persistentToken; } + /** + * For more details about Mobilepay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Mobilepay extends StripeObject {} + /** + * For more details about Multibanco, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Multibanco extends StripeObject {} + /** + * For more details about NaverPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class NaverPay extends StripeObject { + /** + * Whether to fund this transaction with Naver Pay points or a card. + * + *

One of {@code card}, or {@code points}. + */ + @SerializedName("funding") + String funding; + } + + /** + * For more details about Oxxo, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Oxxo extends StripeObject {} + /** + * For more details about P24, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1560,11 +1840,28 @@ public static class P24 extends StripeObject { String bank; } + /** + * For more details about Payco, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Payco extends StripeObject {} + + /** + * For more details about Paynow, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Paynow extends StripeObject {} + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1581,21 +1878,46 @@ public static class Paypal extends StripeObject { String payerId; } + /** + * For more details about Pix, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Pix extends StripeObject {} + /** + * For more details about Promptpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Promptpay extends StripeObject {} + /** + * For more details about RevolutPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class RevolutPay extends StripeObject {} + /** + * For more details about SamsungPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class SamsungPay extends StripeObject {} + + /** + * For more details about SepaDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1627,6 +1949,10 @@ public static class SepaDebit extends StripeObject { @SerializedName("last4") String last4; + /** + * For more details about GeneratedFrom, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1682,6 +2008,10 @@ public void setSetupAttemptObject(SetupAttempt expandableObject) { } } + /** + * For more details about Sofort, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1691,16 +2021,28 @@ public static class Sofort extends StripeObject { String country; } + /** + * For more details about Swish, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Swish extends StripeObject {} + /** + * For more details about Twint, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Twint extends StripeObject {} + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1752,6 +2094,10 @@ public static class UsBankAccount extends StripeObject { @SerializedName("status_details") StatusDetails statusDetails; + /** + * For more details about Networks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1765,6 +2111,10 @@ public static class Networks extends StripeObject { List supported; } + /** + * For more details about StatusDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1772,6 +2122,10 @@ public static class StatusDetails extends StripeObject { @SerializedName("blocked") Blocked blocked; + /** + * For more details about Blocked, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1798,17 +2152,29 @@ public static class Blocked extends StripeObject { } } + /** + * For more details about WechatPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class WechatPay extends StripeObject {} + /** + * For more details about Zip, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Zip extends StripeObject {} } + /** + * For more details about Shipping, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/CountrySpec.java b/src/main/java/com/stripe/model/CountrySpec.java index e9335138b98..bd0bdfe0fbd 100644 --- a/src/main/java/com/stripe/model/CountrySpec.java +++ b/src/main/java/com/stripe/model/CountrySpec.java @@ -142,6 +142,10 @@ public static CountrySpec retrieve( return getGlobalResponseGetter().request(request, CountrySpec.class); } + /** + * For more details about VerificationFields, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -152,6 +156,10 @@ public static class VerificationFields extends StripeObject { @SerializedName("individual") Individual individual; + /** + * For more details about Company, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -165,6 +173,10 @@ public static class Company extends StripeObject { List minimum; } + /** + * For more details about Individual, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Coupon.java b/src/main/java/com/stripe/model/Coupon.java index b12bde216fc..680e8092530 100644 --- a/src/main/java/com/stripe/model/Coupon.java +++ b/src/main/java/com/stripe/model/Coupon.java @@ -375,6 +375,10 @@ public Coupon update(CouponUpdateParams params, RequestOptions options) throws S return getResponseGetter().request(request, Coupon.class); } + /** + * For more details about AppliesTo, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -384,6 +388,10 @@ public static class AppliesTo extends StripeObject { List products; } + /** + * For more details about CurrencyOption, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/CreditNote.java b/src/main/java/com/stripe/model/CreditNote.java index d9765793826..73213a64086 100644 --- a/src/main/java/com/stripe/model/CreditNote.java +++ b/src/main/java/com/stripe/model/CreditNote.java @@ -143,6 +143,7 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore pretaxCreditAmounts; @@ -618,6 +619,10 @@ public CreditNote voidCreditNote(CreditNoteVoidCreditNoteParams params, RequestO return getResponseGetter().request(request, CreditNote.class); } + /** + * For more details about DiscountAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -651,6 +656,10 @@ public void setDiscountObject(Discount expandableObject) { } } + /** + * For more details about PretaxCreditAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -720,6 +729,10 @@ public void setDiscountObject(Discount expandableObject) { } } + /** + * For more details about ShippingCost, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -765,6 +778,10 @@ public void setShippingRateObject(ShippingRate expandableObject) { new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about Tax, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -804,6 +821,10 @@ public static class Tax extends StripeObject { } } + /** + * For more details about TaxAmount, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/CreditNoteLineItem.java b/src/main/java/com/stripe/model/CreditNoteLineItem.java index e22dec665c7..66f7b827591 100644 --- a/src/main/java/com/stripe/model/CreditNoteLineItem.java +++ b/src/main/java/com/stripe/model/CreditNoteLineItem.java @@ -68,6 +68,7 @@ public class CreditNoteLineItem extends StripeObject implements HasId { @SerializedName("object") String object; + /** The pretax credit amounts (ex: discount, credit grants, etc) for this line item. */ @SerializedName("pretax_credit_amounts") List pretaxCreditAmounts; @@ -107,6 +108,10 @@ public class CreditNoteLineItem extends StripeObject implements HasId { @SerializedName("unit_amount_excluding_tax") BigDecimal unitAmountExcludingTax; + /** + * For more details about DiscountAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -140,6 +145,10 @@ public void setDiscountObject(Discount expandableObject) { } } + /** + * For more details about PretaxCreditAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -209,6 +218,10 @@ public void setDiscountObject(Discount expandableObject) { } } + /** + * For more details about TaxAmount, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Customer.java b/src/main/java/com/stripe/model/Customer.java index aee848a4c6e..5998e1bb8f2 100644 --- a/src/main/java/com/stripe/model/Customer.java +++ b/src/main/java/com/stripe/model/Customer.java @@ -851,6 +851,10 @@ public Customer update(CustomerUpdateParams params, RequestOptions options) return getResponseGetter().request(request, Customer.class); } + /** + * For more details about InvoiceSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -895,6 +899,10 @@ public void setDefaultPaymentMethodObject(PaymentMethod expandableObject) { new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about CustomField, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -908,6 +916,10 @@ public static class CustomField extends StripeObject { String value; } + /** + * For more details about RenderingOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -926,6 +938,10 @@ public static class RenderingOptions extends StripeObject { } } + /** + * For more details about Tax, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -948,6 +964,10 @@ public static class Tax extends StripeObject { @SerializedName("location") Location location; + /** + * For more details about Location, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/CustomerCashBalanceTransaction.java b/src/main/java/com/stripe/model/CustomerCashBalanceTransaction.java index 503a5ad28d4..064e64c6577 100644 --- a/src/main/java/com/stripe/model/CustomerCashBalanceTransaction.java +++ b/src/main/java/com/stripe/model/CustomerCashBalanceTransaction.java @@ -120,6 +120,10 @@ public void setCustomerObject(Customer expandableObject) { this.customer = new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about AdjustedForOverdraft, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -182,6 +186,10 @@ public void setLinkedTransactionObject(CustomerCashBalanceTransaction expandable } } + /** + * For more details about AppliedToPayment, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -215,6 +223,10 @@ public void setPaymentIntentObject(PaymentIntent expandableObject) { } } + /** + * For more details about Funded, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -222,6 +234,10 @@ public static class Funded extends StripeObject { @SerializedName("bank_transfer") BankTransfer bankTransfer; + /** + * For more details about BankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -253,6 +269,10 @@ public static class BankTransfer extends StripeObject { @SerializedName("us_bank_transfer") UsBankTransfer usBankTransfer; + /** + * For more details about EuBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -270,6 +290,10 @@ public static class EuBankTransfer extends StripeObject { String senderName; } + /** + * For more details about GbBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -287,6 +311,10 @@ public static class GbBankTransfer extends StripeObject { String sortCode; } + /** + * For more details about JpBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -304,6 +332,10 @@ public static class JpBankTransfer extends StripeObject { String senderName; } + /** + * For more details about UsBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -323,6 +355,10 @@ public static class UsBankTransfer extends StripeObject { } } + /** + * For more details about RefundedFromPayment, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -355,6 +391,10 @@ public void setRefundObject(Refund expandableObject) { } } + /** + * For more details about TransferredToBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -388,6 +428,10 @@ public void setBalanceTransactionObject(BalanceTransaction expandableObject) { } } + /** + * For more details about UnappliedFromPayment, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index b8448412e7e..790d5a5a542 100644 --- a/src/main/java/com/stripe/model/Dispute.java +++ b/src/main/java/com/stripe/model/Dispute.java @@ -62,6 +62,10 @@ public class Dispute extends ApiResource @SerializedName("currency") String currency; + /** List of eligibility types that are included in {@code enhanced_evidence}. */ + @SerializedName("enhanced_eligibility_types") + List enhancedEligibilityTypes; + @SerializedName("evidence") Evidence evidence; @@ -392,6 +396,10 @@ public Dispute update(DisputeUpdateParams params, RequestOptions options) throws return getResponseGetter().request(request, Dispute.class); } + /** + * For more details about Evidence, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -483,6 +491,9 @@ public static class Evidence extends StripeObject { @SerializedName("duplicate_charge_id") String duplicateChargeId; + @SerializedName("enhanced_evidence") + EnhancedEvidence enhancedEvidence; + /** A description of the product or service that was sold. */ @SerializedName("product_description") String productDescription; @@ -757,8 +768,225 @@ public void setUncategorizedFileObject(File expandableObject) { this.uncategorizedFile = new ExpandableField(expandableObject.getId(), expandableObject); } + + /** + * For more details about EnhancedEvidence, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class EnhancedEvidence extends StripeObject { + @SerializedName("visa_compelling_evidence_3") + VisaCompellingEvidence3 visaCompellingEvidence3; + + /** + * For more details about VisaCompellingEvidence3, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class VisaCompellingEvidence3 extends StripeObject { + /** Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission. */ + @SerializedName("disputed_transaction") + DisputedTransaction disputedTransaction; + + /** + * List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 + * evidence submission. + */ + @SerializedName("prior_undisputed_transactions") + List + priorUndisputedTransactions; + + /** + * For more details about DisputedTransaction, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class DisputedTransaction extends StripeObject { + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + @SerializedName("customer_account_id") + String customerAccountId; + + /** + * Unique identifier of the cardholder’s device derived from a combination of at least two + * hardware and software attributes. Must be at least 20 characters. + */ + @SerializedName("customer_device_fingerprint") + String customerDeviceFingerprint; + + /** + * Unique identifier of the cardholder’s device such as a device serial number (e.g., + * International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + @SerializedName("customer_device_id") + String customerDeviceId; + + /** The email address of the customer. */ + @SerializedName("customer_email_address") + String customerEmailAddress; + + /** The IP address that the customer used when making the purchase. */ + @SerializedName("customer_purchase_ip") + String customerPurchaseIp; + + /** + * Categorization of disputed payment. + * + *

One of {@code merchandise}, or {@code services}. + */ + @SerializedName("merchandise_or_services") + String merchandiseOrServices; + + /** A description of the product or service that was sold. */ + @SerializedName("product_description") + String productDescription; + + /** + * The address to which a physical product was shipped. All fields are required for Visa + * Compelling Evidence 3.0 evidence submission. + */ + @SerializedName("shipping_address") + ShippingAddress shippingAddress; + + /** + * For more details about ShippingAddress, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class ShippingAddress extends StripeObject { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + } + } + + /** + * For more details about PriorUndisputedTransaction, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class PriorUndisputedTransaction extends StripeObject { + /** Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge. */ + @SerializedName("charge") + String charge; + + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + @SerializedName("customer_account_id") + String customerAccountId; + + /** + * Unique identifier of the cardholder’s device derived from a combination of at least two + * hardware and software attributes. Must be at least 20 characters. + */ + @SerializedName("customer_device_fingerprint") + String customerDeviceFingerprint; + + /** + * Unique identifier of the cardholder’s device such as a device serial number (e.g., + * International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + @SerializedName("customer_device_id") + String customerDeviceId; + + /** The email address of the customer. */ + @SerializedName("customer_email_address") + String customerEmailAddress; + + /** The IP address that the customer used when making the purchase. */ + @SerializedName("customer_purchase_ip") + String customerPurchaseIp; + + /** A description of the product or service that was sold. */ + @SerializedName("product_description") + String productDescription; + + /** + * The address to which a physical product was shipped. All fields are required for Visa + * Compelling Evidence 3.0 evidence submission. + */ + @SerializedName("shipping_address") + ShippingAddress shippingAddress; + + /** + * For more details about ShippingAddress, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class ShippingAddress extends StripeObject { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + String city; + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + String country; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + String line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + String line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + String postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + String state; + } + } + } + } } + /** + * For more details about EvidenceDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -771,6 +999,9 @@ public static class EvidenceDetails extends StripeObject { @SerializedName("due_by") Long dueBy; + @SerializedName("enhanced_eligibility") + EnhancedEligibility enhancedEligibility; + /** Whether evidence has been staged for this dispute. */ @SerializedName("has_evidence") Boolean hasEvidence; @@ -789,8 +1020,48 @@ public static class EvidenceDetails extends StripeObject { */ @SerializedName("submission_count") Long submissionCount; + + /** + * For more details about EnhancedEligibility, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class EnhancedEligibility extends StripeObject { + @SerializedName("visa_compelling_evidence_3") + VisaCompellingEvidence3 visaCompellingEvidence3; + + /** + * For more details about VisaCompellingEvidence3, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class VisaCompellingEvidence3 extends StripeObject { + /** + * List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence + * submission. + */ + @SerializedName("required_actions") + List requiredActions; + + /** + * Visa Compelling Evidence 3.0 eligibility status. + * + *

One of {@code not_qualified}, {@code qualified}, or {@code requires_action}. + */ + @SerializedName("status") + String status; + } + } } + /** + * For more details about PaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -815,6 +1086,10 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("type") String type; + /** + * For more details about AmazonPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -828,6 +1103,10 @@ public static class AmazonPay extends StripeObject { String disputeType; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -858,6 +1137,10 @@ public static class Card extends StripeObject { String networkReasonCode; } + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -867,6 +1150,10 @@ public static class Klarna extends StripeObject { String reasonCode; } + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java index f4f32f96fa2..ee1932d4864 100644 --- a/src/main/java/com/stripe/model/Event.java +++ b/src/main/java/com/stripe/model/Event.java @@ -157,40 +157,42 @@ public class Event extends ApiResource implements HasId { * {@code issuing_personalization_design.rejected}, {@code * issuing_personalization_design.updated}, {@code issuing_token.created}, {@code * issuing_token.updated}, {@code issuing_transaction.created}, {@code - * issuing_transaction.updated}, {@code mandate.updated}, {@code - * payment_intent.amount_capturable_updated}, {@code payment_intent.canceled}, {@code - * payment_intent.created}, {@code payment_intent.partially_funded}, {@code - * payment_intent.payment_failed}, {@code payment_intent.processing}, {@code - * payment_intent.requires_action}, {@code payment_intent.succeeded}, {@code - * payment_link.created}, {@code payment_link.updated}, {@code payment_method.attached}, {@code - * payment_method.automatically_updated}, {@code payment_method.detached}, {@code - * payment_method.updated}, {@code payout.canceled}, {@code payout.created}, {@code - * payout.failed}, {@code payout.paid}, {@code payout.reconciliation_completed}, {@code - * payout.updated}, {@code person.created}, {@code person.deleted}, {@code person.updated}, {@code - * plan.created}, {@code plan.deleted}, {@code plan.updated}, {@code price.created}, {@code - * price.deleted}, {@code price.updated}, {@code product.created}, {@code product.deleted}, {@code - * product.updated}, {@code promotion_code.created}, {@code promotion_code.updated}, {@code - * quote.accepted}, {@code quote.canceled}, {@code quote.created}, {@code quote.finalized}, {@code + * issuing_transaction.purchase_details_receipt_updated}, {@code issuing_transaction.updated}, + * {@code mandate.updated}, {@code payment_intent.amount_capturable_updated}, {@code + * payment_intent.canceled}, {@code payment_intent.created}, {@code + * payment_intent.partially_funded}, {@code payment_intent.payment_failed}, {@code + * payment_intent.processing}, {@code payment_intent.requires_action}, {@code + * payment_intent.succeeded}, {@code payment_link.created}, {@code payment_link.updated}, {@code + * payment_method.attached}, {@code payment_method.automatically_updated}, {@code + * payment_method.detached}, {@code payment_method.updated}, {@code payout.canceled}, {@code + * payout.created}, {@code payout.failed}, {@code payout.paid}, {@code + * payout.reconciliation_completed}, {@code payout.updated}, {@code person.created}, {@code + * person.deleted}, {@code person.updated}, {@code plan.created}, {@code plan.deleted}, {@code + * plan.updated}, {@code price.created}, {@code price.deleted}, {@code price.updated}, {@code + * product.created}, {@code product.deleted}, {@code product.updated}, {@code + * promotion_code.created}, {@code promotion_code.updated}, {@code quote.accepted}, {@code + * quote.canceled}, {@code quote.created}, {@code quote.finalized}, {@code * radar.early_fraud_warning.created}, {@code radar.early_fraud_warning.updated}, {@code - * refund.created}, {@code refund.updated}, {@code reporting.report_run.failed}, {@code - * reporting.report_run.succeeded}, {@code reporting.report_type.updated}, {@code review.closed}, - * {@code review.opened}, {@code setup_intent.canceled}, {@code setup_intent.created}, {@code - * setup_intent.requires_action}, {@code setup_intent.setup_failed}, {@code - * setup_intent.succeeded}, {@code sigma.scheduled_query_run.created}, {@code source.canceled}, - * {@code source.chargeable}, {@code source.failed}, {@code source.mandate_notification}, {@code - * source.refund_attributes_required}, {@code source.transaction.created}, {@code - * source.transaction.updated}, {@code subscription_schedule.aborted}, {@code - * subscription_schedule.canceled}, {@code subscription_schedule.completed}, {@code - * subscription_schedule.created}, {@code subscription_schedule.expiring}, {@code - * subscription_schedule.released}, {@code subscription_schedule.updated}, {@code - * tax.settings.updated}, {@code tax_rate.created}, {@code tax_rate.updated}, {@code - * terminal.reader.action_failed}, {@code terminal.reader.action_succeeded}, {@code - * test_helpers.test_clock.advancing}, {@code test_helpers.test_clock.created}, {@code - * test_helpers.test_clock.deleted}, {@code test_helpers.test_clock.internal_failure}, {@code - * test_helpers.test_clock.ready}, {@code topup.canceled}, {@code topup.created}, {@code - * topup.failed}, {@code topup.reversed}, {@code topup.succeeded}, {@code transfer.created}, - * {@code transfer.reversed}, {@code transfer.updated}, {@code treasury.credit_reversal.created}, - * {@code treasury.credit_reversal.posted}, {@code treasury.debit_reversal.completed}, {@code + * refund.created}, {@code refund.failed}, {@code refund.updated}, {@code + * reporting.report_run.failed}, {@code reporting.report_run.succeeded}, {@code + * reporting.report_type.updated}, {@code review.closed}, {@code review.opened}, {@code + * setup_intent.canceled}, {@code setup_intent.created}, {@code setup_intent.requires_action}, + * {@code setup_intent.setup_failed}, {@code setup_intent.succeeded}, {@code + * sigma.scheduled_query_run.created}, {@code source.canceled}, {@code source.chargeable}, {@code + * source.failed}, {@code source.mandate_notification}, {@code source.refund_attributes_required}, + * {@code source.transaction.created}, {@code source.transaction.updated}, {@code + * subscription_schedule.aborted}, {@code subscription_schedule.canceled}, {@code + * subscription_schedule.completed}, {@code subscription_schedule.created}, {@code + * subscription_schedule.expiring}, {@code subscription_schedule.released}, {@code + * subscription_schedule.updated}, {@code tax.settings.updated}, {@code tax_rate.created}, {@code + * tax_rate.updated}, {@code terminal.reader.action_failed}, {@code + * terminal.reader.action_succeeded}, {@code test_helpers.test_clock.advancing}, {@code + * test_helpers.test_clock.created}, {@code test_helpers.test_clock.deleted}, {@code + * test_helpers.test_clock.internal_failure}, {@code test_helpers.test_clock.ready}, {@code + * topup.canceled}, {@code topup.created}, {@code topup.failed}, {@code topup.reversed}, {@code + * topup.succeeded}, {@code transfer.created}, {@code transfer.reversed}, {@code + * transfer.updated}, {@code treasury.credit_reversal.created}, {@code + * treasury.credit_reversal.posted}, {@code treasury.debit_reversal.completed}, {@code * treasury.debit_reversal.created}, {@code treasury.debit_reversal.initial_credit_granted}, * {@code treasury.financial_account.closed}, {@code treasury.financial_account.created}, {@code * treasury.financial_account.features_status_updated}, {@code @@ -333,6 +335,10 @@ public EventDataObjectDeserializer getDataObjectDeserializer() { return new EventDataObjectDeserializer(apiVersion, type, data.object, getResponseGetter()); } + /** + * For more details about Data, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -373,6 +379,10 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { } } + /** + * For more details about Request, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/FundingInstructions.java b/src/main/java/com/stripe/model/FundingInstructions.java index 7d385a1b9f8..67ab75417e5 100644 --- a/src/main/java/com/stripe/model/FundingInstructions.java +++ b/src/main/java/com/stripe/model/FundingInstructions.java @@ -53,6 +53,10 @@ public class FundingInstructions extends StripeObject { @SerializedName("object") String object; + /** + * For more details about BankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 49277305911..27856c2d8bd 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -616,6 +616,10 @@ public class Invoice extends ApiResource implements HasId, MetadataStore totalPretaxCreditAmounts; @@ -2155,6 +2159,10 @@ public Invoice voidInvoice(InvoiceVoidInvoiceParams params, RequestOptions optio return getResponseGetter().request(request, Invoice.class); } + /** + * For more details about AutomaticTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2184,6 +2192,10 @@ public static class AutomaticTax extends StripeObject { @SerializedName("status") String status; + /** + * For more details about Liability, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2222,6 +2234,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about CustomField, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2235,6 +2251,10 @@ public static class CustomField extends StripeObject { String value; } + /** + * For more details about CustomerTaxId, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2253,7 +2273,8 @@ public static class CustomerTaxId extends StripeObject { * cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, * {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code * ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code kz_bin}, - * {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code unknown}. + * {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code + * uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or {@code unknown}. */ @SerializedName("type") String type; @@ -2263,6 +2284,10 @@ public static class CustomerTaxId extends StripeObject { String value; } + /** + * For more details about FromInvoice, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2296,6 +2321,10 @@ public void setInvoiceObject(Invoice expandableObject) { } } + /** + * For more details about Issuer, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2333,6 +2362,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about PaymentSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2358,6 +2391,10 @@ public static class PaymentSettings extends StripeObject { @SerializedName("payment_method_types") List paymentMethodTypes; + /** + * For more details about PaymentMethodOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2411,6 +2448,10 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about AcssDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2426,6 +2467,10 @@ public static class AcssDebit extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2440,6 +2485,10 @@ public static class MandateOptions extends StripeObject { } } + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2454,6 +2503,10 @@ public static class Bancontact extends StripeObject { String preferredLanguage; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2476,6 +2529,10 @@ public static class Card extends StripeObject { @SerializedName("request_three_d_secure") String requestThreeDSecure; + /** + * For more details about Installments, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2486,6 +2543,10 @@ public static class Installments extends StripeObject { } } + /** + * For more details about CustomerBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2502,6 +2563,10 @@ public static class CustomerBalance extends StripeObject { @SerializedName("funding_type") String fundingType; + /** + * For more details about BankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2517,6 +2582,10 @@ public static class BankTransfer extends StripeObject { @SerializedName("type") String type; + /** + * For more details about EuBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2533,16 +2602,28 @@ public static class EuBankTransfer extends StripeObject { } } + /** + * For more details about Konbini, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Konbini extends StripeObject {} + /** + * For more details about SepaDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class SepaDebit extends StripeObject {} + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2558,6 +2639,10 @@ public static class UsBankAccount extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about FinancialConnections, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2576,6 +2661,10 @@ public static class FinancialConnections extends StripeObject { @SerializedName("prefetch") List prefetch; + /** + * For more details about Filters, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2592,6 +2681,10 @@ public static class Filters extends StripeObject { } } + /** + * For more details about Rendering, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2612,6 +2705,10 @@ public static class Rendering extends StripeObject { @SerializedName("template_version") Long templateVersion; + /** + * For more details about Pdf, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2627,6 +2724,10 @@ public static class Pdf extends StripeObject { } } + /** + * For more details about ShippingCost, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2672,6 +2773,10 @@ public void setShippingRateObject(ShippingRate expandableObject) { new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about Tax, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2711,6 +2816,10 @@ public static class Tax extends StripeObject { } } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2732,6 +2841,10 @@ public static class StatusTransitions extends StripeObject { Long voidedAt; } + /** + * For more details about SubscriptionDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2746,6 +2859,10 @@ public static class SubscriptionDetails extends StripeObject { Map metadata; } + /** + * For more details about ThresholdReason, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2758,6 +2875,10 @@ public static class ThresholdReason extends StripeObject { @SerializedName("item_reasons") List itemReasons; + /** + * For more details about ItemReason, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2772,6 +2893,10 @@ public static class ItemReason extends StripeObject { } } + /** + * For more details about TotalDiscountAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2805,6 +2930,10 @@ public void setDiscountObject(Discount expandableObject) { } } + /** + * For more details about TotalPretaxCreditAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2874,6 +3003,10 @@ public void setDiscountObject(Discount expandableObject) { } } + /** + * For more details about TotalTaxAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2928,6 +3061,10 @@ public void setTaxRateObject(TaxRate expandableObject) { } } + /** + * For more details about TransferData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/InvoiceItem.java b/src/main/java/com/stripe/model/InvoiceItem.java index 4adedd1ead0..03d4a25b717 100644 --- a/src/main/java/com/stripe/model/InvoiceItem.java +++ b/src/main/java/com/stripe/model/InvoiceItem.java @@ -509,6 +509,10 @@ public InvoiceItem update(InvoiceItemUpdateParams params, RequestOptions options return getResponseGetter().request(request, InvoiceItem.class); } + /** + * For more details about Period, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/InvoiceLineItem.java b/src/main/java/com/stripe/model/InvoiceLineItem.java index 0c5c6ba7932..afaf1d105f4 100644 --- a/src/main/java/com/stripe/model/InvoiceLineItem.java +++ b/src/main/java/com/stripe/model/InvoiceLineItem.java @@ -120,6 +120,9 @@ public class InvoiceLineItem extends ApiResource implements HasId, MetadataStore @SerializedName("plan") Plan plan; + /** + * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item. + */ @SerializedName("pretax_credit_amounts") List pretaxCreditAmounts; @@ -341,6 +344,10 @@ public InvoiceLineItem update(InvoiceLineItemUpdateParams params, RequestOptions return getResponseGetter().request(request, InvoiceLineItem.class); } + /** + * For more details about DiscountAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -374,6 +381,10 @@ public void setDiscountObject(Discount expandableObject) { } } + /** + * For more details about Period, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -390,6 +401,10 @@ public static class Period extends StripeObject { Long start; } + /** + * For more details about PretaxCreditAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -459,6 +474,10 @@ public void setDiscountObject(Discount expandableObject) { } } + /** + * For more details about ProrationDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -470,6 +489,10 @@ public static class ProrationDetails extends StripeObject { @SerializedName("credited_items") CreditedItems creditedItems; + /** + * For more details about CreditedItems, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -484,6 +507,10 @@ public static class CreditedItems extends StripeObject { } } + /** + * For more details about TaxAmount, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/LineItem.java b/src/main/java/com/stripe/model/LineItem.java index 37743110f5b..157e43601dc 100644 --- a/src/main/java/com/stripe/model/LineItem.java +++ b/src/main/java/com/stripe/model/LineItem.java @@ -71,6 +71,10 @@ public class LineItem extends StripeObject implements HasId { @SerializedName("taxes") List taxes; + /** + * For more details about Discount, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -92,6 +96,10 @@ public static class Discount extends StripeObject { com.stripe.model.Discount discount; } + /** + * For more details about Tax, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/LoginLink.java b/src/main/java/com/stripe/model/LoginLink.java index 86cfc632446..88afa9e40a1 100644 --- a/src/main/java/com/stripe/model/LoginLink.java +++ b/src/main/java/com/stripe/model/LoginLink.java @@ -41,7 +41,7 @@ public class LoginLink extends ApiResource { String url; /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to @@ -52,7 +52,7 @@ public static LoginLink createOnAccount(String account) throws StripeException { } /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to @@ -64,7 +64,7 @@ public static LoginLink createOnAccount(String account, RequestOptions options) } /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to @@ -76,7 +76,7 @@ public static LoginLink createOnAccount(String account, Map para } /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to @@ -91,7 +91,7 @@ public static LoginLink createOnAccount( } /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to @@ -103,7 +103,7 @@ public static LoginLink createOnAccount(String account, LoginLinkCreateOnAccount } /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to diff --git a/src/main/java/com/stripe/model/Mandate.java b/src/main/java/com/stripe/model/Mandate.java index d31a5ccd462..286067fde20 100644 --- a/src/main/java/com/stripe/model/Mandate.java +++ b/src/main/java/com/stripe/model/Mandate.java @@ -135,6 +135,10 @@ public static Mandate retrieve( return getGlobalResponseGetter().request(request, Mandate.class); } + /** + * For more details about CustomerAcceptance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -158,11 +162,19 @@ public static class CustomerAcceptance extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Offline, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Offline extends StripeObject {} + /** + * For more details about Online, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -177,11 +189,19 @@ public static class Online extends StripeObject { } } + /** + * For more details about MultiUse, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class MultiUse extends StripeObject {} + /** + * For more details about PaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -204,6 +224,12 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("cashapp") Cashapp cashapp; + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + + @SerializedName("kr_card") + KrCard krCard; + @SerializedName("link") Link link; @@ -227,6 +253,10 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about AcssDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -259,11 +289,19 @@ public static class AcssDebit extends StripeObject { String transactionType; } + /** + * For more details about AmazonPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmazonPay extends StripeObject {} + /** + * For more details about AuBecsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -276,6 +314,10 @@ public static class AuBecsDebit extends StripeObject { String url; } + /** + * For more details about BacsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -306,21 +348,55 @@ public static class BacsDebit extends StripeObject { String url; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Card extends StripeObject {} + /** + * For more details about Cashapp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Cashapp extends StripeObject {} + /** + * For more details about KakaoPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KakaoPay extends StripeObject {} + + /** + * For more details about KrCard, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KrCard extends StripeObject {} + + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Link extends StripeObject {} + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -337,11 +413,19 @@ public static class Paypal extends StripeObject { String payerId; } + /** + * For more details about RevolutPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class RevolutPay extends StripeObject {} + /** + * For more details about SepaDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -358,6 +442,10 @@ public static class SepaDebit extends StripeObject { String url; } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -372,6 +460,10 @@ public static class UsBankAccount extends StripeObject { } } + /** + * For more details about SingleUse, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index 5f306cf5ef5..289a78e82e7 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -1474,6 +1474,10 @@ public PaymentIntent verifyMicrodeposits( return getResponseGetter().request(request, PaymentIntent.class); } + /** + * For more details about AmountDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1481,6 +1485,10 @@ public static class AmountDetails extends StripeObject { @SerializedName("tip") Tip tip; + /** + * For more details about Tip, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1491,6 +1499,10 @@ public static class Tip extends StripeObject { } } + /** + * For more details about AutomaticPaymentMethods, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1514,6 +1526,10 @@ public static class AutomaticPaymentMethods extends StripeObject { Boolean enabled; } + /** + * For more details about NextAction, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1585,6 +1601,10 @@ public static class NextAction extends StripeObject { @SerializedName("wechat_pay_redirect_to_ios_app") WechatPayRedirectToIosApp wechatPayRedirectToIosApp; + /** + * For more details about AlipayHandleRedirect, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1615,6 +1635,10 @@ public static class AlipayHandleRedirect extends StripeObject { String url; } + /** + * For more details about BoletoDisplayDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1639,6 +1663,10 @@ public static class BoletoDisplayDetails extends StripeObject { String pdf; } + /** + * For more details about CardAwaitNotification, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1658,6 +1686,10 @@ public static class CardAwaitNotification extends StripeObject { Boolean customerApprovalRequired; } + /** + * For more details about CashappHandleRedirectOrDisplayQrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1676,6 +1708,10 @@ public static class CashappHandleRedirectOrDisplayQrCode extends StripeObject { @SerializedName("qr_code") QrCode qrCode; + /** + * For more details about QrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1694,6 +1730,10 @@ public static class QrCode extends StripeObject { } } + /** + * For more details about DisplayBankTransferInstructions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1910,6 +1950,10 @@ public static class Zengin extends StripeObject { } } + /** + * For more details about KonbiniDisplayDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1928,6 +1972,10 @@ public static class KonbiniDisplayDetails extends StripeObject { @SerializedName("stores") Stores stores; + /** + * For more details about Stores, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1948,6 +1996,10 @@ public static class Stores extends StripeObject { @SerializedName("seicomart") Seicomart seicomart; + /** + * For more details about Familymart, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1961,6 +2013,10 @@ public static class Familymart extends StripeObject { String paymentCode; } + /** + * For more details about Lawson, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1974,6 +2030,10 @@ public static class Lawson extends StripeObject { String paymentCode; } + /** + * For more details about Ministop, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1987,6 +2047,10 @@ public static class Ministop extends StripeObject { String paymentCode; } + /** + * For more details about Seicomart, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2002,6 +2066,10 @@ public static class Seicomart extends StripeObject { } } + /** + * For more details about MultibancoDisplayDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2026,6 +2094,10 @@ public static class MultibancoDisplayDetails extends StripeObject { String reference; } + /** + * For more details about OxxoDisplayDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2046,6 +2118,10 @@ public static class OxxoDisplayDetails extends StripeObject { String number; } + /** + * For more details about PaynowDisplayQrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2073,6 +2149,10 @@ public static class PaynowDisplayQrCode extends StripeObject { String imageUrlSvg; } + /** + * For more details about PixDisplayQrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2104,6 +2184,10 @@ public static class PixDisplayQrCode extends StripeObject { String imageUrlSvg; } + /** + * For more details about PromptpayDisplayQrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2131,6 +2215,10 @@ public static class PromptpayDisplayQrCode extends StripeObject { String imageUrlSvg; } + /** + * For more details about RedirectToUrl, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2147,6 +2235,10 @@ public static class RedirectToUrl extends StripeObject { String url; } + /** + * For more details about SwishHandleRedirectOrDisplayQrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2167,6 +2259,10 @@ public static class SwishHandleRedirectOrDisplayQrCode extends StripeObject { @SerializedName("qr_code") QrCode qrCode; + /** + * For more details about QrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2188,6 +2284,10 @@ public static class QrCode extends StripeObject { } } + /** + * For more details about VerifyWithMicrodeposits, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2213,6 +2313,10 @@ public static class VerifyWithMicrodeposits extends StripeObject { String microdepositType; } + /** + * For more details about WechatPayDisplayQrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2241,6 +2345,10 @@ public static class WechatPayDisplayQrCode extends StripeObject { String imageUrlSvg; } + /** + * For more details about WechatPayRedirectToAndroidApp, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2284,6 +2392,10 @@ public void setPackage(String package_) { } } + /** + * For more details about WechatPayRedirectToIosApp, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2294,6 +2406,10 @@ public static class WechatPayRedirectToIosApp extends StripeObject { } } + /** + * For more details about PaymentMethodConfigurationDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2308,6 +2424,10 @@ public static class PaymentMethodConfigurationDetails extends StripeObject imple String parent; } + /** + * For more details about PaymentMethodOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2324,6 +2444,9 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("alipay") Alipay alipay; + @SerializedName("alma") + Alma alma; + @SerializedName("amazon_pay") AmazonPay amazonPay; @@ -2372,12 +2495,18 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("interac_present") InteracPresent interacPresent; + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + @SerializedName("klarna") Klarna klarna; @SerializedName("konbini") Konbini konbini; + @SerializedName("kr_card") + KrCard krCard; + @SerializedName("link") Link link; @@ -2387,12 +2516,18 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("multibanco") Multibanco multibanco; + @SerializedName("naver_pay") + NaverPay naverPay; + @SerializedName("oxxo") Oxxo oxxo; @SerializedName("p24") P24 p24; + @SerializedName("payco") + Payco payco; + @SerializedName("paynow") Paynow paynow; @@ -2408,6 +2543,9 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("revolut_pay") RevolutPay revolutPay; + @SerializedName("samsung_pay") + SamsungPay samsungPay; + @SerializedName("sepa_debit") SepaDebit sepaDebit; @@ -2429,6 +2567,10 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("zip") Zip zip; + /** + * For more details about AcssDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2468,6 +2610,10 @@ public static class AcssDebit extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2501,6 +2647,10 @@ public static class MandateOptions extends StripeObject { } } + /** + * For more details about Affirm, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2542,6 +2692,10 @@ public static class Affirm extends StripeObject { String setupFutureUsage; } + /** + * For more details about AfterpayClearpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2587,6 +2741,10 @@ public static class AfterpayClearpay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Alipay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2616,6 +2774,27 @@ public static class Alipay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Alma, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Alma extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + } + + /** + * For more details about AmazonPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2653,6 +2832,10 @@ public static class AmazonPay extends StripeObject { String setupFutureUsage; } + /** + * For more details about AuBecsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2682,6 +2865,10 @@ public static class AuBecsDebit extends StripeObject { String setupFutureUsage; } + /** + * For more details about BacsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2713,12 +2900,20 @@ public static class BacsDebit extends StripeObject { @SerializedName("setup_future_usage") String setupFutureUsage; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class MandateOptions extends StripeObject {} } + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2756,6 +2951,10 @@ public static class Bancontact extends StripeObject { String setupFutureUsage; } + /** + * For more details about Blik, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2785,6 +2984,10 @@ public static class Blik extends StripeObject { String setupFutureUsage; } + /** + * For more details about Boleto, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2822,6 +3025,10 @@ public static class Boleto extends StripeObject { String setupFutureUsage; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2959,6 +3166,10 @@ public static class Card extends StripeObject { @SerializedName("statement_descriptor_suffix_kanji") String statementDescriptorSuffixKanji; + /** + * For more details about Installments, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2975,6 +3186,10 @@ public static class Installments extends StripeObject { @SerializedName("plan") Plan plan; + /** + * For more details about AvailablePlan, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2998,6 +3213,10 @@ public static class AvailablePlan extends StripeObject { String type; } + /** + * For more details about Plan, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3022,6 +3241,10 @@ public static class Plan extends StripeObject { } } + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3085,6 +3308,10 @@ public static class MandateOptions extends StripeObject { } } + /** + * For more details about CardPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3111,6 +3338,10 @@ public static class CardPresent extends StripeObject { @SerializedName("routing") Routing routing; + /** + * For more details about Routing, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3125,6 +3356,10 @@ public static class Routing extends StripeObject { } } + /** + * For more details about Cashapp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3162,6 +3397,10 @@ public static class Cashapp extends StripeObject { String setupFutureUsage; } + /** + * For more details about CustomerBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3202,6 +3441,10 @@ public static class CustomerBalance extends StripeObject { @SerializedName("setup_future_usage") String setupFutureUsage; + /** + * For more details about BankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3230,6 +3473,10 @@ public static class BankTransfer extends StripeObject { @SerializedName("type") String type; + /** + * For more details about EuBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3246,6 +3493,10 @@ public static class EuBankTransfer extends StripeObject { } } + /** + * For more details about Eps, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3275,6 +3526,10 @@ public static class Eps extends StripeObject { String setupFutureUsage; } + /** + * For more details about Fpx, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3304,6 +3559,10 @@ public static class Fpx extends StripeObject { String setupFutureUsage; } + /** + * For more details about Giropay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3333,6 +3592,10 @@ public static class Giropay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Grabpay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3362,6 +3625,10 @@ public static class Grabpay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Ideal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3391,11 +3658,60 @@ public static class Ideal extends StripeObject { String setupFutureUsage; } + /** + * For more details about InteracPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class InteracPresent extends StripeObject {} + /** + * For more details about KakaoPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KakaoPay extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + * + *

One of {@code none}, or {@code off_session}. + */ + @SerializedName("setup_future_usage") + String setupFutureUsage; + } + + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3437,6 +3753,10 @@ public static class Klarna extends StripeObject { String setupFutureUsage; } + /** + * For more details about Konbini, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3496,6 +3816,51 @@ public static class Konbini extends StripeObject { String setupFutureUsage; } + /** + * For more details about KrCard, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KrCard extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + * + *

One of {@code none}, or {@code off_session}. + */ + @SerializedName("setup_future_usage") + String setupFutureUsage; + } + + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3538,6 +3903,10 @@ public static class Link extends StripeObject { String setupFutureUsage; } + /** + * For more details about Mobilepay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3575,6 +3944,10 @@ public static class Mobilepay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Multibanco, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3604,6 +3977,27 @@ public static class Multibanco extends StripeObject { String setupFutureUsage; } + /** + * For more details about NaverPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class NaverPay extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + } + + /** + * For more details about Oxxo, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3641,6 +4035,10 @@ public static class Oxxo extends StripeObject { String setupFutureUsage; } + /** + * For more details about P24, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3670,6 +4068,27 @@ public static class P24 extends StripeObject { String setupFutureUsage; } + /** + * For more details about Payco, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Payco extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + } + + /** + * For more details about Paynow, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3699,6 +4118,10 @@ public static class Paynow extends StripeObject { String setupFutureUsage; } + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3748,6 +4171,10 @@ public static class Paypal extends StripeObject { String setupFutureUsage; } + /** + * For more details about Pix, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3785,6 +4212,10 @@ public static class Pix extends StripeObject { String setupFutureUsage; } + /** + * For more details about Promptpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3814,6 +4245,10 @@ public static class Promptpay extends StripeObject { String setupFutureUsage; } + /** + * For more details about RevolutPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3851,6 +4286,27 @@ public static class RevolutPay extends StripeObject { String setupFutureUsage; } + /** + * For more details about SamsungPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class SamsungPay extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + } + + /** + * For more details about SepaDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3882,12 +4338,20 @@ public static class SepaDebit extends StripeObject { @SerializedName("setup_future_usage") String setupFutureUsage; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class MandateOptions extends StripeObject {} } + /** + * For more details about Sofort, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3926,6 +4390,10 @@ public static class Sofort extends StripeObject { String setupFutureUsage; } + /** + * For more details about Swish, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3959,6 +4427,10 @@ public static class Swish extends StripeObject { String setupFutureUsage; } + /** + * For more details about Twint, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -3988,6 +4460,10 @@ public static class Twint extends StripeObject { String setupFutureUsage; } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4038,6 +4514,10 @@ public static class UsBankAccount extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about FinancialConnections, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4063,6 +4543,10 @@ public static class FinancialConnections extends StripeObject { @SerializedName("return_url") String returnUrl; + /** + * For more details about Filters, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4076,6 +4560,10 @@ public static class Filters extends StripeObject { } } + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4090,6 +4578,10 @@ public static class MandateOptions extends StripeObject { } } + /** + * For more details about WechatPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4131,6 +4623,10 @@ public static class WechatPay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Zip, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4161,6 +4657,10 @@ public static class Zip extends StripeObject { } } + /** + * For more details about Processing, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4175,6 +4675,10 @@ public static class Processing extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4182,6 +4686,10 @@ public static class Card extends StripeObject { @SerializedName("customer_notification") CustomerNotification customerNotification; + /** + * For more details about CustomerNotification, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -4201,6 +4709,10 @@ public static class CustomerNotification extends StripeObject { } } + /** + * For more details about TransferData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java index 1fb5c81132b..8a3a23026a3 100644 --- a/src/main/java/com/stripe/model/PaymentLink.java +++ b/src/main/java/com/stripe/model/PaymentLink.java @@ -467,6 +467,10 @@ public PaymentLink update(PaymentLinkUpdateParams params, RequestOptions options return getResponseGetter().request(request, PaymentLink.class); } + /** + * For more details about AfterCompletion, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -485,6 +489,10 @@ public static class AfterCompletion extends StripeObject { @SerializedName("type") String type; + /** + * For more details about HostedConfirmation, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -494,6 +502,10 @@ public static class HostedConfirmation extends StripeObject { String customMessage; } + /** + * For more details about Redirect, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -504,6 +516,10 @@ public static class Redirect extends StripeObject { } } + /** + * For more details about AutomaticTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -520,6 +536,10 @@ public static class AutomaticTax extends StripeObject { @SerializedName("liability") Liability liability; + /** + * For more details about Liability, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -558,6 +578,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about ConsentCollection, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -585,6 +609,10 @@ public static class ConsentCollection extends StripeObject { @SerializedName("terms_of_service") String termsOfService; + /** + * For more details about PaymentMethodReuseAgreement, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -603,6 +631,10 @@ public static class PaymentMethodReuseAgreement extends StripeObject { } } + /** + * For more details about CustomField, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -641,6 +673,10 @@ public static class CustomField extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Dropdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -649,6 +685,10 @@ public static class Dropdown extends StripeObject { @SerializedName("options") List options; + /** + * For more details about Option, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -667,6 +707,10 @@ public static class Option extends StripeObject { } } + /** + * For more details about Label, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -684,6 +728,10 @@ public static class Label extends StripeObject { String type; } + /** + * For more details about Numeric, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -697,6 +745,10 @@ public static class Numeric extends StripeObject { Long minimumLength; } + /** + * For more details about Text, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -711,6 +763,10 @@ public static class Text extends StripeObject { } } + /** + * For more details about CustomText, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -733,6 +789,10 @@ public static class CustomText extends StripeObject { @SerializedName("terms_of_service_acceptance") TermsOfServiceAcceptance termsOfServiceAcceptance; + /** + * For more details about AfterSubmit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -742,6 +802,10 @@ public static class AfterSubmit extends StripeObject { String message; } + /** + * For more details about ShippingAddress, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -751,6 +815,10 @@ public static class ShippingAddress extends StripeObject { String message; } + /** + * For more details about Submit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -760,6 +828,10 @@ public static class Submit extends StripeObject { String message; } + /** + * For more details about TermsOfServiceAcceptance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -770,6 +842,10 @@ public static class TermsOfServiceAcceptance extends StripeObject { } } + /** + * For more details about InvoiceCreation, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -782,6 +858,10 @@ public static class InvoiceCreation extends StripeObject { @SerializedName("invoice_data") InvoiceData invoiceData; + /** + * For more details about InvoiceData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -865,6 +945,10 @@ public void setAccountTaxIdObjects(List objs) { : null; } + /** + * For more details about CustomField, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -878,6 +962,10 @@ public static class CustomField extends StripeObject { String value; } + /** + * For more details about Issuer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -915,6 +1003,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about RenderingOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -928,6 +1020,10 @@ public static class RenderingOptions extends StripeObject { } } + /** + * For more details about PaymentIntentData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -985,6 +1081,10 @@ public static class PaymentIntentData extends StripeObject { String transferGroup; } + /** + * For more details about PhoneNumberCollection, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -994,6 +1094,10 @@ public static class PhoneNumberCollection extends StripeObject { Boolean enabled; } + /** + * For more details about Restrictions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1001,6 +1105,10 @@ public static class Restrictions extends StripeObject { @SerializedName("completed_sessions") CompletedSessions completedSessions; + /** + * For more details about CompletedSessions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1021,6 +1129,10 @@ public static class CompletedSessions extends StripeObject { } } + /** + * For more details about ShippingAddressCollection, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1034,6 +1146,10 @@ public static class ShippingAddressCollection extends StripeObject { List allowedCountries; } + /** + * For more details about ShippingOption, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1068,6 +1184,10 @@ public void setShippingRateObject(ShippingRate expandableObject) { } } + /** + * For more details about SubscriptionData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1102,6 +1222,10 @@ public static class SubscriptionData extends StripeObject { @SerializedName("trial_settings") TrialSettings trialSettings; + /** + * For more details about InvoiceSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1109,6 +1233,10 @@ public static class InvoiceSettings extends StripeObject { @SerializedName("issuer") Issuer issuer; + /** + * For more details about Issuer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1173,6 +1301,10 @@ public static class EndBehavior extends StripeObject { } } + /** + * For more details about TaxIdCollection, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1185,6 +1317,10 @@ public static class TaxIdCollection extends StripeObject { String required; } + /** + * For more details about TransferData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index a609041b8dd..76a741d2485 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -56,6 +56,9 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore

One of {@code acss_debit}, {@code affirm}, {@code afterpay_clearpay}, {@code alipay}, {@code - * amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code bancontact}, {@code blik}, - * {@code boleto}, {@code card}, {@code card_present}, {@code cashapp}, {@code customer_balance}, - * {@code eps}, {@code fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, {@code - * interac_present}, {@code klarna}, {@code konbini}, {@code link}, {@code mobilepay}, {@code - * multibanco}, {@code oxxo}, {@code p24}, {@code paynow}, {@code paypal}, {@code pix}, {@code - * promptpay}, {@code revolut_pay}, {@code sepa_debit}, {@code sofort}, {@code swish}, {@code + * alma}, {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code bancontact}, + * {@code blik}, {@code boleto}, {@code card}, {@code card_present}, {@code cashapp}, {@code + * customer_balance}, {@code eps}, {@code fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, + * {@code interac_present}, {@code kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, + * {@code link}, {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code oxxo}, {@code + * p24}, {@code payco}, {@code paynow}, {@code paypal}, {@code pix}, {@code promptpay}, {@code + * revolut_pay}, {@code samsung_pay}, {@code sepa_debit}, {@code sofort}, {@code swish}, {@code * twint}, {@code us_bank_account}, {@code wechat_pay}, or {@code zip}. */ @SerializedName("type") @@ -633,6 +652,10 @@ public PaymentMethod update(PaymentMethodUpdateParams params, RequestOptions opt return getResponseGetter().request(request, PaymentMethod.class); } + /** + * For more details about AcssDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -661,26 +684,55 @@ public static class AcssDebit extends StripeObject { String transitNumber; } + /** + * For more details about Affirm, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Affirm extends StripeObject {} + /** + * For more details about AfterpayClearpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AfterpayClearpay extends StripeObject {} + /** + * For more details about Alipay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Alipay extends StripeObject {} + /** + * For more details about Alma, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Alma extends StripeObject {} + + /** + * For more details about AmazonPay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmazonPay extends StripeObject {} + /** + * For more details about AuBecsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -701,6 +753,10 @@ public static class AuBecsDebit extends StripeObject { String last4; } + /** + * For more details about BacsDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -721,11 +777,19 @@ public static class BacsDebit extends StripeObject { String sortCode; } + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Bancontact extends StripeObject {} + /** + * For more details about BillingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -747,11 +811,19 @@ public static class BillingDetails extends StripeObject { String phone; } + /** + * For more details about Blik, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Blik extends StripeObject {} + /** + * For more details about Boleto, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -761,6 +833,10 @@ public static class Boleto extends StripeObject { String taxId; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -860,6 +936,10 @@ public static class Card extends StripeObject { @SerializedName("wallet") Wallet wallet; + /** + * For more details about Checks, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -886,6 +966,10 @@ public static class Checks extends StripeObject { String cvcCheck; } + /** + * For more details about GeneratedFrom, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -923,6 +1007,10 @@ public void setSetupAttemptObject(SetupAttempt expandableObject) { new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about PaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -937,6 +1025,10 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("type") String type; + /** + * For more details about CardPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1108,6 +1200,10 @@ public static class CardPresent extends StripeObject { @SerializedName("wallet") Wallet wallet; + /** + * For more details about Offline, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1125,6 +1221,10 @@ public static class Offline extends StripeObject { String type; } + /** + * For more details about Receipt, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1177,6 +1277,10 @@ public static class Receipt extends StripeObject { String transactionStatusInformation; } + /** + * For more details about Wallet, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1192,6 +1296,10 @@ public static class Wallet extends StripeObject { } } + /** + * For more details about Networks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1209,6 +1317,10 @@ public static class Networks extends StripeObject { String preferred; } + /** + * For more details about ThreeDSecureUsage, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1218,6 +1330,10 @@ public static class ThreeDSecureUsage extends StripeObject { Boolean supported; } + /** + * For more details about Wallet, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1256,26 +1372,46 @@ public static class Wallet extends StripeObject { @SerializedName("visa_checkout") VisaCheckout visaCheckout; + /** + * For more details about AmexExpressCheckout, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmexExpressCheckout extends StripeObject {} + /** + * For more details about ApplePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class ApplePay extends StripeObject {} + /** + * For more details about GooglePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class GooglePay extends StripeObject {} + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Link extends StripeObject {} + /** + * For more details about Masterpass, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1309,11 +1445,19 @@ public static class Masterpass extends StripeObject { Address shippingAddress; } + /** + * For more details about SamsungPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class SamsungPay extends StripeObject {} + /** + * For more details about VisaCheckout, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1349,6 +1493,10 @@ public static class VisaCheckout extends StripeObject { } } + /** + * For more details about CardPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1460,6 +1608,10 @@ public static class CardPresent extends StripeObject { @SerializedName("wallet") Wallet wallet; + /** + * For more details about Networks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1473,6 +1625,10 @@ public static class Networks extends StripeObject { String preferred; } + /** + * For more details about Offline, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1490,6 +1646,10 @@ public static class Offline extends StripeObject { String type; } + /** + * For more details about Wallet, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1503,6 +1663,10 @@ public static class Wallet extends StripeObject { } } + /** + * For more details about Cashapp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1516,11 +1680,19 @@ public static class Cashapp extends StripeObject { String cashtag; } + /** + * For more details about CustomerBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class CustomerBalance extends StripeObject {} + /** + * For more details about Eps, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1543,6 +1715,10 @@ public static class Eps extends StripeObject { String bank; } + /** + * For more details about Fpx, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1563,16 +1739,28 @@ public static class Fpx extends StripeObject { String bank; } + /** + * For more details about Giropay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Giropay extends StripeObject {} + /** + * For more details about Grabpay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Grabpay extends StripeObject {} + /** + * For more details about Ideal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1598,6 +1786,10 @@ public static class Ideal extends StripeObject { String bic; } + /** + * For more details about InteracPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1692,6 +1884,10 @@ public static class InteracPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * For more details about Networks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1706,6 +1902,19 @@ public static class Networks extends StripeObject { } } + /** + * For more details about KakaoPay, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KakaoPay extends StripeObject {} + + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1714,6 +1923,10 @@ public static class Klarna extends StripeObject { @SerializedName("dob") Dob dob; + /** + * For more details about Dob, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1732,11 +1945,44 @@ public static class Dob extends StripeObject { } } + /** + * For more details about Konbini, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Konbini extends StripeObject {} + /** + * For more details about KrCard, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KrCard extends StripeObject { + /** + * The local credit or debit card brand. + * + *

One of {@code bc}, {@code citi}, {@code hana}, {@code hyundai}, {@code jeju}, {@code + * jeonbuk}, {@code kakaobank}, {@code kbank}, {@code kdbbank}, {@code kookmin}, {@code + * kwangju}, {@code lotte}, {@code mg}, {@code nh}, {@code post}, {@code samsung}, {@code + * savingsbank}, {@code shinhan}, {@code shinhyup}, {@code suhyup}, {@code tossbank}, or {@code + * woori}. + */ + @SerializedName("brand") + String brand; + + /** The last four digits of the card. This may not be present for American Express cards. */ + @SerializedName("last4") + String last4; + } + + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1751,21 +1997,54 @@ public static class Link extends StripeObject { String persistentToken; } + /** + * For more details about Mobilepay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Mobilepay extends StripeObject {} + /** + * For more details about Multibanco, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Multibanco extends StripeObject {} + /** + * For more details about NaverPay, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class NaverPay extends StripeObject { + /** + * Whether to fund this transaction with Naver Pay points or a card. + * + *

One of {@code card}, or {@code points}. + */ + @SerializedName("funding") + String funding; + } + + /** + * For more details about Oxxo, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Oxxo extends StripeObject {} + /** + * For more details about P24, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1785,11 +2064,28 @@ public static class P24 extends StripeObject { String bank; } + /** + * For more details about Payco, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Payco extends StripeObject {} + + /** + * For more details about Paynow, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Paynow extends StripeObject {} + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1806,11 +2102,19 @@ public static class Paypal extends StripeObject { String payerId; } + /** + * For more details about Pix, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Pix extends StripeObject {} + /** + * For more details about Promptpay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1833,11 +2137,28 @@ public static class RadarOptions extends StripeObject { String session; } + /** + * For more details about RevolutPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class RevolutPay extends StripeObject {} + /** + * For more details about SamsungPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class SamsungPay extends StripeObject {} + + /** + * For more details about SepaDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1869,6 +2190,10 @@ public static class SepaDebit extends StripeObject { @SerializedName("last4") String last4; + /** + * For more details about GeneratedFrom, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1924,6 +2249,10 @@ public void setSetupAttemptObject(SetupAttempt expandableObject) { } } + /** + * For more details about Sofort, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1933,16 +2262,28 @@ public static class Sofort extends StripeObject { String country; } + /** + * For more details about Swish, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Swish extends StripeObject {} + /** + * For more details about Twint, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Twint extends StripeObject {} + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1994,6 +2335,10 @@ public static class UsBankAccount extends StripeObject { @SerializedName("status_details") StatusDetails statusDetails; + /** + * For more details about Networks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2007,6 +2352,10 @@ public static class Networks extends StripeObject { List supported; } + /** + * For more details about StatusDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2014,6 +2363,10 @@ public static class StatusDetails extends StripeObject { @SerializedName("blocked") Blocked blocked; + /** + * For more details about Blocked, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2040,11 +2393,19 @@ public static class Blocked extends StripeObject { } } + /** + * For more details about WechatPay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class WechatPay extends StripeObject {} + /** + * For more details about Zip, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2057,6 +2418,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(affirm, responseGetter); trySetResponseGetter(afterpayClearpay, responseGetter); trySetResponseGetter(alipay, responseGetter); + trySetResponseGetter(alma, responseGetter); trySetResponseGetter(amazonPay, responseGetter); trySetResponseGetter(auBecsDebit, responseGetter); trySetResponseGetter(bacsDebit, responseGetter); @@ -2075,19 +2437,24 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(grabpay, responseGetter); trySetResponseGetter(ideal, responseGetter); trySetResponseGetter(interacPresent, responseGetter); + trySetResponseGetter(kakaoPay, responseGetter); trySetResponseGetter(klarna, responseGetter); trySetResponseGetter(konbini, responseGetter); + trySetResponseGetter(krCard, responseGetter); trySetResponseGetter(link, responseGetter); trySetResponseGetter(mobilepay, responseGetter); trySetResponseGetter(multibanco, responseGetter); + trySetResponseGetter(naverPay, responseGetter); trySetResponseGetter(oxxo, responseGetter); trySetResponseGetter(p24, responseGetter); + trySetResponseGetter(payco, responseGetter); trySetResponseGetter(paynow, responseGetter); trySetResponseGetter(paypal, responseGetter); trySetResponseGetter(pix, responseGetter); trySetResponseGetter(promptpay, responseGetter); trySetResponseGetter(radarOptions, responseGetter); trySetResponseGetter(revolutPay, responseGetter); + trySetResponseGetter(samsungPay, responseGetter); trySetResponseGetter(sepaDebit, responseGetter); trySetResponseGetter(sofort, responseGetter); trySetResponseGetter(swish, responseGetter); diff --git a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java index 3512d991aa5..9dbdf8363d8 100644 --- a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java +++ b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java @@ -68,6 +68,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId { @SerializedName("alipay") Alipay alipay; + @SerializedName("alma") + Alma alma; + @SerializedName("amazon_pay") AmazonPay amazonPay; @@ -366,6 +369,10 @@ public PaymentMethodConfiguration update( return getResponseGetter().request(request, PaymentMethodConfiguration.class); } + /** + * For more details about AcssDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -380,6 +387,10 @@ public static class AcssDebit extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -409,6 +420,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Affirm, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -423,6 +438,10 @@ public static class Affirm extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -452,6 +471,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about AfterpayClearpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -466,6 +489,10 @@ public static class AfterpayClearpay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -495,6 +522,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Alipay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -509,6 +540,61 @@ public static class Alipay extends StripeObject { @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 Alma, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Alma 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) @@ -538,6 +624,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about AmazonPay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -552,6 +642,10 @@ public static class AmazonPay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -581,6 +675,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about ApplePay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -595,6 +693,10 @@ public static class ApplePay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -624,6 +726,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about AuBecsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -638,6 +744,10 @@ public static class AuBecsDebit extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -667,6 +777,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about BacsDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -681,6 +795,10 @@ public static class BacsDebit extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -710,6 +828,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -724,6 +846,10 @@ public static class Bancontact extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -753,6 +879,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Blik, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -767,6 +897,10 @@ public static class Blik extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -796,6 +930,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Boleto, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -810,6 +948,10 @@ public static class Boleto extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -839,6 +981,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -853,6 +999,10 @@ public static class Card extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -882,6 +1032,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about CartesBancaires, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -896,6 +1050,10 @@ public static class CartesBancaires extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -925,6 +1083,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Cashapp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -939,6 +1101,10 @@ public static class Cashapp extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -968,6 +1134,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about CustomerBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -982,6 +1152,10 @@ public static class CustomerBalance extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1011,6 +1185,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Eps, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1025,6 +1203,10 @@ public static class Eps extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1054,6 +1236,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Fpx, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1068,6 +1254,10 @@ public static class Fpx extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1097,6 +1287,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Giropay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1111,6 +1305,10 @@ public static class Giropay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1140,6 +1338,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about GooglePay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1154,6 +1356,10 @@ public static class GooglePay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1183,6 +1389,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Grabpay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1197,6 +1407,10 @@ public static class Grabpay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1226,6 +1440,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Ideal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1240,6 +1458,10 @@ public static class Ideal extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1269,6 +1491,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Jcb, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1283,6 +1509,10 @@ public static class Jcb extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1312,6 +1542,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1326,6 +1560,10 @@ public static class Klarna extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1355,6 +1593,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Konbini, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1369,6 +1611,10 @@ public static class Konbini extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1398,6 +1644,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1412,6 +1662,10 @@ public static class Link extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1441,6 +1695,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Mobilepay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1455,6 +1713,10 @@ public static class Mobilepay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1484,6 +1746,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Multibanco, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1498,6 +1764,10 @@ public static class Multibanco extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1527,6 +1797,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Oxxo, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1541,6 +1815,10 @@ public static class Oxxo extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1570,6 +1848,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about P24, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1584,6 +1866,10 @@ public static class P24 extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1613,6 +1899,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Paynow, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1627,6 +1917,10 @@ public static class Paynow extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1656,6 +1950,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1670,6 +1968,10 @@ public static class Paypal extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1699,6 +2001,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Promptpay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1713,6 +2019,10 @@ public static class Promptpay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1742,6 +2052,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about RevolutPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1756,6 +2070,10 @@ public static class RevolutPay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1785,6 +2103,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about SepaDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1799,6 +2121,10 @@ public static class SepaDebit extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1828,6 +2154,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Sofort, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1842,6 +2172,10 @@ public static class Sofort extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1871,6 +2205,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Swish, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1885,6 +2223,10 @@ public static class Swish extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1914,6 +2256,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Twint, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1928,6 +2274,10 @@ public static class Twint extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1957,6 +2307,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1971,6 +2325,10 @@ public static class UsBankAccount extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2000,6 +2358,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about WechatPay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2014,6 +2376,10 @@ public static class WechatPay extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2043,6 +2409,10 @@ public static class DisplayPreference extends StripeObject { } } + /** + * For more details about Zip, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2057,6 +2427,10 @@ public static class Zip extends StripeObject { @SerializedName("display_preference") DisplayPreference displayPreference; + /** + * For more details about DisplayPreference, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2093,6 +2467,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(affirm, responseGetter); trySetResponseGetter(afterpayClearpay, responseGetter); trySetResponseGetter(alipay, responseGetter); + trySetResponseGetter(alma, responseGetter); trySetResponseGetter(amazonPay, responseGetter); trySetResponseGetter(applePay, responseGetter); trySetResponseGetter(auBecsDebit, responseGetter); diff --git a/src/main/java/com/stripe/model/PaymentMethodDomain.java b/src/main/java/com/stripe/model/PaymentMethodDomain.java index 92361370fc9..47232987254 100644 --- a/src/main/java/com/stripe/model/PaymentMethodDomain.java +++ b/src/main/java/com/stripe/model/PaymentMethodDomain.java @@ -32,6 +32,10 @@ @Setter @EqualsAndHashCode(callSuper = false) public class PaymentMethodDomain extends ApiResource implements HasId { + /** Indicates the status of a specific payment method on a payment method domain. */ + @SerializedName("amazon_pay") + AmazonPay amazonPay; + /** Indicates the status of a specific payment method on a payment method domain. */ @SerializedName("apple_pay") ApplePay applePay; @@ -358,6 +362,40 @@ public PaymentMethodDomain validate( return getResponseGetter().request(request, PaymentMethodDomain.class); } + /** Indicates the status of a specific payment method on a payment method domain. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AmazonPay extends StripeObject { + /** + * The status of the payment method on the domain. + * + *

One of {@code active}, or {@code inactive}. + */ + @SerializedName("status") + String status; + + /** + * Contains additional details about the status of a payment method for a specific payment + * method domain. + */ + @SerializedName("status_details") + StatusDetails statusDetails; + + /** + * Contains additional details about the status of a payment method for a specific payment + * method domain. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class StatusDetails extends StripeObject { + /** The error message associated with the status of the payment method on the domain. */ + @SerializedName("error_message") + String errorMessage; + } + } + /** Indicates the status of a specific payment method on a payment method domain. */ @Getter @Setter @@ -497,6 +535,7 @@ public static class StatusDetails extends StripeObject { @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); + trySetResponseGetter(amazonPay, responseGetter); trySetResponseGetter(applePay, responseGetter); trySetResponseGetter(googlePay, responseGetter); trySetResponseGetter(link, responseGetter); diff --git a/src/main/java/com/stripe/model/Person.java b/src/main/java/com/stripe/model/Person.java index aa3d5d2fae0..371b5bb096b 100644 --- a/src/main/java/com/stripe/model/Person.java +++ b/src/main/java/com/stripe/model/Person.java @@ -93,10 +93,7 @@ public class Person extends ApiResource implements HasId, MetadataStore @SerializedName("future_requirements") FutureRequirements futureRequirements; - /** - * The person's gender (International regulations require either "male" or - * "female"). - */ + /** The person's gender. */ @SerializedName("gender") String gender; @@ -277,6 +274,10 @@ public Person update(PersonUpdateParams params, RequestOptions options) throws S return getResponseGetter().request(request, Person.class); } + /** + * For more details about AdditionalTosAcceptances, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -285,6 +286,10 @@ public static class AdditionalTosAcceptances extends StripeObject { @SerializedName("account") Account account; + /** + * For more details about Account, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -305,6 +310,10 @@ public static class Account extends StripeObject { } } + /** + * For more details about AddressKana, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -341,6 +350,10 @@ public static class AddressKana extends StripeObject { String town; } + /** + * For more details about AddressKanji, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -377,6 +390,10 @@ public static class AddressKanji extends StripeObject { String town; } + /** + * For more details about Dob, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -394,6 +411,10 @@ public static class Dob extends StripeObject { Long year; } + /** + * For more details about FutureRequirements, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -449,6 +470,10 @@ public static class FutureRequirements extends StripeObject { @SerializedName("pending_verification") List pendingVerification; + /** + * For more details about Alternative, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -465,6 +490,10 @@ public static class Alternative extends StripeObject { List originalFieldsDue; } + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -547,6 +576,10 @@ public static class Errors extends StripeObject { } } + /** + * For more details about Relationship, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -593,6 +626,10 @@ public static class Relationship extends StripeObject { String title; } + /** + * For more details about Requirements, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -644,6 +681,10 @@ public static class Requirements extends StripeObject { @SerializedName("pending_verification") List pendingVerification; + /** + * For more details about Alternative, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -660,6 +701,10 @@ public static class Alternative extends StripeObject { List originalFieldsDue; } + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -742,6 +787,10 @@ public static class Errors extends StripeObject { } } + /** + * For more details about Verification, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -780,6 +829,10 @@ public static class Verification extends StripeObject { @SerializedName("status") String status; + /** + * For more details about AdditionalDocument, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -860,6 +913,10 @@ public void setFrontObject(File expandableObject) { } } + /** + * For more details about Document, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Plan.java b/src/main/java/com/stripe/model/Plan.java index 48432174f34..63657858cd3 100644 --- a/src/main/java/com/stripe/model/Plan.java +++ b/src/main/java/com/stripe/model/Plan.java @@ -409,6 +409,10 @@ public Plan update(PlanUpdateParams params, RequestOptions options) throws Strip return getResponseGetter().request(request, Plan.class); } + /** + * For more details about Tier, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -434,6 +438,10 @@ public static class Tier extends StripeObject { Long upTo; } + /** + * For more details about TransformUsage, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Price.java b/src/main/java/com/stripe/model/Price.java index 859350e6952..e4a793dc1fc 100644 --- a/src/main/java/com/stripe/model/Price.java +++ b/src/main/java/com/stripe/model/Price.java @@ -439,6 +439,10 @@ public Price update(PriceUpdateParams params, RequestOptions options) throws Str return getResponseGetter().request(request, Price.class); } + /** + * For more details about CurrencyOption, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -482,6 +486,10 @@ public static class CurrencyOption extends StripeObject { @SerializedName("unit_amount_decimal") BigDecimal unitAmountDecimal; + /** + * For more details about CustomUnitAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -502,6 +510,10 @@ public static class CustomUnitAmount extends StripeObject { Long preset; } + /** + * For more details about Tier, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -532,6 +544,10 @@ public static class Tier extends StripeObject { } } + /** + * For more details about CustomUnitAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -552,6 +568,10 @@ public static class CustomUnitAmount extends StripeObject { Long preset; } + /** + * For more details about Recurring, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -602,6 +622,10 @@ public static class Recurring extends StripeObject { String usageType; } + /** + * For more details about Tier, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -627,6 +651,10 @@ public static class Tier extends StripeObject { Long upTo; } + /** + * For more details about TransformQuantity, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Product.java b/src/main/java/com/stripe/model/Product.java index c220ccf4e6c..b79fc69a748 100644 --- a/src/main/java/com/stripe/model/Product.java +++ b/src/main/java/com/stripe/model/Product.java @@ -472,6 +472,10 @@ public Product update(ProductUpdateParams params, RequestOptions options) throws return getResponseGetter().request(request, Product.class); } + /** + * For more details about MarketingFeature, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -481,6 +485,10 @@ public static class MarketingFeature extends StripeObject { String name; } + /** + * For more details about PackageDimensions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/PromotionCode.java b/src/main/java/com/stripe/model/PromotionCode.java index 565bf323612..36d73b9edd8 100644 --- a/src/main/java/com/stripe/model/PromotionCode.java +++ b/src/main/java/com/stripe/model/PromotionCode.java @@ -309,6 +309,10 @@ public PromotionCode update(PromotionCodeUpdateParams params, RequestOptions opt return getResponseGetter().request(request, PromotionCode.class); } + /** + * For more details about Restrictions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -339,6 +343,10 @@ public static class Restrictions extends StripeObject { @SerializedName("minimum_amount_currency") String minimumAmountCurrency; + /** + * For more details about CurrencyOption, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Quote.java b/src/main/java/com/stripe/model/Quote.java index 7d7ad3a0615..abca8061b1f 100644 --- a/src/main/java/com/stripe/model/Quote.java +++ b/src/main/java/com/stripe/model/Quote.java @@ -917,6 +917,10 @@ public Quote update(QuoteUpdateParams params, RequestOptions options) throws Str return getResponseGetter().request(request, Quote.class); } + /** + * For more details about AutomaticTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -941,6 +945,10 @@ public static class AutomaticTax extends StripeObject { @SerializedName("status") String status; + /** + * For more details about Liability, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -979,6 +987,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about Computed, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -994,6 +1006,10 @@ public static class Computed extends StripeObject { @SerializedName("upfront") Upfront upfront; + /** + * For more details about Recurring, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1024,6 +1040,10 @@ public static class Recurring extends StripeObject { @SerializedName("total_details") TotalDetails totalDetails; + /** + * For more details about TotalDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1043,6 +1063,10 @@ public static class TotalDetails extends StripeObject { @SerializedName("breakdown") Breakdown breakdown; + /** + * For more details about Breakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1055,6 +1079,10 @@ public static class Breakdown extends StripeObject { @SerializedName("taxes") List taxes; + /** + * For more details about Discount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1078,6 +1106,10 @@ public static class Discount extends StripeObject { com.stripe.model.Discount discount; } + /** + * For more details about Tax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1121,6 +1153,10 @@ public static class Tax extends StripeObject { } } + /** + * For more details about Upfront, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1144,6 +1180,10 @@ public static class Upfront extends StripeObject { @SerializedName("total_details") TotalDetails totalDetails; + /** + * For more details about TotalDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1163,6 +1203,10 @@ public static class TotalDetails extends StripeObject { @SerializedName("breakdown") Breakdown breakdown; + /** + * For more details about Breakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1175,6 +1219,10 @@ public static class Breakdown extends StripeObject { @SerializedName("taxes") List taxes; + /** + * For more details about Discount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1198,6 +1246,10 @@ public static class Discount extends StripeObject { com.stripe.model.Discount discount; } + /** + * For more details about Tax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1242,6 +1294,10 @@ public static class Tax extends StripeObject { } } + /** + * For more details about FromQuote, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1275,6 +1331,10 @@ public void setQuoteObject(Quote expandableObject) { } } + /** + * For more details about InvoiceSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1289,6 +1349,10 @@ public static class InvoiceSettings extends StripeObject { @SerializedName("issuer") Issuer issuer; + /** + * For more details about Issuer, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1327,6 +1391,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1344,6 +1412,10 @@ public static class StatusTransitions extends StripeObject { Long finalizedAt; } + /** + * For more details about SubscriptionData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1384,6 +1456,10 @@ public static class SubscriptionData extends StripeObject { Long trialPeriodDays; } + /** + * For more details about TotalDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1403,6 +1479,10 @@ public static class TotalDetails extends StripeObject { @SerializedName("breakdown") Breakdown breakdown; + /** + * For more details about Breakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1415,6 +1495,10 @@ public static class Breakdown extends StripeObject { @SerializedName("taxes") List taxes; + /** + * For more details about Discount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1437,6 +1521,10 @@ public static class Discount extends StripeObject { com.stripe.model.Discount discount; } + /** + * For more details about Tax, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1477,6 +1565,10 @@ public static class Tax extends StripeObject { } } + /** + * For more details about TransferData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Refund.java b/src/main/java/com/stripe/model/Refund.java index 8faec099ae2..4435944a0f2 100644 --- a/src/main/java/com/stripe/model/Refund.java +++ b/src/main/java/com/stripe/model/Refund.java @@ -575,6 +575,10 @@ public Refund update(RefundUpdateParams params, RequestOptions options) throws S return getResponseGetter().request(request, Refund.class); } + /** + * For more details about DestinationDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -588,6 +592,9 @@ public static class DestinationDetails extends StripeObject { @SerializedName("alipay") Alipay alipay; + @SerializedName("alma") + Alma alma; + @SerializedName("amazon_pay") AmazonPay amazonPay; @@ -677,31 +684,64 @@ public static class DestinationDetails extends StripeObject { @SerializedName("zip") Zip zip; + /** + * For more details about Affirm, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Affirm extends StripeObject {} + /** + * For more details about AfterpayClearpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AfterpayClearpay extends StripeObject {} + /** + * For more details about Alipay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Alipay extends StripeObject {} + /** + * For more details about Alma, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Alma extends StripeObject {} + + /** + * For more details about AmazonPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmazonPay extends StripeObject {} + /** + * For more details about AuBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AuBankTransfer extends StripeObject {} + /** + * For more details about Blik, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -718,6 +758,10 @@ public static class Blik extends StripeObject { String referenceStatus; } + /** + * For more details about BrBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -734,6 +778,10 @@ public static class BrBankTransfer extends StripeObject { String referenceStatus; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -762,21 +810,37 @@ public static class Card extends StripeObject { String type; } + /** + * For more details about Cashapp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Cashapp extends StripeObject {} + /** + * For more details about CustomerCashBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class CustomerCashBalance extends StripeObject {} + /** + * For more details about Eps, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Eps extends StripeObject {} + /** + * For more details about EuBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -793,6 +857,10 @@ public static class EuBankTransfer extends StripeObject { String referenceStatus; } + /** + * For more details about GbBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -809,16 +877,28 @@ public static class GbBankTransfer extends StripeObject { String referenceStatus; } + /** + * For more details about Giropay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Giropay extends StripeObject {} + /** + * For more details about Grabpay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Grabpay extends StripeObject {} + /** + * For more details about JpBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -835,11 +915,19 @@ public static class JpBankTransfer extends StripeObject { String referenceStatus; } + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Klarna extends StripeObject {} + /** + * For more details about Multibanco, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -856,6 +944,10 @@ public static class Multibanco extends StripeObject { String referenceStatus; } + /** + * For more details about MxBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -872,6 +964,10 @@ public static class MxBankTransfer extends StripeObject { String referenceStatus; } + /** + * For more details about P24, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -888,31 +984,55 @@ public static class P24 extends StripeObject { String referenceStatus; } + /** + * For more details about Paynow, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Paynow extends StripeObject {} + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Paypal extends StripeObject {} + /** + * For more details about Pix, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Pix extends StripeObject {} + /** + * For more details about Revolut, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Revolut extends StripeObject {} + /** + * For more details about Sofort, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Sofort extends StripeObject {} + /** + * For more details about Swish, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -929,6 +1049,10 @@ public static class Swish extends StripeObject { String referenceStatus; } + /** + * For more details about ThBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -945,6 +1069,10 @@ public static class ThBankTransfer extends StripeObject { String referenceStatus; } + /** + * For more details about UsBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -961,22 +1089,33 @@ public static class UsBankTransfer extends StripeObject { String referenceStatus; } + /** + * For more details about WechatPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class WechatPay extends StripeObject {} + /** + * For more details about Zip, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Zip extends StripeObject {} } + /** + * For more details about NextAction, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class NextAction extends StripeObject { - /** Contains the refund details. */ @SerializedName("display_details") DisplayDetails displayDetails; @@ -984,6 +1123,10 @@ public static class NextAction extends StripeObject { @SerializedName("type") String type; + /** + * For more details about DisplayDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -995,6 +1138,10 @@ public static class DisplayDetails extends StripeObject { @SerializedName("expires_at") Long expiresAt; + /** + * For more details about EmailSent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Review.java b/src/main/java/com/stripe/model/Review.java index 12c07bfcd46..8dadc5dca6b 100644 --- a/src/main/java/com/stripe/model/Review.java +++ b/src/main/java/com/stripe/model/Review.java @@ -269,6 +269,10 @@ public static Review retrieve(String review, ReviewRetrieveParams params, Reques return getGlobalResponseGetter().request(request, Review.class); } + /** + * For more details about IpAddressLocation, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -294,6 +298,10 @@ public static class IpAddressLocation extends StripeObject { String region; } + /** + * For more details about Session, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/SetupAttempt.java b/src/main/java/com/stripe/model/SetupAttempt.java index a837cb0c493..91e7c0504c1 100644 --- a/src/main/java/com/stripe/model/SetupAttempt.java +++ b/src/main/java/com/stripe/model/SetupAttempt.java @@ -260,6 +260,10 @@ public static SetupAttemptCollection list(SetupAttemptListParams params, Request return getGlobalResponseGetter().request(request, SetupAttemptCollection.class); } + /** + * For more details about PaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -294,9 +298,15 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("ideal") Ideal ideal; + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + @SerializedName("klarna") Klarna klarna; + @SerializedName("kr_card") + KrCard krCard; + @SerializedName("link") Link link; @@ -323,26 +333,46 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about AcssDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AcssDebit extends StripeObject {} + /** + * For more details about AmazonPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmazonPay extends StripeObject {} + /** + * For more details about AuBecsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AuBecsDebit extends StripeObject {} + /** + * For more details about BacsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class BacsDebit extends StripeObject {} + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -436,11 +466,19 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) { } } + /** + * For more details about Boleto, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Boleto extends StripeObject {} + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -531,6 +569,10 @@ public static class Card extends StripeObject { @SerializedName("wallet") Wallet wallet; + /** + * For more details about Checks, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -557,6 +599,10 @@ public static class Checks extends StripeObject { String cvcCheck; } + /** + * For more details about ThreeDSecure, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -614,6 +660,10 @@ public static class ThreeDSecure extends StripeObject { String version; } + /** + * For more details about Wallet, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -632,11 +682,19 @@ public static class Wallet extends StripeObject { @SerializedName("type") String type; + /** + * For more details about ApplePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class ApplePay extends StripeObject {} + /** + * For more details about GooglePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -644,6 +702,10 @@ public static class GooglePay extends StripeObject {} } } + /** + * For more details about CardPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -677,6 +739,10 @@ public void setGeneratedCardObject(PaymentMethod expandableObject) { new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about Offline, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -695,11 +761,19 @@ public static class Offline extends StripeObject { } } + /** + * For more details about Cashapp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Cashapp extends StripeObject {} + /** + * For more details about Ideal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -794,31 +868,73 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) { } } + /** + * For more details about KakaoPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KakaoPay extends StripeObject {} + + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Klarna extends StripeObject {} + /** + * For more details about KrCard, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KrCard extends StripeObject {} + + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Link extends StripeObject {} + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Paypal extends StripeObject {} + /** + * For more details about RevolutPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class RevolutPay extends StripeObject {} + /** + * For more details about SepaDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class SepaDebit extends StripeObject {} + /** + * For more details about Sofort, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -912,6 +1028,10 @@ public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) { } } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java index 27c5e583943..b6b0301514c 100644 --- a/src/main/java/com/stripe/model/SetupIntent.java +++ b/src/main/java/com/stripe/model/SetupIntent.java @@ -818,6 +818,10 @@ public SetupIntent verifyMicrodeposits( return getResponseGetter().request(request, SetupIntent.class); } + /** + * For more details about AutomaticPaymentMethods, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -841,6 +845,10 @@ public static class AutomaticPaymentMethods extends StripeObject { Boolean enabled; } + /** + * For more details about NextAction, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -870,6 +878,10 @@ public static class NextAction extends StripeObject { @SerializedName("verify_with_microdeposits") VerifyWithMicrodeposits verifyWithMicrodeposits; + /** + * For more details about CashappHandleRedirectOrDisplayQrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -888,6 +900,10 @@ public static class CashappHandleRedirectOrDisplayQrCode extends StripeObject { @SerializedName("qr_code") QrCode qrCode; + /** + * For more details about QrCode, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -906,6 +922,10 @@ public static class QrCode extends StripeObject { } } + /** + * For more details about RedirectToUrl, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -922,6 +942,10 @@ public static class RedirectToUrl extends StripeObject { String url; } + /** + * For more details about VerifyWithMicrodeposits, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -948,6 +972,10 @@ public static class VerifyWithMicrodeposits extends StripeObject { } } + /** + * For more details about PaymentMethodConfigurationDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -962,6 +990,10 @@ public static class PaymentMethodConfigurationDetails extends StripeObject imple String parent; } + /** + * For more details about PaymentMethodOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -993,6 +1025,10 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about AcssDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1016,6 +1052,10 @@ public static class AcssDebit extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1053,11 +1093,19 @@ public static class MandateOptions extends StripeObject { } } + /** + * For more details about AmazonPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmazonPay extends StripeObject {} + /** + * For more details about BacsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1065,12 +1113,20 @@ public static class BacsDebit extends StripeObject { @SerializedName("mandate_options") MandateOptions mandateOptions; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class MandateOptions extends StripeObject {} } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1102,6 +1158,10 @@ public static class Card extends StripeObject { @SerializedName("request_three_d_secure") String requestThreeDSecure; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1173,11 +1233,19 @@ public static class MandateOptions extends StripeObject { } } + /** + * For more details about CardPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class CardPresent extends StripeObject {} + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1188,6 +1256,10 @@ public static class Link extends StripeObject { String persistentToken; } + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1200,6 +1272,10 @@ public static class Paypal extends StripeObject { String billingAgreementId; } + /** + * For more details about SepaDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1207,12 +1283,20 @@ public static class SepaDebit extends StripeObject { @SerializedName("mandate_options") MandateOptions mandateOptions; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class MandateOptions extends StripeObject {} } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1231,6 +1315,10 @@ public static class UsBankAccount extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about FinancialConnections, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1256,6 +1344,10 @@ public static class FinancialConnections extends StripeObject { @SerializedName("return_url") String returnUrl; + /** + * For more details about Filters, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1269,6 +1361,10 @@ public static class Filters extends StripeObject { } } + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/ShippingRate.java b/src/main/java/com/stripe/model/ShippingRate.java index 9ecc03070e4..109b4ddb9e3 100644 --- a/src/main/java/com/stripe/model/ShippingRate.java +++ b/src/main/java/com/stripe/model/ShippingRate.java @@ -266,6 +266,10 @@ public ShippingRate update(ShippingRateUpdateParams params, RequestOptions optio return getResponseGetter().request(request, ShippingRate.class); } + /** + * For more details about DeliveryEstimate, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -280,6 +284,10 @@ public static class DeliveryEstimate extends StripeObject { @SerializedName("minimum") Minimum minimum; + /** + * For more details about Maximum, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -297,6 +305,10 @@ public static class Maximum extends StripeObject { Long value; } + /** + * For more details about Minimum, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -315,6 +327,10 @@ public static class Minimum extends StripeObject { } } + /** + * For more details about FixedAmount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -339,6 +355,10 @@ public static class FixedAmount extends StripeObject { @SerializedName("currency_options") Map currencyOptions; + /** + * For more details about CurrencyOption, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Source.java b/src/main/java/com/stripe/model/Source.java index e61a4ac5d35..694bf9f64dd 100644 --- a/src/main/java/com/stripe/model/Source.java +++ b/src/main/java/com/stripe/model/Source.java @@ -476,6 +476,10 @@ public Source verify(SourceVerifyParams params, RequestOptions options) throws S return getResponseGetter().request(request, Source.class); } + /** + * For more details about AchCreditTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -505,6 +509,10 @@ public static class AchCreditTransfer extends StripeObject { String swiftCode; } + /** + * For more details about AchDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -528,6 +536,10 @@ public static class AchDebit extends StripeObject { String type; } + /** + * For more details about AcssDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -563,6 +575,10 @@ public static class AcssDebit extends StripeObject { String routingNumber; } + /** + * For more details about Alipay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -577,6 +593,10 @@ public static class Alipay extends StripeObject { String statementDescriptor; } + /** + * For more details about AuBecsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -591,6 +611,10 @@ public static class AuBecsDebit extends StripeObject { String last4; } + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -614,6 +638,10 @@ public static class Bancontact extends StripeObject { String statementDescriptor; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -670,6 +698,10 @@ public static class Card extends StripeObject { String tokenizationMethod; } + /** + * For more details about CardPresent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -753,6 +785,10 @@ public static class CardPresent extends StripeObject { String transactionStatusInformation; } + /** + * For more details about CodeVerification, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -773,6 +809,10 @@ public static class CodeVerification extends StripeObject { String status; } + /** + * For more details about Eps, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -784,6 +824,10 @@ public static class Eps extends StripeObject { String statementDescriptor; } + /** + * For more details about Giropay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -801,6 +845,10 @@ public static class Giropay extends StripeObject { String statementDescriptor; } + /** + * For more details about Ideal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -818,6 +866,10 @@ public static class Ideal extends StripeObject { String statementDescriptor; } + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -901,6 +953,10 @@ public static class Klarna extends StripeObject { String shippingLastName; } + /** + * For more details about Multibanco, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -936,6 +992,10 @@ public static class Multibanco extends StripeObject { String refundIban; } + /** + * For more details about Owner, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -989,6 +1049,10 @@ public static class Owner extends StripeObject { String verifiedPhone; } + /** + * For more details about P24, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -997,6 +1061,10 @@ public static class P24 extends StripeObject { String reference; } + /** + * For more details about Receiver, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1044,6 +1112,10 @@ public static class Receiver extends StripeObject { String refundAttributesStatus; } + /** + * For more details about Redirect, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1078,6 +1150,10 @@ public static class Redirect extends StripeObject { String url; } + /** + * For more details about SepaCreditTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1116,6 +1192,10 @@ public static class SepaCreditTransfer extends StripeObject { String refundIban; } + /** + * For more details about SepaDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1142,6 +1222,10 @@ public static class SepaDebit extends StripeObject { String mandateUrl; } + /** + * For more details about Sofort, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1168,6 +1252,10 @@ public static class Sofort extends StripeObject { String statementDescriptor; } + /** + * For more details about SourceOrder, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1198,6 +1286,10 @@ public static class SourceOrder extends StripeObject { @SerializedName("shipping") ShippingDetails shipping; + /** + * For more details about Item, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1234,6 +1326,10 @@ public static class Item extends StripeObject { } } + /** + * For more details about ThreeDSecure, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1299,6 +1395,10 @@ public static class ThreeDSecure extends StripeObject { String tokenizationMethod; } + /** + * For more details about Wechat, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/SourceMandateNotification.java b/src/main/java/com/stripe/model/SourceMandateNotification.java index c3cdaf5777a..92eda62925a 100644 --- a/src/main/java/com/stripe/model/SourceMandateNotification.java +++ b/src/main/java/com/stripe/model/SourceMandateNotification.java @@ -93,6 +93,10 @@ public class SourceMandateNotification extends StripeObject implements HasId { @SerializedName("type") String type; + /** + * For more details about AcssDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -102,6 +106,10 @@ public static class AcssDebit extends StripeObject { String statementDescriptor; } + /** + * For more details about BacsDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -111,6 +119,10 @@ public static class BacsDebit extends StripeObject { String last4; } + /** + * For more details about SepaDebit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/SourceTransaction.java b/src/main/java/com/stripe/model/SourceTransaction.java index 1b249b0f9ef..9d6a74069e8 100644 --- a/src/main/java/com/stripe/model/SourceTransaction.java +++ b/src/main/java/com/stripe/model/SourceTransaction.java @@ -90,6 +90,10 @@ public class SourceTransaction extends StripeObject implements HasId { @SerializedName("type") String type; + /** + * For more details about AchCreditTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -111,6 +115,10 @@ public static class AchCreditTransfer extends StripeObject { String routingNumber; } + /** + * For more details about ChfCreditTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -136,6 +144,10 @@ public static class ChfCreditTransfer extends StripeObject { String senderName; } + /** + * For more details about GbpCreditTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -176,6 +188,10 @@ public static class GbpCreditTransfer extends StripeObject { String senderSortCode; } + /** + * For more details about PaperCheck, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -192,6 +208,10 @@ public static class PaperCheck extends StripeObject { String invoices; } + /** + * For more details about SepaCreditTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index 3d0f489a9e2..40d8991bc6f 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -1268,6 +1268,10 @@ public Subscription update(SubscriptionUpdateParams params, RequestOptions optio return getResponseGetter().request(request, Subscription.class); } + /** + * For more details about AutomaticTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1284,6 +1288,10 @@ public static class AutomaticTax extends StripeObject { @SerializedName("liability") Liability liability; + /** + * For more details about Liability, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1322,6 +1330,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about BillingCycleAnchorConfig, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1347,6 +1359,10 @@ public static class BillingCycleAnchorConfig extends StripeObject { Long second; } + /** + * For more details about BillingThresholds, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1365,6 +1381,10 @@ public static class BillingThresholds extends StripeObject { Boolean resetBillingCycleAnchor; } + /** + * For more details about CancellationDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1397,6 +1417,10 @@ public static class CancellationDetails extends StripeObject { String reason; } + /** + * For more details about InvoiceSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1455,6 +1479,10 @@ public void setAccountTaxIdObjects(List objs) { : null; } + /** + * For more details about Issuer, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1513,6 +1541,10 @@ public static class PauseCollection extends StripeObject { Long resumesAt; } + /** + * For more details about PaymentSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1540,6 +1572,10 @@ public static class PaymentSettings extends StripeObject { @SerializedName("save_default_payment_method") String saveDefaultPaymentMethod; + /** + * For more details about PaymentMethodOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1593,6 +1629,10 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about AcssDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1608,6 +1648,10 @@ public static class AcssDebit extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1622,6 +1666,10 @@ public static class MandateOptions extends StripeObject { } } + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1636,6 +1684,10 @@ public static class Bancontact extends StripeObject { String preferredLanguage; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1665,6 +1717,10 @@ public static class Card extends StripeObject { @SerializedName("request_three_d_secure") String requestThreeDSecure; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1690,6 +1746,10 @@ public static class MandateOptions extends StripeObject { } } + /** + * For more details about CustomerBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1706,6 +1766,10 @@ public static class CustomerBalance extends StripeObject { @SerializedName("funding_type") String fundingType; + /** + * For more details about BankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1721,6 +1785,10 @@ public static class BankTransfer extends StripeObject { @SerializedName("type") String type; + /** + * For more details about EuBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1737,16 +1805,28 @@ public static class EuBankTransfer extends StripeObject { } } + /** + * For more details about Konbini, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Konbini extends StripeObject {} + /** + * For more details about SepaDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class SepaDebit extends StripeObject {} + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1762,6 +1842,10 @@ public static class UsBankAccount extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about FinancialConnections, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1780,6 +1864,10 @@ public static class FinancialConnections extends StripeObject { @SerializedName("prefetch") List prefetch; + /** + * For more details about Filters, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1796,6 +1884,10 @@ public static class Filters extends StripeObject { } } + /** + * For more details about PendingInvoiceItemInterval, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1866,6 +1958,10 @@ public static class PendingUpdate extends StripeObject { Boolean trialFromPlan; } + /** + * For more details about TransferData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/SubscriptionItem.java b/src/main/java/com/stripe/model/SubscriptionItem.java index 8be866f5923..eca2b92836c 100644 --- a/src/main/java/com/stripe/model/SubscriptionItem.java +++ b/src/main/java/com/stripe/model/SubscriptionItem.java @@ -473,6 +473,10 @@ public UsageRecordSummaryCollection usageRecordSummaries( return getResponseGetter().request(request, UsageRecordSummaryCollection.class); } + /** + * For more details about BillingThresholds, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/SubscriptionSchedule.java b/src/main/java/com/stripe/model/SubscriptionSchedule.java index b91a3b4fe76..0f223dd5da4 100644 --- a/src/main/java/com/stripe/model/SubscriptionSchedule.java +++ b/src/main/java/com/stripe/model/SubscriptionSchedule.java @@ -555,6 +555,10 @@ public SubscriptionSchedule update( return getResponseGetter().request(request, SubscriptionSchedule.class); } + /** + * For more details about CurrentPhase, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -568,6 +572,10 @@ public static class CurrentPhase extends StripeObject { Long startDate; } + /** + * For more details about DefaultSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -687,6 +695,10 @@ public void setOnBehalfOfObject(Account expandableObject) { this.onBehalfOf = new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about AutomaticTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -703,6 +715,10 @@ public static class AutomaticTax extends StripeObject { @SerializedName("liability") Liability liability; + /** + * For more details about Liability, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -741,6 +757,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about BillingThresholds, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -760,6 +780,10 @@ public static class BillingThresholds extends StripeObject { Boolean resetBillingCycleAnchor; } + /** + * For more details about InvoiceSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -826,6 +850,10 @@ public void setAccountTaxIdObjects(List objs) { : null; } + /** + * For more details about Issuer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -864,6 +892,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about TransferData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1164,6 +1196,10 @@ public void setPriceObject(Price expandableObject) { this.price = new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about Discount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1245,6 +1281,10 @@ public void setPromotionCodeObject(PromotionCode expandableObject) { } } + /** + * For more details about AutomaticTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1261,6 +1301,10 @@ public static class AutomaticTax extends StripeObject { @SerializedName("liability") Liability liability; + /** + * For more details about Liability, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1299,6 +1343,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about BillingThresholds, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1318,6 +1366,10 @@ public static class BillingThresholds extends StripeObject { Boolean resetBillingCycleAnchor; } + /** + * For more details about Discount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1398,6 +1450,10 @@ public void setPromotionCodeObject(PromotionCode expandableObject) { } } + /** + * For more details about InvoiceSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1468,6 +1524,10 @@ public void setAccountTaxIdObjects(List objs) { : null; } + /** + * For more details about Issuer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1592,6 +1652,10 @@ public void setPriceObject(Price expandableObject) { this.price = new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about BillingThresholds, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1601,6 +1665,10 @@ public static class BillingThresholds extends StripeObject { Long usageGte; } + /** + * For more details about Discount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1682,6 +1750,10 @@ public void setPromotionCodeObject(PromotionCode expandableObject) { } } + /** + * For more details about TransferData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/TaxId.java b/src/main/java/com/stripe/model/TaxId.java index 671b44bedb2..8ae108c649a 100644 --- a/src/main/java/com/stripe/model/TaxId.java +++ b/src/main/java/com/stripe/model/TaxId.java @@ -75,17 +75,18 @@ public class TaxId extends ApiResource implements HasId { /** * Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code ar_cuit}, {@code au_abn}, * {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code - * br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code - * ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, - * {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, - * {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code - * hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code - * is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code - * ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, - * {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, - * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, + * br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code + * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, + * {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, + * {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code + * ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code + * in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, + * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, + * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, * or {@code za_vat}. Note that some legacy tax IDs have type {@code unknown} */ @SerializedName("type") @@ -272,6 +273,10 @@ public static TaxId retrieve(String id, TaxIdRetrieveParams params, RequestOptio return getGlobalResponseGetter().request(request, TaxId.class); } + /** + * For more details about Owner, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -358,6 +363,10 @@ public void setCustomerObject(Customer expandableObject) { } } + /** + * For more details about Verification, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/TaxRate.java b/src/main/java/com/stripe/model/TaxRate.java index a3d8ec92d4b..2e2f6797c35 100644 --- a/src/main/java/com/stripe/model/TaxRate.java +++ b/src/main/java/com/stripe/model/TaxRate.java @@ -8,6 +8,7 @@ import com.stripe.net.ApiResource; import com.stripe.net.BaseAddress; import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; import com.stripe.param.TaxRateCreateParams; import com.stripe.param.TaxRateListParams; import com.stripe.param.TaxRateRetrieveParams; @@ -73,6 +74,14 @@ public class TaxRate extends ApiResource implements HasId, MetadataStoreOne of {@code flat_amount}, or {@code percentage}. + */ + @SerializedName("rate_type") + String rateType; + /** * ISO 3166-2 subdivision code, without * country prefix. For example, "NY" for New York, United States. @@ -141,8 +159,8 @@ public class TaxRate extends ApiResource implements HasId, MetadataStoreOne of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, {@code - * igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code rst}, {@code - * sales_tax}, or {@code vat}. + * igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code retail_delivery_fee}, + * {@code rst}, {@code sales_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; @@ -294,4 +312,33 @@ public TaxRate update(TaxRateUpdateParams params, RequestOptions options) throws options); return getResponseGetter().request(request, TaxRate.class); } + + /** + * The amount of the tax rate when the {@code rate_type`` is }flat_amount{@code . Tax rates with + * }rate_type{@code }percentage{@code can vary based on the transaction, resulting in this field + * being}null`. This field exposes the amount and currency of the flat tax rate. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FlatAmount extends StripeObject { + /** + * Amount of the tax when the {@code rate_type} is {@code flat_amount}. This positive integer + * represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 + * or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits + * (e.g., a value of 99999999 for a USD charge of $999,999.99). + */ + @SerializedName("amount") + Long amount; + + /** Three-letter ISO currency code, in lowercase. */ + @SerializedName("currency") + String currency; + } + + @Override + public void setResponseGetter(StripeResponseGetter responseGetter) { + super.setResponseGetter(responseGetter); + trySetResponseGetter(flatAmount, responseGetter); + } } diff --git a/src/main/java/com/stripe/model/Token.java b/src/main/java/com/stripe/model/Token.java index 61dfed70de6..c1814270bcd 100644 --- a/src/main/java/com/stripe/model/Token.java +++ b/src/main/java/com/stripe/model/Token.java @@ -101,8 +101,8 @@ public class Token extends ApiResource implements HasId { /** * Creates a single-use token that represents a bank account’s details. You can use this token - * with any API method in place of a bank account dictionary. You can only use this token once. To - * do so, attach it to a connected account + * with any v1 API method in place of a bank account dictionary. You can only use this token once. + * To do so, attach it to a connected account * where controller.requirement_collection * is {@code application}, which includes Custom accounts. @@ -113,8 +113,8 @@ public static Token create(Map params) throws StripeException { /** * Creates a single-use token that represents a bank account’s details. You can use this token - * with any API method in place of a bank account dictionary. You can only use this token once. To - * do so, attach it to a connected account + * with any v1 API method in place of a bank account dictionary. You can only use this token once. + * To do so, attach it to a connected account * where controller.requirement_collection * is {@code application}, which includes Custom accounts. @@ -129,8 +129,8 @@ public static Token create(Map params, RequestOptions options) /** * Creates a single-use token that represents a bank account’s details. You can use this token - * with any API method in place of a bank account dictionary. You can only use this token once. To - * do so, attach it to a connected account + * with any v1 API method in place of a bank account dictionary. You can only use this token once. + * To do so, attach it to a connected account * where controller.requirement_collection * is {@code application}, which includes Custom accounts. @@ -141,8 +141,8 @@ public static Token create(TokenCreateParams params) throws StripeException { /** * Creates a single-use token that represents a bank account’s details. You can use this token - * with any API method in place of a bank account dictionary. You can only use this token once. To - * do so, attach it to a connected account + * with any v1 API method in place of a bank account dictionary. You can only use this token once. + * To do so, attach it to a connected account * where controller.requirement_collection * is {@code application}, which includes Custom accounts. diff --git a/src/main/java/com/stripe/model/UsageRecordSummary.java b/src/main/java/com/stripe/model/UsageRecordSummary.java index 308b49b681d..c2f34322f2a 100644 --- a/src/main/java/com/stripe/model/UsageRecordSummary.java +++ b/src/main/java/com/stripe/model/UsageRecordSummary.java @@ -6,6 +6,10 @@ import lombok.Getter; import lombok.Setter; +/** + * A usage record summary represents an aggregated view of how much usage was accrued for a + * subscription item within a subscription billing period. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -45,6 +49,10 @@ public class UsageRecordSummary extends StripeObject implements HasId { @SerializedName("total_usage") Long totalUsage; + /** + * For more details about Period, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/apps/Secret.java b/src/main/java/com/stripe/model/apps/Secret.java index 369a88c4cfa..b2c6d4619c8 100644 --- a/src/main/java/com/stripe/model/apps/Secret.java +++ b/src/main/java/com/stripe/model/apps/Secret.java @@ -221,6 +221,10 @@ public static SecretCollection list(SecretListParams params, RequestOptions opti return getGlobalResponseGetter().request(request, SecretCollection.class); } + /** + * For more details about Scope, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/billing/Alert.java b/src/main/java/com/stripe/model/billing/Alert.java index d8c7f04fdb5..ca48a95d463 100644 --- a/src/main/java/com/stripe/model/billing/Alert.java +++ b/src/main/java/com/stripe/model/billing/Alert.java @@ -371,6 +371,10 @@ public void setMeterObject(Meter expandableObject) { this.meter = new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about Filter, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/billing/CreditBalanceSummary.java b/src/main/java/com/stripe/model/billing/CreditBalanceSummary.java index 5a6e5a2d0d8..304f355cb15 100644 --- a/src/main/java/com/stripe/model/billing/CreditBalanceSummary.java +++ b/src/main/java/com/stripe/model/billing/CreditBalanceSummary.java @@ -19,14 +19,14 @@ import lombok.Getter; import lombok.Setter; -/** Indicates the credit balance for credits granted to a customer. */ +/** Indicates the billing credit balance for billing credits granted to a customer. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public class CreditBalanceSummary extends ApiResource { /** - * The credit balances. One entry per credit grant currency. If a customer only has credit grants - * in a single currency, then this will have a single balance entry. + * The billing credit balances. One entry per credit grant currency. If a customer only has credit + * grants in a single currency, then this will have a single balance entry. */ @SerializedName("balances") List balances; @@ -104,6 +104,10 @@ public static CreditBalanceSummary retrieve( return getGlobalResponseGetter().request(request, CreditBalanceSummary.class); } + /** + * For more details about Balance, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -114,6 +118,10 @@ public static class Balance extends StripeObject { @SerializedName("ledger_balance") LedgerBalance ledgerBalance; + /** + * For more details about AvailableBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -123,13 +131,17 @@ public static class AvailableBalance extends StripeObject { Monetary monetary; /** - * The type of this amount. We currently only support {@code monetary} credits. + * The type of this amount. We currently only support {@code monetary} billing credits. * *

Equal to {@code monetary}. */ @SerializedName("type") String type; + /** + * For more details about Monetary, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -148,6 +160,10 @@ public static class Monetary extends StripeObject { } } + /** + * For more details about LedgerBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -157,13 +173,17 @@ public static class LedgerBalance extends StripeObject { Monetary monetary; /** - * The type of this amount. We currently only support {@code monetary} credits. + * The type of this amount. We currently only support {@code monetary} billing credits. * *

Equal to {@code monetary}. */ @SerializedName("type") String type; + /** + * For more details about Monetary, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java b/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java index 3fed5c315ce..fccbc2921fe 100644 --- a/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java +++ b/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java @@ -33,21 +33,21 @@ public class CreditBalanceTransaction extends ApiResource implements HasId { @SerializedName("created") Long created; - /** Credit details for this balance transaction. Only present if type is {@code credit}. */ + /** Credit details for this credit balance transaction. Only present if type is {@code credit}. */ @SerializedName("credit") Credit credit; - /** The credit grant associated with this balance transaction. */ + /** The credit grant associated with this credit balance transaction. */ @SerializedName("credit_grant") @Getter(lombok.AccessLevel.NONE) @Setter(lombok.AccessLevel.NONE) ExpandableField creditGrant; - /** Debit details for this balance transaction. Only present if type is {@code debit}. */ + /** Debit details for this credit balance transaction. Only present if type is {@code debit}. */ @SerializedName("debit") Debit debit; - /** The effective time of this balance transaction. */ + /** The effective time of this credit balance transaction. */ @SerializedName("effective_at") Long effectiveAt; @@ -78,7 +78,7 @@ public class CreditBalanceTransaction extends ApiResource implements HasId { ExpandableField testClock; /** - * The type of balance transaction (credit or debit). + * The type of credit balance transaction (credit or debit). * *

One of {@code credit}, or {@code debit}. */ @@ -195,6 +195,10 @@ public static CreditBalanceTransaction retrieve( return getGlobalResponseGetter().request(request, CreditBalanceTransaction.class); } + /** + * For more details about Credit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -210,6 +214,10 @@ public static class Credit extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Amount, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -219,13 +227,17 @@ public static class Amount extends StripeObject { Monetary monetary; /** - * The type of this amount. We currently only support {@code monetary} credits. + * The type of this amount. We currently only support {@code monetary} billing credits. * *

Equal to {@code monetary}. */ @SerializedName("type") String type; + /** + * For more details about Monetary, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -245,6 +257,10 @@ public static class Monetary extends StripeObject { } } + /** + * For more details about Debit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -253,8 +269,8 @@ public static class Debit extends StripeObject { Amount amount; /** - * Details of how the credits were applied to an invoice. Only present if {@code type} is {@code - * credits_applied}. + * Details of how the billing credits were applied to an invoice. Only present if {@code type} + * is {@code credits_applied}. */ @SerializedName("credits_applied") CreditsApplied creditsApplied; @@ -267,6 +283,10 @@ public static class Debit extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Amount, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -276,13 +296,17 @@ public static class Amount extends StripeObject { Monetary monetary; /** - * The type of this amount. We currently only support {@code monetary} credits. + * The type of this amount. We currently only support {@code monetary} billing credits. * *

Equal to {@code monetary}. */ @SerializedName("type") String type; + /** + * For more details about Monetary, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -301,17 +325,21 @@ public static class Monetary extends StripeObject { } } + /** + * For more details about CreditsApplied, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class CreditsApplied extends StripeObject { - /** The invoice to which the credits were applied. */ + /** The invoice to which the billing credits were applied. */ @SerializedName("invoice") @Getter(lombok.AccessLevel.NONE) @Setter(lombok.AccessLevel.NONE) ExpandableField invoice; - /** The invoice line item to which the credits were applied. */ + /** The invoice line item to which the billing credits were applied. */ @SerializedName("invoice_line_item") String invoiceLineItem; diff --git a/src/main/java/com/stripe/model/billing/CreditGrant.java b/src/main/java/com/stripe/model/billing/CreditGrant.java index 183537ad1ad..64563a07182 100644 --- a/src/main/java/com/stripe/model/billing/CreditGrant.java +++ b/src/main/java/com/stripe/model/billing/CreditGrant.java @@ -26,7 +26,14 @@ import lombok.Getter; import lombok.Setter; -/** A credit grant is a resource that records a grant of some credit to a customer. */ +/** + * A credit grant is an API resource that documents the allocation of some billing credits to a + * customer. + * + *

Related guide: Billing + * credits end + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -38,7 +45,8 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStoreOne of {@code paid}, or {@code promotional}. */ @@ -49,17 +57,20 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStore customer; - /** The time when the credit becomes effective i.e when it is eligible to be used. */ + /** The time when the billing credits become effective i.e when they are eligible to be used. */ @SerializedName("effective_at") Long effectiveAt; - /** The time when the credit will expire. If not present, the credit will never expire. */ + /** + * The time when the billing credits will expire. If not present, the billing credits will never + * expire. + */ @SerializedName("expires_at") Long expiresAt; @@ -84,7 +95,7 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStore metadata; - /** A descriptive name shown in dashboard and on invoices. */ + /** A descriptive name shown in dashboard. */ @SerializedName("name") String name; @@ -381,6 +392,10 @@ public CreditGrant voidGrant(CreditGrantVoidGrantParams params, RequestOptions o return getResponseGetter().request(request, CreditGrant.class); } + /** + * For more details about Amount, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -390,13 +405,17 @@ public static class Amount extends StripeObject { Monetary monetary; /** - * The type of this amount. We currently only support {@code monetary} credits. + * The type of this amount. We currently only support {@code monetary} billing credits. * *

Equal to {@code monetary}. */ @SerializedName("type") String type; + /** + * For more details about Monetary, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -415,6 +434,10 @@ public static class Monetary extends StripeObject { } } + /** + * For more details about ApplicabilityConfig, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -422,13 +445,18 @@ public static class ApplicabilityConfig extends StripeObject { @SerializedName("scope") Scope scope; + /** + * For more details about Scope, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Scope extends StripeObject { /** * The price type to which credit grants can apply to. We currently only support {@code - * metered} price type. + * metered} price type. This refers to prices that have a Billing Meter attached to them. * *

Equal to {@code metered}. */ diff --git a/src/main/java/com/stripe/model/billing/Meter.java b/src/main/java/com/stripe/model/billing/Meter.java index cea7e1dbb7d..7397d804146 100644 --- a/src/main/java/com/stripe/model/billing/Meter.java +++ b/src/main/java/com/stripe/model/billing/Meter.java @@ -28,6 +28,9 @@ * you might create a billing meter to track the number of API calls made by a particular user. You * can then attach the billing meter to a price and attach the price to a subscription to charge the * user for the number of API calls they make. + * + *

Related guide: Usage based + * billing */ @Getter @Setter @@ -366,6 +369,10 @@ public Meter update(MeterUpdateParams params, RequestOptions options) throws Str return getResponseGetter().request(request, Meter.class); } + /** + * For more details about CustomerMapping, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -383,6 +390,10 @@ public static class CustomerMapping extends StripeObject { String type; } + /** + * For more details about DefaultAggregation, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -396,6 +407,10 @@ public static class DefaultAggregation extends StripeObject { String formula; } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -405,6 +420,10 @@ public static class StatusTransitions extends StripeObject { Long deactivatedAt; } + /** + * For more details about ValueSettings, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/billing/MeterEventAdjustment.java b/src/main/java/com/stripe/model/billing/MeterEventAdjustment.java index ea5931997f3..80258d96bf5 100644 --- a/src/main/java/com/stripe/model/billing/MeterEventAdjustment.java +++ b/src/main/java/com/stripe/model/billing/MeterEventAdjustment.java @@ -100,6 +100,10 @@ public static MeterEventAdjustment create( return getGlobalResponseGetter().request(request, MeterEventAdjustment.class); } + /** + * For more details about Cancel, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/billingportal/Configuration.java b/src/main/java/com/stripe/model/billingportal/Configuration.java index 8453235752c..954b2ea235c 100644 --- a/src/main/java/com/stripe/model/billingportal/Configuration.java +++ b/src/main/java/com/stripe/model/billingportal/Configuration.java @@ -270,6 +270,10 @@ public Configuration update(ConfigurationUpdateParams params, RequestOptions opt return getResponseGetter().request(request, Configuration.class); } + /** + * For more details about BusinessProfile, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -287,6 +291,10 @@ public static class BusinessProfile extends StripeObject { String termsOfServiceUrl; } + /** + * For more details about Features, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -306,6 +314,10 @@ public static class Features extends StripeObject { @SerializedName("subscription_update") SubscriptionUpdate subscriptionUpdate; + /** + * For more details about CustomerUpdate, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -321,6 +333,10 @@ public static class CustomerUpdate extends StripeObject { Boolean enabled; } + /** + * For more details about InvoiceHistory, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -330,6 +346,10 @@ public static class InvoiceHistory extends StripeObject { Boolean enabled; } + /** + * For more details about PaymentMethodUpdate, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -339,6 +359,10 @@ public static class PaymentMethodUpdate extends StripeObject { Boolean enabled; } + /** + * For more details about SubscriptionCancel, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -367,6 +391,10 @@ public static class SubscriptionCancel extends StripeObject { @SerializedName("proration_behavior") String prorationBehavior; + /** + * For more details about CancellationReason, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -381,6 +409,10 @@ public static class CancellationReason extends StripeObject { } } + /** + * For more details about SubscriptionUpdate, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -410,6 +442,13 @@ public static class SubscriptionUpdate extends StripeObject { @SerializedName("proration_behavior") String prorationBehavior; + @SerializedName("schedule_at_period_end") + ScheduleAtPeriodEnd scheduleAtPeriodEnd; + + /** + * For more details about Product, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -422,9 +461,46 @@ public static class Product extends StripeObject { @SerializedName("product") String product; } + + /** + * For more details about ScheduleAtPeriodEnd, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class ScheduleAtPeriodEnd extends StripeObject { + /** + * List of conditions. When any condition is true, an update will be scheduled at the end of + * the current period. + */ + @SerializedName("conditions") + List conditions; + + /** + * For more details about Condition, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Condition extends StripeObject { + /** + * The type of condition. + * + *

One of {@code decreasing_item_amount}, or {@code shortening_interval}. + */ + @SerializedName("type") + String type; + } + } } } + /** + * For more details about LoginPage, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/billingportal/Session.java b/src/main/java/com/stripe/model/billingportal/Session.java index 4f481f02862..767179a0877 100644 --- a/src/main/java/com/stripe/model/billingportal/Session.java +++ b/src/main/java/com/stripe/model/billingportal/Session.java @@ -171,6 +171,10 @@ public static Session create(SessionCreateParams params, RequestOptions options) return getGlobalResponseGetter().request(request, Session.class); } + /** + * For more details about Flow, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -199,6 +203,10 @@ public static class Flow extends StripeObject { @SerializedName("type") String type; + /** + * For more details about AfterCompletion, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -219,6 +227,10 @@ public static class AfterCompletion extends StripeObject { @SerializedName("type") String type; + /** + * For more details about HostedConfirmation, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -228,6 +240,10 @@ public static class HostedConfirmation extends StripeObject { String customMessage; } + /** + * For more details about Redirect, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -238,6 +254,10 @@ public static class Redirect extends StripeObject { } } + /** + * For more details about SubscriptionCancel, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -250,6 +270,10 @@ public static class SubscriptionCancel extends StripeObject { @SerializedName("subscription") String subscription; + /** + * For more details about Retention, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -266,6 +290,10 @@ public static class Retention extends StripeObject { @SerializedName("type") String type; + /** + * For more details about CouponOffer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -277,6 +305,10 @@ public static class CouponOffer extends StripeObject { } } + /** + * For more details about SubscriptionUpdate, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -286,6 +318,10 @@ public static class SubscriptionUpdate extends StripeObject { String subscription; } + /** + * For more details about SubscriptionUpdateConfirm, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -309,6 +345,10 @@ public static class SubscriptionUpdateConfirm extends StripeObject { @SerializedName("subscription") String subscription; + /** + * For more details about Discount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -322,6 +362,10 @@ public static class Discount extends StripeObject { String promotionCode; } + /** + * For more details about Item, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 71734f50d4d..1747e2e5db5 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -795,6 +795,10 @@ public Session update(SessionUpdateParams params, RequestOptions options) throws return getResponseGetter().request(request, Session.class); } + /** + * For more details about AfterExpiration, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -803,6 +807,10 @@ public static class AfterExpiration extends StripeObject { @SerializedName("recovery") Recovery recovery; + /** + * For more details about Recovery, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -835,6 +843,10 @@ public static class Recovery extends StripeObject { } } + /** + * For more details about AutomaticTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -859,6 +871,10 @@ public static class AutomaticTax extends StripeObject { @SerializedName("status") String status; + /** + * For more details about Liability, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -897,6 +913,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about Consent, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -920,6 +940,10 @@ public static class Consent extends StripeObject { String termsOfService; } + /** + * For more details about ConsentCollection, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -950,6 +974,10 @@ public static class ConsentCollection extends StripeObject { @SerializedName("terms_of_service") String termsOfService; + /** + * For more details about PaymentMethodReuseAgreement, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -968,6 +996,10 @@ public static class PaymentMethodReuseAgreement extends StripeObject { } } + /** + * For more details about CurrencyConversion, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -989,6 +1021,10 @@ public static class CurrencyConversion extends StripeObject { String sourceCurrency; } + /** + * For more details about CustomField, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1027,6 +1063,10 @@ public static class CustomField extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Dropdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1043,6 +1083,10 @@ public static class Dropdown extends StripeObject { @SerializedName("value") String value; + /** + * For more details about Option, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1061,6 +1105,10 @@ public static class Option extends StripeObject { } } + /** + * For more details about Label, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1078,6 +1126,10 @@ public static class Label extends StripeObject { String type; } + /** + * For more details about Numeric, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1099,6 +1151,10 @@ public static class Numeric extends StripeObject { String value; } + /** + * For more details about Text, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1121,6 +1177,10 @@ public static class Text extends StripeObject { } } + /** + * For more details about CustomText, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1143,6 +1203,10 @@ public static class CustomText extends StripeObject { @SerializedName("terms_of_service_acceptance") TermsOfServiceAcceptance termsOfServiceAcceptance; + /** + * For more details about AfterSubmit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1152,6 +1216,10 @@ public static class AfterSubmit extends StripeObject { String message; } + /** + * For more details about ShippingAddress, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1161,6 +1229,10 @@ public static class ShippingAddress extends StripeObject { String message; } + /** + * For more details about Submit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1170,6 +1242,10 @@ public static class Submit extends StripeObject { String message; } + /** + * For more details about TermsOfServiceAcceptance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1180,6 +1256,10 @@ public static class TermsOfServiceAcceptance extends StripeObject { } } + /** + * For more details about CustomerDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1223,6 +1303,10 @@ public static class CustomerDetails extends StripeObject { @SerializedName("tax_ids") List taxIds; + /** + * For more details about TaxId, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1241,8 +1325,9 @@ public static class TaxId extends StripeObject { * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, - * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code - * unknown}. + * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code + * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or + * {@code unknown}. */ @SerializedName("type") String type; @@ -1253,6 +1338,10 @@ public static class TaxId extends StripeObject { } } + /** + * For more details about InvoiceCreation, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1264,6 +1353,10 @@ public static class InvoiceCreation extends StripeObject { @SerializedName("invoice_data") InvoiceData invoiceData; + /** + * For more details about InvoiceData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1347,6 +1440,10 @@ public void setAccountTaxIdObjects(List objs) { : null; } + /** + * For more details about CustomField, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1360,6 +1457,10 @@ public static class CustomField extends StripeObject { String value; } + /** + * For more details about Issuer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1397,6 +1498,10 @@ public void setAccountObject(Account expandableObject) { } } + /** + * For more details about RenderingOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1410,6 +1515,10 @@ public static class RenderingOptions extends StripeObject { } } + /** + * For more details about PaymentMethodConfigurationDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1424,6 +1533,10 @@ public static class PaymentMethodConfigurationDetails extends StripeObject imple String parent; } + /** + * For more details about PaymentMethodOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1479,12 +1592,18 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("ideal") Ideal ideal; + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + @SerializedName("klarna") Klarna klarna; @SerializedName("konbini") Konbini konbini; + @SerializedName("kr_card") + KrCard krCard; + @SerializedName("link") Link link; @@ -1494,12 +1613,18 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("multibanco") Multibanco multibanco; + @SerializedName("naver_pay") + NaverPay naverPay; + @SerializedName("oxxo") Oxxo oxxo; @SerializedName("p24") P24 p24; + @SerializedName("payco") + Payco payco; + @SerializedName("paynow") Paynow paynow; @@ -1512,6 +1637,9 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("revolut_pay") RevolutPay revolutPay; + @SerializedName("samsung_pay") + SamsungPay samsungPay; + @SerializedName("sepa_debit") SepaDebit sepaDebit; @@ -1524,6 +1652,10 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about AcssDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1571,6 +1703,10 @@ public static class AcssDebit extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about MandateOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1611,6 +1747,10 @@ public static class MandateOptions extends StripeObject { } } + /** + * For more details about Affirm, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1640,6 +1780,10 @@ public static class Affirm extends StripeObject { String setupFutureUsage; } + /** + * For more details about AfterpayClearpay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1669,6 +1813,10 @@ public static class AfterpayClearpay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Alipay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1698,6 +1846,10 @@ public static class Alipay extends StripeObject { String setupFutureUsage; } + /** + * For more details about AmazonPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1727,6 +1879,10 @@ public static class AmazonPay extends StripeObject { String setupFutureUsage; } + /** + * For more details about AuBecsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1756,6 +1912,10 @@ public static class AuBecsDebit extends StripeObject { String setupFutureUsage; } + /** + * For more details about BacsDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1785,6 +1945,10 @@ public static class BacsDebit extends StripeObject { String setupFutureUsage; } + /** + * For more details about Bancontact, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1814,6 +1978,10 @@ public static class Bancontact extends StripeObject { String setupFutureUsage; } + /** + * For more details about Boleto, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1851,6 +2019,10 @@ public static class Boleto extends StripeObject { String setupFutureUsage; } + /** + * For more details about Card, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1918,6 +2090,10 @@ public static class Card extends StripeObject { @SerializedName("statement_descriptor_suffix_kanji") String statementDescriptorSuffixKanji; + /** + * For more details about Installments, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1928,6 +2104,10 @@ public static class Installments extends StripeObject { } } + /** + * For more details about Cashapp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1957,6 +2137,10 @@ public static class Cashapp extends StripeObject { String setupFutureUsage; } + /** + * For more details about CustomerBalance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1997,6 +2181,10 @@ public static class CustomerBalance extends StripeObject { @SerializedName("setup_future_usage") String setupFutureUsage; + /** + * For more details about BankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2025,6 +2213,10 @@ public static class BankTransfer extends StripeObject { @SerializedName("type") String type; + /** + * For more details about EuBankTransfer, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2041,6 +2233,10 @@ public static class EuBankTransfer extends StripeObject { } } + /** + * For more details about Eps, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2070,6 +2266,10 @@ public static class Eps extends StripeObject { String setupFutureUsage; } + /** + * For more details about Fpx, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2099,6 +2299,10 @@ public static class Fpx extends StripeObject { String setupFutureUsage; } + /** + * For more details about Giropay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2128,6 +2332,10 @@ public static class Giropay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Grabpay, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2157,6 +2365,10 @@ public static class Grabpay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Ideal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2186,6 +2398,51 @@ public static class Ideal extends StripeObject { String setupFutureUsage; } + /** + * For more details about KakaoPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KakaoPay extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + * + *

One of {@code none}, or {@code off_session}. + */ + @SerializedName("setup_future_usage") + String setupFutureUsage; + } + + /** + * For more details about Klarna, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2215,6 +2472,10 @@ public static class Klarna extends StripeObject { String setupFutureUsage; } + /** + * For more details about Konbini, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2253,6 +2514,51 @@ public static class Konbini extends StripeObject { String setupFutureUsage; } + /** + * For more details about KrCard, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class KrCard extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + * + *

One of {@code none}, or {@code off_session}. + */ + @SerializedName("setup_future_usage") + String setupFutureUsage; + } + + /** + * For more details about Link, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2282,6 +2588,10 @@ public static class Link extends StripeObject { String setupFutureUsage; } + /** + * For more details about Mobilepay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2311,6 +2621,10 @@ public static class Mobilepay extends StripeObject { String setupFutureUsage; } + /** + * For more details about Multibanco, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2340,6 +2654,27 @@ public static class Multibanco extends StripeObject { String setupFutureUsage; } + /** + * For more details about NaverPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class NaverPay extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + } + + /** + * For more details about Oxxo, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2377,6 +2712,10 @@ public static class Oxxo extends StripeObject { String setupFutureUsage; } + /** + * For more details about P24, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2406,6 +2745,27 @@ public static class P24 extends StripeObject { String setupFutureUsage; } + /** + * For more details about Payco, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Payco extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + } + + /** + * For more details about Paynow, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2435,6 +2795,10 @@ public static class Paynow extends StripeObject { String setupFutureUsage; } + /** + * For more details about Paypal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2484,6 +2848,10 @@ public static class Paypal extends StripeObject { String setupFutureUsage; } + /** + * For more details about Pix, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2493,6 +2861,10 @@ public static class Pix extends StripeObject { Long expiresAfterSeconds; } + /** + * For more details about RevolutPay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2522,6 +2894,27 @@ public static class RevolutPay extends StripeObject { String setupFutureUsage; } + /** + * For more details about SamsungPay, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class SamsungPay extends StripeObject { + /** + * Controls when the funds will be captured from the customer's account. + * + *

Equal to {@code manual}. + */ + @SerializedName("capture_method") + String captureMethod; + } + + /** + * For more details about SepaDebit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2551,6 +2944,10 @@ public static class SepaDebit extends StripeObject { String setupFutureUsage; } + /** + * For more details about Sofort, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2580,6 +2977,10 @@ public static class Sofort extends StripeObject { String setupFutureUsage; } + /** + * For more details about Swish, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2592,6 +2993,10 @@ public static class Swish extends StripeObject { String reference; } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2631,6 +3036,10 @@ public static class UsBankAccount extends StripeObject { @SerializedName("verification_method") String verificationMethod; + /** + * For more details about FinancialConnections, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2656,6 +3065,10 @@ public static class FinancialConnections extends StripeObject { @SerializedName("return_url") String returnUrl; + /** + * For more details about Filters, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2671,6 +3084,10 @@ public static class Filters extends StripeObject { } } + /** + * For more details about PhoneNumberCollection, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2680,6 +3097,10 @@ public static class PhoneNumberCollection extends StripeObject { Boolean enabled; } + /** + * For more details about SavedPaymentMethodOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2711,6 +3132,10 @@ public static class SavedPaymentMethodOptions extends StripeObject { String paymentMethodSave; } + /** + * For more details about ShippingAddressCollection, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2724,6 +3149,10 @@ public static class ShippingAddressCollection extends StripeObject { List allowedCountries; } + /** + * For more details about ShippingCost, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2769,6 +3198,10 @@ public void setShippingRateObject(ShippingRate expandableObject) { new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about Tax, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2808,6 +3241,10 @@ public static class Tax extends StripeObject { } } + /** + * For more details about ShippingOption, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2842,6 +3279,10 @@ public void setShippingRateObject(ShippingRate expandableObject) { } } + /** + * For more details about TaxIdCollection, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2859,6 +3300,10 @@ public static class TaxIdCollection extends StripeObject { String required; } + /** + * For more details about TotalDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2878,6 +3323,10 @@ public static class TotalDetails extends StripeObject { @SerializedName("breakdown") Breakdown breakdown; + /** + * For more details about Breakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2890,6 +3339,10 @@ public static class Breakdown extends StripeObject { @SerializedName("taxes") List taxes; + /** + * For more details about Discount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2912,6 +3365,10 @@ public static class Discount extends StripeObject { com.stripe.model.Discount discount; } + /** + * For more details about Tax, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/climate/Order.java b/src/main/java/com/stripe/model/climate/Order.java index 8c4f23d425d..0810b2d9b01 100644 --- a/src/main/java/com/stripe/model/climate/Order.java +++ b/src/main/java/com/stripe/model/climate/Order.java @@ -414,6 +414,10 @@ public Order update(OrderUpdateParams params, RequestOptions options) throws Str return getResponseGetter().request(request, Order.class); } + /** + * For more details about Beneficiary, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -448,6 +452,10 @@ public static class DeliveryDetail extends StripeObject { @SerializedName("supplier") Supplier supplier; + /** + * For more details about Location, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/climate/Product.java b/src/main/java/com/stripe/model/climate/Product.java index ce9ce6d82da..09ab4dd8ca3 100644 --- a/src/main/java/com/stripe/model/climate/Product.java +++ b/src/main/java/com/stripe/model/climate/Product.java @@ -144,6 +144,10 @@ public static Product retrieve( return getGlobalResponseGetter().request(request, Product.class); } + /** + * For more details about CurrentPricesPerMetricTon, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/climate/Supplier.java b/src/main/java/com/stripe/model/climate/Supplier.java index 6dcbb3bb84a..c83382ccbf1 100644 --- a/src/main/java/com/stripe/model/climate/Supplier.java +++ b/src/main/java/com/stripe/model/climate/Supplier.java @@ -134,6 +134,10 @@ public static Supplier retrieve( return getGlobalResponseGetter().request(request, Supplier.class); } + /** + * For more details about Location, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/financialconnections/Account.java b/src/main/java/com/stripe/model/financialconnections/Account.java index a7923e6d21f..3e79be1330e 100644 --- a/src/main/java/com/stripe/model/financialconnections/Account.java +++ b/src/main/java/com/stripe/model/financialconnections/Account.java @@ -503,6 +503,10 @@ public com.stripe.model.financialconnections.Account unsubscribe( .request(request, com.stripe.model.financialconnections.Account.class); } + /** + * For more details about AccountHolder, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -571,6 +575,10 @@ public void setCustomerObject(Customer expandableObject) { } } + /** + * For more details about Balance, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -610,6 +618,10 @@ public static class Balance extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Cash, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -629,6 +641,10 @@ public static class Cash extends StripeObject { Map available; } + /** + * For more details about Credit, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -648,6 +664,10 @@ public static class Credit extends StripeObject { } } + /** + * For more details about BalanceRefresh, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -675,6 +695,10 @@ public static class BalanceRefresh extends StripeObject { String status; } + /** + * For more details about OwnershipRefresh, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -702,6 +726,10 @@ public static class OwnershipRefresh extends StripeObject { String status; } + /** + * For more details about TransactionRefresh, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/financialconnections/Session.java b/src/main/java/com/stripe/model/financialconnections/Session.java index 28dab6cf42a..70a4d58357d 100644 --- a/src/main/java/com/stripe/model/financialconnections/Session.java +++ b/src/main/java/com/stripe/model/financialconnections/Session.java @@ -162,6 +162,10 @@ public static Session retrieve( return getGlobalResponseGetter().request(request, Session.class); } + /** + * For more details about AccountHolder, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -229,6 +233,10 @@ public void setCustomerObject(Customer expandableObject) { } } + /** + * For more details about Filters, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/financialconnections/Transaction.java b/src/main/java/com/stripe/model/financialconnections/Transaction.java index 9b99ae11712..0a32c7602cf 100644 --- a/src/main/java/com/stripe/model/financialconnections/Transaction.java +++ b/src/main/java/com/stripe/model/financialconnections/Transaction.java @@ -162,6 +162,10 @@ public static Transaction retrieve( return getGlobalResponseGetter().request(request, Transaction.class); } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/forwarding/Request.java b/src/main/java/com/stripe/model/forwarding/Request.java index 2268a0c2b8c..da156f4c7e6 100644 --- a/src/main/java/com/stripe/model/forwarding/Request.java +++ b/src/main/java/com/stripe/model/forwarding/Request.java @@ -59,6 +59,14 @@ public class Request extends ApiResource implements HasId { @SerializedName("livemode") Boolean livemode; + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. + */ + @SerializedName("metadata") + Map metadata; + /** * String representing the object's type. Objects of the same type share the same value. * diff --git a/src/main/java/com/stripe/model/identity/VerificationReport.java b/src/main/java/com/stripe/model/identity/VerificationReport.java index f6c479c389a..ebc14e94857 100644 --- a/src/main/java/com/stripe/model/identity/VerificationReport.java +++ b/src/main/java/com/stripe/model/identity/VerificationReport.java @@ -266,6 +266,10 @@ public static class Dob extends StripeObject { Long year; } + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -345,6 +349,10 @@ public static class Email extends StripeObject { @SerializedName("status") String status; + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -427,6 +435,10 @@ public static class Dob extends StripeObject { Long year; } + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -449,6 +461,10 @@ public static class Errors extends StripeObject { } } + /** + * For more details about Options, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -459,6 +475,10 @@ public static class Options extends StripeObject { @SerializedName("id_number") IdNumber idNumber; + /** + * For more details about Document, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -496,6 +516,10 @@ public static class Document extends StripeObject { Boolean requireMatchingSelfie; } + /** + * For more details about IdNumber, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -523,6 +547,10 @@ public static class Phone extends StripeObject { @SerializedName("status") String status; + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -575,6 +603,10 @@ public static class Selfie extends StripeObject { @SerializedName("status") String status; + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/identity/VerificationSession.java b/src/main/java/com/stripe/model/identity/VerificationSession.java index 8cf7102f532..54c1da3c2d7 100644 --- a/src/main/java/com/stripe/model/identity/VerificationSession.java +++ b/src/main/java/com/stripe/model/identity/VerificationSession.java @@ -700,6 +700,10 @@ public static class LastError extends StripeObject { String reason; } + /** + * For more details about Options, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -716,6 +720,10 @@ public static class Options extends StripeObject { @SerializedName("phone") Phone phone; + /** + * For more details about Document, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -753,6 +761,10 @@ public static class Document extends StripeObject { Boolean requireMatchingSelfie; } + /** + * For more details about Email, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -762,11 +774,19 @@ public static class Email extends StripeObject { Boolean requireVerification; } + /** + * For more details about IdNumber, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class IdNumber extends StripeObject {} + /** + * For more details about Phone, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -777,6 +797,10 @@ public static class Phone extends StripeObject { } } + /** + * For more details about ProvidedDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -790,6 +814,10 @@ public static class ProvidedDetails extends StripeObject { String phone; } + /** + * For more details about Redaction, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -803,6 +831,10 @@ public static class Redaction extends StripeObject { String status; } + /** + * For more details about VerifiedOutputs, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java index 4dfc1614565..8c9da51055c 100644 --- a/src/main/java/com/stripe/model/issuing/Authorization.java +++ b/src/main/java/com/stripe/model/issuing/Authorization.java @@ -595,6 +595,10 @@ public Authorization update(AuthorizationUpdateParams params, RequestOptions opt return getResponseGetter().request(request, Authorization.class); } + /** + * For more details about AmountDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -608,6 +612,10 @@ public static class AmountDetails extends StripeObject { Long cashbackAmount; } + /** + * For more details about Fleet, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -645,6 +653,10 @@ public static class Fleet extends StripeObject { @SerializedName("service_type") String serviceType; + /** + * For more details about CardholderPromptData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -682,6 +694,10 @@ public static class CardholderPromptData extends StripeObject { String vehicleNumber; } + /** + * For more details about ReportedBreakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -698,6 +714,10 @@ public static class ReportedBreakdown extends StripeObject { @SerializedName("tax") Tax tax; + /** + * For more details about Fuel, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -710,6 +730,10 @@ public static class Fuel extends StripeObject { BigDecimal grossAmountDecimal; } + /** + * For more details about NonFuel, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -721,6 +745,10 @@ public static class NonFuel extends StripeObject { BigDecimal grossAmountDecimal; } + /** + * For more details about Tax, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -742,6 +770,10 @@ public static class Tax extends StripeObject { } } + /** + * For more details about Fuel, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -786,6 +818,10 @@ public static class Fuel extends StripeObject { BigDecimal unitCostDecimal; } + /** + * For more details about MerchantData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -838,6 +874,10 @@ public static class MerchantData extends StripeObject { String url; } + /** + * For more details about NetworkData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -864,6 +904,10 @@ public static class NetworkData extends StripeObject { String transactionId; } + /** + * For more details about PendingRequest, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -920,6 +964,10 @@ public static class PendingRequest extends StripeObject { @SerializedName("network_risk_score") Long networkRiskScore; + /** + * For more details about AmountDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -934,6 +982,10 @@ public static class AmountDetails extends StripeObject { } } + /** + * For more details about RequestHistory, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1035,6 +1087,10 @@ public static class RequestHistory extends StripeObject { @SerializedName("requested_at") Long requestedAt; + /** + * For more details about AmountDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1049,6 +1105,10 @@ public static class AmountDetails extends StripeObject { } } + /** + * For more details about Treasury, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1077,6 +1137,10 @@ public static class Treasury extends StripeObject { String transaction; } + /** + * For more details about VerificationData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1127,6 +1191,10 @@ public static class VerificationData extends StripeObject { @SerializedName("three_d_secure") ThreeDSecure threeDSecure; + /** + * For more details about AuthenticationExemption, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1149,6 +1217,10 @@ public static class AuthenticationExemption extends StripeObject { String type; } + /** + * For more details about ThreeDSecure, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/issuing/Card.java b/src/main/java/com/stripe/model/issuing/Card.java index f2d347c7c5c..1a0a8afac24 100644 --- a/src/main/java/com/stripe/model/issuing/Card.java +++ b/src/main/java/com/stripe/model/issuing/Card.java @@ -21,6 +21,7 @@ import com.stripe.param.issuing.CardRetrieveParams; import com.stripe.param.issuing.CardReturnCardParams; import com.stripe.param.issuing.CardShipCardParams; +import com.stripe.param.issuing.CardSubmitCardParams; import com.stripe.param.issuing.CardUpdateParams; import java.util.List; import java.util.Map; @@ -406,6 +407,10 @@ public Card update(CardUpdateParams params, RequestOptions options) throws Strip return getResponseGetter().request(request, Card.class); } + /** + * For more details about Shipping, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -490,6 +495,10 @@ public static class Shipping extends StripeObject { @SerializedName("type") String type; + /** + * For more details about AddressValidation, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -517,6 +526,10 @@ public static class AddressValidation extends StripeObject { String result; } + /** + * For more details about Customs, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -532,6 +545,10 @@ public static class Customs extends StripeObject { } } + /** + * For more details about SpendingControls, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -586,6 +603,10 @@ public static class SpendingControls extends StripeObject { @SerializedName("spending_limits_currency") String spendingLimitsCurrency; + /** + * For more details about SpendingLimit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -616,6 +637,10 @@ public static class SpendingLimit extends StripeObject { } } + /** + * For more details about Wallets, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -630,6 +655,10 @@ public static class Wallets extends StripeObject { @SerializedName("primary_account_identifier") String primaryAccountIdentifier; + /** + * For more details about ApplePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -648,6 +677,10 @@ public static class ApplePay extends StripeObject { String ineligibleReason; } + /** + * For more details about GooglePay, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -929,6 +962,74 @@ public Card shipCard(CardShipCardParams params, RequestOptions options) throws S options); return resource.getResponseGetter().request(request, Card.class); } + + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code + * submitted}. This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard() throws StripeException { + return submitCard((Map) null, (RequestOptions) null); + } + + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code + * submitted}. This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard(RequestOptions options) throws StripeException { + return submitCard((Map) null, options); + } + + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code + * submitted}. This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard(Map params) throws StripeException { + return submitCard(params, (RequestOptions) null); + } + + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code + * submitted}. This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard(Map params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/cards/%s/shipping/submit", + ApiResource.urlEncodeId(this.resource.getId())); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); + return resource.getResponseGetter().request(request, Card.class); + } + + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code + * submitted}. This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard(CardSubmitCardParams params) throws StripeException { + return submitCard(params, (RequestOptions) null); + } + + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code + * submitted}. This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard(CardSubmitCardParams params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/cards/%s/shipping/submit", + ApiResource.urlEncodeId(this.resource.getId())); + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return resource.getResponseGetter().request(request, Card.class); + } } @Override diff --git a/src/main/java/com/stripe/model/issuing/Cardholder.java b/src/main/java/com/stripe/model/issuing/Cardholder.java index a5625c17e3d..42a75396962 100644 --- a/src/main/java/com/stripe/model/issuing/Cardholder.java +++ b/src/main/java/com/stripe/model/issuing/Cardholder.java @@ -299,6 +299,10 @@ public Cardholder update(CardholderUpdateParams params, RequestOptions options) return getResponseGetter().request(request, Cardholder.class); } + /** + * For more details about Billing, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -307,6 +311,10 @@ public static class Billing extends StripeObject { Address address; } + /** + * For more details about Company, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -316,6 +324,10 @@ public static class Company extends StripeObject { Boolean taxIdProvided; } + /** + * For more details about Individual, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -348,6 +360,10 @@ public static class Individual extends StripeObject { @SerializedName("verification") Verification verification; + /** + * For more details about CardIssuing, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -360,6 +376,10 @@ public static class CardIssuing extends StripeObject { @SerializedName("user_terms_acceptance") UserTermsAcceptance userTermsAcceptance; + /** + * For more details about UserTermsAcceptance, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -381,6 +401,10 @@ public static class UserTermsAcceptance extends StripeObject { } } + /** + * For more details about Dob, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -398,6 +422,10 @@ public static class Dob extends StripeObject { Long year; } + /** + * For more details about Verification, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -406,6 +434,10 @@ public static class Verification extends StripeObject { @SerializedName("document") Document document; + /** + * For more details about Document, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -469,6 +501,10 @@ public void setFrontObject(File expandableObject) { } } + /** + * For more details about Requirements, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -490,6 +526,10 @@ public static class Requirements extends StripeObject { List pastDue; } + /** + * For more details about SpendingControls, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -537,6 +577,10 @@ public static class SpendingControls extends StripeObject { @SerializedName("spending_limits_currency") String spendingLimitsCurrency; + /** + * For more details about SpendingLimit, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/issuing/Dispute.java b/src/main/java/com/stripe/model/issuing/Dispute.java index 8709bfbb1d9..6abb4b736cd 100644 --- a/src/main/java/com/stripe/model/issuing/Dispute.java +++ b/src/main/java/com/stripe/model/issuing/Dispute.java @@ -410,6 +410,10 @@ public Dispute update(DisputeUpdateParams params, RequestOptions options) throws return getResponseGetter().request(request, Dispute.class); } + /** + * For more details about Evidence, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -448,6 +452,10 @@ public static class Evidence extends StripeObject { @SerializedName("service_not_as_described") ServiceNotAsDescribed serviceNotAsDescribed; + /** + * For more details about Canceled, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -528,6 +536,10 @@ public void setAdditionalDocumentationObject(File expandableObject) { } } + /** + * For more details about Duplicate, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -656,6 +668,10 @@ public void setCheckImageObject(File expandableObject) { } } + /** + * For more details about Fraudulent, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -696,6 +712,10 @@ public void setAdditionalDocumentationObject(File expandableObject) { } } + /** + * For more details about MerchandiseNotAsDescribed, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -756,6 +776,10 @@ public void setAdditionalDocumentationObject(File expandableObject) { } } + /** + * For more details about NoValidAuthorization, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -796,6 +820,10 @@ public void setAdditionalDocumentationObject(File expandableObject) { } } + /** + * For more details about NotReceived, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -852,6 +880,10 @@ public void setAdditionalDocumentationObject(File expandableObject) { } } + /** + * For more details about Other, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -904,6 +936,10 @@ public void setAdditionalDocumentationObject(File expandableObject) { } } + /** + * For more details about ServiceNotAsDescribed, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -957,6 +993,10 @@ public void setAdditionalDocumentationObject(File expandableObject) { } } + /** + * For more details about Treasury, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/issuing/PersonalizationDesign.java b/src/main/java/com/stripe/model/issuing/PersonalizationDesign.java index 94b93083087..4fcb050f743 100644 --- a/src/main/java/com/stripe/model/issuing/PersonalizationDesign.java +++ b/src/main/java/com/stripe/model/issuing/PersonalizationDesign.java @@ -320,6 +320,10 @@ public PersonalizationDesign update( return getResponseGetter().request(request, PersonalizationDesign.class); } + /** + * For more details about CarrierText, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -341,6 +345,10 @@ public static class CarrierText extends StripeObject { String headerTitle; } + /** + * For more details about Preferences, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -361,6 +369,10 @@ public static class Preferences extends StripeObject { Boolean isPlatformDefault; } + /** + * For more details about RejectionReasons, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/issuing/PhysicalBundle.java b/src/main/java/com/stripe/model/issuing/PhysicalBundle.java index 096f124d33e..221a45dc9cf 100644 --- a/src/main/java/com/stripe/model/issuing/PhysicalBundle.java +++ b/src/main/java/com/stripe/model/issuing/PhysicalBundle.java @@ -155,6 +155,10 @@ public static PhysicalBundle retrieve( return getGlobalResponseGetter().request(request, PhysicalBundle.class); } + /** + * For more details about Features, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/issuing/Token.java b/src/main/java/com/stripe/model/issuing/Token.java index 13f9b91f8fe..4d9f4578230 100644 --- a/src/main/java/com/stripe/model/issuing/Token.java +++ b/src/main/java/com/stripe/model/issuing/Token.java @@ -221,6 +221,10 @@ public Token update(TokenUpdateParams params, RequestOptions options) throws Str return getResponseGetter().request(request, Token.class); } + /** + * For more details about NetworkData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -246,6 +250,10 @@ public static class NetworkData extends StripeObject { @SerializedName("wallet_provider") WalletProvider walletProvider; + /** + * For more details about Device, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -282,6 +290,10 @@ public static class Device extends StripeObject { String type; } + /** + * For more details about Mastercard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -306,6 +318,10 @@ public static class Mastercard extends StripeObject { String tokenRequestorName; } + /** + * For more details about Visa, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -331,6 +347,10 @@ public static class Visa extends StripeObject { String tokenRiskScore; } + /** + * For more details about WalletProvider, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -388,6 +408,10 @@ public static class WalletProvider extends StripeObject { @SerializedName("suggested_decision_version") String suggestedDecisionVersion; + /** + * For more details about CardholderAddress, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/issuing/Transaction.java b/src/main/java/com/stripe/model/issuing/Transaction.java index 5bde282e280..6593081e096 100644 --- a/src/main/java/com/stripe/model/issuing/Transaction.java +++ b/src/main/java/com/stripe/model/issuing/Transaction.java @@ -427,6 +427,10 @@ public Transaction update(TransactionUpdateParams params, RequestOptions options return getResponseGetter().request(request, Transaction.class); } + /** + * For more details about AmountDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -440,6 +444,10 @@ public static class AmountDetails extends StripeObject { Long cashbackAmount; } + /** + * For more details about MerchantData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -492,6 +500,10 @@ public static class MerchantData extends StripeObject { String url; } + /** + * For more details about NetworkData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -522,6 +534,10 @@ public static class NetworkData extends StripeObject { String transactionId; } + /** + * For more details about PurchaseDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -550,6 +566,10 @@ public static class PurchaseDetails extends StripeObject { @SerializedName("reference") String reference; + /** + * For more details about Fleet, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -579,6 +599,10 @@ public static class Fleet extends StripeObject { @SerializedName("service_type") String serviceType; + /** + * For more details about CardholderPromptData, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -608,6 +632,10 @@ public static class CardholderPromptData extends StripeObject { String vehicleNumber; } + /** + * For more details about ReportedBreakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -624,6 +652,10 @@ public static class ReportedBreakdown extends StripeObject { @SerializedName("tax") Tax tax; + /** + * For more details about Fuel, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -636,6 +668,10 @@ public static class Fuel extends StripeObject { BigDecimal grossAmountDecimal; } + /** + * For more details about NonFuel, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -647,6 +683,10 @@ public static class NonFuel extends StripeObject { BigDecimal grossAmountDecimal; } + /** + * For more details about Tax, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -668,6 +708,10 @@ public static class Tax extends StripeObject { } } + /** + * For more details about Flight, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -692,6 +736,10 @@ public static class Flight extends StripeObject { @SerializedName("travel_agency") String travelAgency; + /** + * For more details about Segment, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -722,6 +770,10 @@ public static class Segment extends StripeObject { } } + /** + * For more details about Fuel, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -763,6 +815,10 @@ public static class Fuel extends StripeObject { BigDecimal unitCostDecimal; } + /** + * For more details about Lodging, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -776,6 +832,10 @@ public static class Lodging extends StripeObject { Long nights; } + /** + * For more details about Receipt, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -798,6 +858,10 @@ public static class Receipt extends StripeObject { } } + /** + * For more details about Treasury, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/reporting/ReportRun.java b/src/main/java/com/stripe/model/reporting/ReportRun.java index e91524cf33f..171e05aed23 100644 --- a/src/main/java/com/stripe/model/reporting/ReportRun.java +++ b/src/main/java/com/stripe/model/reporting/ReportRun.java @@ -216,6 +216,10 @@ public static ReportRun retrieve( return getGlobalResponseGetter().request(request, ReportRun.class); } + /** + * For more details about Parameters, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/sigma/ScheduledQueryRun.java b/src/main/java/com/stripe/model/sigma/ScheduledQueryRun.java index cd1793f83ed..a1ca52cdbd0 100644 --- a/src/main/java/com/stripe/model/sigma/ScheduledQueryRun.java +++ b/src/main/java/com/stripe/model/sigma/ScheduledQueryRun.java @@ -160,6 +160,10 @@ public static ScheduledQueryRun retrieve( return getGlobalResponseGetter().request(request, ScheduledQueryRun.class); } + /** + * For more details about Errors, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java index f5b5be7a0ce..5fadc7b6d33 100644 --- a/src/main/java/com/stripe/model/tax/Calculation.java +++ b/src/main/java/com/stripe/model/tax/Calculation.java @@ -235,6 +235,10 @@ public static Calculation retrieve( return getGlobalResponseGetter().request(request, Calculation.class); } + /** + * For more details about CustomerDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -267,6 +271,10 @@ public static class CustomerDetails extends StripeObject { @SerializedName("taxability_override") String taxabilityOverride; + /** + * For more details about Address, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -302,6 +310,10 @@ public static class Address extends StripeObject { String state; } + /** + * For more details about TaxId, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -320,8 +332,9 @@ public static class TaxId extends StripeObject { * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, - * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code - * unknown}. + * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code + * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or + * {@code unknown}. */ @SerializedName("type") String type; @@ -332,6 +345,10 @@ public static class TaxId extends StripeObject { } } + /** + * For more details about ShipFromDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -339,6 +356,10 @@ public static class ShipFromDetails extends StripeObject { @SerializedName("address") Address address; + /** + * For more details about Address, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -375,6 +396,10 @@ public static class Address extends StripeObject { } } + /** + * For more details about ShippingCost, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -420,6 +445,10 @@ public static class ShippingCost extends StripeObject { @SerializedName("tax_code") String taxCode; + /** + * For more details about TaxBreakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -470,6 +499,10 @@ public static class TaxBreakdown extends StripeObject { @SerializedName("taxable_amount") Long taxableAmount; + /** + * For more details about Jurisdiction, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -502,6 +535,10 @@ public static class Jurisdiction extends StripeObject { String state; } + /** + * For more details about TaxRateDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -524,8 +561,8 @@ public static class TaxRateDetails extends StripeObject { * The tax type, such as {@code vat} or {@code sales_tax}. * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, - * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code rst}, - * {@code sales_tax}, or {@code vat}. + * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; @@ -533,6 +570,10 @@ public static class TaxRateDetails extends StripeObject { } } + /** + * For more details about TaxBreakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -571,6 +612,10 @@ public static class TaxBreakdown extends StripeObject { @SerializedName("taxable_amount") Long taxableAmount; + /** + * For more details about TaxRateDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -582,10 +627,28 @@ public static class TaxRateDetails extends StripeObject { @SerializedName("country") String country; + /** + * The amount of the tax rate when the {@code rate_type} is {@code flat_amount}. Tax rates + * with {@code rate_type} {@code percentage} can vary based on the transaction, resulting in + * this field being {@code null}. This field exposes the amount and currency of the flat tax + * rate. + */ + @SerializedName("flat_amount") + FlatAmount flatAmount; + /** The tax rate percentage as a string. For example, 8.5% is represented as {@code "8.5"}. */ @SerializedName("percentage_decimal") String percentageDecimal; + /** + * Indicates the type of tax rate applied to the taxable amount. This value can be {@code + * null} when no tax applies to the location. + * + *

One of {@code flat_amount}, or {@code percentage}. + */ + @SerializedName("rate_type") + String rateType; + /** State, county, province, or region. */ @SerializedName("state") String state; @@ -594,11 +657,34 @@ public static class TaxRateDetails extends StripeObject { * The tax type, such as {@code vat} or {@code sales_tax}. * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, - * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code rst}, {@code - * sales_tax}, or {@code vat}. + * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; + + /** + * The amount of the tax rate when the {@code rate_type`` is }flat_amount{@code . Tax rates + * with }rate_type{@code }percentage{@code can vary based on the transaction, resulting in + * this field being}null`. This field exposes the amount and currency of the flat tax rate. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FlatAmount extends StripeObject { + /** + * Amount of the tax when the {@code rate_type} is {@code flat_amount}. This positive + * integer represents how much to charge in the smallest currency unit (e.g., 100 cents to + * charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports + * up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + */ + @SerializedName("amount") + Long amount; + + /** Three-letter ISO currency code, in lowercase. */ + @SerializedName("currency") + String currency; + } } } diff --git a/src/main/java/com/stripe/model/tax/CalculationLineItem.java b/src/main/java/com/stripe/model/tax/CalculationLineItem.java index 6282ea7e160..0d231fcacab 100644 --- a/src/main/java/com/stripe/model/tax/CalculationLineItem.java +++ b/src/main/java/com/stripe/model/tax/CalculationLineItem.java @@ -82,6 +82,10 @@ public class CalculationLineItem extends StripeObject implements HasId { @SerializedName("tax_code") String taxCode; + /** + * For more details about TaxBreakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -132,6 +136,10 @@ public static class TaxBreakdown extends StripeObject { @SerializedName("taxable_amount") Long taxableAmount; + /** + * For more details about Jurisdiction, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -164,6 +172,10 @@ public static class Jurisdiction extends StripeObject { String state; } + /** + * For more details about TaxRateDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -186,8 +198,8 @@ public static class TaxRateDetails extends StripeObject { * The tax type, such as {@code vat} or {@code sales_tax}. * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, - * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code rst}, {@code - * sales_tax}, or {@code vat}. + * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/model/tax/Registration.java b/src/main/java/com/stripe/model/tax/Registration.java index 280d7e594b7..43153f404dc 100644 --- a/src/main/java/com/stripe/model/tax/Registration.java +++ b/src/main/java/com/stripe/model/tax/Registration.java @@ -247,6 +247,10 @@ public Registration update(RegistrationUpdateParams params, RequestOptions optio return getResponseGetter().request(request, Registration.class); } + /** + * For more details about CountryOptions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -269,6 +273,9 @@ public static class CountryOptions extends StripeObject { @SerializedName("bh") Bh bh; + @SerializedName("by") + By by; + @SerializedName("ca") Ca ca; @@ -281,6 +288,9 @@ public static class CountryOptions extends StripeObject { @SerializedName("co") Co co; + @SerializedName("cr") + Cr cr; + @SerializedName("cy") Cy cy; @@ -293,6 +303,9 @@ public static class CountryOptions extends StripeObject { @SerializedName("dk") Dk dk; + @SerializedName("ec") + Ec ec; + @SerializedName("ee") Ee ee; @@ -356,6 +369,12 @@ public static class CountryOptions extends StripeObject { @SerializedName("lv") Lv lv; + @SerializedName("ma") + Ma ma; + + @SerializedName("md") + Md md; + @SerializedName("mt") Mt mt; @@ -389,6 +408,12 @@ public static class CountryOptions extends StripeObject { @SerializedName("ro") Ro ro; + @SerializedName("rs") + Rs rs; + + @SerializedName("ru") + Ru ru; + @SerializedName("sa") Sa sa; @@ -410,15 +435,25 @@ public static class CountryOptions extends StripeObject { @SerializedName("tr") Tr tr; + @SerializedName("tz") + Tz tz; + @SerializedName("us") Us us; + @SerializedName("uz") + Uz uz; + @SerializedName("vn") Vn vn; @SerializedName("za") Za za; + /** + * For more details about Ae, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -432,6 +467,10 @@ public static class Ae extends StripeObject { String type; } + /** + * For more details about At, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -447,6 +486,10 @@ public static class At extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -461,6 +504,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Au, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -474,6 +521,10 @@ public static class Au extends StripeObject { String type; } + /** + * For more details about Be, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -489,6 +540,10 @@ public static class Be extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -503,6 +558,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Bg, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -518,6 +577,10 @@ public static class Bg extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -532,6 +595,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Bh, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -545,6 +612,27 @@ public static class Bh extends StripeObject { String type; } + /** + * For more details about By, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class By extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code simplified}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about Ca, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -560,6 +648,10 @@ public static class Ca extends StripeObject { @SerializedName("type") String type; + /** + * For more details about ProvinceStandard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -573,6 +665,10 @@ public static class ProvinceStandard extends StripeObject { } } + /** + * For more details about Ch, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -586,6 +682,10 @@ public static class Ch extends StripeObject { String type; } + /** + * For more details about Cl, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -599,6 +699,10 @@ public static class Cl extends StripeObject { String type; } + /** + * For more details about Co, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -612,6 +716,27 @@ public static class Co extends StripeObject { String type; } + /** + * For more details about Cr, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Cr extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code simplified}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about Cy, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -627,6 +752,10 @@ public static class Cy extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -641,6 +770,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Cz, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -656,6 +789,10 @@ public static class Cz extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -670,6 +807,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about De, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -685,6 +826,10 @@ public static class De extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -699,6 +844,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Dk, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -714,6 +863,10 @@ public static class Dk extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -728,6 +881,27 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Ec, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Ec extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code simplified}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about Ee, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -743,6 +917,10 @@ public static class Ee extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -757,6 +935,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Eg, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -770,6 +952,10 @@ public static class Eg extends StripeObject { String type; } + /** + * For more details about Es, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -785,6 +971,10 @@ public static class Es extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -799,6 +989,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Fi, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -814,6 +1008,10 @@ public static class Fi extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -828,6 +1026,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Fr, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -843,6 +1045,10 @@ public static class Fr extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -857,6 +1063,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Gb, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -870,6 +1080,10 @@ public static class Gb extends StripeObject { String type; } + /** + * For more details about Ge, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -883,6 +1097,10 @@ public static class Ge extends StripeObject { String type; } + /** + * For more details about Gr, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -898,6 +1116,10 @@ public static class Gr extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -912,6 +1134,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Hr, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -927,6 +1153,10 @@ public static class Hr extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -941,6 +1171,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Hu, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -956,6 +1190,10 @@ public static class Hu extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -970,6 +1208,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Id, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -983,6 +1225,10 @@ public static class Id extends StripeObject { String type; } + /** + * For more details about Ie, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -998,6 +1244,10 @@ public static class Ie extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1012,6 +1262,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Is, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1025,6 +1279,10 @@ public static class Is extends StripeObject { String type; } + /** + * For more details about It, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1040,6 +1298,10 @@ public static class It extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1054,6 +1316,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Jp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1067,6 +1333,10 @@ public static class Jp extends StripeObject { String type; } + /** + * For more details about Ke, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1080,6 +1350,10 @@ public static class Ke extends StripeObject { String type; } + /** + * For more details about Kr, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1093,6 +1367,10 @@ public static class Kr extends StripeObject { String type; } + /** + * For more details about Kz, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1106,6 +1384,10 @@ public static class Kz extends StripeObject { String type; } + /** + * For more details about Lt, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1121,6 +1403,10 @@ public static class Lt extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1135,6 +1421,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Lu, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1150,6 +1440,10 @@ public static class Lu extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1164,6 +1458,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Lv, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1179,6 +1477,10 @@ public static class Lv extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1193,6 +1495,44 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Ma, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Ma extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code simplified}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about Md, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Md extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code simplified}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about Mt, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1208,6 +1548,10 @@ public static class Mt extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1222,6 +1566,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Mx, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1235,6 +1583,10 @@ public static class Mx extends StripeObject { String type; } + /** + * For more details about My, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1248,6 +1600,10 @@ public static class My extends StripeObject { String type; } + /** + * For more details about Ng, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1261,6 +1617,10 @@ public static class Ng extends StripeObject { String type; } + /** + * For more details about Nl, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1276,6 +1636,10 @@ public static class Nl extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1290,6 +1654,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about No, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1303,6 +1671,10 @@ public static class No extends StripeObject { String type; } + /** + * For more details about Nz, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1316,6 +1688,10 @@ public static class Nz extends StripeObject { String type; } + /** + * For more details about Om, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1329,6 +1705,10 @@ public static class Om extends StripeObject { String type; } + /** + * For more details about Pl, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1344,6 +1724,10 @@ public static class Pl extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1358,6 +1742,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Pt, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1373,6 +1761,10 @@ public static class Pt extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1387,6 +1779,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Ro, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1402,6 +1798,10 @@ public static class Ro extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1416,6 +1816,44 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Rs, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Rs extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code standard}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about Ru, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Ru extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code simplified}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about Sa, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1429,6 +1867,10 @@ public static class Sa extends StripeObject { String type; } + /** + * For more details about Se, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1444,6 +1886,10 @@ public static class Se extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1458,6 +1904,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Sg, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1471,6 +1921,10 @@ public static class Sg extends StripeObject { String type; } + /** + * For more details about Si, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1486,6 +1940,10 @@ public static class Si extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1500,6 +1958,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Sk, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1515,6 +1977,10 @@ public static class Sk extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Standard, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1529,6 +1995,10 @@ public static class Standard extends StripeObject { } } + /** + * For more details about Th, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1542,6 +2012,10 @@ public static class Th extends StripeObject { String type; } + /** + * For more details about Tr, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1555,6 +2029,27 @@ public static class Tr extends StripeObject { String type; } + /** + * For more details about Tz, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Tz extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code simplified}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about Us, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1579,11 +2074,15 @@ public static class Us extends StripeObject { * Type of registration in the US. * *

One of {@code local_amusement_tax}, {@code local_lease_tax}, {@code - * state_communications_tax}, or {@code state_sales_tax}. + * state_communications_tax}, {@code state_retail_delivery_fee}, or {@code state_sales_tax}. */ @SerializedName("type") String type; + /** + * For more details about LocalAmusementTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1596,6 +2095,10 @@ public static class LocalAmusementTax extends StripeObject { String jurisdiction; } + /** + * For more details about LocalLeaseTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1608,6 +2111,10 @@ public static class LocalLeaseTax extends StripeObject { String jurisdiction; } + /** + * For more details about StateSalesTax, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1616,6 +2123,10 @@ public static class StateSalesTax extends StripeObject { @SerializedName("elections") List elections; + /** + * For more details about Election, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1639,6 +2150,27 @@ public static class Election extends StripeObject { } } + /** + * For more details about Uz, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Uz extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code simplified}. + */ + @SerializedName("type") + String type; + } + + /** + * For more details about Vn, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1652,6 +2184,10 @@ public static class Vn extends StripeObject { String type; } + /** + * For more details about Za, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/tax/Settings.java b/src/main/java/com/stripe/model/tax/Settings.java index 3a21e2736ae..b5090fc8d20 100644 --- a/src/main/java/com/stripe/model/tax/Settings.java +++ b/src/main/java/com/stripe/model/tax/Settings.java @@ -141,6 +141,10 @@ public static Settings update(SettingsUpdateParams params, RequestOptions option return getGlobalResponseGetter().request(request, Settings.class); } + /** + * For more details about Defaults, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -165,6 +169,10 @@ public static class Defaults extends StripeObject { String taxCode; } + /** + * For more details about HeadOffice, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -173,6 +181,10 @@ public static class HeadOffice extends StripeObject { Address address; } + /** + * For more details about StatusDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -183,11 +195,19 @@ public static class StatusDetails extends StripeObject { @SerializedName("pending") Pending pending; + /** + * For more details about Active, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Active extends StripeObject {} + /** + * For more details about Pending, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java index b2da288292a..3cf65286ee9 100644 --- a/src/main/java/com/stripe/model/tax/Transaction.java +++ b/src/main/java/com/stripe/model/tax/Transaction.java @@ -280,6 +280,10 @@ public static Transaction retrieve( return getGlobalResponseGetter().request(request, Transaction.class); } + /** + * For more details about CustomerDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -312,6 +316,10 @@ public static class CustomerDetails extends StripeObject { @SerializedName("taxability_override") String taxabilityOverride; + /** + * For more details about Address, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -347,6 +355,10 @@ public static class Address extends StripeObject { String state; } + /** + * For more details about TaxId, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -365,8 +377,9 @@ public static class TaxId extends StripeObject { * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, - * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code - * unknown}. + * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code + * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or + * {@code unknown}. */ @SerializedName("type") String type; @@ -377,6 +390,10 @@ public static class TaxId extends StripeObject { } } + /** + * For more details about Reversal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -386,6 +403,10 @@ public static class Reversal extends StripeObject { String originalTransaction; } + /** + * For more details about ShipFromDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -393,6 +414,10 @@ public static class ShipFromDetails extends StripeObject { @SerializedName("address") Address address; + /** + * For more details about Address, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -429,6 +454,10 @@ public static class Address extends StripeObject { } } + /** + * For more details about ShippingCost, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -477,6 +506,10 @@ public static class ShippingCost extends StripeObject { @SerializedName("tax_code") String taxCode; + /** + * For more details about TaxBreakdown, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -527,6 +560,10 @@ public static class TaxBreakdown extends StripeObject { @SerializedName("taxable_amount") Long taxableAmount; + /** + * For more details about Jurisdiction, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -559,6 +596,10 @@ public static class Jurisdiction extends StripeObject { String state; } + /** + * For more details about TaxRateDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -581,8 +622,8 @@ public static class TaxRateDetails extends StripeObject { * The tax type, such as {@code vat} or {@code sales_tax}. * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, - * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code rst}, - * {@code sales_tax}, or {@code vat}. + * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/model/tax/TransactionLineItem.java b/src/main/java/com/stripe/model/tax/TransactionLineItem.java index 89db22d181e..a3f2fd08600 100644 --- a/src/main/java/com/stripe/model/tax/TransactionLineItem.java +++ b/src/main/java/com/stripe/model/tax/TransactionLineItem.java @@ -98,6 +98,10 @@ public class TransactionLineItem extends StripeObject implements HasId { @SerializedName("type") String type; + /** + * For more details about Reversal, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/terminal/Configuration.java b/src/main/java/com/stripe/model/terminal/Configuration.java index 89c8599390f..250a5f3bd41 100644 --- a/src/main/java/com/stripe/model/terminal/Configuration.java +++ b/src/main/java/com/stripe/model/terminal/Configuration.java @@ -247,6 +247,10 @@ public Configuration update(ConfigurationUpdateParams params, RequestOptions opt return getResponseGetter().request(request, Configuration.class); } + /** + * For more details about BbposWiseposE, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -276,6 +280,10 @@ public void setSplashscreenObject(File expandableObject) { } } + /** + * For more details about Offline, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -288,6 +296,10 @@ public static class Offline extends StripeObject { Boolean enabled; } + /** + * For more details about RebootWindow, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -304,6 +316,10 @@ public static class RebootWindow extends StripeObject { Long startHour; } + /** + * For more details about StripeS700, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -333,6 +349,10 @@ public void setSplashscreenObject(File expandableObject) { } } + /** + * For more details about Tipping, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -370,6 +390,9 @@ public static class Tipping extends StripeObject { @SerializedName("nzd") Nzd nzd; + @SerializedName("pln") + Pln pln; + @SerializedName("sek") Sek sek; @@ -379,6 +402,10 @@ public static class Tipping extends StripeObject { @SerializedName("usd") Usd usd; + /** + * For more details about Aud, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -399,6 +426,10 @@ public static class Aud extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Cad, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -419,6 +450,10 @@ public static class Cad extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Chf, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -439,6 +474,10 @@ public static class Chf extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Czk, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -459,6 +498,10 @@ public static class Czk extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Dkk, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -479,6 +522,10 @@ public static class Dkk extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Eur, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -499,6 +546,10 @@ public static class Eur extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Gbp, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -519,6 +570,10 @@ public static class Gbp extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Hkd, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -539,6 +594,10 @@ public static class Hkd extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Myr, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -559,6 +618,10 @@ public static class Myr extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Nok, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -579,6 +642,10 @@ public static class Nok extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Nzd, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -599,6 +666,34 @@ public static class Nzd extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Pln, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Pln extends StripeObject { + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + } + + /** + * For more details about Sek, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -619,6 +714,10 @@ public static class Sek extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Sgd, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -639,6 +738,10 @@ public static class Sgd extends StripeObject { Long smartTipThreshold; } + /** + * For more details about Usd, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -660,6 +763,10 @@ public static class Usd extends StripeObject { } } + /** + * For more details about VerifoneP400, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/testhelpers/TestClock.java b/src/main/java/com/stripe/model/testhelpers/TestClock.java index 1d5818cffb0..e4648007508 100644 --- a/src/main/java/com/stripe/model/testhelpers/TestClock.java +++ b/src/main/java/com/stripe/model/testhelpers/TestClock.java @@ -263,6 +263,10 @@ public static TestClock retrieve( return getGlobalResponseGetter().request(request, TestClock.class); } + /** + * For more details about StatusDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -270,6 +274,10 @@ public static class StatusDetails extends StripeObject { @SerializedName("advancing") Advancing advancing; + /** + * For more details about Advancing, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/CreditReversal.java b/src/main/java/com/stripe/model/treasury/CreditReversal.java index cd4116ccffc..7b56f72ce96 100644 --- a/src/main/java/com/stripe/model/treasury/CreditReversal.java +++ b/src/main/java/com/stripe/model/treasury/CreditReversal.java @@ -251,6 +251,10 @@ public static CreditReversal retrieve( return getGlobalResponseGetter().request(request, CreditReversal.class); } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/DebitReversal.java b/src/main/java/com/stripe/model/treasury/DebitReversal.java index e22970ff804..0a819f8bed5 100644 --- a/src/main/java/com/stripe/model/treasury/DebitReversal.java +++ b/src/main/java/com/stripe/model/treasury/DebitReversal.java @@ -243,6 +243,10 @@ public static DebitReversal retrieve( return getGlobalResponseGetter().request(request, DebitReversal.class); } + /** + * For more details about LinkedFlows, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -252,6 +256,10 @@ public static class LinkedFlows extends StripeObject { String issuingDispute; } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/FinancialAccount.java b/src/main/java/com/stripe/model/treasury/FinancialAccount.java index 8d191cd0e00..7d2af2f134a 100644 --- a/src/main/java/com/stripe/model/treasury/FinancialAccount.java +++ b/src/main/java/com/stripe/model/treasury/FinancialAccount.java @@ -107,7 +107,7 @@ public class FinancialAccount extends ApiResource List restrictedFeatures; /** - * The enum specifying what state the account is in. + * Status of this FinancialAccount. * *

One of {@code closed}, or {@code open}. */ @@ -472,6 +472,10 @@ public static class PlatformRestrictions extends StripeObject { String outboundFlows; } + /** + * For more details about StatusDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -480,6 +484,10 @@ public static class StatusDetails extends StripeObject { @SerializedName("closed") Closed closed; + /** + * For more details about Closed, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/InboundTransfer.java b/src/main/java/com/stripe/model/treasury/InboundTransfer.java index 972a03a2551..21a29cb2470 100644 --- a/src/main/java/com/stripe/model/treasury/InboundTransfer.java +++ b/src/main/java/com/stripe/model/treasury/InboundTransfer.java @@ -323,6 +323,10 @@ public static InboundTransfer retrieve( return getGlobalResponseGetter().request(request, InboundTransfer.class); } + /** + * For more details about FailureDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -340,6 +344,10 @@ public static class FailureDetails extends StripeObject { String code; } + /** + * For more details about LinkedFlows, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -352,6 +360,10 @@ public static class LinkedFlows extends StripeObject { String receivedDebit; } + /** + * For more details about OriginPaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -370,6 +382,10 @@ public static class OriginPaymentMethodDetails extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about BillingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -386,6 +402,10 @@ public static class BillingDetails extends StripeObject { String name; } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -461,6 +481,10 @@ public void setMandateObject(Mandate expandableObject) { } } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/OutboundPayment.java b/src/main/java/com/stripe/model/treasury/OutboundPayment.java index 93a34a85447..1200a735a4a 100644 --- a/src/main/java/com/stripe/model/treasury/OutboundPayment.java +++ b/src/main/java/com/stripe/model/treasury/OutboundPayment.java @@ -356,6 +356,10 @@ public static OutboundPayment retrieve( return getGlobalResponseGetter().request(request, OutboundPayment.class); } + /** + * For more details about DestinationPaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -377,6 +381,10 @@ public static class DestinationPaymentMethodDetails extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about BillingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -393,6 +401,10 @@ public static class BillingDetails extends StripeObject { String name; } + /** + * For more details about FinancialAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -411,6 +423,10 @@ public static class FinancialAccount extends StripeObject implements HasId { String network; } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -486,6 +502,10 @@ public void setMandateObject(Mandate expandableObject) { } } + /** + * For more details about EndUserDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -506,6 +526,10 @@ public static class EndUserDetails extends StripeObject { Boolean present; } + /** + * For more details about ReturnedDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -547,6 +571,10 @@ public void setTransactionObject(Transaction expandableObject) { } } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -568,6 +596,10 @@ public static class StatusTransitions extends StripeObject { Long returnedAt; } + /** + * For more details about TrackingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -586,6 +618,10 @@ public static class TrackingDetails extends StripeObject { @SerializedName("us_domestic_wire") UsDomesticWire usDomesticWire; + /** + * For more details about Ach, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -595,6 +631,10 @@ public static class Ach extends StripeObject { String traceId; } + /** + * For more details about UsDomesticWire, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/OutboundTransfer.java b/src/main/java/com/stripe/model/treasury/OutboundTransfer.java index 2783e9ba1ee..c25bf4c61e2 100644 --- a/src/main/java/com/stripe/model/treasury/OutboundTransfer.java +++ b/src/main/java/com/stripe/model/treasury/OutboundTransfer.java @@ -346,6 +346,10 @@ public static OutboundTransfer retrieve( return getGlobalResponseGetter().request(request, OutboundTransfer.class); } + /** + * For more details about DestinationPaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -364,6 +368,10 @@ public static class DestinationPaymentMethodDetails extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about BillingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -380,6 +388,10 @@ public static class BillingDetails extends StripeObject { String name; } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -455,6 +467,10 @@ public void setMandateObject(Mandate expandableObject) { } } + /** + * For more details about ReturnedDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -496,6 +512,10 @@ public void setTransactionObject(Transaction expandableObject) { } } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -517,6 +537,10 @@ public static class StatusTransitions extends StripeObject { Long returnedAt; } + /** + * For more details about TrackingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -535,6 +559,10 @@ public static class TrackingDetails extends StripeObject { @SerializedName("us_domestic_wire") UsDomesticWire usDomesticWire; + /** + * For more details about Ach, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -544,6 +572,10 @@ public static class Ach extends StripeObject { String traceId; } + /** + * For more details about UsDomesticWire, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/ReceivedCredit.java b/src/main/java/com/stripe/model/treasury/ReceivedCredit.java index 1bf83826fdd..ae8aae33115 100644 --- a/src/main/java/com/stripe/model/treasury/ReceivedCredit.java +++ b/src/main/java/com/stripe/model/treasury/ReceivedCredit.java @@ -226,6 +226,10 @@ public static ReceivedCredit retrieve( return getGlobalResponseGetter().request(request, ReceivedCredit.class); } + /** + * For more details about InitiatingPaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -264,6 +268,10 @@ public static class InitiatingPaymentMethodDetails extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about BillingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -280,6 +288,10 @@ public static class BillingDetails extends StripeObject { String name; } + /** + * For more details about FinancialAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -299,6 +311,10 @@ public static class FinancialAccount extends StripeObject implements HasId { String network; } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -317,6 +333,10 @@ public static class UsBankAccount extends StripeObject { } } + /** + * For more details about LinkedFlows, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -357,6 +377,10 @@ public static class LinkedFlows extends StripeObject { @SerializedName("source_flow_type") String sourceFlowType; + /** + * For more details about SourceFlowDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -413,6 +437,10 @@ public static class SourceFlowDetails extends StripeObject { } } + /** + * For more details about ReversalDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/ReceivedDebit.java b/src/main/java/com/stripe/model/treasury/ReceivedDebit.java index 38b80881d4b..d5a96019359 100644 --- a/src/main/java/com/stripe/model/treasury/ReceivedDebit.java +++ b/src/main/java/com/stripe/model/treasury/ReceivedDebit.java @@ -225,6 +225,10 @@ public static ReceivedDebit retrieve( return getGlobalResponseGetter().request(request, ReceivedDebit.class); } + /** + * For more details about InitiatingPaymentMethodDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -263,6 +267,10 @@ public static class InitiatingPaymentMethodDetails extends StripeObject { @SerializedName("us_bank_account") UsBankAccount usBankAccount; + /** + * For more details about BillingDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -279,6 +287,10 @@ public static class BillingDetails extends StripeObject { String name; } + /** + * For more details about FinancialAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -298,6 +310,10 @@ public static class FinancialAccount extends StripeObject implements HasId { String network; } + /** + * For more details about UsBankAccount, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -316,6 +332,10 @@ public static class UsBankAccount extends StripeObject { } } + /** + * For more details about LinkedFlows, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -350,6 +370,10 @@ public static class LinkedFlows extends StripeObject { String payout; } + /** + * For more details about ReversalDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/Transaction.java b/src/main/java/com/stripe/model/treasury/Transaction.java index 458b785e152..77ee23e8a5b 100644 --- a/src/main/java/com/stripe/model/treasury/Transaction.java +++ b/src/main/java/com/stripe/model/treasury/Transaction.java @@ -202,6 +202,10 @@ public static class BalanceImpact extends StripeObject { Long outboundPending; } + /** + * For more details about FlowDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -316,6 +320,10 @@ public static class FlowDetails extends StripeObject { String type; } + /** + * For more details about StatusTransitions, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/TransactionEntry.java b/src/main/java/com/stripe/model/treasury/TransactionEntry.java index 01bc3c969fb..f490062112b 100644 --- a/src/main/java/com/stripe/model/treasury/TransactionEntry.java +++ b/src/main/java/com/stripe/model/treasury/TransactionEntry.java @@ -223,6 +223,10 @@ public static class BalanceImpact extends StripeObject { Long outboundPending; } + /** + * For more details about FlowDetails, please refer to the API Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/Event.java b/src/main/java/com/stripe/model/v2/Event.java index feebc29bf71..85586a20a09 100644 --- a/src/main/java/com/stripe/model/v2/Event.java +++ b/src/main/java/com/stripe/model/v2/Event.java @@ -121,6 +121,10 @@ public static class RelatedObject extends StripeObject implements HasId { String url; } + /** + * For more details about Reason, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -137,6 +141,10 @@ public static class Reason extends StripeObject { @SerializedName("type") String type; + /** + * For more details about Request, please refer to the API + * Reference. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java index f923a73e930..0fbd37bac5a 100644 --- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java +++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java @@ -26,6 +26,7 @@ public final class EventDataClassLookup { "v2.billing.meter_event_session", com.stripe.model.v2.billing.MeterEventSession.class); classLookup.put("v2.core.event", com.stripe.model.v2.Event.class); + classLookup.put("v2.core.event_destination", com.stripe.model.v2.EventDestination.class); eventClassLookup.put( "v1.billing.meter.error_report_triggered", diff --git a/src/main/java/com/stripe/model/v2/EventDestination.java b/src/main/java/com/stripe/model/v2/EventDestination.java new file mode 100644 index 00000000000..401cf4666c0 --- /dev/null +++ b/src/main/java/com/stripe/model/v2/EventDestination.java @@ -0,0 +1,178 @@ +// File generated from our OpenAPI spec +package com.stripe.model.v2; + +import com.google.gson.annotations.SerializedName; +import com.stripe.model.HasId; +import com.stripe.model.StripeObject; +import java.time.Instant; +import java.util.List; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class EventDestination extends StripeObject implements HasId { + /** Amazon EventBridge configuration. */ + @SerializedName("amazon_eventbridge") + AmazonEventbridge amazonEventbridge; + + /** Time at which the object was created. */ + @SerializedName("created") + Instant created; + + /** An optional description of what the event destination is used for. */ + @SerializedName("description") + String description; + + /** The list of events to enable for this endpoint. */ + @SerializedName("enabled_events") + List enabledEvents; + + /** + * Payload type of events being subscribed to. + * + *

One of {@code snapshot}, or {@code thin}. + */ + @SerializedName("event_payload") + String eventPayload; + + /** Where events should be routed from. */ + @SerializedName("events_from") + List eventsFrom; + + /** Unique identifier for the object. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** + * Has the value {@code true} if the object exists in live mode or the value {@code false} if the + * object exists in test mode. + */ + @SerializedName("livemode") + Boolean livemode; + + /** Metadata. */ + @SerializedName("metadata") + Map metadata; + + /** Event destination name. */ + @SerializedName("name") + String name; + + /** + * String representing the object's type. Objects of the same type share the same value of the + * object field. + * + *

Equal to {@code v2.core.event_destination}. + */ + @SerializedName("object") + String object; + + /** If using the snapshot event payload, the API version events are rendered as. */ + @SerializedName("snapshot_api_version") + String snapshotApiVersion; + + /** + * Status. It can be set to either enabled or disabled. + * + *

One of {@code disabled}, or {@code enabled}. + */ + @SerializedName("status") + String status; + + /** Additional information about event destination status. */ + @SerializedName("status_details") + StatusDetails statusDetails; + + /** + * Event destination type. + * + *

One of {@code amazon_eventbridge}, or {@code webhook_endpoint}. + */ + @SerializedName("type") + String type; + + /** Time at which the object was last updated. */ + @SerializedName("updated") + Instant updated; + + /** Webhook endpoint configuration. */ + @SerializedName("webhook_endpoint") + WebhookEndpoint webhookEndpoint; + + /** + * For more details about AmazonEventbridge, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AmazonEventbridge extends StripeObject { + /** The AWS account ID. */ + @SerializedName("aws_account_id") + String awsAccountId; + + /** The ARN of the AWS event source. */ + @SerializedName("aws_event_source_arn") + String awsEventSourceArn; + + /** + * The state of the AWS event source. + * + *

One of {@code active}, {@code deleted}, {@code pending}, or {@code unknown}. + */ + @SerializedName("aws_event_source_status") + String awsEventSourceStatus; + } + + /** + * For more details about StatusDetails, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class StatusDetails extends StripeObject { + /** Details about why the event destination has been disabled. */ + @SerializedName("disabled") + Disabled disabled; + + /** + * For more details about Disabled, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Disabled extends StripeObject { + /** + * Reason event destination has been disabled. + * + *

One of {@code no_aws_event_source_exists}, or {@code user}. + */ + @SerializedName("reason") + String reason; + } + } + + /** + * For more details about WebhookEndpoint, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class WebhookEndpoint extends StripeObject { + /** The signing secret of the webhook endpoint, only includable on creation. */ + @SerializedName("signing_secret") + String signingSecret; + + /** The URL of the webhook endpoint, includable. */ + @SerializedName("url") + String url; + } +} diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java index 1593447263c..7257c56fb1f 100644 --- a/src/main/java/com/stripe/param/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/AccountCreateParams.java @@ -131,6 +131,13 @@ public class AccountCreateParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * A hash of account group type to tokens. These are account groups this account should be added + * to + */ + @SerializedName("groups") + Groups groups; + /** * Information about the person represented by the account. This field is null unless {@code * business_type} is set to {@code individual}. Once you create an expand, String externalAccount, Map extraParams, + Groups groups, Individual individual, Object metadata, Settings settings, @@ -206,6 +214,7 @@ private AccountCreateParams( this.expand = expand; this.externalAccount = externalAccount; this.extraParams = extraParams; + this.groups = groups; this.individual = individual; this.metadata = metadata; this.settings = settings; @@ -244,6 +253,8 @@ public static class Builder { private Map extraParams; + private Groups groups; + private Individual individual; private Object metadata; @@ -270,6 +281,7 @@ public AccountCreateParams build() { this.expand, this.externalAccount, this.extraParams, + this.groups, this.individual, this.metadata, this.settings, @@ -457,6 +469,15 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * A hash of account group type to tokens. These are account groups this account should be added + * to + */ + public Builder setGroups(AccountCreateParams.Groups groups) { + this.groups = groups; + return this; + } + /** * Information about the person represented by the account. This field is null unless {@code * business_type} is set to {@code individual}. Once you create an 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 AlmaPayments(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.AlmaPayments build() { + return new AccountCreateParams.Capabilities.AlmaPayments( + 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.AlmaPayments#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.AlmaPayments#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 public static class AmazonPayPayments { /** @@ -3571,7 +3766,401 @@ public static class IndiaInternationalPayments { @SerializedName("requested") Boolean requested; - private IndiaInternationalPayments(Map extraParams, Boolean requested) { + private IndiaInternationalPayments(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.IndiaInternationalPayments build() { + return new AccountCreateParams.Capabilities.IndiaInternationalPayments( + 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.IndiaInternationalPayments#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.IndiaInternationalPayments#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 + public static class JcbPayments { + /** + * 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 JcbPayments(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.JcbPayments build() { + return new AccountCreateParams.Capabilities.JcbPayments(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.JcbPayments#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.JcbPayments#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 + public static class JpBankTransferPayments { + /** + * 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 JpBankTransferPayments(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.JpBankTransferPayments build() { + return new AccountCreateParams.Capabilities.JpBankTransferPayments( + 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.JpBankTransferPayments#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.JpBankTransferPayments#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 + public static class KakaoPayPayments { + /** + * 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 KakaoPayPayments(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.KakaoPayPayments build() { + return new AccountCreateParams.Capabilities.KakaoPayPayments( + 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.KakaoPayPayments#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.KakaoPayPayments#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 + public static class KlarnaPayments { + /** + * 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 KlarnaPayments(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.KlarnaPayments build() { + return new AccountCreateParams.Capabilities.KlarnaPayments( + 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.KlarnaPayments#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.KlarnaPayments#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 + public static class KonbiniPayments { + /** + * 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 KonbiniPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3586,16 +4175,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.IndiaInternationalPayments build() { - return new AccountCreateParams.Capabilities.IndiaInternationalPayments( + public AccountCreateParams.Capabilities.KonbiniPayments build() { + return new AccountCreateParams.Capabilities.KonbiniPayments( 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.IndiaInternationalPayments#extraParams} - * for the field documentation. + * map. See {@link AccountCreateParams.Capabilities.KonbiniPayments#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3608,8 +4197,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.IndiaInternationalPayments#extraParams} - * for the field documentation. + * map. See {@link AccountCreateParams.Capabilities.KonbiniPayments#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3632,7 +4221,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class JcbPayments { + public static class KrCardPayments { /** * 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. @@ -3650,7 +4239,7 @@ public static class JcbPayments { @SerializedName("requested") Boolean requested; - private JcbPayments(Map extraParams, Boolean requested) { + private KrCardPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3665,15 +4254,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.JcbPayments build() { - return new AccountCreateParams.Capabilities.JcbPayments(this.extraParams, this.requested); + public AccountCreateParams.Capabilities.KrCardPayments build() { + return new AccountCreateParams.Capabilities.KrCardPayments( + 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.JcbPayments#extraParams} for the field - * documentation. + * map. See {@link AccountCreateParams.Capabilities.KrCardPayments#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3686,8 +4276,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.JcbPayments#extraParams} for the field - * documentation. + * map. See {@link AccountCreateParams.Capabilities.KrCardPayments#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3710,7 +4300,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class JpBankTransferPayments { + public static class LegacyPayments { /** * 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. @@ -3728,7 +4318,7 @@ public static class JpBankTransferPayments { @SerializedName("requested") Boolean requested; - private JpBankTransferPayments(Map extraParams, Boolean requested) { + private LegacyPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3743,16 +4333,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.JpBankTransferPayments build() { - return new AccountCreateParams.Capabilities.JpBankTransferPayments( + public AccountCreateParams.Capabilities.LegacyPayments build() { + return new AccountCreateParams.Capabilities.LegacyPayments( 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.JpBankTransferPayments#extraParams} for - * the field documentation. + * map. See {@link AccountCreateParams.Capabilities.LegacyPayments#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3765,8 +4355,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.JpBankTransferPayments#extraParams} for - * the field documentation. + * map. See {@link AccountCreateParams.Capabilities.LegacyPayments#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3789,7 +4379,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class KlarnaPayments { + public static class LinkPayments { /** * 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. @@ -3807,7 +4397,7 @@ public static class KlarnaPayments { @SerializedName("requested") Boolean requested; - private KlarnaPayments(Map extraParams, Boolean requested) { + private LinkPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3822,16 +4412,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.KlarnaPayments build() { - return new AccountCreateParams.Capabilities.KlarnaPayments( + public AccountCreateParams.Capabilities.LinkPayments build() { + return new AccountCreateParams.Capabilities.LinkPayments( 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.KlarnaPayments#extraParams} for the - * field documentation. + * map. See {@link AccountCreateParams.Capabilities.LinkPayments#extraParams} for the field + * documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3844,8 +4434,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.KlarnaPayments#extraParams} for the - * field documentation. + * map. See {@link AccountCreateParams.Capabilities.LinkPayments#extraParams} for the field + * documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3868,7 +4458,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class KonbiniPayments { + public static class MobilepayPayments { /** * 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. @@ -3886,7 +4476,7 @@ public static class KonbiniPayments { @SerializedName("requested") Boolean requested; - private KonbiniPayments(Map extraParams, Boolean requested) { + private MobilepayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3901,15 +4491,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.KonbiniPayments build() { - return new AccountCreateParams.Capabilities.KonbiniPayments( + public AccountCreateParams.Capabilities.MobilepayPayments build() { + return new AccountCreateParams.Capabilities.MobilepayPayments( 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.KonbiniPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.MobilepayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3923,7 +4513,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.KonbiniPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.MobilepayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -3947,7 +4537,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class LegacyPayments { + public static class MultibancoPayments { /** * 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. @@ -3965,7 +4555,7 @@ public static class LegacyPayments { @SerializedName("requested") Boolean requested; - private LegacyPayments(Map extraParams, Boolean requested) { + private MultibancoPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3980,15 +4570,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.LegacyPayments build() { - return new AccountCreateParams.Capabilities.LegacyPayments( + public AccountCreateParams.Capabilities.MultibancoPayments build() { + return new AccountCreateParams.Capabilities.MultibancoPayments( 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.LegacyPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.MultibancoPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4002,7 +4592,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.LegacyPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.MultibancoPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4026,7 +4616,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class LinkPayments { + public static class MxBankTransferPayments { /** * 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. @@ -4044,7 +4634,7 @@ public static class LinkPayments { @SerializedName("requested") Boolean requested; - private LinkPayments(Map extraParams, Boolean requested) { + private MxBankTransferPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4059,16 +4649,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.LinkPayments build() { - return new AccountCreateParams.Capabilities.LinkPayments( + public AccountCreateParams.Capabilities.MxBankTransferPayments build() { + return new AccountCreateParams.Capabilities.MxBankTransferPayments( 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.LinkPayments#extraParams} for the field - * documentation. + * map. See {@link AccountCreateParams.Capabilities.MxBankTransferPayments#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4081,8 +4671,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.LinkPayments#extraParams} for the field - * documentation. + * map. See {@link AccountCreateParams.Capabilities.MxBankTransferPayments#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4105,7 +4695,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class MobilepayPayments { + public static class NaverPayPayments { /** * 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. @@ -4123,7 +4713,7 @@ public static class MobilepayPayments { @SerializedName("requested") Boolean requested; - private MobilepayPayments(Map extraParams, Boolean requested) { + private NaverPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4138,15 +4728,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.MobilepayPayments build() { - return new AccountCreateParams.Capabilities.MobilepayPayments( + public AccountCreateParams.Capabilities.NaverPayPayments build() { + return new AccountCreateParams.Capabilities.NaverPayPayments( 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.MobilepayPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.NaverPayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4160,7 +4750,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.MobilepayPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.NaverPayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4184,7 +4774,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class MultibancoPayments { + public static class OxxoPayments { /** * 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. @@ -4202,7 +4792,7 @@ public static class MultibancoPayments { @SerializedName("requested") Boolean requested; - private MultibancoPayments(Map extraParams, Boolean requested) { + private OxxoPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4217,16 +4807,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.MultibancoPayments build() { - return new AccountCreateParams.Capabilities.MultibancoPayments( + public AccountCreateParams.Capabilities.OxxoPayments build() { + return new AccountCreateParams.Capabilities.OxxoPayments( 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.MultibancoPayments#extraParams} for the - * field documentation. + * map. See {@link AccountCreateParams.Capabilities.OxxoPayments#extraParams} for the field + * documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4239,8 +4829,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.MultibancoPayments#extraParams} for the - * field documentation. + * map. See {@link AccountCreateParams.Capabilities.OxxoPayments#extraParams} for the field + * documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4263,7 +4853,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class MxBankTransferPayments { + public static class P24Payments { /** * 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. @@ -4281,7 +4871,7 @@ public static class MxBankTransferPayments { @SerializedName("requested") Boolean requested; - private MxBankTransferPayments(Map extraParams, Boolean requested) { + private P24Payments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4296,16 +4886,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.MxBankTransferPayments build() { - return new AccountCreateParams.Capabilities.MxBankTransferPayments( - this.extraParams, this.requested); + public AccountCreateParams.Capabilities.P24Payments build() { + return new AccountCreateParams.Capabilities.P24Payments(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.MxBankTransferPayments#extraParams} for - * the field documentation. + * map. See {@link AccountCreateParams.Capabilities.P24Payments#extraParams} for the field + * documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4318,8 +4907,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.MxBankTransferPayments#extraParams} for - * the field documentation. + * map. See {@link AccountCreateParams.Capabilities.P24Payments#extraParams} for the field + * documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4342,7 +4931,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class OxxoPayments { + public static class PaycoPayments { /** * 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. @@ -4360,7 +4949,7 @@ public static class OxxoPayments { @SerializedName("requested") Boolean requested; - private OxxoPayments(Map extraParams, Boolean requested) { + private PaycoPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4375,15 +4964,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.OxxoPayments build() { - return new AccountCreateParams.Capabilities.OxxoPayments( + public AccountCreateParams.Capabilities.PaycoPayments build() { + return new AccountCreateParams.Capabilities.PaycoPayments( 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.OxxoPayments#extraParams} for the field + * map. See {@link AccountCreateParams.Capabilities.PaycoPayments#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4397,7 +4986,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.OxxoPayments#extraParams} for the field + * map. See {@link AccountCreateParams.Capabilities.PaycoPayments#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -4421,7 +5010,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class P24Payments { + public static class PaynowPayments { /** * 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. @@ -4439,7 +5028,7 @@ public static class P24Payments { @SerializedName("requested") Boolean requested; - private P24Payments(Map extraParams, Boolean requested) { + private PaynowPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4454,15 +5043,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.P24Payments build() { - return new AccountCreateParams.Capabilities.P24Payments(this.extraParams, this.requested); + public AccountCreateParams.Capabilities.PaynowPayments build() { + return new AccountCreateParams.Capabilities.PaynowPayments( + 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.P24Payments#extraParams} for the field - * documentation. + * map. See {@link AccountCreateParams.Capabilities.PaynowPayments#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4475,8 +5065,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.P24Payments#extraParams} for the field - * documentation. + * map. See {@link AccountCreateParams.Capabilities.PaynowPayments#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4499,7 +5089,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class PaynowPayments { + public static class PromptpayPayments { /** * 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. @@ -4517,7 +5107,7 @@ public static class PaynowPayments { @SerializedName("requested") Boolean requested; - private PaynowPayments(Map extraParams, Boolean requested) { + private PromptpayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4532,15 +5122,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.PaynowPayments build() { - return new AccountCreateParams.Capabilities.PaynowPayments( + public AccountCreateParams.Capabilities.PromptpayPayments build() { + return new AccountCreateParams.Capabilities.PromptpayPayments( 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.PaynowPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.PromptpayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4554,7 +5144,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.PaynowPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.PromptpayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4578,7 +5168,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class PromptpayPayments { + public static class RevolutPayPayments { /** * 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. @@ -4596,7 +5186,7 @@ public static class PromptpayPayments { @SerializedName("requested") Boolean requested; - private PromptpayPayments(Map extraParams, Boolean requested) { + private RevolutPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4611,15 +5201,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.PromptpayPayments build() { - return new AccountCreateParams.Capabilities.PromptpayPayments( + public AccountCreateParams.Capabilities.RevolutPayPayments build() { + return new AccountCreateParams.Capabilities.RevolutPayPayments( 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.PromptpayPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.RevolutPayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4633,7 +5223,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.PromptpayPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.RevolutPayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4657,7 +5247,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class RevolutPayPayments { + public static class SamsungPayPayments { /** * 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. @@ -4675,7 +5265,7 @@ public static class RevolutPayPayments { @SerializedName("requested") Boolean requested; - private RevolutPayPayments(Map extraParams, Boolean requested) { + private SamsungPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4690,15 +5280,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountCreateParams.Capabilities.RevolutPayPayments build() { - return new AccountCreateParams.Capabilities.RevolutPayPayments( + public AccountCreateParams.Capabilities.SamsungPayPayments build() { + return new AccountCreateParams.Capabilities.SamsungPayPayments( 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.RevolutPayPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.SamsungPayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4712,7 +5302,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.RevolutPayPayments#extraParams} for the + * map. See {@link AccountCreateParams.Capabilities.SamsungPayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -8263,6 +8853,92 @@ public Builder addAllFile(List elements) { } } + @Getter + public static class Groups { + /** + * 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 group the account is in to determine their payments pricing, and null if the account is + * on customized pricing. See + * the Platform pricing tool documentation for details. + */ + @SerializedName("payments_pricing") + Object paymentsPricing; + + private Groups(Map extraParams, Object paymentsPricing) { + this.extraParams = extraParams; + this.paymentsPricing = paymentsPricing; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Object paymentsPricing; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Groups build() { + return new AccountCreateParams.Groups(this.extraParams, this.paymentsPricing); + } + + /** + * 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.Groups#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.Groups#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 group the account is in to determine their payments pricing, and null if the account is + * on customized pricing. See + * the Platform pricing tool documentation for details. + */ + public Builder setPaymentsPricing(String paymentsPricing) { + this.paymentsPricing = paymentsPricing; + return this; + } + + /** + * The group the account is in to determine their payments pricing, and null if the account is + * on customized pricing. See + * the Platform pricing tool documentation for details. + */ + public Builder setPaymentsPricing(EmptyParam paymentsPricing) { + this.paymentsPricing = paymentsPricing; + return this; + } + } + } + @Getter public static class Individual { /** The individual's primary address. */ @@ -8310,10 +8986,7 @@ public static class Individual { @SerializedName("full_name_aliases") Object fullNameAliases; - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ + /** The individual's gender. */ @SerializedName("gender") String gender; @@ -8643,10 +9316,7 @@ public Builder setFullNameAliases(List fullNameAliases) { return this; } - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ + /** The individual's gender. */ public Builder setGender(String gender) { this.gender = gender; return this; diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java index b9d44984449..89da3c4cbe7 100644 --- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java +++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java @@ -445,11 +445,22 @@ public Builder setFeatures( @Getter public static class Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; @@ -464,7 +475,11 @@ public static class Features { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Features(Boolean externalAccountCollection, Map extraParams) { + private Features( + Boolean disableStripeUserAuthentication, + Boolean externalAccountCollection, + Map extraParams) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; this.externalAccountCollection = externalAccountCollection; this.extraParams = extraParams; } @@ -474,6 +489,8 @@ public static Builder builder() { } public static class Builder { + private Boolean disableStripeUserAuthentication; + private Boolean externalAccountCollection; private Map extraParams; @@ -481,14 +498,30 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountSessionCreateParams.Components.AccountManagement.Features build() { return new AccountSessionCreateParams.Components.AccountManagement.Features( - this.externalAccountCollection, this.extraParams); + this.disableStripeUserAuthentication, + this.externalAccountCollection, + this.extraParams); + } + + /** + * Disables Stripe user authentication for this embedded component. This feature can only + * be false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this + * feature is {@code false} when {@code external_account_collection} is enabled and {@code + * true} otherwise. + */ + public Builder setDisableStripeUserAuthentication( + Boolean disableStripeUserAuthentication) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; + return this; } /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom + * accounts. Otherwise, bank account collection is determined by compliance requirements. + * The default value for this feature is {@code true}. */ public Builder setExternalAccountCollection(Boolean externalAccountCollection) { this.externalAccountCollection = externalAccountCollection; @@ -615,11 +648,22 @@ public Builder setFeatures( @Getter public static class Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; @@ -634,7 +678,11 @@ public static class Features { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Features(Boolean externalAccountCollection, Map extraParams) { + private Features( + Boolean disableStripeUserAuthentication, + Boolean externalAccountCollection, + Map extraParams) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; this.externalAccountCollection = externalAccountCollection; this.extraParams = extraParams; } @@ -644,6 +692,8 @@ public static Builder builder() { } public static class Builder { + private Boolean disableStripeUserAuthentication; + private Boolean externalAccountCollection; private Map extraParams; @@ -651,14 +701,30 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountSessionCreateParams.Components.AccountOnboarding.Features build() { return new AccountSessionCreateParams.Components.AccountOnboarding.Features( - this.externalAccountCollection, this.extraParams); + this.disableStripeUserAuthentication, + this.externalAccountCollection, + this.extraParams); + } + + /** + * Disables Stripe user authentication for this embedded component. This feature can only + * be false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this + * feature is {@code false} when {@code external_account_collection} is enabled and {@code + * true} otherwise. + */ + public Builder setDisableStripeUserAuthentication( + Boolean disableStripeUserAuthentication) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; + return this; } /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom + * accounts. Otherwise, bank account collection is determined by compliance requirements. + * The default value for this feature is {@code true}. */ public Builder setExternalAccountCollection(Boolean externalAccountCollection) { this.externalAccountCollection = externalAccountCollection; @@ -784,6 +850,16 @@ public Builder setFeatures( @Getter public static class Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow payout schedule to be changed. Default {@code true} when Stripe owns * Loss Liability, default {@code false} otherwise. @@ -793,9 +869,10 @@ public static class Features { /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; @@ -825,11 +902,13 @@ public static class Features { Boolean standardPayouts; private Features( + Boolean disableStripeUserAuthentication, Boolean editPayoutSchedule, Boolean externalAccountCollection, Map extraParams, Boolean instantPayouts, Boolean standardPayouts) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; this.editPayoutSchedule = editPayoutSchedule; this.externalAccountCollection = externalAccountCollection; this.extraParams = extraParams; @@ -842,6 +921,8 @@ public static Builder builder() { } public static class Builder { + private Boolean disableStripeUserAuthentication; + private Boolean editPayoutSchedule; private Boolean externalAccountCollection; @@ -855,6 +936,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountSessionCreateParams.Components.Balances.Features build() { return new AccountSessionCreateParams.Components.Balances.Features( + this.disableStripeUserAuthentication, this.editPayoutSchedule, this.externalAccountCollection, this.extraParams, @@ -862,6 +944,19 @@ public AccountSessionCreateParams.Components.Balances.Features build() { this.standardPayouts); } + /** + * Disables Stripe user authentication for this embedded component. This feature can only + * be false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this + * feature is {@code false} when {@code external_account_collection} is enabled and {@code + * true} otherwise. + */ + public Builder setDisableStripeUserAuthentication( + Boolean disableStripeUserAuthentication) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; + return this; + } + /** * Whether to allow payout schedule to be changed. Default {@code true} when Stripe owns * Loss Liability, default {@code false} otherwise. @@ -873,9 +968,10 @@ public Builder setEditPayoutSchedule(Boolean editPayoutSchedule) { /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom + * accounts. Otherwise, bank account collection is determined by compliance requirements. + * The default value for this feature is {@code true}. */ public Builder setExternalAccountCollection(Boolean externalAccountCollection) { this.externalAccountCollection = externalAccountCollection; @@ -1161,11 +1257,22 @@ public Builder setFeatures( @Getter public static class Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; @@ -1180,7 +1287,11 @@ public static class Features { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Features(Boolean externalAccountCollection, Map extraParams) { + private Features( + Boolean disableStripeUserAuthentication, + Boolean externalAccountCollection, + Map extraParams) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; this.externalAccountCollection = externalAccountCollection; this.extraParams = extraParams; } @@ -1190,6 +1301,8 @@ public static Builder builder() { } public static class Builder { + private Boolean disableStripeUserAuthentication; + private Boolean externalAccountCollection; private Map extraParams; @@ -1197,14 +1310,30 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountSessionCreateParams.Components.NotificationBanner.Features build() { return new AccountSessionCreateParams.Components.NotificationBanner.Features( - this.externalAccountCollection, this.extraParams); + this.disableStripeUserAuthentication, + this.externalAccountCollection, + this.extraParams); + } + + /** + * Disables Stripe user authentication for this embedded component. This feature can only + * be false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this + * feature is {@code false} when {@code external_account_collection} is enabled and {@code + * true} otherwise. + */ + public Builder setDisableStripeUserAuthentication( + Boolean disableStripeUserAuthentication) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; + return this; } /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom + * accounts. Otherwise, bank account collection is determined by compliance requirements. + * The default value for this feature is {@code true}. */ public Builder setExternalAccountCollection(Boolean externalAccountCollection) { this.externalAccountCollection = externalAccountCollection; @@ -1780,6 +1909,16 @@ public Builder setFeatures( @Getter public static class Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be + * false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this feature + * is {@code false} when {@code external_account_collection} is enabled and {@code true} + * otherwise. + */ + @SerializedName("disable_stripe_user_authentication") + Boolean disableStripeUserAuthentication; + /** * Whether to allow payout schedule to be changed. Default {@code true} when Stripe owns * Loss Liability, default {@code false} otherwise. @@ -1789,9 +1928,10 @@ public static class Features { /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom accounts. + * Otherwise, bank account collection is determined by compliance requirements. The default + * value for this feature is {@code true}. */ @SerializedName("external_account_collection") Boolean externalAccountCollection; @@ -1821,11 +1961,13 @@ public static class Features { Boolean standardPayouts; private Features( + Boolean disableStripeUserAuthentication, Boolean editPayoutSchedule, Boolean externalAccountCollection, Map extraParams, Boolean instantPayouts, Boolean standardPayouts) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; this.editPayoutSchedule = editPayoutSchedule; this.externalAccountCollection = externalAccountCollection; this.extraParams = extraParams; @@ -1838,6 +1980,8 @@ public static Builder builder() { } public static class Builder { + private Boolean disableStripeUserAuthentication; + private Boolean editPayoutSchedule; private Boolean externalAccountCollection; @@ -1851,6 +1995,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountSessionCreateParams.Components.Payouts.Features build() { return new AccountSessionCreateParams.Components.Payouts.Features( + this.disableStripeUserAuthentication, this.editPayoutSchedule, this.externalAccountCollection, this.extraParams, @@ -1858,6 +2003,19 @@ public AccountSessionCreateParams.Components.Payouts.Features build() { this.standardPayouts); } + /** + * Disables Stripe user authentication for this embedded component. This feature can only + * be false for accounts where you’re responsible for collecting updated information when + * requirements are due or change, like custom accounts. The default value for this + * feature is {@code false} when {@code external_account_collection} is enabled and {@code + * true} otherwise. + */ + public Builder setDisableStripeUserAuthentication( + Boolean disableStripeUserAuthentication) { + this.disableStripeUserAuthentication = disableStripeUserAuthentication; + return this; + } + /** * Whether to allow payout schedule to be changed. Default {@code true} when Stripe owns * Loss Liability, default {@code false} otherwise. @@ -1869,9 +2027,10 @@ public Builder setEditPayoutSchedule(Boolean editPayoutSchedule) { /** * Whether to allow platforms to control bank account collection for their connected - * accounts. This feature can only be false for custom accounts (or accounts where the - * platform is compliance owner). Otherwise, bank account collection is determined by - * compliance requirements. + * accounts. This feature can only be false for accounts where you’re responsible for + * collecting updated information when requirements are due or change, like custom + * accounts. Otherwise, bank account collection is determined by compliance requirements. + * The default value for this feature is {@code true}. */ public Builder setExternalAccountCollection(Boolean externalAccountCollection) { this.externalAccountCollection = externalAccountCollection; diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java index b28b2e2530c..a65a2ab829a 100644 --- a/src/main/java/com/stripe/param/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountUpdateParams.java @@ -115,6 +115,13 @@ public class AccountUpdateParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * A hash of account group type to tokens. These are account groups this account should be added + * to + */ + @SerializedName("groups") + Groups groups; + /** * Information about the person represented by the account. This field is null unless {@code * business_type} is set to {@code individual}. Once you create an expand, Object externalAccount, Map extraParams, + Groups groups, Individual individual, Object metadata, Settings settings, @@ -178,6 +186,7 @@ private AccountUpdateParams( this.expand = expand; this.externalAccount = externalAccount; this.extraParams = extraParams; + this.groups = groups; this.individual = individual; this.metadata = metadata; this.settings = settings; @@ -211,6 +220,8 @@ public static class Builder { private Map extraParams; + private Groups groups; + private Individual individual; private Object metadata; @@ -233,6 +244,7 @@ public AccountUpdateParams build() { this.expand, this.externalAccount, this.extraParams, + this.groups, this.individual, this.metadata, this.settings, @@ -453,6 +465,15 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * A hash of account group type to tokens. These are account groups this account should be added + * to + */ + public Builder setGroups(AccountUpdateParams.Groups groups) { + this.groups = groups; + return this; + } + /** * Information about the person represented by the account. This field is null unless {@code * business_type} is set to {@code individual}. Once you create an 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 AlmaPayments(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.AlmaPayments build() { + return new AccountUpdateParams.Capabilities.AlmaPayments( + 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.AlmaPayments#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.AlmaPayments#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 public static class AmazonPayPayments { /** @@ -3684,16 +3879,410 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.IndiaInternationalPayments build() { - return new AccountUpdateParams.Capabilities.IndiaInternationalPayments( + public AccountUpdateParams.Capabilities.IndiaInternationalPayments build() { + return new AccountUpdateParams.Capabilities.IndiaInternationalPayments( + 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.IndiaInternationalPayments#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.IndiaInternationalPayments#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 + public static class JcbPayments { + /** + * 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 JcbPayments(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.JcbPayments build() { + return new AccountUpdateParams.Capabilities.JcbPayments(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.JcbPayments#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.JcbPayments#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 + public static class JpBankTransferPayments { + /** + * 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 JpBankTransferPayments(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.JpBankTransferPayments build() { + return new AccountUpdateParams.Capabilities.JpBankTransferPayments( + 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.JpBankTransferPayments#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.JpBankTransferPayments#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 + public static class KakaoPayPayments { + /** + * 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 KakaoPayPayments(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.KakaoPayPayments build() { + return new AccountUpdateParams.Capabilities.KakaoPayPayments( + 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.KakaoPayPayments#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.KakaoPayPayments#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 + public static class KlarnaPayments { + /** + * 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 KlarnaPayments(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.KlarnaPayments build() { + return new AccountUpdateParams.Capabilities.KlarnaPayments( + 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.KlarnaPayments#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.KlarnaPayments#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 + public static class KonbiniPayments { + /** + * 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 KonbiniPayments(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.KonbiniPayments build() { + return new AccountUpdateParams.Capabilities.KonbiniPayments( 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.IndiaInternationalPayments#extraParams} - * for the field documentation. + * map. See {@link AccountUpdateParams.Capabilities.KonbiniPayments#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3706,8 +4295,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.IndiaInternationalPayments#extraParams} - * for the field documentation. + * map. See {@link AccountUpdateParams.Capabilities.KonbiniPayments#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3730,7 +4319,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class JcbPayments { + public static class KrCardPayments { /** * 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. @@ -3748,7 +4337,7 @@ public static class JcbPayments { @SerializedName("requested") Boolean requested; - private JcbPayments(Map extraParams, Boolean requested) { + private KrCardPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3763,15 +4352,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.JcbPayments build() { - return new AccountUpdateParams.Capabilities.JcbPayments(this.extraParams, this.requested); + public AccountUpdateParams.Capabilities.KrCardPayments build() { + return new AccountUpdateParams.Capabilities.KrCardPayments( + 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.JcbPayments#extraParams} for the field - * documentation. + * map. See {@link AccountUpdateParams.Capabilities.KrCardPayments#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3784,8 +4374,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.JcbPayments#extraParams} for the field - * documentation. + * map. See {@link AccountUpdateParams.Capabilities.KrCardPayments#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3808,7 +4398,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class JpBankTransferPayments { + public static class LegacyPayments { /** * 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. @@ -3826,7 +4416,7 @@ public static class JpBankTransferPayments { @SerializedName("requested") Boolean requested; - private JpBankTransferPayments(Map extraParams, Boolean requested) { + private LegacyPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3841,16 +4431,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.JpBankTransferPayments build() { - return new AccountUpdateParams.Capabilities.JpBankTransferPayments( + public AccountUpdateParams.Capabilities.LegacyPayments build() { + return new AccountUpdateParams.Capabilities.LegacyPayments( 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.JpBankTransferPayments#extraParams} for - * the field documentation. + * map. See {@link AccountUpdateParams.Capabilities.LegacyPayments#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3863,8 +4453,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.JpBankTransferPayments#extraParams} for - * the field documentation. + * map. See {@link AccountUpdateParams.Capabilities.LegacyPayments#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3887,7 +4477,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class KlarnaPayments { + public static class LinkPayments { /** * 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. @@ -3905,7 +4495,7 @@ public static class KlarnaPayments { @SerializedName("requested") Boolean requested; - private KlarnaPayments(Map extraParams, Boolean requested) { + private LinkPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3920,16 +4510,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.KlarnaPayments build() { - return new AccountUpdateParams.Capabilities.KlarnaPayments( + public AccountUpdateParams.Capabilities.LinkPayments build() { + return new AccountUpdateParams.Capabilities.LinkPayments( 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.KlarnaPayments#extraParams} for the - * field documentation. + * map. See {@link AccountUpdateParams.Capabilities.LinkPayments#extraParams} for the field + * documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3942,8 +4532,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.KlarnaPayments#extraParams} for the - * field documentation. + * map. See {@link AccountUpdateParams.Capabilities.LinkPayments#extraParams} for the field + * documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3966,7 +4556,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class KonbiniPayments { + public static class MobilepayPayments { /** * 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. @@ -3984,7 +4574,7 @@ public static class KonbiniPayments { @SerializedName("requested") Boolean requested; - private KonbiniPayments(Map extraParams, Boolean requested) { + private MobilepayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -3999,15 +4589,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.KonbiniPayments build() { - return new AccountUpdateParams.Capabilities.KonbiniPayments( + public AccountUpdateParams.Capabilities.MobilepayPayments build() { + return new AccountUpdateParams.Capabilities.MobilepayPayments( 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.KonbiniPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.MobilepayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4021,7 +4611,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.KonbiniPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.MobilepayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4045,7 +4635,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class LegacyPayments { + public static class MultibancoPayments { /** * 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. @@ -4063,7 +4653,7 @@ public static class LegacyPayments { @SerializedName("requested") Boolean requested; - private LegacyPayments(Map extraParams, Boolean requested) { + private MultibancoPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4078,15 +4668,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.LegacyPayments build() { - return new AccountUpdateParams.Capabilities.LegacyPayments( + public AccountUpdateParams.Capabilities.MultibancoPayments build() { + return new AccountUpdateParams.Capabilities.MultibancoPayments( 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.LegacyPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.MultibancoPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4100,7 +4690,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.LegacyPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.MultibancoPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4124,7 +4714,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class LinkPayments { + public static class MxBankTransferPayments { /** * 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. @@ -4142,7 +4732,7 @@ public static class LinkPayments { @SerializedName("requested") Boolean requested; - private LinkPayments(Map extraParams, Boolean requested) { + private MxBankTransferPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4157,16 +4747,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.LinkPayments build() { - return new AccountUpdateParams.Capabilities.LinkPayments( + public AccountUpdateParams.Capabilities.MxBankTransferPayments build() { + return new AccountUpdateParams.Capabilities.MxBankTransferPayments( 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.LinkPayments#extraParams} for the field - * documentation. + * map. See {@link AccountUpdateParams.Capabilities.MxBankTransferPayments#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4179,8 +4769,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.LinkPayments#extraParams} for the field - * documentation. + * map. See {@link AccountUpdateParams.Capabilities.MxBankTransferPayments#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4203,7 +4793,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class MobilepayPayments { + public static class NaverPayPayments { /** * 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. @@ -4221,7 +4811,7 @@ public static class MobilepayPayments { @SerializedName("requested") Boolean requested; - private MobilepayPayments(Map extraParams, Boolean requested) { + private NaverPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4236,15 +4826,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.MobilepayPayments build() { - return new AccountUpdateParams.Capabilities.MobilepayPayments( + public AccountUpdateParams.Capabilities.NaverPayPayments build() { + return new AccountUpdateParams.Capabilities.NaverPayPayments( 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.MobilepayPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.NaverPayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4258,7 +4848,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.MobilepayPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.NaverPayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4282,7 +4872,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class MultibancoPayments { + public static class OxxoPayments { /** * 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. @@ -4300,7 +4890,7 @@ public static class MultibancoPayments { @SerializedName("requested") Boolean requested; - private MultibancoPayments(Map extraParams, Boolean requested) { + private OxxoPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4315,16 +4905,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.MultibancoPayments build() { - return new AccountUpdateParams.Capabilities.MultibancoPayments( + public AccountUpdateParams.Capabilities.OxxoPayments build() { + return new AccountUpdateParams.Capabilities.OxxoPayments( 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.MultibancoPayments#extraParams} for the - * field documentation. + * map. See {@link AccountUpdateParams.Capabilities.OxxoPayments#extraParams} for the field + * documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4337,8 +4927,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.MultibancoPayments#extraParams} for the - * field documentation. + * map. See {@link AccountUpdateParams.Capabilities.OxxoPayments#extraParams} for the field + * documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4361,7 +4951,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class MxBankTransferPayments { + public static class P24Payments { /** * 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. @@ -4379,7 +4969,7 @@ public static class MxBankTransferPayments { @SerializedName("requested") Boolean requested; - private MxBankTransferPayments(Map extraParams, Boolean requested) { + private P24Payments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4394,16 +4984,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.MxBankTransferPayments build() { - return new AccountUpdateParams.Capabilities.MxBankTransferPayments( - this.extraParams, this.requested); + public AccountUpdateParams.Capabilities.P24Payments build() { + return new AccountUpdateParams.Capabilities.P24Payments(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.MxBankTransferPayments#extraParams} for - * the field documentation. + * map. See {@link AccountUpdateParams.Capabilities.P24Payments#extraParams} for the field + * documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4416,8 +5005,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.MxBankTransferPayments#extraParams} for - * the field documentation. + * map. See {@link AccountUpdateParams.Capabilities.P24Payments#extraParams} for the field + * documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4440,7 +5029,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class OxxoPayments { + public static class PaycoPayments { /** * 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. @@ -4458,7 +5047,7 @@ public static class OxxoPayments { @SerializedName("requested") Boolean requested; - private OxxoPayments(Map extraParams, Boolean requested) { + private PaycoPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4473,15 +5062,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.OxxoPayments build() { - return new AccountUpdateParams.Capabilities.OxxoPayments( + public AccountUpdateParams.Capabilities.PaycoPayments build() { + return new AccountUpdateParams.Capabilities.PaycoPayments( 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.OxxoPayments#extraParams} for the field + * map. See {@link AccountUpdateParams.Capabilities.PaycoPayments#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4495,7 +5084,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.OxxoPayments#extraParams} for the field + * map. See {@link AccountUpdateParams.Capabilities.PaycoPayments#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -4519,7 +5108,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class P24Payments { + public static class PaynowPayments { /** * 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. @@ -4537,7 +5126,7 @@ public static class P24Payments { @SerializedName("requested") Boolean requested; - private P24Payments(Map extraParams, Boolean requested) { + private PaynowPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4552,15 +5141,16 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.P24Payments build() { - return new AccountUpdateParams.Capabilities.P24Payments(this.extraParams, this.requested); + public AccountUpdateParams.Capabilities.PaynowPayments build() { + return new AccountUpdateParams.Capabilities.PaynowPayments( + 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.P24Payments#extraParams} for the field - * documentation. + * map. See {@link AccountUpdateParams.Capabilities.PaynowPayments#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4573,8 +5163,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.P24Payments#extraParams} for the field - * documentation. + * map. See {@link AccountUpdateParams.Capabilities.PaynowPayments#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4597,7 +5187,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class PaynowPayments { + public static class PromptpayPayments { /** * 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. @@ -4615,7 +5205,7 @@ public static class PaynowPayments { @SerializedName("requested") Boolean requested; - private PaynowPayments(Map extraParams, Boolean requested) { + private PromptpayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4630,15 +5220,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.PaynowPayments build() { - return new AccountUpdateParams.Capabilities.PaynowPayments( + public AccountUpdateParams.Capabilities.PromptpayPayments build() { + return new AccountUpdateParams.Capabilities.PromptpayPayments( 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.PaynowPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.PromptpayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4652,7 +5242,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.PaynowPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.PromptpayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4676,7 +5266,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class PromptpayPayments { + public static class RevolutPayPayments { /** * 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. @@ -4694,7 +5284,7 @@ public static class PromptpayPayments { @SerializedName("requested") Boolean requested; - private PromptpayPayments(Map extraParams, Boolean requested) { + private RevolutPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4709,15 +5299,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.PromptpayPayments build() { - return new AccountUpdateParams.Capabilities.PromptpayPayments( + public AccountUpdateParams.Capabilities.RevolutPayPayments build() { + return new AccountUpdateParams.Capabilities.RevolutPayPayments( 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.PromptpayPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.RevolutPayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4731,7 +5321,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.PromptpayPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.RevolutPayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4755,7 +5345,7 @@ public Builder setRequested(Boolean requested) { } @Getter - public static class RevolutPayPayments { + public static class SamsungPayPayments { /** * 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. @@ -4773,7 +5363,7 @@ public static class RevolutPayPayments { @SerializedName("requested") Boolean requested; - private RevolutPayPayments(Map extraParams, Boolean requested) { + private SamsungPayPayments(Map extraParams, Boolean requested) { this.extraParams = extraParams; this.requested = requested; } @@ -4788,15 +5378,15 @@ public static class Builder { private Boolean requested; /** Finalize and obtain parameter instance from this builder. */ - public AccountUpdateParams.Capabilities.RevolutPayPayments build() { - return new AccountUpdateParams.Capabilities.RevolutPayPayments( + public AccountUpdateParams.Capabilities.SamsungPayPayments build() { + return new AccountUpdateParams.Capabilities.SamsungPayPayments( 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.RevolutPayPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.SamsungPayPayments#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4810,7 +5400,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.RevolutPayPayments#extraParams} for the + * map. See {@link AccountUpdateParams.Capabilities.SamsungPayPayments#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -8172,6 +8762,92 @@ public Builder addAllFile(List elements) { } } + @Getter + public static class Groups { + /** + * 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 group the account is in to determine their payments pricing, and null if the account is + * on customized pricing. See + * the Platform pricing tool documentation for details. + */ + @SerializedName("payments_pricing") + Object paymentsPricing; + + private Groups(Map extraParams, Object paymentsPricing) { + this.extraParams = extraParams; + this.paymentsPricing = paymentsPricing; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Object paymentsPricing; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Groups build() { + return new AccountUpdateParams.Groups(this.extraParams, this.paymentsPricing); + } + + /** + * 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.Groups#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.Groups#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 group the account is in to determine their payments pricing, and null if the account is + * on customized pricing. See + * the Platform pricing tool documentation for details. + */ + public Builder setPaymentsPricing(String paymentsPricing) { + this.paymentsPricing = paymentsPricing; + return this; + } + + /** + * The group the account is in to determine their payments pricing, and null if the account is + * on customized pricing. See + * the Platform pricing tool documentation for details. + */ + public Builder setPaymentsPricing(EmptyParam paymentsPricing) { + this.paymentsPricing = paymentsPricing; + return this; + } + } + } + @Getter public static class Individual { /** The individual's primary address. */ @@ -8219,10 +8895,7 @@ public static class Individual { @SerializedName("full_name_aliases") Object fullNameAliases; - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ + /** The individual's gender. */ @SerializedName("gender") Object gender; @@ -8576,19 +9249,13 @@ public Builder setFullNameAliases(List fullNameAliases) { return this; } - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ + /** The individual's gender. */ public Builder setGender(String gender) { this.gender = gender; return this; } - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ + /** The individual's gender. */ public Builder setGender(EmptyParam gender) { this.gender = gender; return this; diff --git a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java index ee0a0077fd1..dde4c320cfc 100644 --- a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java +++ b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java @@ -232,6 +232,12 @@ public static class PaymentMethodData { @SerializedName("allow_redisplay") AllowRedisplay allowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + @SerializedName("alma") + Alma alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment * method. @@ -346,6 +352,13 @@ public static class PaymentMethodData { @SerializedName("interac_present") InteracPresent interacPresent; + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao Pay + * payment method. + */ + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -360,6 +373,13 @@ public static class PaymentMethodData { @SerializedName("konbini") Konbini konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean Card + * payment method. + */ + @SerializedName("kr_card") + KrCard krCard; + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -390,6 +410,13 @@ public static class PaymentMethodData { @SerializedName("multibanco") Multibanco multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -404,6 +431,13 @@ public static class PaymentMethodData { @SerializedName("p24") P24 p24; + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment + * method. + */ + @SerializedName("payco") + Payco payco; + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -446,6 +480,13 @@ public static class PaymentMethodData { @SerializedName("revolut_pay") RevolutPay revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + @SerializedName("samsung_pay") + SamsungPay samsungPay; + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -508,6 +549,7 @@ private PaymentMethodData( AfterpayClearpay afterpayClearpay, Alipay alipay, AllowRedisplay allowRedisplay, + Alma alma, AmazonPay amazonPay, AuBecsDebit auBecsDebit, BacsDebit bacsDebit, @@ -524,20 +566,25 @@ private PaymentMethodData( Grabpay grabpay, Ideal ideal, InteracPresent interacPresent, + KakaoPay kakaoPay, Klarna klarna, Konbini konbini, + KrCard krCard, Link link, Map metadata, Mobilepay mobilepay, Multibanco multibanco, + NaverPay naverPay, Oxxo oxxo, P24 p24, + Payco payco, Paynow paynow, Paypal paypal, Pix pix, Promptpay promptpay, RadarOptions radarOptions, RevolutPay revolutPay, + SamsungPay samsungPay, SepaDebit sepaDebit, Sofort sofort, Swish swish, @@ -551,6 +598,7 @@ private PaymentMethodData( this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; this.allowRedisplay = allowRedisplay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -567,20 +615,25 @@ private PaymentMethodData( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -606,6 +659,8 @@ public static class Builder { private AllowRedisplay allowRedisplay; + private Alma alma; + private AmazonPay amazonPay; private AuBecsDebit auBecsDebit; @@ -638,10 +693,14 @@ public static class Builder { private InteracPresent interacPresent; + private KakaoPay kakaoPay; + private Klarna klarna; private Konbini konbini; + private KrCard krCard; + private Link link; private Map metadata; @@ -650,10 +709,14 @@ public static class Builder { private Multibanco multibanco; + private NaverPay naverPay; + private Oxxo oxxo; private P24 p24; + private Payco payco; + private Paynow paynow; private Paypal paypal; @@ -666,6 +729,8 @@ public static class Builder { private RevolutPay revolutPay; + private SamsungPay samsungPay; + private SepaDebit sepaDebit; private Sofort sofort; @@ -690,6 +755,7 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() { this.afterpayClearpay, this.alipay, this.allowRedisplay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -706,20 +772,25 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.metadata, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.radarOptions, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -780,6 +851,14 @@ public Builder setAllowRedisplay( return this; } + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + public Builder setAlma(ConfirmationTokenCreateParams.PaymentMethodData.Alma alma) { + this.alma = alma; + return this; + } + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay * payment method. @@ -949,6 +1028,16 @@ public Builder setInteracPresent( return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao + * Pay payment method. + */ + public Builder setKakaoPay( + ConfirmationTokenCreateParams.PaymentMethodData.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -967,6 +1056,15 @@ public Builder setKonbini(ConfirmationTokenCreateParams.PaymentMethodData.Konbin return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean + * Card payment method. + */ + public Builder setKrCard(ConfirmationTokenCreateParams.PaymentMethodData.KrCard krCard) { + this.krCard = krCard; + return this; + } + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -1023,6 +1121,16 @@ public Builder setMultibanco( return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver + * Pay payment method. + */ + public Builder setNaverPay( + ConfirmationTokenCreateParams.PaymentMethodData.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -1041,6 +1149,15 @@ public Builder setP24(ConfirmationTokenCreateParams.PaymentMethodData.P24 p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO + * payment method. + */ + public Builder setPayco(ConfirmationTokenCreateParams.PaymentMethodData.Payco payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1098,6 +1215,16 @@ public Builder setRevolutPay( return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + public Builder setSamsungPay( + ConfirmationTokenCreateParams.PaymentMethodData.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -1450,6 +1577,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new ConfirmationTokenCreateParams.PaymentMethodData.Alma(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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -2739,7 +2923,10 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Ideal { - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ @SerializedName("bank") Bank bank; @@ -2772,7 +2959,10 @@ public ConfirmationTokenCreateParams.PaymentMethodData.Ideal build() { this.bank, this.extraParams); } - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ public Builder setBank(ConfirmationTokenCreateParams.PaymentMethodData.Ideal.Bank bank) { this.bank = bank; return this; @@ -2925,6 +3115,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KakaoPay { + /** + * 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 KakaoPay(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.KakaoPay build() { + return new ConfirmationTokenCreateParams.PaymentMethodData.KakaoPay(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.KakaoPay#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.KakaoPay#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 public static class Klarna { /** Customer's date of birth. */ @@ -3151,6 +3398,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KrCard { + /** + * 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 KrCard(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.KrCard build() { + return new ConfirmationTokenCreateParams.PaymentMethodData.KrCard(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.KrCard#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.KrCard#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 public static class Link { /** @@ -3322,6 +3626,99 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class NaverPay { + /** + * 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; + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + @SerializedName("funding") + Funding funding; + + private NaverPay(Map extraParams, Funding funding) { + this.extraParams = extraParams; + this.funding = funding; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Funding funding; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfirmationTokenCreateParams.PaymentMethodData.NaverPay build() { + return new ConfirmationTokenCreateParams.PaymentMethodData.NaverPay( + this.extraParams, this.funding); + } + + /** + * 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.NaverPay#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.NaverPay#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + public Builder setFunding( + ConfirmationTokenCreateParams.PaymentMethodData.NaverPay.Funding funding) { + this.funding = funding; + return this; + } + } + + public enum Funding implements ApiRequestParams.EnumParam { + @SerializedName("card") + CARD("card"), + + @SerializedName("points") + POINTS("points"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Funding(String value) { + this.value = value; + } + } + } + @Getter public static class Oxxo { /** @@ -3537,6 +3934,63 @@ public enum Bank implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new ConfirmationTokenCreateParams.PaymentMethodData.Payco(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.Payco#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.Payco#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 public static class Paynow { /** @@ -3901,6 +4355,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay(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.SamsungPay build() { + return new ConfirmationTokenCreateParams.PaymentMethodData.SamsungPay(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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** @@ -4505,6 +5016,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -4544,12 +5058,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -4559,12 +5079,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -4580,6 +5106,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), diff --git a/src/main/java/com/stripe/param/CreditNoteCreateParams.java b/src/main/java/com/stripe/param/CreditNoteCreateParams.java index 4dfcd6f92b0..c773d233f1e 100644 --- a/src/main/java/com/stripe/param/CreditNoteCreateParams.java +++ b/src/main/java/com/stripe/param/CreditNoteCreateParams.java @@ -395,7 +395,8 @@ public Builder setShippingCost(CreditNoteCreateParams.ShippingCost shippingCost) @Getter public static class Line { /** - * The line item amount to credit. Only valid when {@code type} is {@code invoice_line_item}. + * The line item amount to credit. Only valid when {@code type} is {@code invoice_line_item}. If + * invoice is set up with {@code automatic_tax[enabled]=true}, this amount is tax exclusive */ @SerializedName("amount") Long amount; @@ -529,6 +530,7 @@ public CreditNoteCreateParams.Line build() { /** * The line item amount to credit. Only valid when {@code type} is {@code invoice_line_item}. + * If invoice is set up with {@code automatic_tax[enabled]=true}, this amount is tax exclusive */ public Builder setAmount(Long amount) { this.amount = amount; diff --git a/src/main/java/com/stripe/param/CreditNotePreviewLinesListParams.java b/src/main/java/com/stripe/param/CreditNotePreviewLinesListParams.java index d9c61dc8f9b..755430ba156 100644 --- a/src/main/java/com/stripe/param/CreditNotePreviewLinesListParams.java +++ b/src/main/java/com/stripe/param/CreditNotePreviewLinesListParams.java @@ -466,7 +466,8 @@ public Builder setStartingAfter(String startingAfter) { @Getter public static class Line { /** - * The line item amount to credit. Only valid when {@code type} is {@code invoice_line_item}. + * The line item amount to credit. Only valid when {@code type} is {@code invoice_line_item}. If + * invoice is set up with {@code automatic_tax[enabled]=true}, this amount is tax exclusive */ @SerializedName("amount") Long amount; @@ -600,6 +601,7 @@ public CreditNotePreviewLinesListParams.Line build() { /** * The line item amount to credit. Only valid when {@code type} is {@code invoice_line_item}. + * If invoice is set up with {@code automatic_tax[enabled]=true}, this amount is tax exclusive */ public Builder setAmount(Long amount) { this.amount = amount; diff --git a/src/main/java/com/stripe/param/CreditNotePreviewParams.java b/src/main/java/com/stripe/param/CreditNotePreviewParams.java index c6a8d90f15d..fe66bd217ea 100644 --- a/src/main/java/com/stripe/param/CreditNotePreviewParams.java +++ b/src/main/java/com/stripe/param/CreditNotePreviewParams.java @@ -395,7 +395,8 @@ public Builder setShippingCost(CreditNotePreviewParams.ShippingCost shippingCost @Getter public static class Line { /** - * The line item amount to credit. Only valid when {@code type} is {@code invoice_line_item}. + * The line item amount to credit. Only valid when {@code type} is {@code invoice_line_item}. If + * invoice is set up with {@code automatic_tax[enabled]=true}, this amount is tax exclusive */ @SerializedName("amount") Long amount; @@ -529,6 +530,7 @@ public CreditNotePreviewParams.Line build() { /** * The line item amount to credit. Only valid when {@code type} is {@code invoice_line_item}. + * If invoice is set up with {@code automatic_tax[enabled]=true}, this amount is tax exclusive */ public Builder setAmount(Long amount) { this.amount = amount; diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java index e574e140be8..7c6f21300d5 100644 --- a/src/main/java/com/stripe/param/CustomerCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateParams.java @@ -572,8 +572,9 @@ public static class Address { String city; /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, the + * format should be a two-letter country code (ISO 3166-1 alpha-2). */ @SerializedName("country") String country; @@ -658,8 +659,9 @@ public Builder setCity(String city) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, the + * format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(String country) { this.country = country; @@ -1389,8 +1391,9 @@ public static class Address { String city; /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, the + * format should be a two-letter country code (ISO 3166-1 alpha-2). */ @SerializedName("country") String country; @@ -1475,8 +1478,9 @@ public Builder setCity(String city) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(String country) { this.country = country; @@ -1678,18 +1682,20 @@ public static class TaxIdData { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code - * cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, - * {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code - * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, - * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code - * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, - * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code - * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, - * {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code - * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, + * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code + * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, + * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code + * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, + * {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, or + * {@code za_vat} */ @SerializedName("type") Type type; @@ -1749,19 +1755,20 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, - * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code - * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code - * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code - * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code - * vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(CustomerCreateParams.TaxIdData.Type type) { this.type = type; @@ -1806,6 +1813,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("by_tin") + BY_TIN("by_tin"), + @SerializedName("ca_bn") CA_BN("ca_bn"), @@ -1911,6 +1921,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("ma_vat") + MA_VAT("ma_vat"), + + @SerializedName("md_vat") + MD_VAT("md_vat"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -1980,6 +1996,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("tw_vat") TW_VAT("tw_vat"), + @SerializedName("tz_vat") + TZ_VAT("tz_vat"), + @SerializedName("ua_vat") UA_VAT("ua_vat"), @@ -1989,6 +2008,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_ruc") UY_RUC("uy_ruc"), + @SerializedName("uz_tin") + UZ_TIN("uz_tin"), + + @SerializedName("uz_vat") + UZ_VAT("uz_vat"), + @SerializedName("ve_rif") VE_RIF("ve_rif"), diff --git a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java index 5b83a650f7c..b7804ffe10e 100644 --- a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java +++ b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java @@ -252,6 +252,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -294,12 +297,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -309,12 +318,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -330,6 +345,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), diff --git a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java index 3d56fc71479..9a34bd926fd 100644 --- a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java +++ b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java @@ -252,6 +252,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -294,12 +297,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -309,12 +318,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -330,6 +345,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), diff --git a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java index 68592a22adc..c96f11f9110 100644 --- a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java @@ -27,18 +27,19 @@ public class CustomerTaxIdCreateParams extends ApiRequestParams { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, - * {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, - * {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code - * ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code - * in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code - * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code - * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, - * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, - * {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, - * {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code + * do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, + * {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, + * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, + * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code + * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code + * tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -128,18 +129,20 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code - * cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, - * {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code - * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, - * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code - * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, - * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code - * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, - * {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code - * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, + * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code + * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, + * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code + * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, + * {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, or + * {@code za_vat} */ public Builder setType(CustomerTaxIdCreateParams.Type type) { this.type = type; @@ -184,6 +187,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("by_tin") + BY_TIN("by_tin"), + @SerializedName("ca_bn") CA_BN("ca_bn"), @@ -289,6 +295,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("ma_vat") + MA_VAT("ma_vat"), + + @SerializedName("md_vat") + MD_VAT("md_vat"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -358,6 +370,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("tw_vat") TW_VAT("tw_vat"), + @SerializedName("tz_vat") + TZ_VAT("tz_vat"), + @SerializedName("ua_vat") UA_VAT("ua_vat"), @@ -367,6 +382,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_ruc") UY_RUC("uy_ruc"), + @SerializedName("uz_tin") + UZ_TIN("uz_tin"), + + @SerializedName("uz_vat") + UZ_VAT("uz_vat"), + @SerializedName("ve_rif") VE_RIF("ve_rif"), diff --git a/src/main/java/com/stripe/param/CustomerUpdateParams.java b/src/main/java/com/stripe/param/CustomerUpdateParams.java index 6fa3b29a242..7b26280b5a6 100644 --- a/src/main/java/com/stripe/param/CustomerUpdateParams.java +++ b/src/main/java/com/stripe/param/CustomerUpdateParams.java @@ -621,8 +621,9 @@ public static class Address { Object city; /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, the + * format should be a two-letter country code (ISO 3166-1 alpha-2). */ @SerializedName("country") Object country; @@ -713,8 +714,9 @@ public Builder setCity(EmptyParam city) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, the + * format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(String country) { this.country = country; @@ -722,8 +724,9 @@ public Builder setCountry(String country) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, the + * format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(EmptyParam country) { this.country = country; @@ -1527,8 +1530,9 @@ public static class Address { Object city; /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, the + * format should be a two-letter country code (ISO 3166-1 alpha-2). */ @SerializedName("country") Object country; @@ -1619,8 +1623,9 @@ public Builder setCity(EmptyParam city) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(String country) { this.country = country; @@ -1628,8 +1633,9 @@ public Builder setCountry(String country) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(EmptyParam country) { this.country = country; @@ -1826,6 +1832,9 @@ public Builder setValidateLocation( } public enum ValidateLocation implements ApiRequestParams.EnumParam { + @SerializedName("auto") + AUTO("auto"), + @SerializedName("deferred") DEFERRED("deferred"), diff --git a/src/main/java/com/stripe/param/DisputeUpdateParams.java b/src/main/java/com/stripe/param/DisputeUpdateParams.java index 06818e7a66e..ab7a359b04c 100644 --- a/src/main/java/com/stripe/param/DisputeUpdateParams.java +++ b/src/main/java/com/stripe/param/DisputeUpdateParams.java @@ -292,6 +292,10 @@ public static class Evidence { @SerializedName("duplicate_charge_id") Object duplicateChargeId; + /** Additional evidence for qualifying evidence programs. */ + @SerializedName("enhanced_evidence") + Object enhancedEvidence; + /** * 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 @@ -413,6 +417,7 @@ private Evidence( Object duplicateChargeDocumentation, Object duplicateChargeExplanation, Object duplicateChargeId, + Object enhancedEvidence, Map extraParams, Object productDescription, Object receipt, @@ -441,6 +446,7 @@ private Evidence( this.duplicateChargeDocumentation = duplicateChargeDocumentation; this.duplicateChargeExplanation = duplicateChargeExplanation; this.duplicateChargeId = duplicateChargeId; + this.enhancedEvidence = enhancedEvidence; this.extraParams = extraParams; this.productDescription = productDescription; this.receipt = receipt; @@ -489,6 +495,8 @@ public static class Builder { private Object duplicateChargeId; + private Object enhancedEvidence; + private Map extraParams; private Object productDescription; @@ -535,6 +543,7 @@ public DisputeUpdateParams.Evidence build() { this.duplicateChargeDocumentation, this.duplicateChargeExplanation, this.duplicateChargeId, + this.enhancedEvidence, this.extraParams, this.productDescription, this.receipt, @@ -770,6 +779,19 @@ public Builder setDuplicateChargeId(EmptyParam duplicateChargeId) { return this; } + /** Additional evidence for qualifying evidence programs. */ + public Builder setEnhancedEvidence( + DisputeUpdateParams.Evidence.EnhancedEvidence enhancedEvidence) { + this.enhancedEvidence = enhancedEvidence; + return this; + } + + /** Additional evidence for qualifying evidence programs. */ + public Builder setEnhancedEvidence(EmptyParam enhancedEvidence) { + this.enhancedEvidence = enhancedEvidence; + 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 @@ -1048,5 +1070,1156 @@ public Builder setUncategorizedText(EmptyParam uncategorizedText) { return this; } } + + @Getter + public static class EnhancedEvidence { + /** + * 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; + + /** Evidence provided for Visa Compelling Evidence 3.0 evidence submission. */ + @SerializedName("visa_compelling_evidence_3") + VisaCompellingEvidence3 visaCompellingEvidence3; + + private EnhancedEvidence( + Map extraParams, VisaCompellingEvidence3 visaCompellingEvidence3) { + this.extraParams = extraParams; + this.visaCompellingEvidence3 = visaCompellingEvidence3; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private VisaCompellingEvidence3 visaCompellingEvidence3; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeUpdateParams.Evidence.EnhancedEvidence build() { + return new DisputeUpdateParams.Evidence.EnhancedEvidence( + this.extraParams, this.visaCompellingEvidence3); + } + + /** + * 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 DisputeUpdateParams.Evidence.EnhancedEvidence#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 DisputeUpdateParams.Evidence.EnhancedEvidence#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Evidence provided for Visa Compelling Evidence 3.0 evidence submission. */ + public Builder setVisaCompellingEvidence3( + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + visaCompellingEvidence3) { + this.visaCompellingEvidence3 = visaCompellingEvidence3; + return this; + } + } + + @Getter + public static class VisaCompellingEvidence3 { + /** Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission. */ + @SerializedName("disputed_transaction") + DisputedTransaction disputedTransaction; + + /** + * 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; + + /** + * List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 + * evidence submission. + */ + @SerializedName("prior_undisputed_transactions") + List< + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction> + priorUndisputedTransactions; + + private VisaCompellingEvidence3( + DisputedTransaction disputedTransaction, + Map extraParams, + List< + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction> + priorUndisputedTransactions) { + this.disputedTransaction = disputedTransaction; + this.extraParams = extraParams; + this.priorUndisputedTransactions = priorUndisputedTransactions; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private DisputedTransaction disputedTransaction; + + private Map extraParams; + + private List< + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction> + priorUndisputedTransactions; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 build() { + return new DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3( + this.disputedTransaction, this.extraParams, this.priorUndisputedTransactions); + } + + /** Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission. */ + public Builder setDisputedTransaction( + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .DisputedTransaction + disputedTransaction) { + this.disputedTransaction = disputedTransaction; + 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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3#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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `priorUndisputedTransactions` list. A list is initialized for the + * first `add/addAll` call, and subsequent calls adds additional elements to the original + * list. See {@link + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3#priorUndisputedTransactions} + * for the field documentation. + */ + public Builder addPriorUndisputedTransaction( + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction + element) { + if (this.priorUndisputedTransactions == null) { + this.priorUndisputedTransactions = new ArrayList<>(); + } + this.priorUndisputedTransactions.add(element); + return this; + } + + /** + * Add all elements to `priorUndisputedTransactions` list. A list is initialized for the + * first `add/addAll` call, and subsequent calls adds additional elements to the original + * list. See {@link + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3#priorUndisputedTransactions} + * for the field documentation. + */ + public Builder addAllPriorUndisputedTransaction( + List< + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction> + elements) { + if (this.priorUndisputedTransactions == null) { + this.priorUndisputedTransactions = new ArrayList<>(); + } + this.priorUndisputedTransactions.addAll(elements); + return this; + } + } + + @Getter + public static class DisputedTransaction { + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + @SerializedName("customer_account_id") + Object customerAccountId; + + /** + * Unique identifier of the cardholder’s device derived from a combination of at least two + * hardware and software attributes. Must be at least 20 characters. + */ + @SerializedName("customer_device_fingerprint") + Object customerDeviceFingerprint; + + /** + * Unique identifier of the cardholder’s device such as a device serial number (e.g., + * International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + @SerializedName("customer_device_id") + Object customerDeviceId; + + /** The email address of the customer. */ + @SerializedName("customer_email_address") + Object customerEmailAddress; + + /** The IP address that the customer used when making the purchase. */ + @SerializedName("customer_purchase_ip") + Object customerPurchaseIp; + + /** + * 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; + + /** Categorization of disputed payment. */ + @SerializedName("merchandise_or_services") + MerchandiseOrServices merchandiseOrServices; + + /** A description of the product or service that was sold. */ + @SerializedName("product_description") + Object productDescription; + + /** + * The address to which a physical product was shipped. All fields are required for Visa + * Compelling Evidence 3.0 evidence submission. + */ + @SerializedName("shipping_address") + ShippingAddress shippingAddress; + + private DisputedTransaction( + Object customerAccountId, + Object customerDeviceFingerprint, + Object customerDeviceId, + Object customerEmailAddress, + Object customerPurchaseIp, + Map extraParams, + MerchandiseOrServices merchandiseOrServices, + Object productDescription, + ShippingAddress shippingAddress) { + this.customerAccountId = customerAccountId; + this.customerDeviceFingerprint = customerDeviceFingerprint; + this.customerDeviceId = customerDeviceId; + this.customerEmailAddress = customerEmailAddress; + this.customerPurchaseIp = customerPurchaseIp; + this.extraParams = extraParams; + this.merchandiseOrServices = merchandiseOrServices; + this.productDescription = productDescription; + this.shippingAddress = shippingAddress; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object customerAccountId; + + private Object customerDeviceFingerprint; + + private Object customerDeviceId; + + private Object customerEmailAddress; + + private Object customerPurchaseIp; + + private Map extraParams; + + private MerchandiseOrServices merchandiseOrServices; + + private Object productDescription; + + private ShippingAddress shippingAddress; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .DisputedTransaction + build() { + return new DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .DisputedTransaction( + this.customerAccountId, + this.customerDeviceFingerprint, + this.customerDeviceId, + this.customerEmailAddress, + this.customerPurchaseIp, + this.extraParams, + this.merchandiseOrServices, + this.productDescription, + this.shippingAddress); + } + + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + public Builder setCustomerAccountId(String customerAccountId) { + this.customerAccountId = customerAccountId; + return this; + } + + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + public Builder setCustomerAccountId(EmptyParam customerAccountId) { + this.customerAccountId = customerAccountId; + return this; + } + + /** + * Unique identifier of the cardholder’s device derived from a combination of at least + * two hardware and software attributes. Must be at least 20 characters. + */ + public Builder setCustomerDeviceFingerprint(String customerDeviceFingerprint) { + this.customerDeviceFingerprint = customerDeviceFingerprint; + return this; + } + + /** + * Unique identifier of the cardholder’s device derived from a combination of at least + * two hardware and software attributes. Must be at least 20 characters. + */ + public Builder setCustomerDeviceFingerprint(EmptyParam customerDeviceFingerprint) { + this.customerDeviceFingerprint = customerDeviceFingerprint; + return this; + } + + /** + * Unique identifier of the cardholder’s device such as a device serial number (e.g., + * International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + public Builder setCustomerDeviceId(String customerDeviceId) { + this.customerDeviceId = customerDeviceId; + return this; + } + + /** + * Unique identifier of the cardholder’s device such as a device serial number (e.g., + * International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + public Builder setCustomerDeviceId(EmptyParam customerDeviceId) { + this.customerDeviceId = customerDeviceId; + return this; + } + + /** The email address of the customer. */ + public Builder setCustomerEmailAddress(String customerEmailAddress) { + this.customerEmailAddress = customerEmailAddress; + return this; + } + + /** The email address of the customer. */ + public Builder setCustomerEmailAddress(EmptyParam customerEmailAddress) { + this.customerEmailAddress = customerEmailAddress; + return this; + } + + /** The IP address that the customer used when making the purchase. */ + public Builder setCustomerPurchaseIp(String customerPurchaseIp) { + this.customerPurchaseIp = customerPurchaseIp; + return this; + } + + /** The IP address that the customer used when making the purchase. */ + public Builder setCustomerPurchaseIp(EmptyParam customerPurchaseIp) { + this.customerPurchaseIp = customerPurchaseIp; + 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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.DisputedTransaction#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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.DisputedTransaction#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Categorization of disputed payment. */ + public Builder setMerchandiseOrServices( + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .DisputedTransaction.MerchandiseOrServices + merchandiseOrServices) { + this.merchandiseOrServices = merchandiseOrServices; + return this; + } + + /** A description of the product or service that was sold. */ + public Builder setProductDescription(String productDescription) { + this.productDescription = productDescription; + return this; + } + + /** A description of the product or service that was sold. */ + public Builder setProductDescription(EmptyParam productDescription) { + this.productDescription = productDescription; + return this; + } + + /** + * The address to which a physical product was shipped. All fields are required for Visa + * Compelling Evidence 3.0 evidence submission. + */ + public Builder setShippingAddress( + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .DisputedTransaction.ShippingAddress + shippingAddress) { + this.shippingAddress = shippingAddress; + return this; + } + } + + @Getter + public static class ShippingAddress { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + Object state; + + private ShippingAddress( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object city; + + private Object country; + + private Map extraParams; + + private Object line1; + + private Object line2; + + private Object postalCode; + + private Object state; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .DisputedTransaction.ShippingAddress + build() { + return new DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .DisputedTransaction.ShippingAddress( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + 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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.DisputedTransaction.ShippingAddress#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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.DisputedTransaction.ShippingAddress#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } + } + } + + public enum MerchandiseOrServices implements ApiRequestParams.EnumParam { + @SerializedName("merchandise") + MERCHANDISE("merchandise"), + + @SerializedName("services") + SERVICES("services"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + MerchandiseOrServices(String value) { + this.value = value; + } + } + } + + @Getter + public static class PriorUndisputedTransaction { + /** + * Required. Stripe charge ID for the Visa Compelling Evidence 3.0 + * eligible prior charge. + */ + @SerializedName("charge") + Object charge; + + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + @SerializedName("customer_account_id") + Object customerAccountId; + + /** + * Unique identifier of the cardholder’s device derived from a combination of at least two + * hardware and software attributes. Must be at least 20 characters. + */ + @SerializedName("customer_device_fingerprint") + Object customerDeviceFingerprint; + + /** + * Unique identifier of the cardholder’s device such as a device serial number (e.g., + * International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + @SerializedName("customer_device_id") + Object customerDeviceId; + + /** The email address of the customer. */ + @SerializedName("customer_email_address") + Object customerEmailAddress; + + /** The IP address that the customer used when making the purchase. */ + @SerializedName("customer_purchase_ip") + Object customerPurchaseIp; + + /** + * 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; + + /** A description of the product or service that was sold. */ + @SerializedName("product_description") + Object productDescription; + + /** + * The address to which a physical product was shipped. All fields are required for Visa + * Compelling Evidence 3.0 evidence submission. + */ + @SerializedName("shipping_address") + ShippingAddress shippingAddress; + + private PriorUndisputedTransaction( + Object charge, + Object customerAccountId, + Object customerDeviceFingerprint, + Object customerDeviceId, + Object customerEmailAddress, + Object customerPurchaseIp, + Map extraParams, + Object productDescription, + ShippingAddress shippingAddress) { + this.charge = charge; + this.customerAccountId = customerAccountId; + this.customerDeviceFingerprint = customerDeviceFingerprint; + this.customerDeviceId = customerDeviceId; + this.customerEmailAddress = customerEmailAddress; + this.customerPurchaseIp = customerPurchaseIp; + this.extraParams = extraParams; + this.productDescription = productDescription; + this.shippingAddress = shippingAddress; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object charge; + + private Object customerAccountId; + + private Object customerDeviceFingerprint; + + private Object customerDeviceId; + + private Object customerEmailAddress; + + private Object customerPurchaseIp; + + private Map extraParams; + + private Object productDescription; + + private ShippingAddress shippingAddress; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction + build() { + return new DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction( + this.charge, + this.customerAccountId, + this.customerDeviceFingerprint, + this.customerDeviceId, + this.customerEmailAddress, + this.customerPurchaseIp, + this.extraParams, + this.productDescription, + this.shippingAddress); + } + + /** + * Required. Stripe charge ID for the Visa Compelling Evidence 3.0 + * eligible prior charge. + */ + public Builder setCharge(String charge) { + this.charge = charge; + return this; + } + + /** + * Required. Stripe charge ID for the Visa Compelling Evidence 3.0 + * eligible prior charge. + */ + public Builder setCharge(EmptyParam charge) { + this.charge = charge; + return this; + } + + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + public Builder setCustomerAccountId(String customerAccountId) { + this.customerAccountId = customerAccountId; + return this; + } + + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + public Builder setCustomerAccountId(EmptyParam customerAccountId) { + this.customerAccountId = customerAccountId; + return this; + } + + /** + * Unique identifier of the cardholder’s device derived from a combination of at least + * two hardware and software attributes. Must be at least 20 characters. + */ + public Builder setCustomerDeviceFingerprint(String customerDeviceFingerprint) { + this.customerDeviceFingerprint = customerDeviceFingerprint; + return this; + } + + /** + * Unique identifier of the cardholder’s device derived from a combination of at least + * two hardware and software attributes. Must be at least 20 characters. + */ + public Builder setCustomerDeviceFingerprint(EmptyParam customerDeviceFingerprint) { + this.customerDeviceFingerprint = customerDeviceFingerprint; + return this; + } + + /** + * Unique identifier of the cardholder’s device such as a device serial number (e.g., + * International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + public Builder setCustomerDeviceId(String customerDeviceId) { + this.customerDeviceId = customerDeviceId; + return this; + } + + /** + * Unique identifier of the cardholder’s device such as a device serial number (e.g., + * International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + public Builder setCustomerDeviceId(EmptyParam customerDeviceId) { + this.customerDeviceId = customerDeviceId; + return this; + } + + /** The email address of the customer. */ + public Builder setCustomerEmailAddress(String customerEmailAddress) { + this.customerEmailAddress = customerEmailAddress; + return this; + } + + /** The email address of the customer. */ + public Builder setCustomerEmailAddress(EmptyParam customerEmailAddress) { + this.customerEmailAddress = customerEmailAddress; + return this; + } + + /** The IP address that the customer used when making the purchase. */ + public Builder setCustomerPurchaseIp(String customerPurchaseIp) { + this.customerPurchaseIp = customerPurchaseIp; + return this; + } + + /** The IP address that the customer used when making the purchase. */ + public Builder setCustomerPurchaseIp(EmptyParam customerPurchaseIp) { + this.customerPurchaseIp = customerPurchaseIp; + 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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.PriorUndisputedTransaction#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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.PriorUndisputedTransaction#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** A description of the product or service that was sold. */ + public Builder setProductDescription(String productDescription) { + this.productDescription = productDescription; + return this; + } + + /** A description of the product or service that was sold. */ + public Builder setProductDescription(EmptyParam productDescription) { + this.productDescription = productDescription; + return this; + } + + /** + * The address to which a physical product was shipped. All fields are required for Visa + * Compelling Evidence 3.0 evidence submission. + */ + public Builder setShippingAddress( + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction.ShippingAddress + shippingAddress) { + this.shippingAddress = shippingAddress; + return this; + } + } + + @Getter + public static class ShippingAddress { + /** City, district, suburb, town, or village. */ + @SerializedName("city") + Object city; + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + @SerializedName("country") + Object country; + + /** + * 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; + + /** Address line 1 (e.g., street, PO Box, or company name). */ + @SerializedName("line1") + Object line1; + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + @SerializedName("line2") + Object line2; + + /** ZIP or postal code. */ + @SerializedName("postal_code") + Object postalCode; + + /** State, county, province, or region. */ + @SerializedName("state") + Object state; + + private ShippingAddress( + Object city, + Object country, + Map extraParams, + Object line1, + Object line2, + Object postalCode, + Object state) { + this.city = city; + this.country = country; + this.extraParams = extraParams; + this.line1 = line1; + this.line2 = line2; + this.postalCode = postalCode; + this.state = state; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object city; + + private Object country; + + private Map extraParams; + + private Object line1; + + private Object line2; + + private Object postalCode; + + private Object state; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction.ShippingAddress + build() { + return new DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3 + .PriorUndisputedTransaction.ShippingAddress( + this.city, + this.country, + this.extraParams, + this.line1, + this.line2, + this.postalCode, + this.state); + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(String city) { + this.city = city; + return this; + } + + /** City, district, suburb, town, or village. */ + public Builder setCity(EmptyParam city) { + this.city = city; + return this; + } + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(String country) { + this.country = country; + return this; + } + + /** + * Two-letter country code (ISO 3166-1 alpha-2). + */ + public Builder setCountry(EmptyParam country) { + this.country = country; + 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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.PriorUndisputedTransaction.ShippingAddress#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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.PriorUndisputedTransaction.ShippingAddress#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(String line1) { + this.line1 = line1; + return this; + } + + /** Address line 1 (e.g., street, PO Box, or company name). */ + public Builder setLine1(EmptyParam line1) { + this.line1 = line1; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(String line2) { + this.line2 = line2; + return this; + } + + /** Address line 2 (e.g., apartment, suite, unit, or building). */ + public Builder setLine2(EmptyParam line2) { + this.line2 = line2; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** ZIP or postal code. */ + public Builder setPostalCode(EmptyParam postalCode) { + this.postalCode = postalCode; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(String state) { + this.state = state; + return this; + } + + /** State, county, province, or region. */ + public Builder setState(EmptyParam state) { + this.state = state; + return this; + } + } + } + } + } + } } } diff --git a/src/main/java/com/stripe/param/InvoiceAddLinesParams.java b/src/main/java/com/stripe/param/InvoiceAddLinesParams.java index c1202d04b4b..8a4a50006f9 100644 --- a/src/main/java/com/stripe/param/InvoiceAddLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceAddLinesParams.java @@ -1656,6 +1656,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("qst") QST("qst"), + @SerializedName("retail_delivery_fee") + RETAIL_DELIVERY_FEE("retail_delivery_fee"), + @SerializedName("rst") RST("rst"), diff --git a/src/main/java/com/stripe/param/InvoiceCreateParams.java b/src/main/java/com/stripe/param/InvoiceCreateParams.java index 956f936842f..2c45d6891a4 100644 --- a/src/main/java/com/stripe/param/InvoiceCreateParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreateParams.java @@ -39,6 +39,13 @@ public class InvoiceCreateParams extends ApiRequestParams { @SerializedName("automatic_tax") AutomaticTax automaticTax; + /** + * The time when this invoice should be scheduled to finalize. The invoice will be finalized at + * this time if it is still in draft state. + */ + @SerializedName("automatically_finalizes_at") + Long automaticallyFinalizesAt; + /** * Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically, * Stripe will attempt to pay this invoice using the default source attached to the customer. When @@ -240,6 +247,7 @@ private InvoiceCreateParams( Long applicationFeeAmount, Boolean autoAdvance, AutomaticTax automaticTax, + Long automaticallyFinalizesAt, CollectionMethod collectionMethod, String currency, Object customFields, @@ -272,6 +280,7 @@ private InvoiceCreateParams( this.applicationFeeAmount = applicationFeeAmount; this.autoAdvance = autoAdvance; this.automaticTax = automaticTax; + this.automaticallyFinalizesAt = automaticallyFinalizesAt; this.collectionMethod = collectionMethod; this.currency = currency; this.customFields = customFields; @@ -315,6 +324,8 @@ public static class Builder { private AutomaticTax automaticTax; + private Long automaticallyFinalizesAt; + private CollectionMethod collectionMethod; private String currency; @@ -378,6 +389,7 @@ public InvoiceCreateParams build() { this.applicationFeeAmount, this.autoAdvance, this.automaticTax, + this.automaticallyFinalizesAt, this.collectionMethod, this.currency, this.customFields, @@ -481,6 +493,15 @@ public Builder setAutomaticTax(InvoiceCreateParams.AutomaticTax automaticTax) { return this; } + /** + * The time when this invoice should be scheduled to finalize. The invoice will be finalized at + * this time if it is still in draft state. + */ + public Builder setAutomaticallyFinalizesAt(Long automaticallyFinalizesAt) { + this.automaticallyFinalizesAt = automaticallyFinalizesAt; + return this; + } + /** * Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically, * Stripe will attempt to pay this invoice using the default source attached to the customer. @@ -3576,18 +3597,33 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("jp_credit_transfer") + JP_CREDIT_TRANSFER("jp_credit_transfer"), + + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index 33f675f873f..3845bd338f1 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -1097,8 +1097,9 @@ public static class Address { String city; /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ @SerializedName("country") String country; @@ -1184,8 +1185,9 @@ public Builder setCity(String city) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(String country) { this.country = country; @@ -1355,19 +1357,20 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, - * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code - * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code - * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code - * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code - * vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1430,19 +1433,20 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code - * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, - * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code - * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, - * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code - * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, - * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code - * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceCreatePreviewParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1487,6 +1491,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("by_tin") + BY_TIN("by_tin"), + @SerializedName("ca_bn") CA_BN("ca_bn"), @@ -1592,6 +1599,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("ma_vat") + MA_VAT("ma_vat"), + + @SerializedName("md_vat") + MD_VAT("md_vat"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -1661,6 +1674,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("tw_vat") TW_VAT("tw_vat"), + @SerializedName("tz_vat") + TZ_VAT("tz_vat"), + @SerializedName("ua_vat") UA_VAT("ua_vat"), @@ -1670,6 +1686,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_ruc") UY_RUC("uy_ruc"), + @SerializedName("uz_tin") + UZ_TIN("uz_tin"), + + @SerializedName("uz_vat") + UZ_VAT("uz_vat"), + @SerializedName("ve_rif") VE_RIF("ve_rif"), diff --git a/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java b/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java index d91731f43ab..2f29a61fa7f 100644 --- a/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java +++ b/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java @@ -1604,6 +1604,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("qst") QST("qst"), + @SerializedName("retail_delivery_fee") + RETAIL_DELIVERY_FEE("retail_delivery_fee"), + @SerializedName("rst") RST("rst"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java index e38cce01735..47005100b28 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java @@ -1589,8 +1589,9 @@ public static class Address { String city; /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ @SerializedName("country") String country; @@ -1676,8 +1677,9 @@ public Builder setCity(String city) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(String country) { this.country = country; @@ -1847,19 +1849,20 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, - * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code - * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code - * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code - * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code - * vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1922,19 +1925,20 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code - * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, - * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code - * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, - * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code - * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, - * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code - * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceUpcomingLinesListParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1979,6 +1983,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("by_tin") + BY_TIN("by_tin"), + @SerializedName("ca_bn") CA_BN("ca_bn"), @@ -2084,6 +2091,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("ma_vat") + MA_VAT("ma_vat"), + + @SerializedName("md_vat") + MD_VAT("md_vat"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -2153,6 +2166,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("tw_vat") TW_VAT("tw_vat"), + @SerializedName("tz_vat") + TZ_VAT("tz_vat"), + @SerializedName("ua_vat") UA_VAT("ua_vat"), @@ -2162,6 +2178,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_ruc") UY_RUC("uy_ruc"), + @SerializedName("uz_tin") + UZ_TIN("uz_tin"), + + @SerializedName("uz_vat") + UZ_VAT("uz_vat"), + @SerializedName("ve_rif") VE_RIF("ve_rif"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java index 0398b5c973a..c2fdce3648d 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java @@ -1581,8 +1581,9 @@ public static class Address { String city; /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ @SerializedName("country") String country; @@ -1668,8 +1669,9 @@ public Builder setCity(String city) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(String country) { this.country = country; @@ -1839,19 +1841,20 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, - * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code - * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code - * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code - * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code - * vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1914,19 +1917,20 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code - * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, - * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code - * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, - * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code - * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, - * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code - * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceUpcomingLinesParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1971,6 +1975,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("by_tin") + BY_TIN("by_tin"), + @SerializedName("ca_bn") CA_BN("ca_bn"), @@ -2076,6 +2083,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("ma_vat") + MA_VAT("ma_vat"), + + @SerializedName("md_vat") + MD_VAT("md_vat"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -2145,6 +2158,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("tw_vat") TW_VAT("tw_vat"), + @SerializedName("tz_vat") + TZ_VAT("tz_vat"), + @SerializedName("ua_vat") UA_VAT("ua_vat"), @@ -2154,6 +2170,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_ruc") UY_RUC("uy_ruc"), + @SerializedName("uz_tin") + UZ_TIN("uz_tin"), + + @SerializedName("uz_vat") + UZ_VAT("uz_vat"), + @SerializedName("ve_rif") VE_RIF("ve_rif"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index c1ffd74b616..2395d4b8aca 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -1506,8 +1506,9 @@ public static class Address { String city; /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ @SerializedName("country") String country; @@ -1593,8 +1594,9 @@ public Builder setCity(String city) { } /** - * Two-letter country code (ISO - * 3166-1 alpha-2). + * A freeform text field for the country. However, in order to activate some tax features, + * the format should be a two-letter country code (ISO 3166-1 alpha-2). */ public Builder setCountry(String country) { this.country = country; @@ -1761,19 +1763,20 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, - * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code - * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code - * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code - * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code - * vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1836,19 +1839,20 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code - * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, - * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code - * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, - * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code - * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, - * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code - * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceUpcomingParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1893,6 +1897,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("by_tin") + BY_TIN("by_tin"), + @SerializedName("ca_bn") CA_BN("ca_bn"), @@ -1998,6 +2005,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("ma_vat") + MA_VAT("ma_vat"), + + @SerializedName("md_vat") + MD_VAT("md_vat"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -2067,6 +2080,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("tw_vat") TW_VAT("tw_vat"), + @SerializedName("tz_vat") + TZ_VAT("tz_vat"), + @SerializedName("ua_vat") UA_VAT("ua_vat"), @@ -2076,6 +2092,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_ruc") UY_RUC("uy_ruc"), + @SerializedName("uz_tin") + UZ_TIN("uz_tin"), + + @SerializedName("uz_vat") + UZ_VAT("uz_vat"), + @SerializedName("ve_rif") VE_RIF("ve_rif"), diff --git a/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java index c6662f8510c..3165e698db5 100644 --- a/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java @@ -1682,6 +1682,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("qst") QST("qst"), + @SerializedName("retail_delivery_fee") + RETAIL_DELIVERY_FEE("retail_delivery_fee"), + @SerializedName("rst") RST("rst"), diff --git a/src/main/java/com/stripe/param/InvoiceUpdateParams.java b/src/main/java/com/stripe/param/InvoiceUpdateParams.java index 470a52d30b1..b3e0de987bd 100644 --- a/src/main/java/com/stripe/param/InvoiceUpdateParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpdateParams.java @@ -38,6 +38,14 @@ public class InvoiceUpdateParams extends ApiRequestParams { @SerializedName("automatic_tax") AutomaticTax automaticTax; + /** + * The time when this invoice should be scheduled to finalize. The invoice will be finalized at + * this time if it is still in draft state. To turn off automatic finalization, set {@code + * auto_advance} to false. + */ + @SerializedName("automatically_finalizes_at") + Long automaticallyFinalizesAt; + /** * Either {@code charge_automatically} or {@code send_invoice}. This field can be updated only on * {@code draft} invoices. @@ -212,6 +220,7 @@ private InvoiceUpdateParams( Long applicationFeeAmount, Boolean autoAdvance, AutomaticTax automaticTax, + Long automaticallyFinalizesAt, CollectionMethod collectionMethod, Object customFields, Long daysUntilDue, @@ -239,6 +248,7 @@ private InvoiceUpdateParams( this.applicationFeeAmount = applicationFeeAmount; this.autoAdvance = autoAdvance; this.automaticTax = automaticTax; + this.automaticallyFinalizesAt = automaticallyFinalizesAt; this.collectionMethod = collectionMethod; this.customFields = customFields; this.daysUntilDue = daysUntilDue; @@ -277,6 +287,8 @@ public static class Builder { private AutomaticTax automaticTax; + private Long automaticallyFinalizesAt; + private CollectionMethod collectionMethod; private Object customFields; @@ -330,6 +342,7 @@ public InvoiceUpdateParams build() { this.applicationFeeAmount, this.autoAdvance, this.automaticTax, + this.automaticallyFinalizesAt, this.collectionMethod, this.customFields, this.daysUntilDue, @@ -427,6 +440,16 @@ public Builder setAutomaticTax(InvoiceUpdateParams.AutomaticTax automaticTax) { return this; } + /** + * The time when this invoice should be scheduled to finalize. The invoice will be finalized at + * this time if it is still in draft state. To turn off automatic finalization, set {@code + * auto_advance} to false. + */ + public Builder setAutomaticallyFinalizesAt(Long automaticallyFinalizesAt) { + this.automaticallyFinalizesAt = automaticallyFinalizesAt; + return this; + } + /** * Either {@code charge_automatically} or {@code send_invoice}. This field can be updated only * on {@code draft} invoices. @@ -3584,18 +3607,33 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("jp_credit_transfer") + JP_CREDIT_TRANSFER("jp_credit_transfer"), + + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), diff --git a/src/main/java/com/stripe/param/PaymentIntentApplyCustomerBalanceParams.java b/src/main/java/com/stripe/param/PaymentIntentApplyCustomerBalanceParams.java index 1d270512f33..d8a9eff2b20 100644 --- a/src/main/java/com/stripe/param/PaymentIntentApplyCustomerBalanceParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentApplyCustomerBalanceParams.java @@ -12,13 +12,14 @@ @Getter public class PaymentIntentApplyCustomerBalanceParams extends ApiRequestParams { /** - * Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. + * Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. If the + * PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied + * regardless of this parameter. * *

A positive integer representing how much to charge in the smallest currency unit (for example, - * 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). - * - *

The maximum amount is the amount of the PaymentIntent. + * 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum + * amount is the amount of the PaymentIntent. * *

When you omit the amount, it defaults to the remaining amount requested on the * PaymentIntent. @@ -74,13 +75,14 @@ public PaymentIntentApplyCustomerBalanceParams build() { } /** - * Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. + * Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. If + * the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied + * regardless of this parameter. * *

A positive integer representing how much to charge in the smallest currency unit (for - * example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). - * - *

The maximum amount is the amount of the PaymentIntent. + * example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The + * maximum amount is the amount of the PaymentIntent. * *

When you omit the amount, it defaults to the remaining amount requested on the * PaymentIntent. diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index be7128804e5..5c02d9dda8a 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -958,6 +958,12 @@ public static class PaymentMethodData { @SerializedName("allow_redisplay") AllowRedisplay allowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + @SerializedName("alma") + Alma alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment * method. @@ -1072,6 +1078,13 @@ public static class PaymentMethodData { @SerializedName("interac_present") InteracPresent interacPresent; + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao Pay + * payment method. + */ + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -1086,6 +1099,13 @@ public static class PaymentMethodData { @SerializedName("konbini") Konbini konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean Card + * payment method. + */ + @SerializedName("kr_card") + KrCard krCard; + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -1116,6 +1136,13 @@ public static class PaymentMethodData { @SerializedName("multibanco") Multibanco multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -1130,6 +1157,13 @@ public static class PaymentMethodData { @SerializedName("p24") P24 p24; + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment + * method. + */ + @SerializedName("payco") + Payco payco; + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1172,6 +1206,13 @@ public static class PaymentMethodData { @SerializedName("revolut_pay") RevolutPay revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + @SerializedName("samsung_pay") + SamsungPay samsungPay; + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -1234,6 +1275,7 @@ private PaymentMethodData( AfterpayClearpay afterpayClearpay, Alipay alipay, AllowRedisplay allowRedisplay, + Alma alma, AmazonPay amazonPay, AuBecsDebit auBecsDebit, BacsDebit bacsDebit, @@ -1250,20 +1292,25 @@ private PaymentMethodData( Grabpay grabpay, Ideal ideal, InteracPresent interacPresent, + KakaoPay kakaoPay, Klarna klarna, Konbini konbini, + KrCard krCard, Link link, Map metadata, Mobilepay mobilepay, Multibanco multibanco, + NaverPay naverPay, Oxxo oxxo, P24 p24, + Payco payco, Paynow paynow, Paypal paypal, Pix pix, Promptpay promptpay, RadarOptions radarOptions, RevolutPay revolutPay, + SamsungPay samsungPay, SepaDebit sepaDebit, Sofort sofort, Swish swish, @@ -1277,6 +1324,7 @@ private PaymentMethodData( this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; this.allowRedisplay = allowRedisplay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -1293,20 +1341,25 @@ private PaymentMethodData( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -1332,6 +1385,8 @@ public static class Builder { private AllowRedisplay allowRedisplay; + private Alma alma; + private AmazonPay amazonPay; private AuBecsDebit auBecsDebit; @@ -1364,10 +1419,14 @@ public static class Builder { private InteracPresent interacPresent; + private KakaoPay kakaoPay; + private Klarna klarna; private Konbini konbini; + private KrCard krCard; + private Link link; private Map metadata; @@ -1376,10 +1435,14 @@ public static class Builder { private Multibanco multibanco; + private NaverPay naverPay; + private Oxxo oxxo; private P24 p24; + private Payco payco; + private Paynow paynow; private Paypal paypal; @@ -1392,6 +1455,8 @@ public static class Builder { private RevolutPay revolutPay; + private SamsungPay samsungPay; + private SepaDebit sepaDebit; private Sofort sofort; @@ -1416,6 +1481,7 @@ public PaymentIntentConfirmParams.PaymentMethodData build() { this.afterpayClearpay, this.alipay, this.allowRedisplay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -1432,20 +1498,25 @@ public PaymentIntentConfirmParams.PaymentMethodData build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.metadata, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.radarOptions, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -1506,6 +1577,14 @@ public Builder setAllowRedisplay( return this; } + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + public Builder setAlma(PaymentIntentConfirmParams.PaymentMethodData.Alma alma) { + this.alma = alma; + return this; + } + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay * payment method. @@ -1675,6 +1754,15 @@ public Builder setInteracPresent( return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao + * Pay payment method. + */ + public Builder setKakaoPay(PaymentIntentConfirmParams.PaymentMethodData.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -1693,6 +1781,15 @@ public Builder setKonbini(PaymentIntentConfirmParams.PaymentMethodData.Konbini k return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean + * Card payment method. + */ + public Builder setKrCard(PaymentIntentConfirmParams.PaymentMethodData.KrCard krCard) { + this.krCard = krCard; + return this; + } + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -1749,6 +1846,15 @@ public Builder setMultibanco( return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver + * Pay payment method. + */ + public Builder setNaverPay(PaymentIntentConfirmParams.PaymentMethodData.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -1767,6 +1873,15 @@ public Builder setP24(PaymentIntentConfirmParams.PaymentMethodData.P24 p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO + * payment method. + */ + public Builder setPayco(PaymentIntentConfirmParams.PaymentMethodData.Payco payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1824,6 +1939,16 @@ public Builder setRevolutPay( return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + public Builder setSamsungPay( + PaymentIntentConfirmParams.PaymentMethodData.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -2176,6 +2301,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new PaymentIntentConfirmParams.PaymentMethodData.Alma(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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -3458,7 +3640,10 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Ideal { - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ @SerializedName("bank") Bank bank; @@ -3491,7 +3676,10 @@ public PaymentIntentConfirmParams.PaymentMethodData.Ideal build() { this.bank, this.extraParams); } - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ public Builder setBank(PaymentIntentConfirmParams.PaymentMethodData.Ideal.Bank bank) { this.bank = bank; return this; @@ -3641,6 +3829,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KakaoPay { + /** + * 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 KakaoPay(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.KakaoPay build() { + return new PaymentIntentConfirmParams.PaymentMethodData.KakaoPay(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.KakaoPay#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.KakaoPay#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 public static class Klarna { /** Customer's date of birth. */ @@ -3868,7 +4113,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Link { + public static class KrCard { /** * 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. @@ -3878,7 +4123,7 @@ public static class Link { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Link(Map extraParams) { + private KrCard(Map extraParams) { this.extraParams = extraParams; } @@ -3890,14 +4135,14 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentConfirmParams.PaymentMethodData.Link build() { - return new PaymentIntentConfirmParams.PaymentMethodData.Link(this.extraParams); + public PaymentIntentConfirmParams.PaymentMethodData.KrCard build() { + return new PaymentIntentConfirmParams.PaymentMethodData.KrCard(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.Link#extraParams} for the + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.KrCard#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3911,7 +4156,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Link#extraParams} for the + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.KrCard#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -3925,7 +4170,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Mobilepay { + public static class Link { /** * 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. @@ -3935,7 +4180,7 @@ public static class Mobilepay { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Mobilepay(Map extraParams) { + private Link(Map extraParams) { this.extraParams = extraParams; } @@ -3947,15 +4192,15 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentConfirmParams.PaymentMethodData.Mobilepay build() { - return new PaymentIntentConfirmParams.PaymentMethodData.Mobilepay(this.extraParams); + public PaymentIntentConfirmParams.PaymentMethodData.Link build() { + return new PaymentIntentConfirmParams.PaymentMethodData.Link(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.Mobilepay#extraParams} for - * the field documentation. + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.Link#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3968,8 +4213,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Mobilepay#extraParams} for - * the field documentation. + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.Link#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3982,7 +4227,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Multibanco { + public static class Mobilepay { /** * 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. @@ -3992,7 +4237,7 @@ public static class Multibanco { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Multibanco(Map extraParams) { + private Mobilepay(Map extraParams) { this.extraParams = extraParams; } @@ -4004,14 +4249,14 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentConfirmParams.PaymentMethodData.Multibanco build() { - return new PaymentIntentConfirmParams.PaymentMethodData.Multibanco(this.extraParams); + public PaymentIntentConfirmParams.PaymentMethodData.Mobilepay build() { + return new PaymentIntentConfirmParams.PaymentMethodData.Mobilepay(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.Multibanco#extraParams} for + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.Mobilepay#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4025,7 +4270,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Multibanco#extraParams} for + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.Mobilepay#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4039,7 +4284,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Oxxo { + public static class Multibanco { /** * 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. @@ -4049,7 +4294,7 @@ public static class Oxxo { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Oxxo(Map extraParams) { + private Multibanco(Map extraParams) { this.extraParams = extraParams; } @@ -4061,15 +4306,15 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentConfirmParams.PaymentMethodData.Oxxo build() { - return new PaymentIntentConfirmParams.PaymentMethodData.Oxxo(this.extraParams); + public PaymentIntentConfirmParams.PaymentMethodData.Multibanco build() { + return new PaymentIntentConfirmParams.PaymentMethodData.Multibanco(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.Oxxo#extraParams} for the - * field documentation. + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.Multibanco#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4082,8 +4327,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Oxxo#extraParams} for the - * field documentation. + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.Multibanco#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4096,11 +4341,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class P24 { - /** The customer's bank. */ - @SerializedName("bank") - Bank bank; - + public static class NaverPay { /** * 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. @@ -4110,9 +4351,16 @@ public static class P24 { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private P24(Bank bank, Map extraParams) { - this.bank = bank; + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + @SerializedName("funding") + Funding funding; + + private NaverPay(Map extraParams, Funding funding) { this.extraParams = extraParams; + this.funding = funding; } public static Builder builder() { @@ -4120,26 +4368,21 @@ public static Builder builder() { } public static class Builder { - private Bank bank; - private Map extraParams; - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentConfirmParams.PaymentMethodData.P24 build() { - return new PaymentIntentConfirmParams.PaymentMethodData.P24(this.bank, this.extraParams); - } + private Funding funding; - /** The customer's bank. */ - public Builder setBank(PaymentIntentConfirmParams.PaymentMethodData.P24.Bank bank) { - this.bank = bank; - return this; + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentConfirmParams.PaymentMethodData.NaverPay build() { + return new PaymentIntentConfirmParams.PaymentMethodData.NaverPay( + this.extraParams, this.funding); } /** * 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.P24#extraParams} for the - * field documentation. + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.NaverPay#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4152,8 +4395,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.P24#extraParams} for the - * field documentation. + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.NaverPay#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4162,14 +4405,166 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + public Builder setFunding( + PaymentIntentConfirmParams.PaymentMethodData.NaverPay.Funding funding) { + this.funding = funding; + return this; + } } - public enum Bank implements ApiRequestParams.EnumParam { - @SerializedName("alior_bank") - ALIOR_BANK("alior_bank"), + public enum Funding implements ApiRequestParams.EnumParam { + @SerializedName("card") + CARD("card"), - @SerializedName("bank_millennium") - BANK_MILLENNIUM("bank_millennium"), + @SerializedName("points") + POINTS("points"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Funding(String value) { + this.value = value; + } + } + } + + @Getter + public static class Oxxo { + /** + * 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 Oxxo(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.Oxxo build() { + return new PaymentIntentConfirmParams.PaymentMethodData.Oxxo(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.Oxxo#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.Oxxo#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 + public static class P24 { + /** The customer's bank. */ + @SerializedName("bank") + Bank bank; + + /** + * 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 P24(Bank bank, Map extraParams) { + this.bank = bank; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Bank bank; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentConfirmParams.PaymentMethodData.P24 build() { + return new PaymentIntentConfirmParams.PaymentMethodData.P24(this.bank, this.extraParams); + } + + /** The customer's bank. */ + public Builder setBank(PaymentIntentConfirmParams.PaymentMethodData.P24.Bank bank) { + this.bank = bank; + 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.PaymentMethodData.P24#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.P24#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 Bank implements ApiRequestParams.EnumParam { + @SerializedName("alior_bank") + ALIOR_BANK("alior_bank"), + + @SerializedName("bank_millennium") + BANK_MILLENNIUM("bank_millennium"), @SerializedName("bank_nowy_bfg_sa") BANK_NOWY_BFG_SA("bank_nowy_bfg_sa"), @@ -4252,6 +4647,63 @@ public enum Bank implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new PaymentIntentConfirmParams.PaymentMethodData.Payco(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.Payco#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.Payco#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 public static class Paynow { /** @@ -4616,6 +5068,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay(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.SamsungPay build() { + return new PaymentIntentConfirmParams.PaymentMethodData.SamsungPay(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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** @@ -5218,6 +5727,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -5257,12 +5769,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -5272,12 +5790,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -5293,6 +5817,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), @@ -5353,6 +5880,13 @@ public static class PaymentMethodOptions { @SerializedName("alipay") Object alipay; + /** + * If this is a {@code alma} PaymentMethod, this sub-hash contains details about the Alma + * payment method options. + */ + @SerializedName("alma") + Object alma; + /** * If this is a {@code amazon_pay} PaymentMethod, this sub-hash contains details about the * Amazon Pay payment method options. @@ -5472,8 +6006,15 @@ public static class PaymentMethodOptions { Object interacPresent; /** - * If this is a {@code klarna} PaymentMethod, this sub-hash contains details about the Klarna - * payment method options. + * If this is a {@code kakao_pay} PaymentMethod, this sub-hash contains details about the Kakao + * Pay payment method options. + */ + @SerializedName("kakao_pay") + Object kakaoPay; + + /** + * If this is a {@code klarna} PaymentMethod, this sub-hash contains details about the Klarna + * payment method options. */ @SerializedName("klarna") Object klarna; @@ -5485,6 +6026,13 @@ public static class PaymentMethodOptions { @SerializedName("konbini") Object konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this sub-hash contains details about the KR Card + * payment method options. + */ + @SerializedName("kr_card") + Object krCard; + /** * If this is a {@code link} PaymentMethod, this sub-hash contains details about the Link * payment method options. @@ -5506,6 +6054,13 @@ public static class PaymentMethodOptions { @SerializedName("multibanco") Object multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this sub-hash contains details about the Naver + * Pay payment method options. + */ + @SerializedName("naver_pay") + Object naverPay; + /** * If this is a {@code oxxo} PaymentMethod, this sub-hash contains details about the OXXO * payment method options. @@ -5520,6 +6075,13 @@ public static class PaymentMethodOptions { @SerializedName("p24") Object p24; + /** + * If this is a {@code payco} PaymentMethod, this sub-hash contains details about the PAYCO + * payment method options. + */ + @SerializedName("payco") + Object payco; + /** * If this is a {@code paynow} PaymentMethod, this sub-hash contains details about the PayNow * payment method options. @@ -5555,6 +6117,13 @@ public static class PaymentMethodOptions { @SerializedName("revolut_pay") Object revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this sub-hash contains details about the + * Samsung Pay payment method options. + */ + @SerializedName("samsung_pay") + Object samsungPay; + /** * If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the SEPA * Debit payment method options. @@ -5609,6 +6178,7 @@ private PaymentMethodOptions( Object affirm, Object afterpayClearpay, Object alipay, + Object alma, Object amazonPay, Object auBecsDebit, Object bacsDebit, @@ -5626,18 +6196,23 @@ private PaymentMethodOptions( Object grabpay, Object ideal, Object interacPresent, + Object kakaoPay, Object klarna, Object konbini, + Object krCard, Object link, Object mobilepay, Object multibanco, + Object naverPay, Object oxxo, Object p24, + Object payco, Object paynow, Object paypal, Object pix, Object promptpay, Object revolutPay, + Object samsungPay, Object sepaDebit, Object sofort, Object swish, @@ -5649,6 +6224,7 @@ private PaymentMethodOptions( this.affirm = affirm; this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -5666,18 +6242,23 @@ private PaymentMethodOptions( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -5700,6 +6281,8 @@ public static class Builder { private Object alipay; + private Object alma; + private Object amazonPay; private Object auBecsDebit; @@ -5734,20 +6317,28 @@ public static class Builder { private Object interacPresent; + private Object kakaoPay; + private Object klarna; private Object konbini; + private Object krCard; + private Object link; private Object mobilepay; private Object multibanco; + private Object naverPay; + private Object oxxo; private Object p24; + private Object payco; + private Object paynow; private Object paypal; @@ -5758,6 +6349,8 @@ public static class Builder { private Object revolutPay; + private Object samsungPay; + private Object sepaDebit; private Object sofort; @@ -5779,6 +6372,7 @@ public PaymentIntentConfirmParams.PaymentMethodOptions build() { this.affirm, this.afterpayClearpay, this.alipay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -5796,18 +6390,23 @@ public PaymentIntentConfirmParams.PaymentMethodOptions build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -5891,6 +6490,24 @@ public Builder setAlipay(EmptyParam alipay) { return this; } + /** + * If this is a {@code alma} PaymentMethod, this sub-hash contains details about the Alma + * payment method options. + */ + public Builder setAlma(PaymentIntentConfirmParams.PaymentMethodOptions.Alma alma) { + this.alma = alma; + return this; + } + + /** + * If this is a {@code alma} PaymentMethod, this sub-hash contains details about the Alma + * payment method options. + */ + public Builder setAlma(EmptyParam alma) { + this.alma = alma; + return this; + } + /** * If this is a {@code amazon_pay} PaymentMethod, this sub-hash contains details about the * Amazon Pay payment method options. @@ -6207,6 +6824,25 @@ public Builder setInteracPresent(EmptyParam interacPresent) { return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this sub-hash contains details about the + * Kakao Pay payment method options. + */ + public Builder setKakaoPay( + PaymentIntentConfirmParams.PaymentMethodOptions.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + + /** + * If this is a {@code kakao_pay} PaymentMethod, this sub-hash contains details about the + * Kakao Pay payment method options. + */ + public Builder setKakaoPay(EmptyParam kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this sub-hash contains details about the Klarna * payment method options. @@ -6243,6 +6879,24 @@ public Builder setKonbini(EmptyParam konbini) { return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this sub-hash contains details about the KR + * Card payment method options. + */ + public Builder setKrCard(PaymentIntentConfirmParams.PaymentMethodOptions.KrCard krCard) { + this.krCard = krCard; + return this; + } + + /** + * If this is a {@code kr_card} PaymentMethod, this sub-hash contains details about the KR + * Card payment method options. + */ + public Builder setKrCard(EmptyParam krCard) { + this.krCard = krCard; + return this; + } + /** * If this is a {@code link} PaymentMethod, this sub-hash contains details about the Link * payment method options. @@ -6299,6 +6953,25 @@ public Builder setMultibanco(EmptyParam multibanco) { return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this sub-hash contains details about the + * Naver Pay payment method options. + */ + public Builder setNaverPay( + PaymentIntentConfirmParams.PaymentMethodOptions.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + + /** + * If this is a {@code naver_pay} PaymentMethod, this sub-hash contains details about the + * Naver Pay payment method options. + */ + public Builder setNaverPay(EmptyParam naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is a {@code oxxo} PaymentMethod, this sub-hash contains details about the OXXO * payment method options. @@ -6335,6 +7008,24 @@ public Builder setP24(EmptyParam p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this sub-hash contains details about the PAYCO + * payment method options. + */ + public Builder setPayco(PaymentIntentConfirmParams.PaymentMethodOptions.Payco payco) { + this.payco = payco; + return this; + } + + /** + * If this is a {@code payco} PaymentMethod, this sub-hash contains details about the PAYCO + * payment method options. + */ + public Builder setPayco(EmptyParam payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this sub-hash contains details about the PayNow * payment method options. @@ -6427,6 +7118,25 @@ public Builder setRevolutPay(EmptyParam revolutPay) { return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this sub-hash contains details about the + * Samsung Pay payment method options. + */ + public Builder setSamsungPay( + PaymentIntentConfirmParams.PaymentMethodOptions.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + + /** + * If this is a {@code samsung_pay} PaymentMethod, this sub-hash contains details about the + * Samsung Pay payment method options. + */ + public Builder setSamsungPay(EmptyParam samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the * SEPA Debit payment method options. @@ -7552,6 +8262,123 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.Alma( + 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.Alma.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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -12288,7 +13115,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Klarna { + public static class KakaoPay { /** * Controls when the funds are captured from the customer's account. * @@ -12311,10 +13138,6 @@ public static class Klarna { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Preferred language of the Klarna authorization page that the customer is redirected to. */ - @SerializedName("preferred_locale") - PreferredLocale preferredLocale; - /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -12333,22 +13156,16 @@ public static class Klarna { *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply * with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. */ @SerializedName("setup_future_usage") - SetupFutureUsage setupFutureUsage; + ApiRequestParams.EnumParam setupFutureUsage; - private Klarna( + private KakaoPay( ApiRequestParams.EnumParam captureMethod, Map extraParams, - PreferredLocale preferredLocale, - SetupFutureUsage setupFutureUsage) { + ApiRequestParams.EnumParam setupFutureUsage) { this.captureMethod = captureMethod; this.extraParams = extraParams; - this.preferredLocale = preferredLocale; this.setupFutureUsage = setupFutureUsage; } @@ -12361,14 +13178,12 @@ public static class Builder { private Map extraParams; - private PreferredLocale preferredLocale; - - private SetupFutureUsage setupFutureUsage; + private ApiRequestParams.EnumParam setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentConfirmParams.PaymentMethodOptions.Klarna build() { - return new PaymentIntentConfirmParams.PaymentMethodOptions.Klarna( - this.captureMethod, this.extraParams, this.preferredLocale, this.setupFutureUsage); + public PaymentIntentConfirmParams.PaymentMethodOptions.KakaoPay build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.KakaoPay( + this.captureMethod, this.extraParams, this.setupFutureUsage); } /** @@ -12382,7 +13197,7 @@ public PaymentIntentConfirmParams.PaymentMethodOptions.Klarna build() { * value for this parameter unsets the stored value for this payment method type. */ public Builder setCaptureMethod( - PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.CaptureMethod captureMethod) { + PaymentIntentConfirmParams.PaymentMethodOptions.KakaoPay.CaptureMethod captureMethod) { this.captureMethod = captureMethod; return this; } @@ -12405,7 +13220,7 @@ public Builder setCaptureMethod(EmptyParam captureMethod) { /** * 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.Klarna#extraParams} for + * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.KakaoPay#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -12419,7 +13234,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Klarna#extraParams} for + * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.KakaoPay#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -12430,16 +13245,6 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Preferred language of the Klarna authorization page that the customer is redirected to. - */ - public Builder setPreferredLocale( - PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.PreferredLocale - preferredLocale) { - this.preferredLocale = preferredLocale; - return this; - } - /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -12459,33 +13264,267 @@ public Builder setPreferredLocale( *

When processing card payments, Stripe uses {@code setup_future_usage} to help you * comply with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using - * a publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. */ public Builder setSetupFutureUsage( - PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SetupFutureUsage + PaymentIntentConfirmParams.PaymentMethodOptions.KakaoPay.SetupFutureUsage setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; 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; - } - } - public enum PreferredLocale implements ApiRequestParams.EnumParam { - @SerializedName("cs-CZ") + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + */ + public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + 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; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"), + + @SerializedName("off_session") + OFF_SESSION("off_session"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + + @Getter + public static class Klarna { + /** + * 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; + + /** Preferred language of the Klarna authorization page that the customer is redirected to. */ + @SerializedName("preferred_locale") + PreferredLocale preferredLocale; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using a + * publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private Klarna( + ApiRequestParams.EnumParam captureMethod, + Map extraParams, + PreferredLocale preferredLocale, + SetupFutureUsage setupFutureUsage) { + this.captureMethod = captureMethod; + this.extraParams = extraParams; + this.preferredLocale = preferredLocale; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private ApiRequestParams.EnumParam captureMethod; + + private Map extraParams; + + private PreferredLocale preferredLocale; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentConfirmParams.PaymentMethodOptions.Klarna build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.Klarna( + this.captureMethod, this.extraParams, this.preferredLocale, this.setupFutureUsage); + } + + /** + * 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.Klarna.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.Klarna#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.Klarna#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Preferred language of the Klarna authorization page that the customer is redirected to. + */ + public Builder setPreferredLocale( + PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.PreferredLocale + preferredLocale) { + this.preferredLocale = preferredLocale; + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + public Builder setSetupFutureUsage( + PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + 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; + } + } + + public enum PreferredLocale implements ApiRequestParams.EnumParam { + @SerializedName("cs-CZ") CS_CZ("cs-CZ"), @SerializedName("da-DK") @@ -12710,20 +13749,254 @@ public static class Konbini { * off_session}. */ @SerializedName("setup_future_usage") - SetupFutureUsage setupFutureUsage; + SetupFutureUsage setupFutureUsage; + + private Konbini( + Object confirmationNumber, + Object expiresAfterDays, + Object expiresAt, + Map extraParams, + Object productDescription, + SetupFutureUsage setupFutureUsage) { + this.confirmationNumber = confirmationNumber; + this.expiresAfterDays = expiresAfterDays; + this.expiresAt = expiresAt; + this.extraParams = extraParams; + this.productDescription = productDescription; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object confirmationNumber; + + private Object expiresAfterDays; + + private Object expiresAt; + + private Map extraParams; + + private Object productDescription; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentConfirmParams.PaymentMethodOptions.Konbini build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.Konbini( + this.confirmationNumber, + this.expiresAfterDays, + this.expiresAt, + this.extraParams, + this.productDescription, + this.setupFutureUsage); + } + + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at + * applicable convenience stores. Must not consist of only zeroes and could be rejected in + * case of insufficient uniqueness. We recommend to use the customer's phone number. + */ + public Builder setConfirmationNumber(String confirmationNumber) { + this.confirmationNumber = confirmationNumber; + return this; + } + + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at + * applicable convenience stores. Must not consist of only zeroes and could be rejected in + * case of insufficient uniqueness. We recommend to use the customer's phone number. + */ + public Builder setConfirmationNumber(EmptyParam confirmationNumber) { + this.confirmationNumber = confirmationNumber; + return this; + } + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions + * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code + * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday + * 23:59:59 JST. Defaults to 3 days. + */ + public Builder setExpiresAfterDays(Long expiresAfterDays) { + this.expiresAfterDays = expiresAfterDays; + return this; + } + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions + * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code + * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday + * 23:59:59 JST. Defaults to 3 days. + */ + public Builder setExpiresAfterDays(EmptyParam expiresAfterDays) { + this.expiresAfterDays = expiresAfterDays; + return this; + } + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of {@code + * expires_after_days} or {@code expires_at} may be set. + */ + public Builder setExpiresAt(Long expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of {@code + * expires_after_days} or {@code expires_at} may be set. + */ + public Builder setExpiresAt(EmptyParam expiresAt) { + this.expiresAt = expiresAt; + 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.Konbini#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.Konbini#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the + * convenience store. + */ + public Builder setProductDescription(String productDescription) { + this.productDescription = productDescription; + return this; + } + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the + * convenience store. + */ + public Builder setProductDescription(EmptyParam productDescription) { + this.productDescription = productDescription; + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + public Builder setSetupFutureUsage( + PaymentIntentConfirmParams.PaymentMethodOptions.Konbini.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + + @Getter + public static class KrCard { + /** + * 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; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + */ + @SerializedName("setup_future_usage") + ApiRequestParams.EnumParam setupFutureUsage; - private Konbini( - Object confirmationNumber, - Object expiresAfterDays, - Object expiresAt, + private KrCard( + ApiRequestParams.EnumParam captureMethod, Map extraParams, - Object productDescription, - SetupFutureUsage setupFutureUsage) { - this.confirmationNumber = confirmationNumber; - this.expiresAfterDays = expiresAfterDays; - this.expiresAt = expiresAt; + ApiRequestParams.EnumParam setupFutureUsage) { + this.captureMethod = captureMethod; this.extraParams = extraParams; - this.productDescription = productDescription; this.setupFutureUsage = setupFutureUsage; } @@ -12732,93 +14005,53 @@ public static Builder builder() { } public static class Builder { - private Object confirmationNumber; - - private Object expiresAfterDays; - - private Object expiresAt; + private ApiRequestParams.EnumParam captureMethod; private Map extraParams; - private Object productDescription; - - private SetupFutureUsage setupFutureUsage; + private ApiRequestParams.EnumParam setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentConfirmParams.PaymentMethodOptions.Konbini build() { - return new PaymentIntentConfirmParams.PaymentMethodOptions.Konbini( - this.confirmationNumber, - this.expiresAfterDays, - this.expiresAt, - this.extraParams, - this.productDescription, - this.setupFutureUsage); - } - - /** - * An optional 10 to 11 digit numeric-only string determining the confirmation code at - * applicable convenience stores. Must not consist of only zeroes and could be rejected in - * case of insufficient uniqueness. We recommend to use the customer's phone number. - */ - public Builder setConfirmationNumber(String confirmationNumber) { - this.confirmationNumber = confirmationNumber; - return this; - } - - /** - * An optional 10 to 11 digit numeric-only string determining the confirmation code at - * applicable convenience stores. Must not consist of only zeroes and could be rejected in - * case of insufficient uniqueness. We recommend to use the customer's phone number. - */ - public Builder setConfirmationNumber(EmptyParam confirmationNumber) { - this.confirmationNumber = confirmationNumber; - return this; - } - - /** - * The number of calendar days (between 1 and 60) after which Konbini payment instructions - * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code - * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday - * 23:59:59 JST. Defaults to 3 days. - */ - public Builder setExpiresAfterDays(Long expiresAfterDays) { - this.expiresAfterDays = expiresAfterDays; - return this; - } - - /** - * The number of calendar days (between 1 and 60) after which Konbini payment instructions - * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code - * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday - * 23:59:59 JST. Defaults to 3 days. - */ - public Builder setExpiresAfterDays(EmptyParam expiresAfterDays) { - this.expiresAfterDays = expiresAfterDays; - return this; + public PaymentIntentConfirmParams.PaymentMethodOptions.KrCard build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.KrCard( + this.captureMethod, this.extraParams, this.setupFutureUsage); } /** - * The timestamp at which the Konbini payment instructions will expire. Only one of {@code - * expires_after_days} or {@code expires_at} may be set. + * 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 setExpiresAt(Long expiresAt) { - this.expiresAt = expiresAt; + public Builder setCaptureMethod( + PaymentIntentConfirmParams.PaymentMethodOptions.KrCard.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; return this; } /** - * The timestamp at which the Konbini payment instructions will expire. Only one of {@code - * expires_after_days} or {@code expires_at} may be set. + * 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 setExpiresAt(EmptyParam expiresAt) { - this.expiresAt = expiresAt; + 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.Konbini#extraParams} for + * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.KrCard#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -12832,7 +14065,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Konbini#extraParams} for + * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.KrCard#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -12844,20 +14077,29 @@ public Builder putAllExtraParam(Map map) { } /** - * A product descriptor of up to 22 characters, which will appear to customers at the - * convenience store. - */ - public Builder setProductDescription(String productDescription) { - this.productDescription = productDescription; - return this; - } - - /** - * A product descriptor of up to 22 characters, which will appear to customers at the - * convenience store. + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ - public Builder setProductDescription(EmptyParam productDescription) { - this.productDescription = productDescription; + public Builder setSetupFutureUsage( + PaymentIntentConfirmParams.PaymentMethodOptions.KrCard.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; return this; } @@ -12880,22 +14122,31 @@ public Builder setProductDescription(EmptyParam productDescription) { *

When processing card payments, Stripe uses {@code setup_future_usage} to help you * comply with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using - * a publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. */ - public Builder setSetupFutureUsage( - PaymentIntentConfirmParams.PaymentMethodOptions.Konbini.SetupFutureUsage - setupFutureUsage) { + public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; 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; + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") - NONE("none"); + NONE("none"), + + @SerializedName("off_session") + OFF_SESSION("off_session"); @Getter(onMethod_ = {@Override}) private final String value; @@ -13447,22 +14698,139 @@ public Builder putAllExtraParam(Map map) { * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ - public Builder setSetupFutureUsage( - PaymentIntentConfirmParams.PaymentMethodOptions.Multibanco.SetupFutureUsage - setupFutureUsage) { - this.setupFutureUsage = setupFutureUsage; + public Builder setSetupFutureUsage( + PaymentIntentConfirmParams.PaymentMethodOptions.Multibanco.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + + @Getter + public static class NaverPay { + /** + * 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 NaverPay(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.NaverPay build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.NaverPay( + 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.NaverPay.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.NaverPay#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.NaverPay#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 SetupFutureUsage implements ApiRequestParams.EnumParam { - @SerializedName("none") - NONE("none"); + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"); @Getter(onMethod_ = {@Override}) private final String value; - SetupFutureUsage(String value) { + CaptureMethod(String value) { this.value = value; } } @@ -13767,6 +15135,123 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.Payco( + 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.Payco.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.Payco#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.Payco#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 public static class Paynow { /** @@ -14745,6 +16230,125 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay( + 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.SamsungPay build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.SamsungPay( + 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.SamsungPay.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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index bbe4c81dfe4..b21a3d0a76c 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -1479,6 +1479,12 @@ public static class PaymentMethodData { @SerializedName("allow_redisplay") AllowRedisplay allowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + @SerializedName("alma") + Alma alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment * method. @@ -1593,6 +1599,13 @@ public static class PaymentMethodData { @SerializedName("interac_present") InteracPresent interacPresent; + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao Pay + * payment method. + */ + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -1607,6 +1620,13 @@ public static class PaymentMethodData { @SerializedName("konbini") Konbini konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean Card + * payment method. + */ + @SerializedName("kr_card") + KrCard krCard; + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -1637,6 +1657,13 @@ public static class PaymentMethodData { @SerializedName("multibanco") Multibanco multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -1651,6 +1678,13 @@ public static class PaymentMethodData { @SerializedName("p24") P24 p24; + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment + * method. + */ + @SerializedName("payco") + Payco payco; + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1693,6 +1727,13 @@ public static class PaymentMethodData { @SerializedName("revolut_pay") RevolutPay revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + @SerializedName("samsung_pay") + SamsungPay samsungPay; + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -1755,6 +1796,7 @@ private PaymentMethodData( AfterpayClearpay afterpayClearpay, Alipay alipay, AllowRedisplay allowRedisplay, + Alma alma, AmazonPay amazonPay, AuBecsDebit auBecsDebit, BacsDebit bacsDebit, @@ -1771,20 +1813,25 @@ private PaymentMethodData( Grabpay grabpay, Ideal ideal, InteracPresent interacPresent, + KakaoPay kakaoPay, Klarna klarna, Konbini konbini, + KrCard krCard, Link link, Map metadata, Mobilepay mobilepay, Multibanco multibanco, + NaverPay naverPay, Oxxo oxxo, P24 p24, + Payco payco, Paynow paynow, Paypal paypal, Pix pix, Promptpay promptpay, RadarOptions radarOptions, RevolutPay revolutPay, + SamsungPay samsungPay, SepaDebit sepaDebit, Sofort sofort, Swish swish, @@ -1798,6 +1845,7 @@ private PaymentMethodData( this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; this.allowRedisplay = allowRedisplay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -1814,20 +1862,25 @@ private PaymentMethodData( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -1853,6 +1906,8 @@ public static class Builder { private AllowRedisplay allowRedisplay; + private Alma alma; + private AmazonPay amazonPay; private AuBecsDebit auBecsDebit; @@ -1885,10 +1940,14 @@ public static class Builder { private InteracPresent interacPresent; + private KakaoPay kakaoPay; + private Klarna klarna; private Konbini konbini; + private KrCard krCard; + private Link link; private Map metadata; @@ -1897,10 +1956,14 @@ public static class Builder { private Multibanco multibanco; + private NaverPay naverPay; + private Oxxo oxxo; private P24 p24; + private Payco payco; + private Paynow paynow; private Paypal paypal; @@ -1913,6 +1976,8 @@ public static class Builder { private RevolutPay revolutPay; + private SamsungPay samsungPay; + private SepaDebit sepaDebit; private Sofort sofort; @@ -1937,6 +2002,7 @@ public PaymentIntentCreateParams.PaymentMethodData build() { this.afterpayClearpay, this.alipay, this.allowRedisplay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -1953,20 +2019,25 @@ public PaymentIntentCreateParams.PaymentMethodData build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.metadata, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.radarOptions, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -2026,6 +2097,14 @@ public Builder setAllowRedisplay( return this; } + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + public Builder setAlma(PaymentIntentCreateParams.PaymentMethodData.Alma alma) { + this.alma = alma; + return this; + } + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay * payment method. @@ -2193,6 +2272,15 @@ public Builder setInteracPresent( return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao + * Pay payment method. + */ + public Builder setKakaoPay(PaymentIntentCreateParams.PaymentMethodData.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -2211,6 +2299,15 @@ public Builder setKonbini(PaymentIntentCreateParams.PaymentMethodData.Konbini ko return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean + * Card payment method. + */ + public Builder setKrCard(PaymentIntentCreateParams.PaymentMethodData.KrCard krCard) { + this.krCard = krCard; + return this; + } + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -2266,6 +2363,15 @@ public Builder setMultibanco( return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver + * Pay payment method. + */ + public Builder setNaverPay(PaymentIntentCreateParams.PaymentMethodData.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -2284,6 +2390,15 @@ public Builder setP24(PaymentIntentCreateParams.PaymentMethodData.P24 p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO + * payment method. + */ + public Builder setPayco(PaymentIntentCreateParams.PaymentMethodData.Payco payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -2340,6 +2455,16 @@ public Builder setRevolutPay( return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + public Builder setSamsungPay( + PaymentIntentCreateParams.PaymentMethodData.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -2687,6 +2812,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new PaymentIntentCreateParams.PaymentMethodData.Alma(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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -3969,7 +4151,10 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Ideal { - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ @SerializedName("bank") Bank bank; @@ -4001,7 +4186,10 @@ public PaymentIntentCreateParams.PaymentMethodData.Ideal build() { return new PaymentIntentCreateParams.PaymentMethodData.Ideal(this.bank, this.extraParams); } - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ public Builder setBank(PaymentIntentCreateParams.PaymentMethodData.Ideal.Bank bank) { this.bank = bank; return this; @@ -4151,6 +4339,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KakaoPay { + /** + * 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 KakaoPay(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.KakaoPay build() { + return new PaymentIntentCreateParams.PaymentMethodData.KakaoPay(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.KakaoPay#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.KakaoPay#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 public static class Klarna { /** Customer's date of birth. */ @@ -4377,7 +4622,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Link { + public static class KrCard { /** * 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. @@ -4387,7 +4632,7 @@ public static class Link { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Link(Map extraParams) { + private KrCard(Map extraParams) { this.extraParams = extraParams; } @@ -4399,14 +4644,14 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentCreateParams.PaymentMethodData.Link build() { - return new PaymentIntentCreateParams.PaymentMethodData.Link(this.extraParams); + public PaymentIntentCreateParams.PaymentMethodData.KrCard build() { + return new PaymentIntentCreateParams.PaymentMethodData.KrCard(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.Link#extraParams} for the + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.KrCard#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4420,7 +4665,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Link#extraParams} for the + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.KrCard#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4434,7 +4679,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Mobilepay { + public static class Link { /** * 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. @@ -4444,7 +4689,7 @@ public static class Mobilepay { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Mobilepay(Map extraParams) { + private Link(Map extraParams) { this.extraParams = extraParams; } @@ -4456,15 +4701,15 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentCreateParams.PaymentMethodData.Mobilepay build() { - return new PaymentIntentCreateParams.PaymentMethodData.Mobilepay(this.extraParams); + public PaymentIntentCreateParams.PaymentMethodData.Link build() { + return new PaymentIntentCreateParams.PaymentMethodData.Link(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.Mobilepay#extraParams} for - * the field documentation. + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.Link#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4477,8 +4722,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Mobilepay#extraParams} for - * the field documentation. + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.Link#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4491,7 +4736,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Multibanco { + public static class Mobilepay { /** * 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. @@ -4501,7 +4746,7 @@ public static class Multibanco { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Multibanco(Map extraParams) { + private Mobilepay(Map extraParams) { this.extraParams = extraParams; } @@ -4513,14 +4758,14 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentCreateParams.PaymentMethodData.Multibanco build() { - return new PaymentIntentCreateParams.PaymentMethodData.Multibanco(this.extraParams); + public PaymentIntentCreateParams.PaymentMethodData.Mobilepay build() { + return new PaymentIntentCreateParams.PaymentMethodData.Mobilepay(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.Multibanco#extraParams} for + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.Mobilepay#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4534,7 +4779,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Multibanco#extraParams} for + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.Mobilepay#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4548,7 +4793,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Oxxo { + public static class Multibanco { /** * 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. @@ -4558,7 +4803,7 @@ public static class Oxxo { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Oxxo(Map extraParams) { + private Multibanco(Map extraParams) { this.extraParams = extraParams; } @@ -4570,15 +4815,15 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentCreateParams.PaymentMethodData.Oxxo build() { - return new PaymentIntentCreateParams.PaymentMethodData.Oxxo(this.extraParams); + public PaymentIntentCreateParams.PaymentMethodData.Multibanco build() { + return new PaymentIntentCreateParams.PaymentMethodData.Multibanco(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.Oxxo#extraParams} for the - * field documentation. + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.Multibanco#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4591,8 +4836,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Oxxo#extraParams} for the - * field documentation. + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.Multibanco#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4605,11 +4850,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class P24 { - /** The customer's bank. */ - @SerializedName("bank") - Bank bank; - + public static class NaverPay { /** * 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. @@ -4619,9 +4860,16 @@ public static class P24 { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private P24(Bank bank, Map extraParams) { - this.bank = bank; + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + @SerializedName("funding") + Funding funding; + + private NaverPay(Map extraParams, Funding funding) { this.extraParams = extraParams; + this.funding = funding; } public static Builder builder() { @@ -4629,25 +4877,20 @@ public static Builder builder() { } public static class Builder { - private Bank bank; - private Map extraParams; - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentCreateParams.PaymentMethodData.P24 build() { - return new PaymentIntentCreateParams.PaymentMethodData.P24(this.bank, this.extraParams); - } + private Funding funding; - /** The customer's bank. */ - public Builder setBank(PaymentIntentCreateParams.PaymentMethodData.P24.Bank bank) { - this.bank = bank; - return this; + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentCreateParams.PaymentMethodData.NaverPay build() { + return new PaymentIntentCreateParams.PaymentMethodData.NaverPay( + this.extraParams, this.funding); } /** * 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.P24#extraParams} for the + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.NaverPay#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4661,7 +4904,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.P24#extraParams} for the + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.NaverPay#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4671,17 +4914,169 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + public Builder setFunding( + PaymentIntentCreateParams.PaymentMethodData.NaverPay.Funding funding) { + this.funding = funding; + return this; + } } - public enum Bank implements ApiRequestParams.EnumParam { - @SerializedName("alior_bank") - ALIOR_BANK("alior_bank"), + public enum Funding implements ApiRequestParams.EnumParam { + @SerializedName("card") + CARD("card"), - @SerializedName("bank_millennium") - BANK_MILLENNIUM("bank_millennium"), + @SerializedName("points") + POINTS("points"); - @SerializedName("bank_nowy_bfg_sa") - BANK_NOWY_BFG_SA("bank_nowy_bfg_sa"), + @Getter(onMethod_ = {@Override}) + private final String value; + + Funding(String value) { + this.value = value; + } + } + } + + @Getter + public static class Oxxo { + /** + * 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 Oxxo(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.Oxxo build() { + return new PaymentIntentCreateParams.PaymentMethodData.Oxxo(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.Oxxo#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.Oxxo#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 + public static class P24 { + /** The customer's bank. */ + @SerializedName("bank") + Bank bank; + + /** + * 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 P24(Bank bank, Map extraParams) { + this.bank = bank; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Bank bank; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentCreateParams.PaymentMethodData.P24 build() { + return new PaymentIntentCreateParams.PaymentMethodData.P24(this.bank, this.extraParams); + } + + /** The customer's bank. */ + public Builder setBank(PaymentIntentCreateParams.PaymentMethodData.P24.Bank bank) { + this.bank = bank; + 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.PaymentMethodData.P24#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.P24#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 Bank implements ApiRequestParams.EnumParam { + @SerializedName("alior_bank") + ALIOR_BANK("alior_bank"), + + @SerializedName("bank_millennium") + BANK_MILLENNIUM("bank_millennium"), + + @SerializedName("bank_nowy_bfg_sa") + BANK_NOWY_BFG_SA("bank_nowy_bfg_sa"), @SerializedName("bank_pekao_sa") BANK_PEKAO_SA("bank_pekao_sa"), @@ -4761,6 +5156,63 @@ public enum Bank implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new PaymentIntentCreateParams.PaymentMethodData.Payco(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.Payco#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.Payco#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 public static class Paynow { /** @@ -5125,6 +5577,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay(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.SamsungPay build() { + return new PaymentIntentCreateParams.PaymentMethodData.SamsungPay(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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** @@ -5727,6 +6236,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -5766,12 +6278,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -5781,12 +6299,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -5802,6 +6326,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), @@ -5862,6 +6389,13 @@ public static class PaymentMethodOptions { @SerializedName("alipay") Object alipay; + /** + * If this is a {@code alma} PaymentMethod, this sub-hash contains details about the Alma + * payment method options. + */ + @SerializedName("alma") + Object alma; + /** * If this is a {@code amazon_pay} PaymentMethod, this sub-hash contains details about the * Amazon Pay payment method options. @@ -5981,8 +6515,15 @@ public static class PaymentMethodOptions { Object interacPresent; /** - * If this is a {@code klarna} PaymentMethod, this sub-hash contains details about the Klarna - * payment method options. + * If this is a {@code kakao_pay} PaymentMethod, this sub-hash contains details about the Kakao + * Pay payment method options. + */ + @SerializedName("kakao_pay") + Object kakaoPay; + + /** + * If this is a {@code klarna} PaymentMethod, this sub-hash contains details about the Klarna + * payment method options. */ @SerializedName("klarna") Object klarna; @@ -5994,6 +6535,13 @@ public static class PaymentMethodOptions { @SerializedName("konbini") Object konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this sub-hash contains details about the KR Card + * payment method options. + */ + @SerializedName("kr_card") + Object krCard; + /** * If this is a {@code link} PaymentMethod, this sub-hash contains details about the Link * payment method options. @@ -6015,6 +6563,13 @@ public static class PaymentMethodOptions { @SerializedName("multibanco") Object multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this sub-hash contains details about the Naver + * Pay payment method options. + */ + @SerializedName("naver_pay") + Object naverPay; + /** * If this is a {@code oxxo} PaymentMethod, this sub-hash contains details about the OXXO * payment method options. @@ -6029,6 +6584,13 @@ public static class PaymentMethodOptions { @SerializedName("p24") Object p24; + /** + * If this is a {@code payco} PaymentMethod, this sub-hash contains details about the PAYCO + * payment method options. + */ + @SerializedName("payco") + Object payco; + /** * If this is a {@code paynow} PaymentMethod, this sub-hash contains details about the PayNow * payment method options. @@ -6064,6 +6626,13 @@ public static class PaymentMethodOptions { @SerializedName("revolut_pay") Object revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this sub-hash contains details about the + * Samsung Pay payment method options. + */ + @SerializedName("samsung_pay") + Object samsungPay; + /** * If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the SEPA * Debit payment method options. @@ -6118,6 +6687,7 @@ private PaymentMethodOptions( Object affirm, Object afterpayClearpay, Object alipay, + Object alma, Object amazonPay, Object auBecsDebit, Object bacsDebit, @@ -6135,18 +6705,23 @@ private PaymentMethodOptions( Object grabpay, Object ideal, Object interacPresent, + Object kakaoPay, Object klarna, Object konbini, + Object krCard, Object link, Object mobilepay, Object multibanco, + Object naverPay, Object oxxo, Object p24, + Object payco, Object paynow, Object paypal, Object pix, Object promptpay, Object revolutPay, + Object samsungPay, Object sepaDebit, Object sofort, Object swish, @@ -6158,6 +6733,7 @@ private PaymentMethodOptions( this.affirm = affirm; this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -6175,18 +6751,23 @@ private PaymentMethodOptions( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -6209,6 +6790,8 @@ public static class Builder { private Object alipay; + private Object alma; + private Object amazonPay; private Object auBecsDebit; @@ -6243,20 +6826,28 @@ public static class Builder { private Object interacPresent; + private Object kakaoPay; + private Object klarna; private Object konbini; + private Object krCard; + private Object link; private Object mobilepay; private Object multibanco; + private Object naverPay; + private Object oxxo; private Object p24; + private Object payco; + private Object paynow; private Object paypal; @@ -6267,6 +6858,8 @@ public static class Builder { private Object revolutPay; + private Object samsungPay; + private Object sepaDebit; private Object sofort; @@ -6288,6 +6881,7 @@ public PaymentIntentCreateParams.PaymentMethodOptions build() { this.affirm, this.afterpayClearpay, this.alipay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -6305,18 +6899,23 @@ public PaymentIntentCreateParams.PaymentMethodOptions build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -6400,6 +6999,24 @@ public Builder setAlipay(EmptyParam alipay) { return this; } + /** + * If this is a {@code alma} PaymentMethod, this sub-hash contains details about the Alma + * payment method options. + */ + public Builder setAlma(PaymentIntentCreateParams.PaymentMethodOptions.Alma alma) { + this.alma = alma; + return this; + } + + /** + * If this is a {@code alma} PaymentMethod, this sub-hash contains details about the Alma + * payment method options. + */ + public Builder setAlma(EmptyParam alma) { + this.alma = alma; + return this; + } + /** * If this is a {@code amazon_pay} PaymentMethod, this sub-hash contains details about the * Amazon Pay payment method options. @@ -6716,6 +7333,24 @@ public Builder setInteracPresent(EmptyParam interacPresent) { return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this sub-hash contains details about the + * Kakao Pay payment method options. + */ + public Builder setKakaoPay(PaymentIntentCreateParams.PaymentMethodOptions.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + + /** + * If this is a {@code kakao_pay} PaymentMethod, this sub-hash contains details about the + * Kakao Pay payment method options. + */ + public Builder setKakaoPay(EmptyParam kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this sub-hash contains details about the Klarna * payment method options. @@ -6752,6 +7387,24 @@ public Builder setKonbini(EmptyParam konbini) { return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this sub-hash contains details about the KR + * Card payment method options. + */ + public Builder setKrCard(PaymentIntentCreateParams.PaymentMethodOptions.KrCard krCard) { + this.krCard = krCard; + return this; + } + + /** + * If this is a {@code kr_card} PaymentMethod, this sub-hash contains details about the KR + * Card payment method options. + */ + public Builder setKrCard(EmptyParam krCard) { + this.krCard = krCard; + return this; + } + /** * If this is a {@code link} PaymentMethod, this sub-hash contains details about the Link * payment method options. @@ -6808,6 +7461,24 @@ public Builder setMultibanco(EmptyParam multibanco) { return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this sub-hash contains details about the + * Naver Pay payment method options. + */ + public Builder setNaverPay(PaymentIntentCreateParams.PaymentMethodOptions.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + + /** + * If this is a {@code naver_pay} PaymentMethod, this sub-hash contains details about the + * Naver Pay payment method options. + */ + public Builder setNaverPay(EmptyParam naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is a {@code oxxo} PaymentMethod, this sub-hash contains details about the OXXO * payment method options. @@ -6844,6 +7515,24 @@ public Builder setP24(EmptyParam p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this sub-hash contains details about the PAYCO + * payment method options. + */ + public Builder setPayco(PaymentIntentCreateParams.PaymentMethodOptions.Payco payco) { + this.payco = payco; + return this; + } + + /** + * If this is a {@code payco} PaymentMethod, this sub-hash contains details about the PAYCO + * payment method options. + */ + public Builder setPayco(EmptyParam payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this sub-hash contains details about the PayNow * payment method options. @@ -6936,6 +7625,25 @@ public Builder setRevolutPay(EmptyParam revolutPay) { return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this sub-hash contains details about the + * Samsung Pay payment method options. + */ + public Builder setSamsungPay( + PaymentIntentCreateParams.PaymentMethodOptions.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + + /** + * If this is a {@code samsung_pay} PaymentMethod, this sub-hash contains details about the + * Samsung Pay payment method options. + */ + public Builder setSamsungPay(EmptyParam samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the * SEPA Debit payment method options. @@ -8061,6 +8769,123 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.Alma( + 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.Alma.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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -12793,7 +13618,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Klarna { + public static class KakaoPay { /** * Controls when the funds are captured from the customer's account. * @@ -12816,10 +13641,6 @@ public static class Klarna { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Preferred language of the Klarna authorization page that the customer is redirected to. */ - @SerializedName("preferred_locale") - PreferredLocale preferredLocale; - /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -12838,22 +13659,16 @@ public static class Klarna { *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply * with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. */ @SerializedName("setup_future_usage") - SetupFutureUsage setupFutureUsage; + ApiRequestParams.EnumParam setupFutureUsage; - private Klarna( + private KakaoPay( ApiRequestParams.EnumParam captureMethod, Map extraParams, - PreferredLocale preferredLocale, - SetupFutureUsage setupFutureUsage) { + ApiRequestParams.EnumParam setupFutureUsage) { this.captureMethod = captureMethod; this.extraParams = extraParams; - this.preferredLocale = preferredLocale; this.setupFutureUsage = setupFutureUsage; } @@ -12866,14 +13681,12 @@ public static class Builder { private Map extraParams; - private PreferredLocale preferredLocale; - - private SetupFutureUsage setupFutureUsage; + private ApiRequestParams.EnumParam setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentCreateParams.PaymentMethodOptions.Klarna build() { - return new PaymentIntentCreateParams.PaymentMethodOptions.Klarna( - this.captureMethod, this.extraParams, this.preferredLocale, this.setupFutureUsage); + public PaymentIntentCreateParams.PaymentMethodOptions.KakaoPay build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.KakaoPay( + this.captureMethod, this.extraParams, this.setupFutureUsage); } /** @@ -12887,7 +13700,7 @@ public PaymentIntentCreateParams.PaymentMethodOptions.Klarna build() { * value for this parameter unsets the stored value for this payment method type. */ public Builder setCaptureMethod( - PaymentIntentCreateParams.PaymentMethodOptions.Klarna.CaptureMethod captureMethod) { + PaymentIntentCreateParams.PaymentMethodOptions.KakaoPay.CaptureMethod captureMethod) { this.captureMethod = captureMethod; return this; } @@ -12910,7 +13723,7 @@ public Builder setCaptureMethod(EmptyParam captureMethod) { /** * 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.Klarna#extraParams} for + * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.KakaoPay#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -12924,7 +13737,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Klarna#extraParams} for + * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.KakaoPay#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -12935,15 +13748,6 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Preferred language of the Klarna authorization page that the customer is redirected to. - */ - public Builder setPreferredLocale( - PaymentIntentCreateParams.PaymentMethodOptions.Klarna.PreferredLocale preferredLocale) { - this.preferredLocale = preferredLocale; - return this; - } - /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -12963,34 +13767,267 @@ public Builder setPreferredLocale( *

When processing card payments, Stripe uses {@code setup_future_usage} to help you * comply with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using - * a publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. */ public Builder setSetupFutureUsage( - PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SetupFutureUsage + PaymentIntentCreateParams.PaymentMethodOptions.KakaoPay.SetupFutureUsage setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; 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; - } - } - - public enum PreferredLocale implements ApiRequestParams.EnumParam { - @SerializedName("cs-CZ") - CS_CZ("cs-CZ"), + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + */ + public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + 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; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"), + + @SerializedName("off_session") + OFF_SESSION("off_session"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + + @Getter + public static class Klarna { + /** + * 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; + + /** Preferred language of the Klarna authorization page that the customer is redirected to. */ + @SerializedName("preferred_locale") + PreferredLocale preferredLocale; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using a + * publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private Klarna( + ApiRequestParams.EnumParam captureMethod, + Map extraParams, + PreferredLocale preferredLocale, + SetupFutureUsage setupFutureUsage) { + this.captureMethod = captureMethod; + this.extraParams = extraParams; + this.preferredLocale = preferredLocale; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private ApiRequestParams.EnumParam captureMethod; + + private Map extraParams; + + private PreferredLocale preferredLocale; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentCreateParams.PaymentMethodOptions.Klarna build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.Klarna( + this.captureMethod, this.extraParams, this.preferredLocale, this.setupFutureUsage); + } + + /** + * 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.Klarna.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.Klarna#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.Klarna#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Preferred language of the Klarna authorization page that the customer is redirected to. + */ + public Builder setPreferredLocale( + PaymentIntentCreateParams.PaymentMethodOptions.Klarna.PreferredLocale preferredLocale) { + this.preferredLocale = preferredLocale; + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + public Builder setSetupFutureUsage( + PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + 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; + } + } + + public enum PreferredLocale implements ApiRequestParams.EnumParam { + @SerializedName("cs-CZ") + CS_CZ("cs-CZ"), @SerializedName("da-DK") DA_DK("da-DK"), @@ -13208,26 +14245,260 @@ public static class Konbini { *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply * with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using a + * publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private Konbini( + Object confirmationNumber, + Object expiresAfterDays, + Object expiresAt, + Map extraParams, + Object productDescription, + SetupFutureUsage setupFutureUsage) { + this.confirmationNumber = confirmationNumber; + this.expiresAfterDays = expiresAfterDays; + this.expiresAt = expiresAt; + this.extraParams = extraParams; + this.productDescription = productDescription; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object confirmationNumber; + + private Object expiresAfterDays; + + private Object expiresAt; + + private Map extraParams; + + private Object productDescription; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentCreateParams.PaymentMethodOptions.Konbini build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.Konbini( + this.confirmationNumber, + this.expiresAfterDays, + this.expiresAt, + this.extraParams, + this.productDescription, + this.setupFutureUsage); + } + + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at + * applicable convenience stores. Must not consist of only zeroes and could be rejected in + * case of insufficient uniqueness. We recommend to use the customer's phone number. + */ + public Builder setConfirmationNumber(String confirmationNumber) { + this.confirmationNumber = confirmationNumber; + return this; + } + + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at + * applicable convenience stores. Must not consist of only zeroes and could be rejected in + * case of insufficient uniqueness. We recommend to use the customer's phone number. + */ + public Builder setConfirmationNumber(EmptyParam confirmationNumber) { + this.confirmationNumber = confirmationNumber; + return this; + } + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions + * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code + * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday + * 23:59:59 JST. Defaults to 3 days. + */ + public Builder setExpiresAfterDays(Long expiresAfterDays) { + this.expiresAfterDays = expiresAfterDays; + return this; + } + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions + * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code + * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday + * 23:59:59 JST. Defaults to 3 days. + */ + public Builder setExpiresAfterDays(EmptyParam expiresAfterDays) { + this.expiresAfterDays = expiresAfterDays; + return this; + } + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of {@code + * expires_after_days} or {@code expires_at} may be set. + */ + public Builder setExpiresAt(Long expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of {@code + * expires_after_days} or {@code expires_at} may be set. + */ + public Builder setExpiresAt(EmptyParam expiresAt) { + this.expiresAt = expiresAt; + 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.Konbini#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.Konbini#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the + * convenience store. + */ + public Builder setProductDescription(String productDescription) { + this.productDescription = productDescription; + return this; + } + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the + * convenience store. + */ + public Builder setProductDescription(EmptyParam productDescription) { + this.productDescription = productDescription; + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + public Builder setSetupFutureUsage( + PaymentIntentCreateParams.PaymentMethodOptions.Konbini.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + + @Getter + public static class KrCard { + /** + * 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; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") - SetupFutureUsage setupFutureUsage; + ApiRequestParams.EnumParam setupFutureUsage; - private Konbini( - Object confirmationNumber, - Object expiresAfterDays, - Object expiresAt, + private KrCard( + ApiRequestParams.EnumParam captureMethod, Map extraParams, - Object productDescription, - SetupFutureUsage setupFutureUsage) { - this.confirmationNumber = confirmationNumber; - this.expiresAfterDays = expiresAfterDays; - this.expiresAt = expiresAt; + ApiRequestParams.EnumParam setupFutureUsage) { + this.captureMethod = captureMethod; this.extraParams = extraParams; - this.productDescription = productDescription; this.setupFutureUsage = setupFutureUsage; } @@ -13236,93 +14507,53 @@ public static Builder builder() { } public static class Builder { - private Object confirmationNumber; - - private Object expiresAfterDays; - - private Object expiresAt; + private ApiRequestParams.EnumParam captureMethod; private Map extraParams; - private Object productDescription; - - private SetupFutureUsage setupFutureUsage; + private ApiRequestParams.EnumParam setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentCreateParams.PaymentMethodOptions.Konbini build() { - return new PaymentIntentCreateParams.PaymentMethodOptions.Konbini( - this.confirmationNumber, - this.expiresAfterDays, - this.expiresAt, - this.extraParams, - this.productDescription, - this.setupFutureUsage); - } - - /** - * An optional 10 to 11 digit numeric-only string determining the confirmation code at - * applicable convenience stores. Must not consist of only zeroes and could be rejected in - * case of insufficient uniqueness. We recommend to use the customer's phone number. - */ - public Builder setConfirmationNumber(String confirmationNumber) { - this.confirmationNumber = confirmationNumber; - return this; - } - - /** - * An optional 10 to 11 digit numeric-only string determining the confirmation code at - * applicable convenience stores. Must not consist of only zeroes and could be rejected in - * case of insufficient uniqueness. We recommend to use the customer's phone number. - */ - public Builder setConfirmationNumber(EmptyParam confirmationNumber) { - this.confirmationNumber = confirmationNumber; - return this; - } - - /** - * The number of calendar days (between 1 and 60) after which Konbini payment instructions - * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code - * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday - * 23:59:59 JST. Defaults to 3 days. - */ - public Builder setExpiresAfterDays(Long expiresAfterDays) { - this.expiresAfterDays = expiresAfterDays; - return this; - } - - /** - * The number of calendar days (between 1 and 60) after which Konbini payment instructions - * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code - * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday - * 23:59:59 JST. Defaults to 3 days. - */ - public Builder setExpiresAfterDays(EmptyParam expiresAfterDays) { - this.expiresAfterDays = expiresAfterDays; - return this; + public PaymentIntentCreateParams.PaymentMethodOptions.KrCard build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.KrCard( + this.captureMethod, this.extraParams, this.setupFutureUsage); } /** - * The timestamp at which the Konbini payment instructions will expire. Only one of {@code - * expires_after_days} or {@code expires_at} may be set. + * 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 setExpiresAt(Long expiresAt) { - this.expiresAt = expiresAt; + public Builder setCaptureMethod( + PaymentIntentCreateParams.PaymentMethodOptions.KrCard.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; return this; } /** - * The timestamp at which the Konbini payment instructions will expire. Only one of {@code - * expires_after_days} or {@code expires_at} may be set. + * 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 setExpiresAt(EmptyParam expiresAt) { - this.expiresAt = expiresAt; + 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.Konbini#extraParams} for + * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.KrCard#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -13336,7 +14567,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Konbini#extraParams} for + * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.KrCard#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -13348,20 +14579,29 @@ public Builder putAllExtraParam(Map map) { } /** - * A product descriptor of up to 22 characters, which will appear to customers at the - * convenience store. - */ - public Builder setProductDescription(String productDescription) { - this.productDescription = productDescription; - return this; - } - - /** - * A product descriptor of up to 22 characters, which will appear to customers at the - * convenience store. + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ - public Builder setProductDescription(EmptyParam productDescription) { - this.productDescription = productDescription; + public Builder setSetupFutureUsage( + PaymentIntentCreateParams.PaymentMethodOptions.KrCard.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; return this; } @@ -13384,22 +14624,31 @@ public Builder setProductDescription(EmptyParam productDescription) { *

When processing card payments, Stripe uses {@code setup_future_usage} to help you * comply with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using - * a publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. */ - public Builder setSetupFutureUsage( - PaymentIntentCreateParams.PaymentMethodOptions.Konbini.SetupFutureUsage - setupFutureUsage) { + public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; 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; + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") - NONE("none"); + NONE("none"), + + @SerializedName("off_session") + OFF_SESSION("off_session"); @Getter(onMethod_ = {@Override}) private final String value; @@ -13950,22 +15199,139 @@ public Builder putAllExtraParam(Map map) { * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ - public Builder setSetupFutureUsage( - PaymentIntentCreateParams.PaymentMethodOptions.Multibanco.SetupFutureUsage - setupFutureUsage) { - this.setupFutureUsage = setupFutureUsage; + public Builder setSetupFutureUsage( + PaymentIntentCreateParams.PaymentMethodOptions.Multibanco.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + + @Getter + public static class NaverPay { + /** + * 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 NaverPay(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.NaverPay build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.NaverPay( + 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.NaverPay.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.NaverPay#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.NaverPay#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 SetupFutureUsage implements ApiRequestParams.EnumParam { - @SerializedName("none") - NONE("none"); + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"); @Getter(onMethod_ = {@Override}) private final String value; - SetupFutureUsage(String value) { + CaptureMethod(String value) { this.value = value; } } @@ -14269,6 +15635,123 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.Payco( + 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.Payco.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.Payco#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.Payco#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 public static class Paynow { /** @@ -15245,6 +16728,124 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay( + 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.SamsungPay build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.SamsungPay( + 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.SamsungPay.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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index c311db44126..f301ca65eb2 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -826,6 +826,12 @@ public static class PaymentMethodData { @SerializedName("allow_redisplay") AllowRedisplay allowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + @SerializedName("alma") + Alma alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment * method. @@ -940,6 +946,13 @@ public static class PaymentMethodData { @SerializedName("interac_present") InteracPresent interacPresent; + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao Pay + * payment method. + */ + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -954,6 +967,13 @@ public static class PaymentMethodData { @SerializedName("konbini") Konbini konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean Card + * payment method. + */ + @SerializedName("kr_card") + KrCard krCard; + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -984,6 +1004,13 @@ public static class PaymentMethodData { @SerializedName("multibanco") Multibanco multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -998,6 +1025,13 @@ public static class PaymentMethodData { @SerializedName("p24") P24 p24; + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment + * method. + */ + @SerializedName("payco") + Payco payco; + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1040,6 +1074,13 @@ public static class PaymentMethodData { @SerializedName("revolut_pay") RevolutPay revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + @SerializedName("samsung_pay") + SamsungPay samsungPay; + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -1102,6 +1143,7 @@ private PaymentMethodData( AfterpayClearpay afterpayClearpay, Alipay alipay, AllowRedisplay allowRedisplay, + Alma alma, AmazonPay amazonPay, AuBecsDebit auBecsDebit, BacsDebit bacsDebit, @@ -1118,20 +1160,25 @@ private PaymentMethodData( Grabpay grabpay, Ideal ideal, InteracPresent interacPresent, + KakaoPay kakaoPay, Klarna klarna, Konbini konbini, + KrCard krCard, Link link, Map metadata, Mobilepay mobilepay, Multibanco multibanco, + NaverPay naverPay, Oxxo oxxo, P24 p24, + Payco payco, Paynow paynow, Paypal paypal, Pix pix, Promptpay promptpay, RadarOptions radarOptions, RevolutPay revolutPay, + SamsungPay samsungPay, SepaDebit sepaDebit, Sofort sofort, Swish swish, @@ -1145,6 +1192,7 @@ private PaymentMethodData( this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; this.allowRedisplay = allowRedisplay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -1161,20 +1209,25 @@ private PaymentMethodData( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -1200,6 +1253,8 @@ public static class Builder { private AllowRedisplay allowRedisplay; + private Alma alma; + private AmazonPay amazonPay; private AuBecsDebit auBecsDebit; @@ -1232,10 +1287,14 @@ public static class Builder { private InteracPresent interacPresent; + private KakaoPay kakaoPay; + private Klarna klarna; private Konbini konbini; + private KrCard krCard; + private Link link; private Map metadata; @@ -1244,10 +1303,14 @@ public static class Builder { private Multibanco multibanco; + private NaverPay naverPay; + private Oxxo oxxo; private P24 p24; + private Payco payco; + private Paynow paynow; private Paypal paypal; @@ -1260,6 +1323,8 @@ public static class Builder { private RevolutPay revolutPay; + private SamsungPay samsungPay; + private SepaDebit sepaDebit; private Sofort sofort; @@ -1284,6 +1349,7 @@ public PaymentIntentUpdateParams.PaymentMethodData build() { this.afterpayClearpay, this.alipay, this.allowRedisplay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -1300,20 +1366,25 @@ public PaymentIntentUpdateParams.PaymentMethodData build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.metadata, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.radarOptions, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -1373,6 +1444,14 @@ public Builder setAllowRedisplay( return this; } + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + public Builder setAlma(PaymentIntentUpdateParams.PaymentMethodData.Alma alma) { + this.alma = alma; + return this; + } + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay * payment method. @@ -1540,6 +1619,15 @@ public Builder setInteracPresent( return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao + * Pay payment method. + */ + public Builder setKakaoPay(PaymentIntentUpdateParams.PaymentMethodData.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -1558,6 +1646,15 @@ public Builder setKonbini(PaymentIntentUpdateParams.PaymentMethodData.Konbini ko return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean + * Card payment method. + */ + public Builder setKrCard(PaymentIntentUpdateParams.PaymentMethodData.KrCard krCard) { + this.krCard = krCard; + return this; + } + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -1613,6 +1710,15 @@ public Builder setMultibanco( return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver + * Pay payment method. + */ + public Builder setNaverPay(PaymentIntentUpdateParams.PaymentMethodData.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -1631,6 +1737,15 @@ public Builder setP24(PaymentIntentUpdateParams.PaymentMethodData.P24 p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO + * payment method. + */ + public Builder setPayco(PaymentIntentUpdateParams.PaymentMethodData.Payco payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1687,6 +1802,16 @@ public Builder setRevolutPay( return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + public Builder setSamsungPay( + PaymentIntentUpdateParams.PaymentMethodData.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -2052,6 +2177,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new PaymentIntentUpdateParams.PaymentMethodData.Alma(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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -3406,7 +3588,10 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Ideal { - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ @SerializedName("bank") Bank bank; @@ -3438,7 +3623,10 @@ public PaymentIntentUpdateParams.PaymentMethodData.Ideal build() { return new PaymentIntentUpdateParams.PaymentMethodData.Ideal(this.bank, this.extraParams); } - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ public Builder setBank(PaymentIntentUpdateParams.PaymentMethodData.Ideal.Bank bank) { this.bank = bank; return this; @@ -3588,6 +3776,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KakaoPay { + /** + * 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 KakaoPay(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.KakaoPay build() { + return new PaymentIntentUpdateParams.PaymentMethodData.KakaoPay(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.KakaoPay#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.KakaoPay#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 public static class Klarna { /** Customer's date of birth. */ @@ -3814,7 +4059,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Link { + public static class KrCard { /** * 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. @@ -3824,7 +4069,7 @@ public static class Link { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Link(Map extraParams) { + private KrCard(Map extraParams) { this.extraParams = extraParams; } @@ -3836,14 +4081,14 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentUpdateParams.PaymentMethodData.Link build() { - return new PaymentIntentUpdateParams.PaymentMethodData.Link(this.extraParams); + public PaymentIntentUpdateParams.PaymentMethodData.KrCard build() { + return new PaymentIntentUpdateParams.PaymentMethodData.KrCard(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.Link#extraParams} for the + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.KrCard#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3857,7 +4102,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Link#extraParams} for the + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.KrCard#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -3871,7 +4116,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Mobilepay { + public static class Link { /** * 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. @@ -3881,7 +4126,7 @@ public static class Mobilepay { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Mobilepay(Map extraParams) { + private Link(Map extraParams) { this.extraParams = extraParams; } @@ -3893,15 +4138,15 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentUpdateParams.PaymentMethodData.Mobilepay build() { - return new PaymentIntentUpdateParams.PaymentMethodData.Mobilepay(this.extraParams); + public PaymentIntentUpdateParams.PaymentMethodData.Link build() { + return new PaymentIntentUpdateParams.PaymentMethodData.Link(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.Mobilepay#extraParams} for - * the field documentation. + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.Link#extraParams} for the + * field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -3914,8 +4159,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Mobilepay#extraParams} for - * the field documentation. + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.Link#extraParams} for the + * field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -3928,7 +4173,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Multibanco { + public static class Mobilepay { /** * 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. @@ -3938,7 +4183,7 @@ public static class Multibanco { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Multibanco(Map extraParams) { + private Mobilepay(Map extraParams) { this.extraParams = extraParams; } @@ -3950,14 +4195,14 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentUpdateParams.PaymentMethodData.Multibanco build() { - return new PaymentIntentUpdateParams.PaymentMethodData.Multibanco(this.extraParams); + public PaymentIntentUpdateParams.PaymentMethodData.Mobilepay build() { + return new PaymentIntentUpdateParams.PaymentMethodData.Mobilepay(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.Multibanco#extraParams} for + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.Mobilepay#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3971,7 +4216,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Multibanco#extraParams} for + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.Mobilepay#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -3985,7 +4230,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Oxxo { + public static class Multibanco { /** * 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. @@ -3995,7 +4240,7 @@ public static class Oxxo { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Oxxo(Map extraParams) { + private Multibanco(Map extraParams) { this.extraParams = extraParams; } @@ -4007,15 +4252,15 @@ public static class Builder { private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentUpdateParams.PaymentMethodData.Oxxo build() { - return new PaymentIntentUpdateParams.PaymentMethodData.Oxxo(this.extraParams); + public PaymentIntentUpdateParams.PaymentMethodData.Multibanco build() { + return new PaymentIntentUpdateParams.PaymentMethodData.Multibanco(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.Oxxo#extraParams} for the - * field documentation. + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.Multibanco#extraParams} for + * the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -4028,8 +4273,8 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Oxxo#extraParams} for the - * field documentation. + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.Multibanco#extraParams} for + * the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -4042,11 +4287,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class P24 { - /** The customer's bank. */ - @SerializedName("bank") - Bank bank; - + public static class NaverPay { /** * 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. @@ -4056,9 +4297,16 @@ public static class P24 { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private P24(Bank bank, Map extraParams) { - this.bank = bank; + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + @SerializedName("funding") + Funding funding; + + private NaverPay(Map extraParams, Funding funding) { this.extraParams = extraParams; + this.funding = funding; } public static Builder builder() { @@ -4066,25 +4314,20 @@ public static Builder builder() { } public static class Builder { - private Bank bank; - private Map extraParams; - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentUpdateParams.PaymentMethodData.P24 build() { - return new PaymentIntentUpdateParams.PaymentMethodData.P24(this.bank, this.extraParams); - } + private Funding funding; - /** The customer's bank. */ - public Builder setBank(PaymentIntentUpdateParams.PaymentMethodData.P24.Bank bank) { - this.bank = bank; - return this; + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentUpdateParams.PaymentMethodData.NaverPay build() { + return new PaymentIntentUpdateParams.PaymentMethodData.NaverPay( + this.extraParams, this.funding); } /** * 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.P24#extraParams} for the + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.NaverPay#extraParams} for the * field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -4098,7 +4341,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.P24#extraParams} for the + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.NaverPay#extraParams} for the * field documentation. */ public Builder putAllExtraParam(Map map) { @@ -4108,17 +4351,169 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + public Builder setFunding( + PaymentIntentUpdateParams.PaymentMethodData.NaverPay.Funding funding) { + this.funding = funding; + return this; + } } - public enum Bank implements ApiRequestParams.EnumParam { - @SerializedName("alior_bank") - ALIOR_BANK("alior_bank"), + public enum Funding implements ApiRequestParams.EnumParam { + @SerializedName("card") + CARD("card"), - @SerializedName("bank_millennium") - BANK_MILLENNIUM("bank_millennium"), + @SerializedName("points") + POINTS("points"); - @SerializedName("bank_nowy_bfg_sa") - BANK_NOWY_BFG_SA("bank_nowy_bfg_sa"), + @Getter(onMethod_ = {@Override}) + private final String value; + + Funding(String value) { + this.value = value; + } + } + } + + @Getter + public static class Oxxo { + /** + * 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 Oxxo(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.Oxxo build() { + return new PaymentIntentUpdateParams.PaymentMethodData.Oxxo(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.Oxxo#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.Oxxo#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 + public static class P24 { + /** The customer's bank. */ + @SerializedName("bank") + Bank bank; + + /** + * 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 P24(Bank bank, Map extraParams) { + this.bank = bank; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Bank bank; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentUpdateParams.PaymentMethodData.P24 build() { + return new PaymentIntentUpdateParams.PaymentMethodData.P24(this.bank, this.extraParams); + } + + /** The customer's bank. */ + public Builder setBank(PaymentIntentUpdateParams.PaymentMethodData.P24.Bank bank) { + this.bank = bank; + 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.PaymentMethodData.P24#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.P24#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 Bank implements ApiRequestParams.EnumParam { + @SerializedName("alior_bank") + ALIOR_BANK("alior_bank"), + + @SerializedName("bank_millennium") + BANK_MILLENNIUM("bank_millennium"), + + @SerializedName("bank_nowy_bfg_sa") + BANK_NOWY_BFG_SA("bank_nowy_bfg_sa"), @SerializedName("bank_pekao_sa") BANK_PEKAO_SA("bank_pekao_sa"), @@ -4198,6 +4593,63 @@ public enum Bank implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new PaymentIntentUpdateParams.PaymentMethodData.Payco(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.Payco#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.Payco#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 public static class Paynow { /** @@ -4572,6 +5024,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay(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.SamsungPay build() { + return new PaymentIntentUpdateParams.PaymentMethodData.SamsungPay(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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** @@ -5198,6 +5707,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -5237,12 +5749,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -5252,12 +5770,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -5273,6 +5797,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), @@ -5333,6 +5860,13 @@ public static class PaymentMethodOptions { @SerializedName("alipay") Object alipay; + /** + * If this is a {@code alma} PaymentMethod, this sub-hash contains details about the Alma + * payment method options. + */ + @SerializedName("alma") + Object alma; + /** * If this is a {@code amazon_pay} PaymentMethod, this sub-hash contains details about the * Amazon Pay payment method options. @@ -5452,8 +5986,15 @@ public static class PaymentMethodOptions { Object interacPresent; /** - * If this is a {@code klarna} PaymentMethod, this sub-hash contains details about the Klarna - * payment method options. + * If this is a {@code kakao_pay} PaymentMethod, this sub-hash contains details about the Kakao + * Pay payment method options. + */ + @SerializedName("kakao_pay") + Object kakaoPay; + + /** + * If this is a {@code klarna} PaymentMethod, this sub-hash contains details about the Klarna + * payment method options. */ @SerializedName("klarna") Object klarna; @@ -5465,6 +6006,13 @@ public static class PaymentMethodOptions { @SerializedName("konbini") Object konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this sub-hash contains details about the KR Card + * payment method options. + */ + @SerializedName("kr_card") + Object krCard; + /** * If this is a {@code link} PaymentMethod, this sub-hash contains details about the Link * payment method options. @@ -5486,6 +6034,13 @@ public static class PaymentMethodOptions { @SerializedName("multibanco") Object multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this sub-hash contains details about the Naver + * Pay payment method options. + */ + @SerializedName("naver_pay") + Object naverPay; + /** * If this is a {@code oxxo} PaymentMethod, this sub-hash contains details about the OXXO * payment method options. @@ -5500,6 +6055,13 @@ public static class PaymentMethodOptions { @SerializedName("p24") Object p24; + /** + * If this is a {@code payco} PaymentMethod, this sub-hash contains details about the PAYCO + * payment method options. + */ + @SerializedName("payco") + Object payco; + /** * If this is a {@code paynow} PaymentMethod, this sub-hash contains details about the PayNow * payment method options. @@ -5535,6 +6097,13 @@ public static class PaymentMethodOptions { @SerializedName("revolut_pay") Object revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this sub-hash contains details about the + * Samsung Pay payment method options. + */ + @SerializedName("samsung_pay") + Object samsungPay; + /** * If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the SEPA * Debit payment method options. @@ -5589,6 +6158,7 @@ private PaymentMethodOptions( Object affirm, Object afterpayClearpay, Object alipay, + Object alma, Object amazonPay, Object auBecsDebit, Object bacsDebit, @@ -5606,18 +6176,23 @@ private PaymentMethodOptions( Object grabpay, Object ideal, Object interacPresent, + Object kakaoPay, Object klarna, Object konbini, + Object krCard, Object link, Object mobilepay, Object multibanco, + Object naverPay, Object oxxo, Object p24, + Object payco, Object paynow, Object paypal, Object pix, Object promptpay, Object revolutPay, + Object samsungPay, Object sepaDebit, Object sofort, Object swish, @@ -5629,6 +6204,7 @@ private PaymentMethodOptions( this.affirm = affirm; this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -5646,18 +6222,23 @@ private PaymentMethodOptions( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -5680,6 +6261,8 @@ public static class Builder { private Object alipay; + private Object alma; + private Object amazonPay; private Object auBecsDebit; @@ -5714,20 +6297,28 @@ public static class Builder { private Object interacPresent; + private Object kakaoPay; + private Object klarna; private Object konbini; + private Object krCard; + private Object link; private Object mobilepay; private Object multibanco; + private Object naverPay; + private Object oxxo; private Object p24; + private Object payco; + private Object paynow; private Object paypal; @@ -5738,6 +6329,8 @@ public static class Builder { private Object revolutPay; + private Object samsungPay; + private Object sepaDebit; private Object sofort; @@ -5759,6 +6352,7 @@ public PaymentIntentUpdateParams.PaymentMethodOptions build() { this.affirm, this.afterpayClearpay, this.alipay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -5776,18 +6370,23 @@ public PaymentIntentUpdateParams.PaymentMethodOptions build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -5871,6 +6470,24 @@ public Builder setAlipay(EmptyParam alipay) { return this; } + /** + * If this is a {@code alma} PaymentMethod, this sub-hash contains details about the Alma + * payment method options. + */ + public Builder setAlma(PaymentIntentUpdateParams.PaymentMethodOptions.Alma alma) { + this.alma = alma; + return this; + } + + /** + * If this is a {@code alma} PaymentMethod, this sub-hash contains details about the Alma + * payment method options. + */ + public Builder setAlma(EmptyParam alma) { + this.alma = alma; + return this; + } + /** * If this is a {@code amazon_pay} PaymentMethod, this sub-hash contains details about the * Amazon Pay payment method options. @@ -6187,6 +6804,24 @@ public Builder setInteracPresent(EmptyParam interacPresent) { return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this sub-hash contains details about the + * Kakao Pay payment method options. + */ + public Builder setKakaoPay(PaymentIntentUpdateParams.PaymentMethodOptions.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + + /** + * If this is a {@code kakao_pay} PaymentMethod, this sub-hash contains details about the + * Kakao Pay payment method options. + */ + public Builder setKakaoPay(EmptyParam kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this sub-hash contains details about the Klarna * payment method options. @@ -6223,6 +6858,24 @@ public Builder setKonbini(EmptyParam konbini) { return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this sub-hash contains details about the KR + * Card payment method options. + */ + public Builder setKrCard(PaymentIntentUpdateParams.PaymentMethodOptions.KrCard krCard) { + this.krCard = krCard; + return this; + } + + /** + * If this is a {@code kr_card} PaymentMethod, this sub-hash contains details about the KR + * Card payment method options. + */ + public Builder setKrCard(EmptyParam krCard) { + this.krCard = krCard; + return this; + } + /** * If this is a {@code link} PaymentMethod, this sub-hash contains details about the Link * payment method options. @@ -6279,6 +6932,24 @@ public Builder setMultibanco(EmptyParam multibanco) { return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this sub-hash contains details about the + * Naver Pay payment method options. + */ + public Builder setNaverPay(PaymentIntentUpdateParams.PaymentMethodOptions.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + + /** + * If this is a {@code naver_pay} PaymentMethod, this sub-hash contains details about the + * Naver Pay payment method options. + */ + public Builder setNaverPay(EmptyParam naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is a {@code oxxo} PaymentMethod, this sub-hash contains details about the OXXO * payment method options. @@ -6315,6 +6986,24 @@ public Builder setP24(EmptyParam p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this sub-hash contains details about the PAYCO + * payment method options. + */ + public Builder setPayco(PaymentIntentUpdateParams.PaymentMethodOptions.Payco payco) { + this.payco = payco; + return this; + } + + /** + * If this is a {@code payco} PaymentMethod, this sub-hash contains details about the PAYCO + * payment method options. + */ + public Builder setPayco(EmptyParam payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this sub-hash contains details about the PayNow * payment method options. @@ -6407,6 +7096,25 @@ public Builder setRevolutPay(EmptyParam revolutPay) { return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this sub-hash contains details about the + * Samsung Pay payment method options. + */ + public Builder setSamsungPay( + PaymentIntentUpdateParams.PaymentMethodOptions.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + + /** + * If this is a {@code samsung_pay} PaymentMethod, this sub-hash contains details about the + * Samsung Pay payment method options. + */ + public Builder setSamsungPay(EmptyParam samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the * SEPA Debit payment method options. @@ -7559,6 +8267,123 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.Alma( + 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.Alma.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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -12374,7 +13199,7 @@ public Builder putAllExtraParam(Map map) { } @Getter - public static class Klarna { + public static class KakaoPay { /** * Controls when the funds are captured from the customer's account. * @@ -12397,10 +13222,6 @@ public static class Klarna { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Preferred language of the Klarna authorization page that the customer is redirected to. */ - @SerializedName("preferred_locale") - PreferredLocale preferredLocale; - /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -12419,22 +13240,16 @@ public static class Klarna { *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply * with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. */ @SerializedName("setup_future_usage") - SetupFutureUsage setupFutureUsage; + ApiRequestParams.EnumParam setupFutureUsage; - private Klarna( + private KakaoPay( ApiRequestParams.EnumParam captureMethod, Map extraParams, - PreferredLocale preferredLocale, - SetupFutureUsage setupFutureUsage) { + ApiRequestParams.EnumParam setupFutureUsage) { this.captureMethod = captureMethod; this.extraParams = extraParams; - this.preferredLocale = preferredLocale; this.setupFutureUsage = setupFutureUsage; } @@ -12447,14 +13262,12 @@ public static class Builder { private Map extraParams; - private PreferredLocale preferredLocale; - - private SetupFutureUsage setupFutureUsage; + private ApiRequestParams.EnumParam setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentUpdateParams.PaymentMethodOptions.Klarna build() { - return new PaymentIntentUpdateParams.PaymentMethodOptions.Klarna( - this.captureMethod, this.extraParams, this.preferredLocale, this.setupFutureUsage); + public PaymentIntentUpdateParams.PaymentMethodOptions.KakaoPay build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.KakaoPay( + this.captureMethod, this.extraParams, this.setupFutureUsage); } /** @@ -12468,7 +13281,7 @@ public PaymentIntentUpdateParams.PaymentMethodOptions.Klarna build() { * value for this parameter unsets the stored value for this payment method type. */ public Builder setCaptureMethod( - PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.CaptureMethod captureMethod) { + PaymentIntentUpdateParams.PaymentMethodOptions.KakaoPay.CaptureMethod captureMethod) { this.captureMethod = captureMethod; return this; } @@ -12491,7 +13304,7 @@ public Builder setCaptureMethod(EmptyParam captureMethod) { /** * 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.Klarna#extraParams} for + * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.KakaoPay#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -12505,7 +13318,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Klarna#extraParams} for + * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.KakaoPay#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -12516,15 +13329,6 @@ public Builder putAllExtraParam(Map map) { return this; } - /** - * Preferred language of the Klarna authorization page that the customer is redirected to. - */ - public Builder setPreferredLocale( - PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.PreferredLocale preferredLocale) { - this.preferredLocale = preferredLocale; - return this; - } - /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -12544,34 +13348,267 @@ public Builder setPreferredLocale( *

When processing card payments, Stripe uses {@code setup_future_usage} to help you * comply with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using - * a publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. */ public Builder setSetupFutureUsage( - PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SetupFutureUsage + PaymentIntentUpdateParams.PaymentMethodOptions.KakaoPay.SetupFutureUsage setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; 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; - } - } - - public enum PreferredLocale implements ApiRequestParams.EnumParam { - @SerializedName("cs-CZ") - CS_CZ("cs-CZ"), + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + */ + public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + 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; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"), + + @SerializedName("off_session") + OFF_SESSION("off_session"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + + @Getter + public static class Klarna { + /** + * 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; + + /** Preferred language of the Klarna authorization page that the customer is redirected to. */ + @SerializedName("preferred_locale") + PreferredLocale preferredLocale; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using a + * publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private Klarna( + ApiRequestParams.EnumParam captureMethod, + Map extraParams, + PreferredLocale preferredLocale, + SetupFutureUsage setupFutureUsage) { + this.captureMethod = captureMethod; + this.extraParams = extraParams; + this.preferredLocale = preferredLocale; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private ApiRequestParams.EnumParam captureMethod; + + private Map extraParams; + + private PreferredLocale preferredLocale; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentUpdateParams.PaymentMethodOptions.Klarna build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.Klarna( + this.captureMethod, this.extraParams, this.preferredLocale, this.setupFutureUsage); + } + + /** + * 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.Klarna.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.Klarna#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.Klarna#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Preferred language of the Klarna authorization page that the customer is redirected to. + */ + public Builder setPreferredLocale( + PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.PreferredLocale preferredLocale) { + this.preferredLocale = preferredLocale; + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + public Builder setSetupFutureUsage( + PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + 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; + } + } + + public enum PreferredLocale implements ApiRequestParams.EnumParam { + @SerializedName("cs-CZ") + CS_CZ("cs-CZ"), @SerializedName("da-DK") DA_DK("da-DK"), @@ -12789,26 +13826,260 @@ public static class Konbini { *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply * with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using a + * publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private Konbini( + Object confirmationNumber, + Object expiresAfterDays, + Object expiresAt, + Map extraParams, + Object productDescription, + SetupFutureUsage setupFutureUsage) { + this.confirmationNumber = confirmationNumber; + this.expiresAfterDays = expiresAfterDays; + this.expiresAt = expiresAt; + this.extraParams = extraParams; + this.productDescription = productDescription; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object confirmationNumber; + + private Object expiresAfterDays; + + private Object expiresAt; + + private Map extraParams; + + private Object productDescription; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentUpdateParams.PaymentMethodOptions.Konbini build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.Konbini( + this.confirmationNumber, + this.expiresAfterDays, + this.expiresAt, + this.extraParams, + this.productDescription, + this.setupFutureUsage); + } + + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at + * applicable convenience stores. Must not consist of only zeroes and could be rejected in + * case of insufficient uniqueness. We recommend to use the customer's phone number. + */ + public Builder setConfirmationNumber(String confirmationNumber) { + this.confirmationNumber = confirmationNumber; + return this; + } + + /** + * An optional 10 to 11 digit numeric-only string determining the confirmation code at + * applicable convenience stores. Must not consist of only zeroes and could be rejected in + * case of insufficient uniqueness. We recommend to use the customer's phone number. + */ + public Builder setConfirmationNumber(EmptyParam confirmationNumber) { + this.confirmationNumber = confirmationNumber; + return this; + } + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions + * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code + * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday + * 23:59:59 JST. Defaults to 3 days. + */ + public Builder setExpiresAfterDays(Long expiresAfterDays) { + this.expiresAfterDays = expiresAfterDays; + return this; + } + + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions + * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code + * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday + * 23:59:59 JST. Defaults to 3 days. + */ + public Builder setExpiresAfterDays(EmptyParam expiresAfterDays) { + this.expiresAfterDays = expiresAfterDays; + return this; + } + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of {@code + * expires_after_days} or {@code expires_at} may be set. + */ + public Builder setExpiresAt(Long expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + /** + * The timestamp at which the Konbini payment instructions will expire. Only one of {@code + * expires_after_days} or {@code expires_at} may be set. + */ + public Builder setExpiresAt(EmptyParam expiresAt) { + this.expiresAt = expiresAt; + 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.Konbini#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.Konbini#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the + * convenience store. + */ + public Builder setProductDescription(String productDescription) { + this.productDescription = productDescription; + return this; + } + + /** + * A product descriptor of up to 22 characters, which will appear to customers at the + * convenience store. + */ + public Builder setProductDescription(EmptyParam productDescription) { + this.productDescription = productDescription; + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + * + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + public Builder setSetupFutureUsage( + PaymentIntentUpdateParams.PaymentMethodOptions.Konbini.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + + @Getter + public static class KrCard { + /** + * 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; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") - SetupFutureUsage setupFutureUsage; + ApiRequestParams.EnumParam setupFutureUsage; - private Konbini( - Object confirmationNumber, - Object expiresAfterDays, - Object expiresAt, + private KrCard( + ApiRequestParams.EnumParam captureMethod, Map extraParams, - Object productDescription, - SetupFutureUsage setupFutureUsage) { - this.confirmationNumber = confirmationNumber; - this.expiresAfterDays = expiresAfterDays; - this.expiresAt = expiresAt; + ApiRequestParams.EnumParam setupFutureUsage) { + this.captureMethod = captureMethod; this.extraParams = extraParams; - this.productDescription = productDescription; this.setupFutureUsage = setupFutureUsage; } @@ -12817,93 +14088,53 @@ public static Builder builder() { } public static class Builder { - private Object confirmationNumber; - - private Object expiresAfterDays; - - private Object expiresAt; + private ApiRequestParams.EnumParam captureMethod; private Map extraParams; - private Object productDescription; - - private SetupFutureUsage setupFutureUsage; + private ApiRequestParams.EnumParam setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentUpdateParams.PaymentMethodOptions.Konbini build() { - return new PaymentIntentUpdateParams.PaymentMethodOptions.Konbini( - this.confirmationNumber, - this.expiresAfterDays, - this.expiresAt, - this.extraParams, - this.productDescription, - this.setupFutureUsage); - } - - /** - * An optional 10 to 11 digit numeric-only string determining the confirmation code at - * applicable convenience stores. Must not consist of only zeroes and could be rejected in - * case of insufficient uniqueness. We recommend to use the customer's phone number. - */ - public Builder setConfirmationNumber(String confirmationNumber) { - this.confirmationNumber = confirmationNumber; - return this; - } - - /** - * An optional 10 to 11 digit numeric-only string determining the confirmation code at - * applicable convenience stores. Must not consist of only zeroes and could be rejected in - * case of insufficient uniqueness. We recommend to use the customer's phone number. - */ - public Builder setConfirmationNumber(EmptyParam confirmationNumber) { - this.confirmationNumber = confirmationNumber; - return this; - } - - /** - * The number of calendar days (between 1 and 60) after which Konbini payment instructions - * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code - * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday - * 23:59:59 JST. Defaults to 3 days. - */ - public Builder setExpiresAfterDays(Long expiresAfterDays) { - this.expiresAfterDays = expiresAfterDays; - return this; - } - - /** - * The number of calendar days (between 1 and 60) after which Konbini payment instructions - * will expire. For example, if a PaymentIntent is confirmed with Konbini and {@code - * expires_after_days} set to 2 on Monday JST, the instructions will expire on Wednesday - * 23:59:59 JST. Defaults to 3 days. - */ - public Builder setExpiresAfterDays(EmptyParam expiresAfterDays) { - this.expiresAfterDays = expiresAfterDays; - return this; + public PaymentIntentUpdateParams.PaymentMethodOptions.KrCard build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.KrCard( + this.captureMethod, this.extraParams, this.setupFutureUsage); } /** - * The timestamp at which the Konbini payment instructions will expire. Only one of {@code - * expires_after_days} or {@code expires_at} may be set. + * 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 setExpiresAt(Long expiresAt) { - this.expiresAt = expiresAt; + public Builder setCaptureMethod( + PaymentIntentUpdateParams.PaymentMethodOptions.KrCard.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; return this; } /** - * The timestamp at which the Konbini payment instructions will expire. Only one of {@code - * expires_after_days} or {@code expires_at} may be set. + * 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 setExpiresAt(EmptyParam expiresAt) { - this.expiresAt = expiresAt; + 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.Konbini#extraParams} for + * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.KrCard#extraParams} for * the field documentation. */ public Builder putExtraParam(String key, Object value) { @@ -12917,7 +14148,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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.Konbini#extraParams} for + * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.KrCard#extraParams} for * the field documentation. */ public Builder putAllExtraParam(Map map) { @@ -12929,20 +14160,29 @@ public Builder putAllExtraParam(Map map) { } /** - * A product descriptor of up to 22 characters, which will appear to customers at the - * convenience store. - */ - public Builder setProductDescription(String productDescription) { - this.productDescription = productDescription; - return this; - } - - /** - * A product descriptor of up to 22 characters, which will appear to customers at the - * convenience store. + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ - public Builder setProductDescription(EmptyParam productDescription) { - this.productDescription = productDescription; + public Builder setSetupFutureUsage( + PaymentIntentUpdateParams.PaymentMethodOptions.KrCard.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; return this; } @@ -12965,22 +14205,31 @@ public Builder setProductDescription(EmptyParam productDescription) { *

When processing card payments, Stripe uses {@code setup_future_usage} to help you * comply with regional legislation and network rules, such as SCA. - * - *

If you've already set {@code setup_future_usage} and you're performing a request using - * a publishable key, you can only update the value from {@code on_session} to {@code - * off_session}. */ - public Builder setSetupFutureUsage( - PaymentIntentUpdateParams.PaymentMethodOptions.Konbini.SetupFutureUsage - setupFutureUsage) { + public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; 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; + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") - NONE("none"); + NONE("none"), + + @SerializedName("off_session") + OFF_SESSION("off_session"); @Getter(onMethod_ = {@Override}) private final String value; @@ -13538,22 +14787,139 @@ public Builder putAllExtraParam(Map map) { * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ - public Builder setSetupFutureUsage( - PaymentIntentUpdateParams.PaymentMethodOptions.Multibanco.SetupFutureUsage - setupFutureUsage) { - this.setupFutureUsage = setupFutureUsage; + public Builder setSetupFutureUsage( + PaymentIntentUpdateParams.PaymentMethodOptions.Multibanco.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + + @Getter + public static class NaverPay { + /** + * 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 NaverPay(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.NaverPay build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.NaverPay( + 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.NaverPay.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.NaverPay#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.NaverPay#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 SetupFutureUsage implements ApiRequestParams.EnumParam { - @SerializedName("none") - NONE("none"); + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"); @Getter(onMethod_ = {@Override}) private final String value; - SetupFutureUsage(String value) { + CaptureMethod(String value) { this.value = value; } } @@ -13857,6 +15223,123 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.Payco( + 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.Payco.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.Payco#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.Payco#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 public static class Paynow { /** @@ -14851,6 +16334,124 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay( + 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.SamsungPay build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.SamsungPay( + 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.SamsungPay.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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index 8e2388620e1..90a0ffb3ad7 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -5687,6 +5687,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("au_becs_debit") AU_BECS_DEBIT("au_becs_debit"), diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index ac18c8ec871..478eaecd0bf 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -5136,6 +5136,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("au_becs_debit") AU_BECS_DEBIT("au_becs_debit"), diff --git a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java index 554d97e02bf..6f4ee1a3d7b 100644 --- a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java @@ -48,6 +48,13 @@ public class PaymentMethodConfigurationCreateParams extends ApiRequestParams { @SerializedName("alipay") Alipay alipay; + /** + * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, + * or 4 installments. + */ + @SerializedName("alma") + Alma alma; + /** * Amazon Pay is a wallet payment method that lets your customers check out the same way as on * Amazon. @@ -374,7 +381,7 @@ public class PaymentMethodConfigurationCreateParams extends ApiRequestParams { /** * Stripe users in the United States can accept ACH direct debit payments from customers with a US * bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check - * this page for more details. + * this page for more details. */ @SerializedName("us_bank_account") UsBankAccount usBankAccount; @@ -402,6 +409,7 @@ private PaymentMethodConfigurationCreateParams( Affirm affirm, AfterpayClearpay afterpayClearpay, Alipay alipay, + Alma alma, AmazonPay amazonPay, ApplePay applePay, ApplePayLater applePayLater, @@ -447,6 +455,7 @@ private PaymentMethodConfigurationCreateParams( this.affirm = affirm; this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; + this.alma = alma; this.amazonPay = amazonPay; this.applePay = applePay; this.applePayLater = applePayLater; @@ -503,6 +512,8 @@ public static class Builder { private Alipay alipay; + private Alma alma; + private AmazonPay amazonPay; private ApplePay applePay; @@ -592,6 +603,7 @@ public PaymentMethodConfigurationCreateParams build() { this.affirm, this.afterpayClearpay, this.alipay, + this.alma, this.amazonPay, this.applePay, this.applePayLater, @@ -681,6 +693,15 @@ public Builder setAlipay(PaymentMethodConfigurationCreateParams.Alipay alipay) { return this; } + /** + * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, + * or 4 installments. + */ + public Builder setAlma(PaymentMethodConfigurationCreateParams.Alma alma) { + this.alma = alma; + return this; + } + /** * Amazon Pay is a wallet payment method that lets your customers check out the same way as on * Amazon. @@ -1124,7 +1145,8 @@ public Builder setTwint(PaymentMethodConfigurationCreateParams.Twint twint) { /** * Stripe users in the United States can accept ACH direct debit payments from customers with a * US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. - * Check this page for more details. + * Check this page for more + * details. */ public Builder setUsBankAccount( PaymentMethodConfigurationCreateParams.UsBankAccount usBankAccount) { @@ -1811,6 +1833,169 @@ public enum Preference implements ApiRequestParams.EnumParam { } } + @Getter + public static class Alma { + /** Whether or not the payment method should be displayed. */ + @SerializedName("display_preference") + DisplayPreference 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; + + private Alma(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.Alma build() { + return new PaymentMethodConfigurationCreateParams.Alma( + this.displayPreference, this.extraParams); + } + + /** Whether or not the payment method should be displayed. */ + public Builder setDisplayPreference( + PaymentMethodConfigurationCreateParams.Alma.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.Alma#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.Alma#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 + 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.Alma.DisplayPreference build() { + return new PaymentMethodConfigurationCreateParams.Alma.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.Alma.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.Alma.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.Alma.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 public static class AmazonPay { /** Whether or not the payment method should be displayed. */ diff --git a/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java b/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java index 937586dd0bf..e023e3875fa 100644 --- a/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java @@ -53,6 +53,13 @@ public class PaymentMethodConfigurationUpdateParams extends ApiRequestParams { @SerializedName("alipay") Alipay alipay; + /** + * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, + * or 4 installments. + */ + @SerializedName("alma") + Alma alma; + /** * Amazon Pay is a wallet payment method that lets your customers check out the same way as on * Amazon. @@ -375,7 +382,7 @@ public class PaymentMethodConfigurationUpdateParams extends ApiRequestParams { /** * Stripe users in the United States can accept ACH direct debit payments from customers with a US * bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check - * this page for more details. + * this page for more details. */ @SerializedName("us_bank_account") UsBankAccount usBankAccount; @@ -404,6 +411,7 @@ private PaymentMethodConfigurationUpdateParams( Affirm affirm, AfterpayClearpay afterpayClearpay, Alipay alipay, + Alma alma, AmazonPay amazonPay, ApplePay applePay, ApplePayLater applePayLater, @@ -449,6 +457,7 @@ private PaymentMethodConfigurationUpdateParams( this.affirm = affirm; this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; + this.alma = alma; this.amazonPay = amazonPay; this.applePay = applePay; this.applePayLater = applePayLater; @@ -506,6 +515,8 @@ public static class Builder { private Alipay alipay; + private Alma alma; + private AmazonPay amazonPay; private ApplePay applePay; @@ -594,6 +605,7 @@ public PaymentMethodConfigurationUpdateParams build() { this.affirm, this.afterpayClearpay, this.alipay, + this.alma, this.amazonPay, this.applePay, this.applePayLater, @@ -688,6 +700,15 @@ public Builder setAlipay(PaymentMethodConfigurationUpdateParams.Alipay alipay) { return this; } + /** + * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, + * or 4 installments. + */ + public Builder setAlma(PaymentMethodConfigurationUpdateParams.Alma alma) { + this.alma = alma; + return this; + } + /** * Amazon Pay is a wallet payment method that lets your customers check out the same way as on * Amazon. @@ -1131,7 +1152,8 @@ public Builder setTwint(PaymentMethodConfigurationUpdateParams.Twint twint) { /** * Stripe users in the United States can accept ACH direct debit payments from customers with a * US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. - * Check this page for more details. + * Check this page for more + * details. */ public Builder setUsBankAccount( PaymentMethodConfigurationUpdateParams.UsBankAccount usBankAccount) { @@ -1818,6 +1840,169 @@ public enum Preference implements ApiRequestParams.EnumParam { } } + @Getter + public static class Alma { + /** Whether or not the payment method should be displayed. */ + @SerializedName("display_preference") + DisplayPreference 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; + + private Alma(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.Alma build() { + return new PaymentMethodConfigurationUpdateParams.Alma( + this.displayPreference, this.extraParams); + } + + /** Whether or not the payment method should be displayed. */ + public Builder setDisplayPreference( + PaymentMethodConfigurationUpdateParams.Alma.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.Alma#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.Alma#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 + 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.Alma.DisplayPreference build() { + return new PaymentMethodConfigurationUpdateParams.Alma.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.Alma.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.Alma.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.Alma.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 public static class AmazonPay { /** Whether or not the payment method should be displayed. */ diff --git a/src/main/java/com/stripe/param/PaymentMethodCreateParams.java b/src/main/java/com/stripe/param/PaymentMethodCreateParams.java index 37b845afe9a..38e4a4a4eb9 100644 --- a/src/main/java/com/stripe/param/PaymentMethodCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodCreateParams.java @@ -49,6 +49,10 @@ public class PaymentMethodCreateParams extends ApiRequestParams { @SerializedName("allow_redisplay") AllowRedisplay allowRedisplay; + /** If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. */ + @SerializedName("alma") + Alma alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment * method. @@ -182,6 +186,13 @@ public class PaymentMethodCreateParams extends ApiRequestParams { @SerializedName("interac_present") InteracPresent interacPresent; + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao Pay + * payment method. + */ + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna payment * method. @@ -196,6 +207,13 @@ public class PaymentMethodCreateParams extends ApiRequestParams { @SerializedName("konbini") Konbini konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean Card + * payment method. + */ + @SerializedName("kr_card") + KrCard krCard; + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -226,6 +244,13 @@ public class PaymentMethodCreateParams extends ApiRequestParams { @SerializedName("multibanco") Multibanco multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -240,6 +265,13 @@ public class PaymentMethodCreateParams extends ApiRequestParams { @SerializedName("p24") P24 p24; + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment + * method. + */ + @SerializedName("payco") + Payco payco; + /** The PaymentMethod to share. */ @SerializedName("payment_method") String paymentMethod; @@ -286,6 +318,13 @@ public class PaymentMethodCreateParams extends ApiRequestParams { @SerializedName("revolut_pay") RevolutPay revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the SamsungPay + * payment method. + */ + @SerializedName("samsung_pay") + SamsungPay samsungPay; + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA debit * bank account. @@ -347,6 +386,7 @@ private PaymentMethodCreateParams( AfterpayClearpay afterpayClearpay, Alipay alipay, AllowRedisplay allowRedisplay, + Alma alma, AmazonPay amazonPay, AuBecsDebit auBecsDebit, BacsDebit bacsDebit, @@ -366,14 +406,18 @@ private PaymentMethodCreateParams( Grabpay grabpay, Ideal ideal, InteracPresent interacPresent, + KakaoPay kakaoPay, Klarna klarna, Konbini konbini, + KrCard krCard, Link link, Map metadata, Mobilepay mobilepay, Multibanco multibanco, + NaverPay naverPay, Oxxo oxxo, P24 p24, + Payco payco, String paymentMethod, Paynow paynow, Paypal paypal, @@ -381,6 +425,7 @@ private PaymentMethodCreateParams( Promptpay promptpay, RadarOptions radarOptions, RevolutPay revolutPay, + SamsungPay samsungPay, SepaDebit sepaDebit, Sofort sofort, Swish swish, @@ -394,6 +439,7 @@ private PaymentMethodCreateParams( this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; this.allowRedisplay = allowRedisplay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -413,14 +459,18 @@ private PaymentMethodCreateParams( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paymentMethod = paymentMethod; this.paynow = paynow; this.paypal = paypal; @@ -428,6 +478,7 @@ private PaymentMethodCreateParams( this.promptpay = promptpay; this.radarOptions = radarOptions; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -453,6 +504,8 @@ public static class Builder { private AllowRedisplay allowRedisplay; + private Alma alma; + private AmazonPay amazonPay; private AuBecsDebit auBecsDebit; @@ -491,10 +544,14 @@ public static class Builder { private InteracPresent interacPresent; + private KakaoPay kakaoPay; + private Klarna klarna; private Konbini konbini; + private KrCard krCard; + private Link link; private Map metadata; @@ -503,10 +560,14 @@ public static class Builder { private Multibanco multibanco; + private NaverPay naverPay; + private Oxxo oxxo; private P24 p24; + private Payco payco; + private String paymentMethod; private Paynow paynow; @@ -521,6 +582,8 @@ public static class Builder { private RevolutPay revolutPay; + private SamsungPay samsungPay; + private SepaDebit sepaDebit; private Sofort sofort; @@ -545,6 +608,7 @@ public PaymentMethodCreateParams build() { this.afterpayClearpay, this.alipay, this.allowRedisplay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -564,14 +628,18 @@ public PaymentMethodCreateParams build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.metadata, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paymentMethod, this.paynow, this.paypal, @@ -579,6 +647,7 @@ public PaymentMethodCreateParams build() { this.promptpay, this.radarOptions, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -637,6 +706,14 @@ public Builder setAllowRedisplay(PaymentMethodCreateParams.AllowRedisplay allowR return this; } + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + public Builder setAlma(PaymentMethodCreateParams.Alma alma) { + this.alma = alma; + return this; + } + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment * method. @@ -856,6 +933,15 @@ public Builder setInteracPresent(PaymentMethodCreateParams.InteracPresent intera return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao Pay + * payment method. + */ + public Builder setKakaoPay(PaymentMethodCreateParams.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -874,6 +960,15 @@ public Builder setKonbini(PaymentMethodCreateParams.Konbini konbini) { return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean Card + * payment method. + */ + public Builder setKrCard(PaymentMethodCreateParams.KrCard krCard) { + this.krCard = krCard; + return this; + } + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -927,6 +1022,15 @@ public Builder setMultibanco(PaymentMethodCreateParams.Multibanco multibanco) { return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + public Builder setNaverPay(PaymentMethodCreateParams.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -945,6 +1049,15 @@ public Builder setP24(PaymentMethodCreateParams.P24 p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment + * method. + */ + public Builder setPayco(PaymentMethodCreateParams.Payco payco) { + this.payco = payco; + return this; + } + /** The PaymentMethod to share. */ public Builder setPaymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; @@ -1005,6 +1118,15 @@ public Builder setRevolutPay(PaymentMethodCreateParams.RevolutPay revolutPay) { return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + public Builder setSamsungPay(PaymentMethodCreateParams.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -1343,6 +1465,61 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new PaymentMethodCreateParams.Alma(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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -2817,7 +2994,10 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Ideal { - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ @SerializedName("bank") Bank bank; @@ -2849,7 +3029,10 @@ public PaymentMethodCreateParams.Ideal build() { return new PaymentMethodCreateParams.Ideal(this.bank, this.extraParams); } - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ public Builder setBank(PaymentMethodCreateParams.Ideal.Bank bank) { this.bank = bank; return this; @@ -2996,6 +3179,61 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KakaoPay { + /** + * 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 KakaoPay(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.KakaoPay build() { + return new PaymentMethodCreateParams.KakaoPay(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.KakaoPay#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.KakaoPay#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 public static class Klarna { /** Customer's date of birth. */ @@ -3216,6 +3454,61 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KrCard { + /** + * 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 KrCard(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.KrCard build() { + return new PaymentMethodCreateParams.KrCard(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.KrCard#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.KrCard#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 public static class Link { /** @@ -3381,6 +3674,95 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class NaverPay { + /** + * 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; + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + @SerializedName("funding") + Funding funding; + + private NaverPay(Map extraParams, Funding funding) { + this.extraParams = extraParams; + this.funding = funding; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Funding funding; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentMethodCreateParams.NaverPay build() { + return new PaymentMethodCreateParams.NaverPay(this.extraParams, this.funding); + } + + /** + * 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.NaverPay#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.NaverPay#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + public Builder setFunding(PaymentMethodCreateParams.NaverPay.Funding funding) { + this.funding = funding; + return this; + } + } + + public enum Funding implements ApiRequestParams.EnumParam { + @SerializedName("card") + CARD("card"), + + @SerializedName("points") + POINTS("points"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Funding(String value) { + this.value = value; + } + } + } + @Getter public static class Oxxo { /** @@ -3591,6 +3973,61 @@ public enum Bank implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new PaymentMethodCreateParams.Payco(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.Payco#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.Payco#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 public static class Paynow { /** @@ -3942,6 +4379,61 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay(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.SamsungPay build() { + return new PaymentMethodCreateParams.SamsungPay(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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** @@ -4603,6 +5095,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -4645,12 +5140,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -4660,12 +5161,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -4681,6 +5188,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), diff --git a/src/main/java/com/stripe/param/PaymentMethodListParams.java b/src/main/java/com/stripe/param/PaymentMethodListParams.java index 08bc2398edf..a9d9225e035 100644 --- a/src/main/java/com/stripe/param/PaymentMethodListParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodListParams.java @@ -223,6 +223,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -265,12 +268,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -280,12 +289,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -301,6 +316,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), diff --git a/src/main/java/com/stripe/param/PaymentMethodUpdateParams.java b/src/main/java/com/stripe/param/PaymentMethodUpdateParams.java index 0682940f96f..1045f38ae99 100644 --- a/src/main/java/com/stripe/param/PaymentMethodUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodUpdateParams.java @@ -61,6 +61,13 @@ public class PaymentMethodUpdateParams extends ApiRequestParams { @SerializedName("metadata") Object metadata; + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** * If this is an {@code us_bank_account} PaymentMethod, this hash contains details about the US * bank account payment method. @@ -76,6 +83,7 @@ private PaymentMethodUpdateParams( Map extraParams, Link link, Object metadata, + NaverPay naverPay, UsBankAccount usBankAccount) { this.allowRedisplay = allowRedisplay; this.billingDetails = billingDetails; @@ -84,6 +92,7 @@ private PaymentMethodUpdateParams( this.extraParams = extraParams; this.link = link; this.metadata = metadata; + this.naverPay = naverPay; this.usBankAccount = usBankAccount; } @@ -106,6 +115,8 @@ public static class Builder { private Object metadata; + private NaverPay naverPay; + private UsBankAccount usBankAccount; /** Finalize and obtain parameter instance from this builder. */ @@ -118,6 +129,7 @@ public PaymentMethodUpdateParams build() { this.extraParams, this.link, this.metadata, + this.naverPay, this.usBankAccount); } @@ -258,6 +270,15 @@ public Builder setMetadata(Map metadata) { return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + public Builder setNaverPay(PaymentMethodUpdateParams.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is an {@code us_bank_account} PaymentMethod, this hash contains details about the US * bank account payment method. @@ -852,6 +873,95 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class NaverPay { + /** + * 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; + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + @SerializedName("funding") + Funding funding; + + private NaverPay(Map extraParams, Funding funding) { + this.extraParams = extraParams; + this.funding = funding; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Funding funding; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentMethodUpdateParams.NaverPay build() { + return new PaymentMethodUpdateParams.NaverPay(this.extraParams, this.funding); + } + + /** + * 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 + * PaymentMethodUpdateParams.NaverPay#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 PaymentMethodUpdateParams.NaverPay#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + public Builder setFunding(PaymentMethodUpdateParams.NaverPay.Funding funding) { + this.funding = funding; + return this; + } + } + + public enum Funding implements ApiRequestParams.EnumParam { + @SerializedName("card") + CARD("card"), + + @SerializedName("points") + POINTS("points"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Funding(String value) { + this.value = value; + } + } + } + @Getter public static class UsBankAccount { /** Bank account holder type. */ diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index 8409d020e4f..96aff01fc18 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -658,6 +658,12 @@ public static class PaymentMethodData { @SerializedName("allow_redisplay") AllowRedisplay allowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + @SerializedName("alma") + Alma alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment * method. @@ -772,6 +778,13 @@ public static class PaymentMethodData { @SerializedName("interac_present") InteracPresent interacPresent; + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao Pay + * payment method. + */ + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -786,6 +799,13 @@ public static class PaymentMethodData { @SerializedName("konbini") Konbini konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean Card + * payment method. + */ + @SerializedName("kr_card") + KrCard krCard; + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -816,6 +836,13 @@ public static class PaymentMethodData { @SerializedName("multibanco") Multibanco multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -830,6 +857,13 @@ public static class PaymentMethodData { @SerializedName("p24") P24 p24; + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment + * method. + */ + @SerializedName("payco") + Payco payco; + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -872,6 +906,13 @@ public static class PaymentMethodData { @SerializedName("revolut_pay") RevolutPay revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + @SerializedName("samsung_pay") + SamsungPay samsungPay; + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -934,6 +975,7 @@ private PaymentMethodData( AfterpayClearpay afterpayClearpay, Alipay alipay, AllowRedisplay allowRedisplay, + Alma alma, AmazonPay amazonPay, AuBecsDebit auBecsDebit, BacsDebit bacsDebit, @@ -950,20 +992,25 @@ private PaymentMethodData( Grabpay grabpay, Ideal ideal, InteracPresent interacPresent, + KakaoPay kakaoPay, Klarna klarna, Konbini konbini, + KrCard krCard, Link link, Map metadata, Mobilepay mobilepay, Multibanco multibanco, + NaverPay naverPay, Oxxo oxxo, P24 p24, + Payco payco, Paynow paynow, Paypal paypal, Pix pix, Promptpay promptpay, RadarOptions radarOptions, RevolutPay revolutPay, + SamsungPay samsungPay, SepaDebit sepaDebit, Sofort sofort, Swish swish, @@ -977,6 +1024,7 @@ private PaymentMethodData( this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; this.allowRedisplay = allowRedisplay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -993,20 +1041,25 @@ private PaymentMethodData( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -1032,6 +1085,8 @@ public static class Builder { private AllowRedisplay allowRedisplay; + private Alma alma; + private AmazonPay amazonPay; private AuBecsDebit auBecsDebit; @@ -1064,10 +1119,14 @@ public static class Builder { private InteracPresent interacPresent; + private KakaoPay kakaoPay; + private Klarna klarna; private Konbini konbini; + private KrCard krCard; + private Link link; private Map metadata; @@ -1076,10 +1135,14 @@ public static class Builder { private Multibanco multibanco; + private NaverPay naverPay; + private Oxxo oxxo; private P24 p24; + private Payco payco; + private Paynow paynow; private Paypal paypal; @@ -1092,6 +1155,8 @@ public static class Builder { private RevolutPay revolutPay; + private SamsungPay samsungPay; + private SepaDebit sepaDebit; private Sofort sofort; @@ -1116,6 +1181,7 @@ public SetupIntentConfirmParams.PaymentMethodData build() { this.afterpayClearpay, this.alipay, this.allowRedisplay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -1132,20 +1198,25 @@ public SetupIntentConfirmParams.PaymentMethodData build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.metadata, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.radarOptions, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -1205,6 +1276,14 @@ public Builder setAllowRedisplay( return this; } + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + public Builder setAlma(SetupIntentConfirmParams.PaymentMethodData.Alma alma) { + this.alma = alma; + return this; + } + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay * payment method. @@ -1372,6 +1451,15 @@ public Builder setInteracPresent( return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao + * Pay payment method. + */ + public Builder setKakaoPay(SetupIntentConfirmParams.PaymentMethodData.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -1390,6 +1478,15 @@ public Builder setKonbini(SetupIntentConfirmParams.PaymentMethodData.Konbini kon return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean + * Card payment method. + */ + public Builder setKrCard(SetupIntentConfirmParams.PaymentMethodData.KrCard krCard) { + this.krCard = krCard; + return this; + } + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -1445,6 +1542,15 @@ public Builder setMultibanco( return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver + * Pay payment method. + */ + public Builder setNaverPay(SetupIntentConfirmParams.PaymentMethodData.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -1463,6 +1569,15 @@ public Builder setP24(SetupIntentConfirmParams.PaymentMethodData.P24 p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO + * payment method. + */ + public Builder setPayco(SetupIntentConfirmParams.PaymentMethodData.Payco payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1519,6 +1634,16 @@ public Builder setRevolutPay( return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + public Builder setSamsungPay( + SetupIntentConfirmParams.PaymentMethodData.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -1866,6 +1991,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new SetupIntentConfirmParams.PaymentMethodData.Alma(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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -3148,7 +3330,10 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Ideal { - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ @SerializedName("bank") Bank bank; @@ -3180,7 +3365,10 @@ public SetupIntentConfirmParams.PaymentMethodData.Ideal build() { return new SetupIntentConfirmParams.PaymentMethodData.Ideal(this.bank, this.extraParams); } - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ public Builder setBank(SetupIntentConfirmParams.PaymentMethodData.Ideal.Bank bank) { this.bank = bank; return this; @@ -3330,6 +3518,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KakaoPay { + /** + * 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 KakaoPay(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.KakaoPay build() { + return new SetupIntentConfirmParams.PaymentMethodData.KakaoPay(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.KakaoPay#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.KakaoPay#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 public static class Klarna { /** Customer's date of birth. */ @@ -3555,6 +3800,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KrCard { + /** + * 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 KrCard(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.KrCard build() { + return new SetupIntentConfirmParams.PaymentMethodData.KrCard(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.KrCard#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.KrCard#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 public static class Link { /** @@ -3726,6 +4028,99 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class NaverPay { + /** + * 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; + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + @SerializedName("funding") + Funding funding; + + private NaverPay(Map extraParams, Funding funding) { + this.extraParams = extraParams; + this.funding = funding; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Funding funding; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentConfirmParams.PaymentMethodData.NaverPay build() { + return new SetupIntentConfirmParams.PaymentMethodData.NaverPay( + this.extraParams, this.funding); + } + + /** + * 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.NaverPay#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.NaverPay#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + public Builder setFunding( + SetupIntentConfirmParams.PaymentMethodData.NaverPay.Funding funding) { + this.funding = funding; + return this; + } + } + + public enum Funding implements ApiRequestParams.EnumParam { + @SerializedName("card") + CARD("card"), + + @SerializedName("points") + POINTS("points"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Funding(String value) { + this.value = value; + } + } + } + @Getter public static class Oxxo { /** @@ -3940,6 +4335,63 @@ public enum Bank implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new SetupIntentConfirmParams.PaymentMethodData.Payco(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.Payco#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.Payco#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 public static class Paynow { /** @@ -4304,6 +4756,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay(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.SamsungPay build() { + return new SetupIntentConfirmParams.PaymentMethodData.SamsungPay(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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** @@ -4906,6 +5415,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -4945,12 +5457,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -4960,12 +5478,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -4981,6 +5505,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 5f5f8e7ee39..1233e5f8e3d 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -1116,6 +1116,12 @@ public static class PaymentMethodData { @SerializedName("allow_redisplay") AllowRedisplay allowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + @SerializedName("alma") + Alma alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment * method. @@ -1230,6 +1236,13 @@ public static class PaymentMethodData { @SerializedName("interac_present") InteracPresent interacPresent; + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao Pay + * payment method. + */ + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -1244,6 +1257,13 @@ public static class PaymentMethodData { @SerializedName("konbini") Konbini konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean Card + * payment method. + */ + @SerializedName("kr_card") + KrCard krCard; + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -1274,6 +1294,13 @@ public static class PaymentMethodData { @SerializedName("multibanco") Multibanco multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -1288,6 +1315,13 @@ public static class PaymentMethodData { @SerializedName("p24") P24 p24; + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment + * method. + */ + @SerializedName("payco") + Payco payco; + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1330,6 +1364,13 @@ public static class PaymentMethodData { @SerializedName("revolut_pay") RevolutPay revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + @SerializedName("samsung_pay") + SamsungPay samsungPay; + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -1392,6 +1433,7 @@ private PaymentMethodData( AfterpayClearpay afterpayClearpay, Alipay alipay, AllowRedisplay allowRedisplay, + Alma alma, AmazonPay amazonPay, AuBecsDebit auBecsDebit, BacsDebit bacsDebit, @@ -1408,20 +1450,25 @@ private PaymentMethodData( Grabpay grabpay, Ideal ideal, InteracPresent interacPresent, + KakaoPay kakaoPay, Klarna klarna, Konbini konbini, + KrCard krCard, Link link, Map metadata, Mobilepay mobilepay, Multibanco multibanco, + NaverPay naverPay, Oxxo oxxo, P24 p24, + Payco payco, Paynow paynow, Paypal paypal, Pix pix, Promptpay promptpay, RadarOptions radarOptions, RevolutPay revolutPay, + SamsungPay samsungPay, SepaDebit sepaDebit, Sofort sofort, Swish swish, @@ -1435,6 +1482,7 @@ private PaymentMethodData( this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; this.allowRedisplay = allowRedisplay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -1451,20 +1499,25 @@ private PaymentMethodData( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -1490,6 +1543,8 @@ public static class Builder { private AllowRedisplay allowRedisplay; + private Alma alma; + private AmazonPay amazonPay; private AuBecsDebit auBecsDebit; @@ -1522,10 +1577,14 @@ public static class Builder { private InteracPresent interacPresent; + private KakaoPay kakaoPay; + private Klarna klarna; private Konbini konbini; + private KrCard krCard; + private Link link; private Map metadata; @@ -1534,10 +1593,14 @@ public static class Builder { private Multibanco multibanco; + private NaverPay naverPay; + private Oxxo oxxo; private P24 p24; + private Payco payco; + private Paynow paynow; private Paypal paypal; @@ -1550,6 +1613,8 @@ public static class Builder { private RevolutPay revolutPay; + private SamsungPay samsungPay; + private SepaDebit sepaDebit; private Sofort sofort; @@ -1574,6 +1639,7 @@ public SetupIntentCreateParams.PaymentMethodData build() { this.afterpayClearpay, this.alipay, this.allowRedisplay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -1590,20 +1656,25 @@ public SetupIntentCreateParams.PaymentMethodData build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.metadata, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.radarOptions, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -1663,6 +1734,14 @@ public Builder setAllowRedisplay( return this; } + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + public Builder setAlma(SetupIntentCreateParams.PaymentMethodData.Alma alma) { + this.alma = alma; + return this; + } + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay * payment method. @@ -1830,6 +1909,15 @@ public Builder setInteracPresent( return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao + * Pay payment method. + */ + public Builder setKakaoPay(SetupIntentCreateParams.PaymentMethodData.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -1848,6 +1936,15 @@ public Builder setKonbini(SetupIntentCreateParams.PaymentMethodData.Konbini konb return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean + * Card payment method. + */ + public Builder setKrCard(SetupIntentCreateParams.PaymentMethodData.KrCard krCard) { + this.krCard = krCard; + return this; + } + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -1902,6 +1999,15 @@ public Builder setMultibanco( return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver + * Pay payment method. + */ + public Builder setNaverPay(SetupIntentCreateParams.PaymentMethodData.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -1920,6 +2026,15 @@ public Builder setP24(SetupIntentCreateParams.PaymentMethodData.P24 p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO + * payment method. + */ + public Builder setPayco(SetupIntentCreateParams.PaymentMethodData.Payco payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1976,6 +2091,16 @@ public Builder setRevolutPay( return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + public Builder setSamsungPay( + SetupIntentCreateParams.PaymentMethodData.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -2323,6 +2448,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new SetupIntentCreateParams.PaymentMethodData.Alma(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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -3604,7 +3786,10 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Ideal { - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ @SerializedName("bank") Bank bank; @@ -3636,7 +3821,10 @@ public SetupIntentCreateParams.PaymentMethodData.Ideal build() { return new SetupIntentCreateParams.PaymentMethodData.Ideal(this.bank, this.extraParams); } - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ public Builder setBank(SetupIntentCreateParams.PaymentMethodData.Ideal.Bank bank) { this.bank = bank; return this; @@ -3786,6 +3974,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KakaoPay { + /** + * 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 KakaoPay(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.KakaoPay build() { + return new SetupIntentCreateParams.PaymentMethodData.KakaoPay(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.KakaoPay#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.KakaoPay#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 public static class Klarna { /** Customer's date of birth. */ @@ -4011,6 +4256,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KrCard { + /** + * 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 KrCard(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.KrCard build() { + return new SetupIntentCreateParams.PaymentMethodData.KrCard(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.KrCard#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.KrCard#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 public static class Link { /** @@ -4182,6 +4484,99 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class NaverPay { + /** + * 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; + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + @SerializedName("funding") + Funding funding; + + private NaverPay(Map extraParams, Funding funding) { + this.extraParams = extraParams; + this.funding = funding; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Funding funding; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentCreateParams.PaymentMethodData.NaverPay build() { + return new SetupIntentCreateParams.PaymentMethodData.NaverPay( + this.extraParams, this.funding); + } + + /** + * 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.NaverPay#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.NaverPay#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + public Builder setFunding( + SetupIntentCreateParams.PaymentMethodData.NaverPay.Funding funding) { + this.funding = funding; + return this; + } + } + + public enum Funding implements ApiRequestParams.EnumParam { + @SerializedName("card") + CARD("card"), + + @SerializedName("points") + POINTS("points"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Funding(String value) { + this.value = value; + } + } + } + @Getter public static class Oxxo { /** @@ -4396,6 +4791,63 @@ public enum Bank implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new SetupIntentCreateParams.PaymentMethodData.Payco(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.Payco#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.Payco#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 public static class Paynow { /** @@ -4760,6 +5212,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay(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.SamsungPay build() { + return new SetupIntentCreateParams.PaymentMethodData.SamsungPay(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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** @@ -5362,6 +5871,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -5401,12 +5913,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -5416,12 +5934,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -5437,6 +5961,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index b3804a2fc2b..6210a333a91 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -463,6 +463,12 @@ public static class PaymentMethodData { @SerializedName("allow_redisplay") AllowRedisplay allowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + @SerializedName("alma") + Alma alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment * method. @@ -577,6 +583,13 @@ public static class PaymentMethodData { @SerializedName("interac_present") InteracPresent interacPresent; + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao Pay + * payment method. + */ + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -591,6 +604,13 @@ public static class PaymentMethodData { @SerializedName("konbini") Konbini konbini; + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean Card + * payment method. + */ + @SerializedName("kr_card") + KrCard krCard; + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -621,6 +641,13 @@ public static class PaymentMethodData { @SerializedName("multibanco") Multibanco multibanco; + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver Pay + * payment method. + */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -635,6 +662,13 @@ public static class PaymentMethodData { @SerializedName("p24") P24 p24; + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO payment + * method. + */ + @SerializedName("payco") + Payco payco; + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -677,6 +711,13 @@ public static class PaymentMethodData { @SerializedName("revolut_pay") RevolutPay revolutPay; + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + @SerializedName("samsung_pay") + SamsungPay samsungPay; + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -739,6 +780,7 @@ private PaymentMethodData( AfterpayClearpay afterpayClearpay, Alipay alipay, AllowRedisplay allowRedisplay, + Alma alma, AmazonPay amazonPay, AuBecsDebit auBecsDebit, BacsDebit bacsDebit, @@ -755,20 +797,25 @@ private PaymentMethodData( Grabpay grabpay, Ideal ideal, InteracPresent interacPresent, + KakaoPay kakaoPay, Klarna klarna, Konbini konbini, + KrCard krCard, Link link, Map metadata, Mobilepay mobilepay, Multibanco multibanco, + NaverPay naverPay, Oxxo oxxo, P24 p24, + Payco payco, Paynow paynow, Paypal paypal, Pix pix, Promptpay promptpay, RadarOptions radarOptions, RevolutPay revolutPay, + SamsungPay samsungPay, SepaDebit sepaDebit, Sofort sofort, Swish swish, @@ -782,6 +829,7 @@ private PaymentMethodData( this.afterpayClearpay = afterpayClearpay; this.alipay = alipay; this.allowRedisplay = allowRedisplay; + this.alma = alma; this.amazonPay = amazonPay; this.auBecsDebit = auBecsDebit; this.bacsDebit = bacsDebit; @@ -798,20 +846,25 @@ private PaymentMethodData( this.grabpay = grabpay; this.ideal = ideal; this.interacPresent = interacPresent; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.promptpay = promptpay; this.radarOptions = radarOptions; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -837,6 +890,8 @@ public static class Builder { private AllowRedisplay allowRedisplay; + private Alma alma; + private AmazonPay amazonPay; private AuBecsDebit auBecsDebit; @@ -869,10 +924,14 @@ public static class Builder { private InteracPresent interacPresent; + private KakaoPay kakaoPay; + private Klarna klarna; private Konbini konbini; + private KrCard krCard; + private Link link; private Map metadata; @@ -881,10 +940,14 @@ public static class Builder { private Multibanco multibanco; + private NaverPay naverPay; + private Oxxo oxxo; private P24 p24; + private Payco payco; + private Paynow paynow; private Paypal paypal; @@ -897,6 +960,8 @@ public static class Builder { private RevolutPay revolutPay; + private SamsungPay samsungPay; + private SepaDebit sepaDebit; private Sofort sofort; @@ -921,6 +986,7 @@ public SetupIntentUpdateParams.PaymentMethodData build() { this.afterpayClearpay, this.alipay, this.allowRedisplay, + this.alma, this.amazonPay, this.auBecsDebit, this.bacsDebit, @@ -937,20 +1003,25 @@ public SetupIntentUpdateParams.PaymentMethodData build() { this.grabpay, this.ideal, this.interacPresent, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.metadata, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.promptpay, this.radarOptions, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -1010,6 +1081,14 @@ public Builder setAllowRedisplay( return this; } + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + public Builder setAlma(SetupIntentUpdateParams.PaymentMethodData.Alma alma) { + this.alma = alma; + return this; + } + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay * payment method. @@ -1177,6 +1256,15 @@ public Builder setInteracPresent( return this; } + /** + * If this is a {@code kakao_pay} PaymentMethod, this hash contains details about the Kakao + * Pay payment method. + */ + public Builder setKakaoPay(SetupIntentUpdateParams.PaymentMethodData.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** * If this is a {@code klarna} PaymentMethod, this hash contains details about the Klarna * payment method. @@ -1195,6 +1283,15 @@ public Builder setKonbini(SetupIntentUpdateParams.PaymentMethodData.Konbini konb return this; } + /** + * If this is a {@code kr_card} PaymentMethod, this hash contains details about the Korean + * Card payment method. + */ + public Builder setKrCard(SetupIntentUpdateParams.PaymentMethodData.KrCard krCard) { + this.krCard = krCard; + return this; + } + /** * If this is an {@code Link} PaymentMethod, this hash contains details about the Link payment * method. @@ -1249,6 +1346,15 @@ public Builder setMultibanco( return this; } + /** + * If this is a {@code naver_pay} PaymentMethod, this hash contains details about the Naver + * Pay payment method. + */ + public Builder setNaverPay(SetupIntentUpdateParams.PaymentMethodData.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** * If this is an {@code oxxo} PaymentMethod, this hash contains details about the OXXO payment * method. @@ -1267,6 +1373,15 @@ public Builder setP24(SetupIntentUpdateParams.PaymentMethodData.P24 p24) { return this; } + /** + * If this is a {@code payco} PaymentMethod, this hash contains details about the PAYCO + * payment method. + */ + public Builder setPayco(SetupIntentUpdateParams.PaymentMethodData.Payco payco) { + this.payco = payco; + return this; + } + /** * If this is a {@code paynow} PaymentMethod, this hash contains details about the PayNow * payment method. @@ -1323,6 +1438,16 @@ public Builder setRevolutPay( return this; } + /** + * If this is a {@code samsung_pay} PaymentMethod, this hash contains details about the + * SamsungPay payment method. + */ + public Builder setSamsungPay( + SetupIntentUpdateParams.PaymentMethodData.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** * If this is a {@code sepa_debit} PaymentMethod, this hash contains details about the SEPA * debit bank account. @@ -1688,6 +1813,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class Alma { + /** + * 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 Alma(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.Alma build() { + return new SetupIntentUpdateParams.PaymentMethodData.Alma(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.Alma#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.Alma#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 public static class AmazonPay { /** @@ -3041,7 +3223,10 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Ideal { - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ @SerializedName("bank") Bank bank; @@ -3073,7 +3258,10 @@ public SetupIntentUpdateParams.PaymentMethodData.Ideal build() { return new SetupIntentUpdateParams.PaymentMethodData.Ideal(this.bank, this.extraParams); } - /** The customer's bank. */ + /** + * The customer's bank. Only use this parameter for existing customers. Don't use it for new + * customers. + */ public Builder setBank(SetupIntentUpdateParams.PaymentMethodData.Ideal.Bank bank) { this.bank = bank; return this; @@ -3223,6 +3411,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KakaoPay { + /** + * 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 KakaoPay(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.KakaoPay build() { + return new SetupIntentUpdateParams.PaymentMethodData.KakaoPay(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.KakaoPay#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.KakaoPay#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 public static class Klarna { /** Customer's date of birth. */ @@ -3448,6 +3693,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class KrCard { + /** + * 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 KrCard(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.KrCard build() { + return new SetupIntentUpdateParams.PaymentMethodData.KrCard(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.KrCard#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.KrCard#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 public static class Link { /** @@ -3619,6 +3921,99 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class NaverPay { + /** + * 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; + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + @SerializedName("funding") + Funding funding; + + private NaverPay(Map extraParams, Funding funding) { + this.extraParams = extraParams; + this.funding = funding; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Funding funding; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentUpdateParams.PaymentMethodData.NaverPay build() { + return new SetupIntentUpdateParams.PaymentMethodData.NaverPay( + this.extraParams, this.funding); + } + + /** + * 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.NaverPay#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.NaverPay#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this + * defaults to {@code card}. + */ + public Builder setFunding( + SetupIntentUpdateParams.PaymentMethodData.NaverPay.Funding funding) { + this.funding = funding; + return this; + } + } + + public enum Funding implements ApiRequestParams.EnumParam { + @SerializedName("card") + CARD("card"), + + @SerializedName("points") + POINTS("points"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Funding(String value) { + this.value = value; + } + } + } + @Getter public static class Oxxo { /** @@ -3833,6 +4228,63 @@ public enum Bank implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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.Payco build() { + return new SetupIntentUpdateParams.PaymentMethodData.Payco(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.Payco#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.Payco#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 public static class Paynow { /** @@ -4207,6 +4659,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay(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.SamsungPay build() { + return new SetupIntentUpdateParams.PaymentMethodData.SamsungPay(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.SamsungPay#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.SamsungPay#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 public static class SepaDebit { /** @@ -4833,6 +5342,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -4872,12 +5384,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -4887,12 +5405,18 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -4908,6 +5432,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), diff --git a/src/main/java/com/stripe/param/SubscriptionCancelParams.java b/src/main/java/com/stripe/param/SubscriptionCancelParams.java index f2140d75d9c..5a79b41fd05 100644 --- a/src/main/java/com/stripe/param/SubscriptionCancelParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCancelParams.java @@ -31,7 +31,7 @@ public class SubscriptionCancelParams extends ApiRequestParams { /** * Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending - * proration invoice items. Defaults to {@code true}. + * proration invoice items. Defaults to {@code false}. */ @SerializedName("invoice_now") Boolean invoiceNow; @@ -138,7 +138,7 @@ public Builder putAllExtraParam(Map map) { /** * Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending - * proration invoice items. Defaults to {@code true}. + * proration invoice items. Defaults to {@code false}. */ public Builder setInvoiceNow(Boolean invoiceNow) { this.invoiceNow = invoiceNow; diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index 98f3209f6db..dbe9e2dc954 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -5237,18 +5237,33 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("jp_credit_transfer") + JP_CREDIT_TRANSFER("jp_credit_transfer"), + + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), diff --git a/src/main/java/com/stripe/param/SubscriptionResumeParams.java b/src/main/java/com/stripe/param/SubscriptionResumeParams.java index 818a0071eec..ec81a14ea60 100644 --- a/src/main/java/com/stripe/param/SubscriptionResumeParams.java +++ b/src/main/java/com/stripe/param/SubscriptionResumeParams.java @@ -12,10 +12,8 @@ @Getter public class SubscriptionResumeParams extends ApiRequestParams { /** - * Either {@code now} or {@code unchanged}. Setting the value to {@code now} resets the - * subscription's billing cycle anchor to the current time (in UTC). Setting the value to {@code - * unchanged} advances the subscription's billing cycle anchor to the period that surrounds the - * current time. For more information, see the billing cycle documentation. */ @SerializedName("billing_cycle_anchor") @@ -91,10 +89,8 @@ public SubscriptionResumeParams build() { } /** - * Either {@code now} or {@code unchanged}. Setting the value to {@code now} resets the - * subscription's billing cycle anchor to the current time (in UTC). Setting the value to {@code - * unchanged} advances the subscription's billing cycle anchor to the period that surrounds the - * current time. For more information, see the billing cycle documentation. */ public Builder setBillingCycleAnchor( diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index 5fb2219df89..b81e61b8e1e 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -5659,18 +5659,33 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("jp_credit_transfer") + JP_CREDIT_TRANSFER("jp_credit_transfer"), + + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), diff --git a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java index 5969731c533..467044f224f 100644 --- a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java @@ -27,18 +27,19 @@ public class TaxIdCollectionCreateParams extends ApiRequestParams { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, - * {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, - * {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code - * ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code - * in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code - * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code - * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, - * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, - * {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, - * {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code + * do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, + * {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, + * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, + * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code + * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code + * tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -128,18 +129,20 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code - * cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, - * {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code - * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, - * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code - * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, - * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code - * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, - * {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code - * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, + * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code + * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, + * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code + * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, + * {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, or + * {@code za_vat} */ public Builder setType(TaxIdCollectionCreateParams.Type type) { this.type = type; @@ -184,6 +187,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("by_tin") + BY_TIN("by_tin"), + @SerializedName("ca_bn") CA_BN("ca_bn"), @@ -289,6 +295,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("ma_vat") + MA_VAT("ma_vat"), + + @SerializedName("md_vat") + MD_VAT("md_vat"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -358,6 +370,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("tw_vat") TW_VAT("tw_vat"), + @SerializedName("tz_vat") + TZ_VAT("tz_vat"), + @SerializedName("ua_vat") UA_VAT("ua_vat"), @@ -367,6 +382,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_ruc") UY_RUC("uy_ruc"), + @SerializedName("uz_tin") + UZ_TIN("uz_tin"), + + @SerializedName("uz_vat") + UZ_VAT("uz_vat"), + @SerializedName("ve_rif") VE_RIF("ve_rif"), diff --git a/src/main/java/com/stripe/param/TaxIdCreateParams.java b/src/main/java/com/stripe/param/TaxIdCreateParams.java index adc4c5ff965..e8c04d77f6a 100644 --- a/src/main/java/com/stripe/param/TaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCreateParams.java @@ -31,18 +31,19 @@ public class TaxIdCreateParams extends ApiRequestParams { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, - * {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, - * {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code - * ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code - * in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code - * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code - * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, - * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, - * {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, - * {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code + * do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, + * {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, + * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, + * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code + * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code + * tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -142,18 +143,20 @@ public Builder setOwner(TaxIdCreateParams.Owner owner) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code - * cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, - * {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code - * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, - * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code - * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, - * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code - * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, - * {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code - * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, + * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code + * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, + * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code + * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, + * {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, or + * {@code za_vat} */ public Builder setType(TaxIdCreateParams.Type type) { this.type = type; @@ -314,6 +317,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("by_tin") + BY_TIN("by_tin"), + @SerializedName("ca_bn") CA_BN("ca_bn"), @@ -419,6 +425,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("ma_vat") + MA_VAT("ma_vat"), + + @SerializedName("md_vat") + MD_VAT("md_vat"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -488,6 +500,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("tw_vat") TW_VAT("tw_vat"), + @SerializedName("tz_vat") + TZ_VAT("tz_vat"), + @SerializedName("ua_vat") UA_VAT("ua_vat"), @@ -497,6 +512,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_ruc") UY_RUC("uy_ruc"), + @SerializedName("uz_tin") + UZ_TIN("uz_tin"), + + @SerializedName("uz_vat") + UZ_VAT("uz_vat"), + @SerializedName("ve_rif") VE_RIF("ve_rif"), diff --git a/src/main/java/com/stripe/param/TaxRateCreateParams.java b/src/main/java/com/stripe/param/TaxRateCreateParams.java index 28a627a8ee8..6dfde76285c 100644 --- a/src/main/java/com/stripe/param/TaxRateCreateParams.java +++ b/src/main/java/com/stripe/param/TaxRateCreateParams.java @@ -338,6 +338,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("qst") QST("qst"), + @SerializedName("retail_delivery_fee") + RETAIL_DELIVERY_FEE("retail_delivery_fee"), + @SerializedName("rst") RST("rst"), diff --git a/src/main/java/com/stripe/param/TaxRateUpdateParams.java b/src/main/java/com/stripe/param/TaxRateUpdateParams.java index d8b376d8a8e..3ad5c153a02 100644 --- a/src/main/java/com/stripe/param/TaxRateUpdateParams.java +++ b/src/main/java/com/stripe/param/TaxRateUpdateParams.java @@ -372,6 +372,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("qst") QST("qst"), + @SerializedName("retail_delivery_fee") + RETAIL_DELIVERY_FEE("retail_delivery_fee"), + @SerializedName("rst") RST("rst"), diff --git a/src/main/java/com/stripe/param/TokenCreateParams.java b/src/main/java/com/stripe/param/TokenCreateParams.java index 65a89d682c2..16b974ec1f4 100644 --- a/src/main/java/com/stripe/param/TokenCreateParams.java +++ b/src/main/java/com/stripe/param/TokenCreateParams.java @@ -1722,10 +1722,7 @@ public static class Individual { @SerializedName("full_name_aliases") Object fullNameAliases; - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ + /** The individual's gender. */ @SerializedName("gender") String gender; @@ -2061,10 +2058,7 @@ public Builder setFullNameAliases(List fullNameAliases) { return this; } - /** - * The individual's gender (International regulations require either "male" or - * "female"). - */ + /** The individual's gender. */ public Builder setGender(String gender) { this.gender = gender; return this; diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index 9b63c4a34bc..312d0edffea 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -589,7 +589,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam { VERSION_2024_06_20("2024-06-20"), @SerializedName("2024-09-30.acacia") - VERSION_2024_09_30_ACACIA("2024-09-30.acacia"); + VERSION_2024_09_30_ACACIA("2024-09-30.acacia"), + + @SerializedName("2024-10-28.acacia") + VERSION_2024_10_28_ACACIA("2024-10-28.acacia"); @Getter(onMethod_ = {@Override}) private final String value; @@ -967,6 +970,10 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("issuing_transaction.created") ISSUING_TRANSACTION__CREATED("issuing_transaction.created"), + @SerializedName("issuing_transaction.purchase_details_receipt_updated") + ISSUING_TRANSACTION__PURCHASE_DETAILS_RECEIPT_UPDATED( + "issuing_transaction.purchase_details_receipt_updated"), + @SerializedName("issuing_transaction.updated") ISSUING_TRANSACTION__UPDATED("issuing_transaction.updated"), @@ -1096,6 +1103,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("refund.created") REFUND__CREATED("refund.created"), + @SerializedName("refund.failed") + REFUND__FAILED("refund.failed"), + @SerializedName("refund.updated") REFUND__UPDATED("refund.updated"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java index 2de1390745f..31448c3e4f9 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java @@ -628,6 +628,10 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("issuing_transaction.created") ISSUING_TRANSACTION__CREATED("issuing_transaction.created"), + @SerializedName("issuing_transaction.purchase_details_receipt_updated") + ISSUING_TRANSACTION__PURCHASE_DETAILS_RECEIPT_UPDATED( + "issuing_transaction.purchase_details_receipt_updated"), + @SerializedName("issuing_transaction.updated") ISSUING_TRANSACTION__UPDATED("issuing_transaction.updated"), @@ -757,6 +761,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("refund.created") REFUND__CREATED("refund.created"), + @SerializedName("refund.failed") + REFUND__FAILED("refund.failed"), + @SerializedName("refund.updated") REFUND__UPDATED("refund.updated"), diff --git a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java index 3f9453ebe76..a56cf342eb3 100644 --- a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java +++ b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java @@ -126,11 +126,11 @@ public Builder setFilter(CreditBalanceSummaryRetrieveParams.Filter filter) { @Getter public static class Filter { - /** The credit applicability scope for which to fetch balance summary. */ + /** The billing credit applicability scope for which to fetch credit balance summary. */ @SerializedName("applicability_scope") ApplicabilityScope applicabilityScope; - /** The credit grant for which to fetch balance summary. */ + /** The credit grant for which to fetch credit balance summary. */ @SerializedName("credit_grant") String creditGrant; @@ -177,14 +177,14 @@ public CreditBalanceSummaryRetrieveParams.Filter build() { this.applicabilityScope, this.creditGrant, this.extraParams, this.type); } - /** The credit applicability scope for which to fetch balance summary. */ + /** The billing credit applicability scope for which to fetch credit balance summary. */ public Builder setApplicabilityScope( CreditBalanceSummaryRetrieveParams.Filter.ApplicabilityScope applicabilityScope) { this.applicabilityScope = applicabilityScope; return this; } - /** The credit grant for which to fetch balance summary. */ + /** The credit grant for which to fetch credit balance summary. */ public Builder setCreditGrant(String creditGrant) { this.creditGrant = creditGrant; return this; diff --git a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java index 6f1fd7e316a..2efeb965b30 100644 --- a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java +++ b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java @@ -23,13 +23,15 @@ public class CreditGrantCreateParams extends ApiRequestParams { @SerializedName("category") Category category; - /** Required. Id of the customer to whom the credit should be granted. */ + /** + * Required. ID of the customer to whom the billing credits should be granted. + */ @SerializedName("customer") String customer; /** - * The time when the credit becomes effective i.e when it is eligible to be used. Defaults to the - * current timestamp if not specified. + * The time when the billing credits become effective i.e when they are eligible to be used. + * Defaults to the current timestamp if not specified. */ @SerializedName("effective_at") Long effectiveAt; @@ -38,7 +40,10 @@ public class CreditGrantCreateParams extends ApiRequestParams { @SerializedName("expand") List expand; - /** The time when the credit will expire. If not specified, the credit will never expire. */ + /** + * The time when the billing credits will expire. If not specified, the billing credits will never + * expire. + */ @SerializedName("expires_at") Long expiresAt; @@ -58,7 +63,7 @@ public class CreditGrantCreateParams extends ApiRequestParams { @SerializedName("metadata") Map metadata; - /** A descriptive name shown in dashboard and on invoices. */ + /** A descriptive name shown in dashboard. */ @SerializedName("name") String name; @@ -144,15 +149,17 @@ public Builder setCategory(CreditGrantCreateParams.Category category) { return this; } - /** Required. Id of the customer to whom the credit should be granted. */ + /** + * Required. ID of the customer to whom the billing credits should be granted. + */ public Builder setCustomer(String customer) { this.customer = customer; return this; } /** - * The time when the credit becomes effective i.e when it is eligible to be used. Defaults to - * the current timestamp if not specified. + * The time when the billing credits become effective i.e when they are eligible to be used. + * Defaults to the current timestamp if not specified. */ public Builder setEffectiveAt(Long effectiveAt) { this.effectiveAt = effectiveAt; @@ -185,7 +192,10 @@ public Builder addAllExpand(List elements) { return this; } - /** The time when the credit will expire. If not specified, the credit will never expire. */ + /** + * The time when the billing credits will expire. If not specified, the billing credits will + * never expire. + */ public Builder setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; return this; @@ -243,7 +253,7 @@ public Builder putAllMetadata(Map map) { return this; } - /** A descriptive name shown in dashboard and on invoices. */ + /** A descriptive name shown in dashboard. */ public Builder setName(String name) { this.name = name; return this; @@ -267,7 +277,7 @@ public static class Amount { /** * Required. Specify the type of this amount. We currently only support {@code - * monetary} credits. + * monetary} billing credits. */ @SerializedName("type") Type type; @@ -328,7 +338,7 @@ public Builder setMonetary(CreditGrantCreateParams.Amount.Monetary monetary) { /** * Required. Specify the type of this amount. We currently only support - * {@code monetary} credits. + * {@code monetary} billing credits. */ public Builder setType(CreditGrantCreateParams.Amount.Type type) { this.type = type; diff --git a/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java index e5dca877928..a4a2020e00c 100644 --- a/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java +++ b/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java @@ -17,8 +17,8 @@ public class CreditGrantUpdateParams extends ApiRequestParams { List expand; /** - * The time when the credit created by this credit grant will expire. If set to empty, the credit - * will never expire. + * The time when the billing credits created by this credit grant will expire. If set to empty, + * the billing credits will never expire. */ @SerializedName("expires_at") Object expiresAt; @@ -96,8 +96,8 @@ public Builder addAllExpand(List elements) { } /** - * The time when the credit created by this credit grant will expire. If set to empty, the - * credit will never expire. + * The time when the billing credits created by this credit grant will expire. If set to empty, + * the billing credits will never expire. */ public Builder setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; @@ -105,8 +105,8 @@ public Builder setExpiresAt(Long expiresAt) { } /** - * The time when the credit created by this credit grant will expire. If set to empty, the - * credit will never expire. + * The time when the billing credits created by this credit grant will expire. If set to empty, + * the billing credits will never expire. */ public Builder setExpiresAt(EmptyParam expiresAt) { this.expiresAt = expiresAt; diff --git a/src/main/java/com/stripe/param/billingportal/ConfigurationCreateParams.java b/src/main/java/com/stripe/param/billingportal/ConfigurationCreateParams.java index 6408ccf1c9b..4af57aa0ab1 100644 --- a/src/main/java/com/stripe/param/billingportal/ConfigurationCreateParams.java +++ b/src/main/java/com/stripe/param/billingportal/ConfigurationCreateParams.java @@ -12,7 +12,7 @@ @Getter public class ConfigurationCreateParams extends ApiRequestParams { - /** Required. The business information shown to customers in the portal. */ + /** The business information shown to customers in the portal. */ @SerializedName("business_profile") BusinessProfile businessProfile; @@ -107,7 +107,7 @@ public ConfigurationCreateParams build() { this.metadata); } - /** Required. The business information shown to customers in the portal. */ + /** The business information shown to customers in the portal. */ public Builder setBusinessProfile(ConfigurationCreateParams.BusinessProfile businessProfile) { this.businessProfile = businessProfile; return this; @@ -1167,17 +1167,26 @@ public static class SubscriptionUpdate { @SerializedName("proration_behavior") ProrationBehavior prorationBehavior; + /** + * Setting to control when an update should be scheduled at the end of the period instead of + * applying immediately. + */ + @SerializedName("schedule_at_period_end") + ScheduleAtPeriodEnd scheduleAtPeriodEnd; + private SubscriptionUpdate( Object defaultAllowedUpdates, Boolean enabled, Map extraParams, Object products, - ProrationBehavior prorationBehavior) { + ProrationBehavior prorationBehavior, + ScheduleAtPeriodEnd scheduleAtPeriodEnd) { this.defaultAllowedUpdates = defaultAllowedUpdates; this.enabled = enabled; this.extraParams = extraParams; this.products = products; this.prorationBehavior = prorationBehavior; + this.scheduleAtPeriodEnd = scheduleAtPeriodEnd; } public static Builder builder() { @@ -1195,6 +1204,8 @@ public static class Builder { private ProrationBehavior prorationBehavior; + private ScheduleAtPeriodEnd scheduleAtPeriodEnd; + /** Finalize and obtain parameter instance from this builder. */ public ConfigurationCreateParams.Features.SubscriptionUpdate build() { return new ConfigurationCreateParams.Features.SubscriptionUpdate( @@ -1202,7 +1213,8 @@ public ConfigurationCreateParams.Features.SubscriptionUpdate build() { this.enabled, this.extraParams, this.products, - this.prorationBehavior); + this.prorationBehavior, + this.scheduleAtPeriodEnd); } /** @@ -1361,6 +1373,17 @@ public Builder setProrationBehavior( this.prorationBehavior = prorationBehavior; return this; } + + /** + * Setting to control when an update should be scheduled at the end of the period instead of + * applying immediately. + */ + public Builder setScheduleAtPeriodEnd( + ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + scheduleAtPeriodEnd) { + this.scheduleAtPeriodEnd = scheduleAtPeriodEnd; + return this; + } } @Getter @@ -1475,6 +1498,214 @@ public Builder setProduct(String product) { } } + @Getter + public static class ScheduleAtPeriodEnd { + /** + * List of conditions. When any condition is true, the update will be scheduled at the end + * of the current period. + */ + @SerializedName("conditions") + List + conditions; + + /** + * 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 ScheduleAtPeriodEnd( + List< + ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition> + conditions, + Map extraParams) { + this.conditions = conditions; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List< + ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition> + conditions; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd build() { + return new ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd( + this.conditions, this.extraParams); + } + + /** + * Add an element to `conditions` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd#conditions} + * for the field documentation. + */ + public Builder addCondition( + ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition + element) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(element); + return this; + } + + /** + * Add all elements to `conditions` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd#conditions} + * for the field documentation. + */ + public Builder addAllCondition( + List< + ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition> + elements) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.addAll(elements); + 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 + * ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd#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 + * ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd#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 + public static class Condition { + /** + * 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; + + /** Required. The type of condition. */ + @SerializedName("type") + Type type; + + private Condition(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition + build() { + return new ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition(this.extraParams, this.type); + } + + /** + * 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 + * ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition#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 + * ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. The type of condition. */ + public Builder setType( + ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition + .Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("decreasing_item_amount") + DECREASING_ITEM_AMOUNT("decreasing_item_amount"), + + @SerializedName("shortening_interval") + SHORTENING_INTERVAL("shortening_interval"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + } + public enum DefaultAllowedUpdate implements ApiRequestParams.EnumParam { @SerializedName("price") PRICE("price"), diff --git a/src/main/java/com/stripe/param/billingportal/ConfigurationUpdateParams.java b/src/main/java/com/stripe/param/billingportal/ConfigurationUpdateParams.java index cd57c937680..537657ae92a 100644 --- a/src/main/java/com/stripe/param/billingportal/ConfigurationUpdateParams.java +++ b/src/main/java/com/stripe/param/billingportal/ConfigurationUpdateParams.java @@ -1209,17 +1209,26 @@ public static class SubscriptionUpdate { @SerializedName("proration_behavior") ProrationBehavior prorationBehavior; + /** + * Setting to control when an update should be scheduled at the end of the period instead of + * applying immediately. + */ + @SerializedName("schedule_at_period_end") + ScheduleAtPeriodEnd scheduleAtPeriodEnd; + private SubscriptionUpdate( Object defaultAllowedUpdates, Boolean enabled, Map extraParams, Object products, - ProrationBehavior prorationBehavior) { + ProrationBehavior prorationBehavior, + ScheduleAtPeriodEnd scheduleAtPeriodEnd) { this.defaultAllowedUpdates = defaultAllowedUpdates; this.enabled = enabled; this.extraParams = extraParams; this.products = products; this.prorationBehavior = prorationBehavior; + this.scheduleAtPeriodEnd = scheduleAtPeriodEnd; } public static Builder builder() { @@ -1237,6 +1246,8 @@ public static class Builder { private ProrationBehavior prorationBehavior; + private ScheduleAtPeriodEnd scheduleAtPeriodEnd; + /** Finalize and obtain parameter instance from this builder. */ public ConfigurationUpdateParams.Features.SubscriptionUpdate build() { return new ConfigurationUpdateParams.Features.SubscriptionUpdate( @@ -1244,7 +1255,8 @@ public ConfigurationUpdateParams.Features.SubscriptionUpdate build() { this.enabled, this.extraParams, this.products, - this.prorationBehavior); + this.prorationBehavior, + this.scheduleAtPeriodEnd); } /** @@ -1403,6 +1415,17 @@ public Builder setProrationBehavior( this.prorationBehavior = prorationBehavior; return this; } + + /** + * Setting to control when an update should be scheduled at the end of the period instead of + * applying immediately. + */ + public Builder setScheduleAtPeriodEnd( + ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + scheduleAtPeriodEnd) { + this.scheduleAtPeriodEnd = scheduleAtPeriodEnd; + return this; + } } @Getter @@ -1523,6 +1546,243 @@ public Builder setProduct(EmptyParam product) { } } + @Getter + public static class ScheduleAtPeriodEnd { + /** + * List of conditions. When any condition is true, the update will be scheduled at the end + * of the current period. + */ + @SerializedName("conditions") + Object conditions; + + /** + * 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 ScheduleAtPeriodEnd(Object conditions, Map extraParams) { + this.conditions = conditions; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object conditions; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd build() { + return new ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd( + this.conditions, this.extraParams); + } + + /** + * Add an element to `conditions` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd#conditions} + * for the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder addCondition( + ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition + element) { + if (this.conditions == null || this.conditions instanceof EmptyParam) { + this.conditions = + new ArrayList< + ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition>(); + } + ((List< + ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition>) + this.conditions) + .add(element); + return this; + } + + /** + * Add all elements to `conditions` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd#conditions} + * for the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder addAllCondition( + List< + ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition> + elements) { + if (this.conditions == null || this.conditions instanceof EmptyParam) { + this.conditions = + new ArrayList< + ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition>(); + } + ((List< + ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition>) + this.conditions) + .addAll(elements); + return this; + } + + /** + * List of conditions. When any condition is true, the update will be scheduled at the end + * of the current period. + */ + public Builder setConditions(EmptyParam conditions) { + this.conditions = conditions; + return this; + } + + /** + * List of conditions. When any condition is true, the update will be scheduled at the end + * of the current period. + */ + public Builder setConditions( + List< + ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition> + conditions) { + this.conditions = conditions; + 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 + * ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd#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 + * ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd#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 + public static class Condition { + /** + * 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; + + /** Required. The type of condition. */ + @SerializedName("type") + Type type; + + private Condition(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition + build() { + return new ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd + .Condition(this.extraParams, this.type); + } + + /** + * 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 + * ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition#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 + * ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. The type of condition. */ + public Builder setType( + ConfigurationUpdateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition + .Type + type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("decreasing_item_amount") + DECREASING_ITEM_AMOUNT("decreasing_item_amount"), + + @SerializedName("shortening_interval") + SHORTENING_INTERVAL("shortening_interval"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + } + public enum DefaultAllowedUpdate implements ApiRequestParams.EnumParam { @SerializedName("price") PRICE("price"), diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index e7e75d0b7f0..59de3fb2a51 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -5648,6 +5648,10 @@ public static class PaymentMethodOptions { @SerializedName("ideal") Ideal ideal; + /** contains details about the Kakao Pay payment method options. */ + @SerializedName("kakao_pay") + KakaoPay kakaoPay; + /** contains details about the Klarna payment method options. */ @SerializedName("klarna") Klarna klarna; @@ -5656,6 +5660,10 @@ public static class PaymentMethodOptions { @SerializedName("konbini") Konbini konbini; + /** contains details about the Korean card payment method options. */ + @SerializedName("kr_card") + KrCard krCard; + /** contains details about the Link payment method options. */ @SerializedName("link") Link link; @@ -5668,6 +5676,10 @@ public static class PaymentMethodOptions { @SerializedName("multibanco") Multibanco multibanco; + /** contains details about the Kakao Pay payment method options. */ + @SerializedName("naver_pay") + NaverPay naverPay; + /** contains details about the OXXO payment method options. */ @SerializedName("oxxo") Oxxo oxxo; @@ -5676,6 +5688,10 @@ public static class PaymentMethodOptions { @SerializedName("p24") P24 p24; + /** contains details about the PAYCO payment method options. */ + @SerializedName("payco") + Payco payco; + /** contains details about the PayNow payment method options. */ @SerializedName("paynow") Paynow paynow; @@ -5692,6 +5708,10 @@ public static class PaymentMethodOptions { @SerializedName("revolut_pay") RevolutPay revolutPay; + /** contains details about the Samsung Pay payment method options. */ + @SerializedName("samsung_pay") + SamsungPay samsungPay; + /** contains details about the Sepa Debit payment method options. */ @SerializedName("sepa_debit") SepaDebit sepaDebit; @@ -5731,17 +5751,22 @@ private PaymentMethodOptions( Giropay giropay, Grabpay grabpay, Ideal ideal, + KakaoPay kakaoPay, Klarna klarna, Konbini konbini, + KrCard krCard, Link link, Mobilepay mobilepay, Multibanco multibanco, + NaverPay naverPay, Oxxo oxxo, P24 p24, + Payco payco, Paynow paynow, Paypal paypal, Pix pix, RevolutPay revolutPay, + SamsungPay samsungPay, SepaDebit sepaDebit, Sofort sofort, Swish swish, @@ -5765,17 +5790,22 @@ private PaymentMethodOptions( this.giropay = giropay; this.grabpay = grabpay; this.ideal = ideal; + this.kakaoPay = kakaoPay; this.klarna = klarna; this.konbini = konbini; + this.krCard = krCard; this.link = link; this.mobilepay = mobilepay; this.multibanco = multibanco; + this.naverPay = naverPay; this.oxxo = oxxo; this.p24 = p24; + this.payco = payco; this.paynow = paynow; this.paypal = paypal; this.pix = pix; this.revolutPay = revolutPay; + this.samsungPay = samsungPay; this.sepaDebit = sepaDebit; this.sofort = sofort; this.swish = swish; @@ -5824,20 +5854,28 @@ public static class Builder { private Ideal ideal; + private KakaoPay kakaoPay; + private Klarna klarna; private Konbini konbini; + private KrCard krCard; + private Link link; private Mobilepay mobilepay; private Multibanco multibanco; + private NaverPay naverPay; + private Oxxo oxxo; private P24 p24; + private Payco payco; + private Paynow paynow; private Paypal paypal; @@ -5846,6 +5884,8 @@ public static class Builder { private RevolutPay revolutPay; + private SamsungPay samsungPay; + private SepaDebit sepaDebit; private Sofort sofort; @@ -5877,17 +5917,22 @@ public SessionCreateParams.PaymentMethodOptions build() { this.giropay, this.grabpay, this.ideal, + this.kakaoPay, this.klarna, this.konbini, + this.krCard, this.link, this.mobilepay, this.multibanco, + this.naverPay, this.oxxo, this.p24, + this.payco, this.paynow, this.paypal, this.pix, this.revolutPay, + this.samsungPay, this.sepaDebit, this.sofort, this.swish, @@ -6027,6 +6072,12 @@ public Builder setIdeal(SessionCreateParams.PaymentMethodOptions.Ideal ideal) { return this; } + /** contains details about the Kakao Pay payment method options. */ + public Builder setKakaoPay(SessionCreateParams.PaymentMethodOptions.KakaoPay kakaoPay) { + this.kakaoPay = kakaoPay; + return this; + } + /** contains details about the Klarna payment method options. */ public Builder setKlarna(SessionCreateParams.PaymentMethodOptions.Klarna klarna) { this.klarna = klarna; @@ -6039,6 +6090,12 @@ public Builder setKonbini(SessionCreateParams.PaymentMethodOptions.Konbini konbi return this; } + /** contains details about the Korean card payment method options. */ + public Builder setKrCard(SessionCreateParams.PaymentMethodOptions.KrCard krCard) { + this.krCard = krCard; + return this; + } + /** contains details about the Link payment method options. */ public Builder setLink(SessionCreateParams.PaymentMethodOptions.Link link) { this.link = link; @@ -6057,6 +6114,12 @@ public Builder setMultibanco(SessionCreateParams.PaymentMethodOptions.Multibanco return this; } + /** contains details about the Kakao Pay payment method options. */ + public Builder setNaverPay(SessionCreateParams.PaymentMethodOptions.NaverPay naverPay) { + this.naverPay = naverPay; + return this; + } + /** contains details about the OXXO payment method options. */ public Builder setOxxo(SessionCreateParams.PaymentMethodOptions.Oxxo oxxo) { this.oxxo = oxxo; @@ -6069,6 +6132,12 @@ public Builder setP24(SessionCreateParams.PaymentMethodOptions.P24 p24) { return this; } + /** contains details about the PAYCO payment method options. */ + public Builder setPayco(SessionCreateParams.PaymentMethodOptions.Payco payco) { + this.payco = payco; + return this; + } + /** contains details about the PayNow payment method options. */ public Builder setPaynow(SessionCreateParams.PaymentMethodOptions.Paynow paynow) { this.paynow = paynow; @@ -6093,6 +6162,12 @@ public Builder setRevolutPay(SessionCreateParams.PaymentMethodOptions.RevolutPay return this; } + /** contains details about the Samsung Pay payment method options. */ + public Builder setSamsungPay(SessionCreateParams.PaymentMethodOptions.SamsungPay samsungPay) { + this.samsungPay = samsungPay; + return this; + } + /** contains details about the Sepa Debit payment method options. */ public Builder setSepaDebit(SessionCreateParams.PaymentMethodOptions.SepaDebit sepaDebit) { this.sepaDebit = sepaDebit; @@ -9138,6 +9213,130 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class KakaoPay { + /** + * 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; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private KakaoPay(Map extraParams, SetupFutureUsage setupFutureUsage) { + this.extraParams = extraParams; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public SessionCreateParams.PaymentMethodOptions.KakaoPay build() { + return new SessionCreateParams.PaymentMethodOptions.KakaoPay( + this.extraParams, this.setupFutureUsage); + } + + /** + * 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 SessionCreateParams.PaymentMethodOptions.KakaoPay#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 SessionCreateParams.PaymentMethodOptions.KakaoPay#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + */ + public Builder setSetupFutureUsage( + SessionCreateParams.PaymentMethodOptions.KakaoPay.SetupFutureUsage setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"), + + @SerializedName("off_session") + OFF_SESSION("off_session"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + @Getter public static class Klarna { /** @@ -9406,6 +9605,130 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class KrCard { + /** + * 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; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private KrCard(Map extraParams, SetupFutureUsage setupFutureUsage) { + this.extraParams = extraParams; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public SessionCreateParams.PaymentMethodOptions.KrCard build() { + return new SessionCreateParams.PaymentMethodOptions.KrCard( + this.extraParams, this.setupFutureUsage); + } + + /** + * 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 SessionCreateParams.PaymentMethodOptions.KrCard#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 SessionCreateParams.PaymentMethodOptions.KrCard#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + */ + public Builder setSetupFutureUsage( + SessionCreateParams.PaymentMethodOptions.KrCard.SetupFutureUsage setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"), + + @SerializedName("off_session") + OFF_SESSION("off_session"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + @Getter public static class Link { /** @@ -9772,6 +10095,130 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class NaverPay { + /** + * 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; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private NaverPay(Map extraParams, SetupFutureUsage setupFutureUsage) { + this.extraParams = extraParams; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public SessionCreateParams.PaymentMethodOptions.NaverPay build() { + return new SessionCreateParams.PaymentMethodOptions.NaverPay( + this.extraParams, this.setupFutureUsage); + } + + /** + * 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 SessionCreateParams.PaymentMethodOptions.NaverPay#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 SessionCreateParams.PaymentMethodOptions.NaverPay#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. + * + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. + */ + public Builder setSetupFutureUsage( + SessionCreateParams.PaymentMethodOptions.NaverPay.SetupFutureUsage setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"), + + @SerializedName("off_session") + OFF_SESSION("off_session"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + @Getter public static class Oxxo { /** @@ -10054,6 +10501,63 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class Payco { + /** + * 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 Payco(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 SessionCreateParams.PaymentMethodOptions.Payco build() { + return new SessionCreateParams.PaymentMethodOptions.Payco(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 SessionCreateParams.PaymentMethodOptions.Payco#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 SessionCreateParams.PaymentMethodOptions.Payco#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 public static class Paynow { /** @@ -10708,6 +11212,63 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class SamsungPay { + /** + * 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 SamsungPay(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 SessionCreateParams.PaymentMethodOptions.SamsungPay build() { + return new SessionCreateParams.PaymentMethodOptions.SamsungPay(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 SessionCreateParams.PaymentMethodOptions.SamsungPay#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 SessionCreateParams.PaymentMethodOptions.SamsungPay#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 public static class SepaDebit { /** @@ -14820,6 +15381,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("alipay") ALIPAY("alipay"), + @SerializedName("alma") + ALMA("alma"), + @SerializedName("amazon_pay") AMAZON_PAY("amazon_pay"), @@ -14862,12 +15426,18 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("ideal") IDEAL("ideal"), + @SerializedName("kakao_pay") + KAKAO_PAY("kakao_pay"), + @SerializedName("klarna") KLARNA("klarna"), @SerializedName("konbini") KONBINI("konbini"), + @SerializedName("kr_card") + KR_CARD("kr_card"), + @SerializedName("link") LINK("link"), @@ -14877,12 +15447,18 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("multibanco") MULTIBANCO("multibanco"), + @SerializedName("naver_pay") + NAVER_PAY("naver_pay"), + @SerializedName("oxxo") OXXO("oxxo"), @SerializedName("p24") P24("p24"), + @SerializedName("payco") + PAYCO("payco"), + @SerializedName("paynow") PAYNOW("paynow"), @@ -14898,6 +15474,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("revolut_pay") REVOLUT_PAY("revolut_pay"), + @SerializedName("samsung_pay") + SAMSUNG_PAY("samsung_pay"), + @SerializedName("sepa_debit") SEPA_DEBIT("sepa_debit"), diff --git a/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java b/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java index 7ab314b4e2f..62537479cd2 100644 --- a/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java +++ b/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java @@ -24,6 +24,15 @@ public class RequestCreateParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys can + * be unset by posting an empty value to {@code metadata}. + */ + @SerializedName("metadata") + Map metadata; + /** * Required. The PaymentMethod to insert into the forwarded request. Forwarding * previously consumed PaymentMethods is allowed. @@ -51,12 +60,14 @@ public class RequestCreateParams extends ApiRequestParams { private RequestCreateParams( List expand, Map extraParams, + Map metadata, String paymentMethod, List replacements, Request request, String url) { this.expand = expand; this.extraParams = extraParams; + this.metadata = metadata; this.paymentMethod = paymentMethod; this.replacements = replacements; this.request = request; @@ -72,6 +83,8 @@ public static class Builder { private Map extraParams; + private Map metadata; + private String paymentMethod; private List replacements; @@ -85,6 +98,7 @@ public RequestCreateParams build() { return new RequestCreateParams( this.expand, this.extraParams, + this.metadata, this.paymentMethod, this.replacements, this.request, @@ -143,6 +157,32 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * Add a key/value pair to `metadata` 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 + * RequestCreateParams#metadata} for the field documentation. + */ + public Builder putMetadata(String key, String value) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `metadata` 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 RequestCreateParams#metadata} for the field documentation. + */ + public Builder putAllMetadata(Map map) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } + /** * Required. The PaymentMethod to insert into the forwarded request. Forwarding * previously consumed PaymentMethods is allowed. diff --git a/src/main/java/com/stripe/param/issuing/CardCreateParams.java b/src/main/java/com/stripe/param/issuing/CardCreateParams.java index 05255297042..c4afa7c7085 100644 --- a/src/main/java/com/stripe/param/issuing/CardCreateParams.java +++ b/src/main/java/com/stripe/param/issuing/CardCreateParams.java @@ -66,7 +66,7 @@ public class CardCreateParams extends ApiRequestParams { @SerializedName("replacement_reason") ReplacementReason replacementReason; - /** The second line to print on the card. */ + /** The second line to print on the card. Max length: 24 characters. */ @SerializedName("second_line") Object secondLine; @@ -309,13 +309,13 @@ public Builder setReplacementReason(CardCreateParams.ReplacementReason replaceme return this; } - /** The second line to print on the card. */ + /** The second line to print on the card. Max length: 24 characters. */ public Builder setSecondLine(String secondLine) { this.secondLine = secondLine; return this; } - /** The second line to print on the card. */ + /** The second line to print on the card. Max length: 24 characters. */ public Builder setSecondLine(EmptyParam secondLine) { this.secondLine = secondLine; return this; diff --git a/src/main/java/com/stripe/param/issuing/CardSubmitCardParams.java b/src/main/java/com/stripe/param/issuing/CardSubmitCardParams.java new file mode 100644 index 00000000000..1fd77ebafd5 --- /dev/null +++ b/src/main/java/com/stripe/param/issuing/CardSubmitCardParams.java @@ -0,0 +1,98 @@ +// File generated from our OpenAPI spec +package com.stripe.param.issuing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class CardSubmitCardParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * 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 CardSubmitCardParams(List expand, Map extraParams) { + this.expand = expand; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public CardSubmitCardParams build() { + return new CardSubmitCardParams(this.expand, this.extraParams); + } + + /** + * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * CardSubmitCardParams#expand} for the field documentation. + */ + public Builder addExpand(String element) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.add(element); + return this; + } + + /** + * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * CardSubmitCardParams#expand} for the field documentation. + */ + public Builder addAllExpand(List elements) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.addAll(elements); + 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 + * CardSubmitCardParams#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 CardSubmitCardParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java index cf871ef04f6..a408d6ae5c3 100644 --- a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java +++ b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java @@ -627,19 +627,20 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, - * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code - * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code - * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code - * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code - * vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -702,19 +703,20 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code - * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, - * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code - * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, - * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code - * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, - * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code - * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, - * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code - * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, + * {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code + * cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, + * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, + * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, + * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code + * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(CalculationCreateParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -759,6 +761,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("by_tin") + BY_TIN("by_tin"), + @SerializedName("ca_bn") CA_BN("ca_bn"), @@ -864,6 +869,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("ma_vat") + MA_VAT("ma_vat"), + + @SerializedName("md_vat") + MD_VAT("md_vat"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -933,6 +944,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("tw_vat") TW_VAT("tw_vat"), + @SerializedName("tz_vat") + TZ_VAT("tz_vat"), + @SerializedName("ua_vat") UA_VAT("ua_vat"), @@ -942,6 +956,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("uy_ruc") UY_RUC("uy_ruc"), + @SerializedName("uz_tin") + UZ_TIN("uz_tin"), + + @SerializedName("uz_vat") + UZ_VAT("uz_vat"), + @SerializedName("ve_rif") VE_RIF("ve_rif"), diff --git a/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java b/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java index 4aa133fe8bc..6edc54fa17d 100644 --- a/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java +++ b/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java @@ -222,6 +222,10 @@ public static class CountryOptions { @SerializedName("bh") Bh bh; + /** Options for the registration in BY. */ + @SerializedName("by") + By by; + /** Options for the registration in CA. */ @SerializedName("ca") Ca ca; @@ -238,6 +242,10 @@ public static class CountryOptions { @SerializedName("co") Co co; + /** Options for the registration in CR. */ + @SerializedName("cr") + Cr cr; + /** Options for the registration in CY. */ @SerializedName("cy") Cy cy; @@ -254,6 +262,10 @@ public static class CountryOptions { @SerializedName("dk") Dk dk; + /** Options for the registration in EC. */ + @SerializedName("ec") + Ec ec; + /** Options for the registration in EE. */ @SerializedName("ee") Ee ee; @@ -347,6 +359,14 @@ public static class CountryOptions { @SerializedName("lv") Lv lv; + /** Options for the registration in MA. */ + @SerializedName("ma") + Ma ma; + + /** Options for the registration in MD. */ + @SerializedName("md") + Md md; + /** Options for the registration in MT. */ @SerializedName("mt") Mt mt; @@ -391,6 +411,14 @@ public static class CountryOptions { @SerializedName("ro") Ro ro; + /** Options for the registration in RS. */ + @SerializedName("rs") + Rs rs; + + /** Options for the registration in RU. */ + @SerializedName("ru") + Ru ru; + /** Options for the registration in SA. */ @SerializedName("sa") Sa sa; @@ -419,10 +447,18 @@ public static class CountryOptions { @SerializedName("tr") Tr tr; + /** Options for the registration in TZ. */ + @SerializedName("tz") + Tz tz; + /** Options for the registration in US. */ @SerializedName("us") Us us; + /** Options for the registration in UZ. */ + @SerializedName("uz") + Uz uz; + /** Options for the registration in VN. */ @SerializedName("vn") Vn vn; @@ -438,14 +474,17 @@ private CountryOptions( Be be, Bg bg, Bh bh, + By by, Ca ca, Ch ch, Cl cl, Co co, + Cr cr, Cy cy, Cz cz, De de, Dk dk, + Ec ec, Ee ee, Eg eg, Es es, @@ -468,6 +507,8 @@ private CountryOptions( Lt lt, Lu lu, Lv lv, + Ma ma, + Md md, Mt mt, Mx mx, My my, @@ -479,6 +520,8 @@ private CountryOptions( Pl pl, Pt pt, Ro ro, + Rs rs, + Ru ru, Sa sa, Se se, Sg sg, @@ -486,7 +529,9 @@ private CountryOptions( Sk sk, Th th, Tr tr, + Tz tz, Us us, + Uz uz, Vn vn, Za za) { this.ae = ae; @@ -495,14 +540,17 @@ private CountryOptions( this.be = be; this.bg = bg; this.bh = bh; + this.by = by; this.ca = ca; this.ch = ch; this.cl = cl; this.co = co; + this.cr = cr; this.cy = cy; this.cz = cz; this.de = de; this.dk = dk; + this.ec = ec; this.ee = ee; this.eg = eg; this.es = es; @@ -525,6 +573,8 @@ private CountryOptions( this.lt = lt; this.lu = lu; this.lv = lv; + this.ma = ma; + this.md = md; this.mt = mt; this.mx = mx; this.my = my; @@ -536,6 +586,8 @@ private CountryOptions( this.pl = pl; this.pt = pt; this.ro = ro; + this.rs = rs; + this.ru = ru; this.sa = sa; this.se = se; this.sg = sg; @@ -543,7 +595,9 @@ private CountryOptions( this.sk = sk; this.th = th; this.tr = tr; + this.tz = tz; this.us = us; + this.uz = uz; this.vn = vn; this.za = za; } @@ -565,6 +619,8 @@ public static class Builder { private Bh bh; + private By by; + private Ca ca; private Ch ch; @@ -573,6 +629,8 @@ public static class Builder { private Co co; + private Cr cr; + private Cy cy; private Cz cz; @@ -581,6 +639,8 @@ public static class Builder { private Dk dk; + private Ec ec; + private Ee ee; private Eg eg; @@ -625,6 +685,10 @@ public static class Builder { private Lv lv; + private Ma ma; + + private Md md; + private Mt mt; private Mx mx; @@ -647,6 +711,10 @@ public static class Builder { private Ro ro; + private Rs rs; + + private Ru ru; + private Sa sa; private Se se; @@ -661,8 +729,12 @@ public static class Builder { private Tr tr; + private Tz tz; + private Us us; + private Uz uz; + private Vn vn; private Za za; @@ -676,14 +748,17 @@ public RegistrationCreateParams.CountryOptions build() { this.be, this.bg, this.bh, + this.by, this.ca, this.ch, this.cl, this.co, + this.cr, this.cy, this.cz, this.de, this.dk, + this.ec, this.ee, this.eg, this.es, @@ -706,6 +781,8 @@ public RegistrationCreateParams.CountryOptions build() { this.lt, this.lu, this.lv, + this.ma, + this.md, this.mt, this.mx, this.my, @@ -717,6 +794,8 @@ public RegistrationCreateParams.CountryOptions build() { this.pl, this.pt, this.ro, + this.rs, + this.ru, this.sa, this.se, this.sg, @@ -724,7 +803,9 @@ public RegistrationCreateParams.CountryOptions build() { this.sk, this.th, this.tr, + this.tz, this.us, + this.uz, this.vn, this.za); } @@ -765,6 +846,12 @@ public Builder setBh(RegistrationCreateParams.CountryOptions.Bh bh) { return this; } + /** Options for the registration in BY. */ + public Builder setBy(RegistrationCreateParams.CountryOptions.By by) { + this.by = by; + return this; + } + /** Options for the registration in CA. */ public Builder setCa(RegistrationCreateParams.CountryOptions.Ca ca) { this.ca = ca; @@ -789,6 +876,12 @@ public Builder setCo(RegistrationCreateParams.CountryOptions.Co co) { return this; } + /** Options for the registration in CR. */ + public Builder setCr(RegistrationCreateParams.CountryOptions.Cr cr) { + this.cr = cr; + return this; + } + /** Options for the registration in CY. */ public Builder setCy(RegistrationCreateParams.CountryOptions.Cy cy) { this.cy = cy; @@ -813,6 +906,12 @@ public Builder setDk(RegistrationCreateParams.CountryOptions.Dk dk) { return this; } + /** Options for the registration in EC. */ + public Builder setEc(RegistrationCreateParams.CountryOptions.Ec ec) { + this.ec = ec; + return this; + } + /** Options for the registration in EE. */ public Builder setEe(RegistrationCreateParams.CountryOptions.Ee ee) { this.ee = ee; @@ -966,6 +1065,18 @@ public Builder setLv(RegistrationCreateParams.CountryOptions.Lv lv) { return this; } + /** Options for the registration in MA. */ + public Builder setMa(RegistrationCreateParams.CountryOptions.Ma ma) { + this.ma = ma; + return this; + } + + /** Options for the registration in MD. */ + public Builder setMd(RegistrationCreateParams.CountryOptions.Md md) { + this.md = md; + return this; + } + /** Options for the registration in MT. */ public Builder setMt(RegistrationCreateParams.CountryOptions.Mt mt) { this.mt = mt; @@ -1032,6 +1143,18 @@ public Builder setRo(RegistrationCreateParams.CountryOptions.Ro ro) { return this; } + /** Options for the registration in RS. */ + public Builder setRs(RegistrationCreateParams.CountryOptions.Rs rs) { + this.rs = rs; + return this; + } + + /** Options for the registration in RU. */ + public Builder setRu(RegistrationCreateParams.CountryOptions.Ru ru) { + this.ru = ru; + return this; + } + /** Options for the registration in SA. */ public Builder setSa(RegistrationCreateParams.CountryOptions.Sa sa) { this.sa = sa; @@ -1074,12 +1197,24 @@ public Builder setTr(RegistrationCreateParams.CountryOptions.Tr tr) { return this; } + /** Options for the registration in TZ. */ + public Builder setTz(RegistrationCreateParams.CountryOptions.Tz tz) { + this.tz = tz; + return this; + } + /** Options for the registration in US. */ public Builder setUs(RegistrationCreateParams.CountryOptions.Us us) { this.us = us; return this; } + /** Options for the registration in UZ. */ + public Builder setUz(RegistrationCreateParams.CountryOptions.Uz uz) { + this.uz = uz; + return this; + } + /** Options for the registration in VN. */ public Builder setVn(RegistrationCreateParams.CountryOptions.Vn vn) { this.vn = vn; @@ -1933,6 +2068,88 @@ public enum Type implements ApiRequestParams.EnumParam { } } + @Getter + public static class By { + /** + * 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; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private By(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.By build() { + return new RegistrationCreateParams.CountryOptions.By(this.extraParams, this.type); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.By#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 RegistrationCreateParams.CountryOptions.By#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.By.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + @Getter public static class Ca { /** @@ -2362,6 +2579,88 @@ public enum Type implements ApiRequestParams.EnumParam { } } + @Getter + public static class Cr { + /** + * 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; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Cr(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Cr build() { + return new RegistrationCreateParams.CountryOptions.Cr(this.extraParams, this.type); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.Cr#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 RegistrationCreateParams.CountryOptions.Cr#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Cr.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + @Getter public static class Cy { /** @@ -3155,7 +3454,7 @@ public enum Type implements ApiRequestParams.EnumParam { } @Getter - public static class Ee { + public static class Ec { /** * 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. @@ -3165,17 +3464,12 @@ public static class Ee { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Options for the standard registration. */ - @SerializedName("standard") - Standard standard; - - /** Required. Type of registration to be created in an EU country. */ + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Ee(Map extraParams, Standard standard, Type type) { + private Ec(Map extraParams, Type type) { this.extraParams = extraParams; - this.standard = standard; this.type = type; } @@ -3186,20 +3480,17 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Standard standard; - private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Ee build() { - return new RegistrationCreateParams.CountryOptions.Ee( - this.extraParams, this.standard, this.type); + public RegistrationCreateParams.CountryOptions.Ec build() { + return new RegistrationCreateParams.CountryOptions.Ec(this.extraParams, this.type); } /** * 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 RegistrationCreateParams.CountryOptions.Ee#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ec#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -3213,7 +3504,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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 RegistrationCreateParams.CountryOptions.Ee#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ec#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -3224,50 +3515,140 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Options for the standard registration. */ - public Builder setStandard(RegistrationCreateParams.CountryOptions.Ee.Standard standard) { - this.standard = standard; - return this; - } - - /** Required. Type of registration to be created in an EU country. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Ee.Type type) { + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Ec.Type type) { this.type = type; return this; } } - @Getter - public static class Standard { - /** - * 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; - - /** - * Required. Place of supply scheme used in an EU standard registration. - */ - @SerializedName("place_of_supply_scheme") - PlaceOfSupplyScheme placeOfSupplyScheme; + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); - private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { - this.extraParams = extraParams; - this.placeOfSupplyScheme = placeOfSupplyScheme; - } + @Getter(onMethod_ = {@Override}) + private final String value; - public static Builder builder() { - return new Builder(); + Type(String value) { + this.value = value; } + } + } - public static class Builder { - private Map extraParams; - - private PlaceOfSupplyScheme placeOfSupplyScheme; + @Getter + public static class Ee { + /** + * 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; + + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in an EU country. */ + @SerializedName("type") + Type type; + + private Ee(Map extraParams, Standard standard, Type type) { + this.extraParams = extraParams; + this.standard = standard; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Ee build() { + return new RegistrationCreateParams.CountryOptions.Ee( + this.extraParams, this.standard, this.type); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.Ee#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 RegistrationCreateParams.CountryOptions.Ee#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Ee.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in an EU country. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Ee.Type type) { + this.type = type; + return this; + } + } + + @Getter + public static class Standard { + /** + * 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; + + /** + * Required. Place of supply scheme used in an EU standard registration. + */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; /** Finalize and obtain parameter instance from this builder. */ public RegistrationCreateParams.CountryOptions.Ee.Standard build() { @@ -6269,7 +6650,7 @@ public enum Type implements ApiRequestParams.EnumParam { } @Getter - public static class Mt { + public static class Ma { /** * 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. @@ -6279,17 +6660,12 @@ public static class Mt { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Options for the standard registration. */ - @SerializedName("standard") - Standard standard; - - /** Required. Type of registration to be created in an EU country. */ + /** Required. Type of registration to be created in {@code country}. */ @SerializedName("type") Type type; - private Mt(Map extraParams, Standard standard, Type type) { + private Ma(Map extraParams, Type type) { this.extraParams = extraParams; - this.standard = standard; this.type = type; } @@ -6300,20 +6676,17 @@ public static Builder builder() { public static class Builder { private Map extraParams; - private Standard standard; - private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Mt build() { - return new RegistrationCreateParams.CountryOptions.Mt( - this.extraParams, this.standard, this.type); + public RegistrationCreateParams.CountryOptions.Ma build() { + return new RegistrationCreateParams.CountryOptions.Ma(this.extraParams, this.type); } /** * 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 RegistrationCreateParams.CountryOptions.Mt#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ma#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -6327,7 +6700,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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 RegistrationCreateParams.CountryOptions.Mt#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Ma#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -6338,124 +6711,16 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Options for the standard registration. */ - public Builder setStandard(RegistrationCreateParams.CountryOptions.Mt.Standard standard) { - this.standard = standard; - return this; - } - - /** Required. Type of registration to be created in an EU country. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Mt.Type type) { + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Ma.Type type) { this.type = type; return this; } } - @Getter - public static class Standard { - /** - * 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; - - /** - * Required. Place of supply scheme used in an EU standard registration. - */ - @SerializedName("place_of_supply_scheme") - PlaceOfSupplyScheme placeOfSupplyScheme; - - private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { - this.extraParams = extraParams; - this.placeOfSupplyScheme = placeOfSupplyScheme; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private PlaceOfSupplyScheme placeOfSupplyScheme; - - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Mt.Standard build() { - return new RegistrationCreateParams.CountryOptions.Mt.Standard( - this.extraParams, this.placeOfSupplyScheme); - } - - /** - * 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 RegistrationCreateParams.CountryOptions.Mt.Standard#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 RegistrationCreateParams.CountryOptions.Mt.Standard#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * Required. Place of supply scheme used in an EU standard registration. - */ - public Builder setPlaceOfSupplyScheme( - RegistrationCreateParams.CountryOptions.Mt.Standard.PlaceOfSupplyScheme - placeOfSupplyScheme) { - this.placeOfSupplyScheme = placeOfSupplyScheme; - return this; - } - } - - public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { - @SerializedName("small_seller") - SMALL_SELLER("small_seller"), - - @SerializedName("standard") - STANDARD("standard"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - PlaceOfSupplyScheme(String value) { - this.value = value; - } - } - } - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ioss") - IOSS("ioss"), - - @SerializedName("oss_non_union") - OSS_NON_UNION("oss_non_union"), - - @SerializedName("oss_union") - OSS_UNION("oss_union"), - - @SerializedName("standard") - STANDARD("standard"); + @SerializedName("simplified") + SIMPLIFIED("simplified"); @Getter(onMethod_ = {@Override}) private final String value; @@ -6467,7 +6732,7 @@ public enum Type implements ApiRequestParams.EnumParam { } @Getter - public static class Mx { + public static class Md { /** * 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. @@ -6481,7 +6746,7 @@ public static class Mx { @SerializedName("type") Type type; - private Mx(Map extraParams, Type type) { + private Md(Map extraParams, Type type) { this.extraParams = extraParams; this.type = type; } @@ -6496,14 +6761,14 @@ public static class Builder { private Type type; /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Mx build() { - return new RegistrationCreateParams.CountryOptions.Mx(this.extraParams, this.type); + public RegistrationCreateParams.CountryOptions.Md build() { + return new RegistrationCreateParams.CountryOptions.Md(this.extraParams, this.type); } /** * 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 RegistrationCreateParams.CountryOptions.Mx#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Md#extraParams} for the field * documentation. */ public Builder putExtraParam(String key, Object value) { @@ -6517,7 +6782,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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 RegistrationCreateParams.CountryOptions.Mx#extraParams} for the field + * map. See {@link RegistrationCreateParams.CountryOptions.Md#extraParams} for the field * documentation. */ public Builder putAllExtraParam(Map map) { @@ -6529,7 +6794,7 @@ public Builder putAllExtraParam(Map map) { } /** Required. Type of registration to be created in {@code country}. */ - public Builder setType(RegistrationCreateParams.CountryOptions.Mx.Type type) { + public Builder setType(RegistrationCreateParams.CountryOptions.Md.Type type) { this.type = type; return this; } @@ -6549,7 +6814,7 @@ public enum Type implements ApiRequestParams.EnumParam { } @Getter - public static class My { + public static class Mt { /** * 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. @@ -6559,8 +6824,288 @@ public static class My { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Type of registration to be created in {@code country}. */ - @SerializedName("type") + /** Options for the standard registration. */ + @SerializedName("standard") + Standard standard; + + /** Required. Type of registration to be created in an EU country. */ + @SerializedName("type") + Type type; + + private Mt(Map extraParams, Standard standard, Type type) { + this.extraParams = extraParams; + this.standard = standard; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Standard standard; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Mt build() { + return new RegistrationCreateParams.CountryOptions.Mt( + this.extraParams, this.standard, this.type); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.Mt#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 RegistrationCreateParams.CountryOptions.Mt#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Options for the standard registration. */ + public Builder setStandard(RegistrationCreateParams.CountryOptions.Mt.Standard standard) { + this.standard = standard; + return this; + } + + /** Required. Type of registration to be created in an EU country. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Mt.Type type) { + this.type = type; + return this; + } + } + + @Getter + public static class Standard { + /** + * 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; + + /** + * Required. Place of supply scheme used in an EU standard registration. + */ + @SerializedName("place_of_supply_scheme") + PlaceOfSupplyScheme placeOfSupplyScheme; + + private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSupplyScheme) { + this.extraParams = extraParams; + this.placeOfSupplyScheme = placeOfSupplyScheme; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Mt.Standard build() { + return new RegistrationCreateParams.CountryOptions.Mt.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.Mt.Standard#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 RegistrationCreateParams.CountryOptions.Mt.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. Place of supply scheme used in an EU standard registration. + */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Mt.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("small_seller") + SMALL_SELLER("small_seller"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ioss") + IOSS("ioss"), + + @SerializedName("oss_non_union") + OSS_NON_UNION("oss_non_union"), + + @SerializedName("oss_union") + OSS_UNION("oss_union"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + public static class Mx { + /** + * 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; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Mx(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Mx build() { + return new RegistrationCreateParams.CountryOptions.Mx(this.extraParams, this.type); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.Mx#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 RegistrationCreateParams.CountryOptions.Mx#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Mx.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + public static class My { + /** + * 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; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") Type type; private My(Map extraParams, Type type) { @@ -7658,88 +8203,252 @@ private Standard(Map extraParams, PlaceOfSupplyScheme placeOfSup this.placeOfSupplyScheme = placeOfSupplyScheme; } - public static Builder builder() { - return new Builder(); - } + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private PlaceOfSupplyScheme placeOfSupplyScheme; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Ro.Standard build() { + return new RegistrationCreateParams.CountryOptions.Ro.Standard( + this.extraParams, this.placeOfSupplyScheme); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.Ro.Standard#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 RegistrationCreateParams.CountryOptions.Ro.Standard#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. Place of supply scheme used in an EU standard registration. + */ + public Builder setPlaceOfSupplyScheme( + RegistrationCreateParams.CountryOptions.Ro.Standard.PlaceOfSupplyScheme + placeOfSupplyScheme) { + this.placeOfSupplyScheme = placeOfSupplyScheme; + return this; + } + } + + public enum PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { + @SerializedName("small_seller") + SMALL_SELLER("small_seller"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PlaceOfSupplyScheme(String value) { + this.value = value; + } + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("ioss") + IOSS("ioss"), + + @SerializedName("oss_non_union") + OSS_NON_UNION("oss_non_union"), + + @SerializedName("oss_union") + OSS_UNION("oss_union"), + + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + public static class Rs { + /** + * 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; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Rs(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Rs build() { + return new RegistrationCreateParams.CountryOptions.Rs(this.extraParams, this.type); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.Rs#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 RegistrationCreateParams.CountryOptions.Rs#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Rs.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("standard") + STANDARD("standard"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + + @Getter + public static class Ru { + /** + * 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; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Ru(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } - public static class Builder { - private Map extraParams; + public static Builder builder() { + return new Builder(); + } - private PlaceOfSupplyScheme placeOfSupplyScheme; + public static class Builder { + private Map extraParams; - /** Finalize and obtain parameter instance from this builder. */ - public RegistrationCreateParams.CountryOptions.Ro.Standard build() { - return new RegistrationCreateParams.CountryOptions.Ro.Standard( - this.extraParams, this.placeOfSupplyScheme); - } + private Type type; - /** - * 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 RegistrationCreateParams.CountryOptions.Ro.Standard#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; - } + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Ru build() { + return new RegistrationCreateParams.CountryOptions.Ru(this.extraParams, this.type); + } - /** - * 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 RegistrationCreateParams.CountryOptions.Ro.Standard#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - 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 RegistrationCreateParams.CountryOptions.Ru#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; + } - /** - * Required. Place of supply scheme used in an EU standard registration. - */ - public Builder setPlaceOfSupplyScheme( - RegistrationCreateParams.CountryOptions.Ro.Standard.PlaceOfSupplyScheme - placeOfSupplyScheme) { - this.placeOfSupplyScheme = placeOfSupplyScheme; - 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 RegistrationCreateParams.CountryOptions.Ru#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 PlaceOfSupplyScheme implements ApiRequestParams.EnumParam { - @SerializedName("small_seller") - SMALL_SELLER("small_seller"), - - @SerializedName("standard") - STANDARD("standard"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - PlaceOfSupplyScheme(String value) { - this.value = value; - } + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Ru.Type type) { + this.type = type; + return this; } } public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("ioss") - IOSS("ioss"), - - @SerializedName("oss_non_union") - OSS_NON_UNION("oss_non_union"), - - @SerializedName("oss_union") - OSS_UNION("oss_union"), - - @SerializedName("standard") - STANDARD("standard"); + @SerializedName("simplified") + SIMPLIFIED("simplified"); @Getter(onMethod_ = {@Override}) private final String value; @@ -8672,6 +9381,88 @@ public enum Type implements ApiRequestParams.EnumParam { } } + @Getter + public static class Tz { + /** + * 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; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Tz(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Tz build() { + return new RegistrationCreateParams.CountryOptions.Tz(this.extraParams, this.type); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.Tz#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 RegistrationCreateParams.CountryOptions.Tz#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Tz.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + @Getter public static class Us { /** @@ -9208,6 +9999,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("state_communications_tax") STATE_COMMUNICATIONS_TAX("state_communications_tax"), + @SerializedName("state_retail_delivery_fee") + STATE_RETAIL_DELIVERY_FEE("state_retail_delivery_fee"), + @SerializedName("state_sales_tax") STATE_SALES_TAX("state_sales_tax"); @@ -9220,6 +10014,88 @@ public enum Type implements ApiRequestParams.EnumParam { } } + @Getter + public static class Uz { + /** + * 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; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Uz(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Uz build() { + return new RegistrationCreateParams.CountryOptions.Uz(this.extraParams, this.type); + } + + /** + * 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 RegistrationCreateParams.CountryOptions.Uz#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 RegistrationCreateParams.CountryOptions.Uz#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Uz.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + @Getter public static class Vn { /** diff --git a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java index 0d78d00387c..0483a98247f 100644 --- a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java +++ b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java @@ -590,6 +590,10 @@ public static class Tipping { @SerializedName("nzd") Nzd nzd; + /** Tipping configuration for PLN. */ + @SerializedName("pln") + Pln pln; + /** Tipping configuration for SEK. */ @SerializedName("sek") Sek sek; @@ -615,6 +619,7 @@ private Tipping( Myr myr, Nok nok, Nzd nzd, + Pln pln, Sek sek, Sgd sgd, Usd usd) { @@ -630,6 +635,7 @@ private Tipping( this.myr = myr; this.nok = nok; this.nzd = nzd; + this.pln = pln; this.sek = sek; this.sgd = sgd; this.usd = usd; @@ -664,6 +670,8 @@ public static class Builder { private Nzd nzd; + private Pln pln; + private Sek sek; private Sgd sgd; @@ -685,6 +693,7 @@ public ConfigurationCreateParams.Tipping build() { this.myr, this.nok, this.nzd, + this.pln, this.sek, this.sgd, this.usd); @@ -782,6 +791,12 @@ public Builder setNzd(ConfigurationCreateParams.Tipping.Nzd nzd) { return this; } + /** Tipping configuration for PLN. */ + public Builder setPln(ConfigurationCreateParams.Tipping.Pln pln) { + this.pln = pln; + return this; + } + /** Tipping configuration for SEK. */ public Builder setSek(ConfigurationCreateParams.Tipping.Sek sek) { this.sek = sek; @@ -2418,6 +2433,153 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { } } + @Getter + public static class Pln { + /** + * 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; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Pln( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationCreateParams.Tipping.Pln build() { + return new ConfigurationCreateParams.Tipping.Pln( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * 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 ConfigurationCreateParams.Tipping.Pln#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 ConfigurationCreateParams.Tipping.Pln#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Pln#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Pln#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Pln#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationCreateParams.Tipping.Pln#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + @Getter public static class Sek { /** diff --git a/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java b/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java index 8310e52aa78..14d6e837773 100644 --- a/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java +++ b/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java @@ -620,6 +620,10 @@ public static class Tipping { @SerializedName("nzd") Nzd nzd; + /** Tipping configuration for PLN. */ + @SerializedName("pln") + Pln pln; + /** Tipping configuration for SEK. */ @SerializedName("sek") Sek sek; @@ -645,6 +649,7 @@ private Tipping( Myr myr, Nok nok, Nzd nzd, + Pln pln, Sek sek, Sgd sgd, Usd usd) { @@ -660,6 +665,7 @@ private Tipping( this.myr = myr; this.nok = nok; this.nzd = nzd; + this.pln = pln; this.sek = sek; this.sgd = sgd; this.usd = usd; @@ -694,6 +700,8 @@ public static class Builder { private Nzd nzd; + private Pln pln; + private Sek sek; private Sgd sgd; @@ -715,6 +723,7 @@ public ConfigurationUpdateParams.Tipping build() { this.myr, this.nok, this.nzd, + this.pln, this.sek, this.sgd, this.usd); @@ -812,6 +821,12 @@ public Builder setNzd(ConfigurationUpdateParams.Tipping.Nzd nzd) { return this; } + /** Tipping configuration for PLN. */ + public Builder setPln(ConfigurationUpdateParams.Tipping.Pln pln) { + this.pln = pln; + return this; + } + /** Tipping configuration for SEK. */ public Builder setSek(ConfigurationUpdateParams.Tipping.Sek sek) { this.sek = sek; @@ -2448,6 +2463,153 @@ public Builder setSmartTipThreshold(Long smartTipThreshold) { } } + @Getter + public static class Pln { + /** + * 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; + + /** Fixed amounts displayed when collecting a tip. */ + @SerializedName("fixed_amounts") + List fixedAmounts; + + /** Percentages displayed when collecting a tip. */ + @SerializedName("percentages") + List percentages; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + @SerializedName("smart_tip_threshold") + Long smartTipThreshold; + + private Pln( + Map extraParams, + List fixedAmounts, + List percentages, + Long smartTipThreshold) { + this.extraParams = extraParams; + this.fixedAmounts = fixedAmounts; + this.percentages = percentages; + this.smartTipThreshold = smartTipThreshold; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List fixedAmounts; + + private List percentages; + + private Long smartTipThreshold; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationUpdateParams.Tipping.Pln build() { + return new ConfigurationUpdateParams.Tipping.Pln( + this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold); + } + + /** + * 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 ConfigurationUpdateParams.Tipping.Pln#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 ConfigurationUpdateParams.Tipping.Pln#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Pln#fixedAmounts} for the field documentation. + */ + public Builder addFixedAmount(Long element) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.add(element); + return this; + } + + /** + * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Pln#fixedAmounts} for the field documentation. + */ + public Builder addAllFixedAmount(List elements) { + if (this.fixedAmounts == null) { + this.fixedAmounts = new ArrayList<>(); + } + this.fixedAmounts.addAll(elements); + return this; + } + + /** + * Add an element to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Pln#percentages} for the field documentation. + */ + public Builder addPercentage(Long element) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.add(element); + return this; + } + + /** + * Add all elements to `percentages` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * ConfigurationUpdateParams.Tipping.Pln#percentages} for the field documentation. + */ + public Builder addAllPercentage(List elements) { + if (this.percentages == null) { + this.percentages = new ArrayList<>(); + } + this.percentages.addAll(elements); + return this; + } + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be + * displayed. + */ + public Builder setSmartTipThreshold(Long smartTipThreshold) { + this.smartTipThreshold = smartTipThreshold; + return this; + } + } + } + @Getter public static class Sek { /** diff --git a/src/main/java/com/stripe/param/v2/core/EventDestinationCreateParams.java b/src/main/java/com/stripe/param/v2/core/EventDestinationCreateParams.java new file mode 100644 index 00000000000..a9bee21ce51 --- /dev/null +++ b/src/main/java/com/stripe/param/v2/core/EventDestinationCreateParams.java @@ -0,0 +1,527 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.core; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class EventDestinationCreateParams extends ApiRequestParams { + /** Amazon EventBridge configuration. */ + @SerializedName("amazon_eventbridge") + AmazonEventbridge amazonEventbridge; + + /** An optional description of what the event destination is used for. */ + @SerializedName("description") + String description; + + /** Required. The list of events to enable for this endpoint. */ + @SerializedName("enabled_events") + List enabledEvents; + + /** Required. Payload type of events being subscribed to. */ + @SerializedName("event_payload") + EventPayload eventPayload; + + /** Where events should be routed from. */ + @SerializedName("events_from") + List eventsFrom; + + /** + * 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; + + /** Additional fields to include in the response. */ + @SerializedName("include") + List include; + + /** Metadata. */ + @SerializedName("metadata") + Map metadata; + + /** Required. Event destination name. */ + @SerializedName("name") + String name; + + /** If using the snapshot event payload, the API version events are rendered as. */ + @SerializedName("snapshot_api_version") + String snapshotApiVersion; + + /** Required. Event destination type. */ + @SerializedName("type") + Type type; + + /** Webhook endpoint configuration. */ + @SerializedName("webhook_endpoint") + WebhookEndpoint webhookEndpoint; + + private EventDestinationCreateParams( + AmazonEventbridge amazonEventbridge, + String description, + List enabledEvents, + EventPayload eventPayload, + List eventsFrom, + Map extraParams, + List include, + Map metadata, + String name, + String snapshotApiVersion, + Type type, + WebhookEndpoint webhookEndpoint) { + this.amazonEventbridge = amazonEventbridge; + this.description = description; + this.enabledEvents = enabledEvents; + this.eventPayload = eventPayload; + this.eventsFrom = eventsFrom; + this.extraParams = extraParams; + this.include = include; + this.metadata = metadata; + this.name = name; + this.snapshotApiVersion = snapshotApiVersion; + this.type = type; + this.webhookEndpoint = webhookEndpoint; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private AmazonEventbridge amazonEventbridge; + + private String description; + + private List enabledEvents; + + private EventPayload eventPayload; + + private List eventsFrom; + + private Map extraParams; + + private List include; + + private Map metadata; + + private String name; + + private String snapshotApiVersion; + + private Type type; + + private WebhookEndpoint webhookEndpoint; + + /** Finalize and obtain parameter instance from this builder. */ + public EventDestinationCreateParams build() { + return new EventDestinationCreateParams( + this.amazonEventbridge, + this.description, + this.enabledEvents, + this.eventPayload, + this.eventsFrom, + this.extraParams, + this.include, + this.metadata, + this.name, + this.snapshotApiVersion, + this.type, + this.webhookEndpoint); + } + + /** Amazon EventBridge configuration. */ + public Builder setAmazonEventbridge( + EventDestinationCreateParams.AmazonEventbridge amazonEventbridge) { + this.amazonEventbridge = amazonEventbridge; + return this; + } + + /** An optional description of what the event destination is used for. */ + public Builder setDescription(String description) { + this.description = description; + return this; + } + + /** + * Add an element to `enabledEvents` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationCreateParams#enabledEvents} for the field documentation. + */ + public Builder addEnabledEvent(String element) { + if (this.enabledEvents == null) { + this.enabledEvents = new ArrayList<>(); + } + this.enabledEvents.add(element); + return this; + } + + /** + * Add all elements to `enabledEvents` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationCreateParams#enabledEvents} for the field documentation. + */ + public Builder addAllEnabledEvent(List elements) { + if (this.enabledEvents == null) { + this.enabledEvents = new ArrayList<>(); + } + this.enabledEvents.addAll(elements); + return this; + } + + /** Required. Payload type of events being subscribed to. */ + public Builder setEventPayload(EventDestinationCreateParams.EventPayload eventPayload) { + this.eventPayload = eventPayload; + return this; + } + + /** + * Add an element to `eventsFrom` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationCreateParams#eventsFrom} for the field documentation. + */ + public Builder addEventsFrom(EventDestinationCreateParams.EventsFrom element) { + if (this.eventsFrom == null) { + this.eventsFrom = new ArrayList<>(); + } + this.eventsFrom.add(element); + return this; + } + + /** + * Add all elements to `eventsFrom` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationCreateParams#eventsFrom} for the field documentation. + */ + public Builder addAllEventsFrom(List elements) { + if (this.eventsFrom == null) { + this.eventsFrom = new ArrayList<>(); + } + this.eventsFrom.addAll(elements); + 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 + * EventDestinationCreateParams#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 EventDestinationCreateParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `include` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * EventDestinationCreateParams#include} for the field documentation. + */ + public Builder addInclude(EventDestinationCreateParams.Include element) { + if (this.include == null) { + this.include = new ArrayList<>(); + } + this.include.add(element); + return this; + } + + /** + * Add all elements to `include` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationCreateParams#include} for the field documentation. + */ + public Builder addAllInclude(List elements) { + if (this.include == null) { + this.include = new ArrayList<>(); + } + this.include.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `metadata` 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 + * EventDestinationCreateParams#metadata} for the field documentation. + */ + public Builder putMetadata(String key, String value) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `metadata` 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 EventDestinationCreateParams#metadata} for the field documentation. + */ + public Builder putAllMetadata(Map map) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } + + /** Required. Event destination name. */ + public Builder setName(String name) { + this.name = name; + return this; + } + + /** If using the snapshot event payload, the API version events are rendered as. */ + public Builder setSnapshotApiVersion(String snapshotApiVersion) { + this.snapshotApiVersion = snapshotApiVersion; + return this; + } + + /** Required. Event destination type. */ + public Builder setType(EventDestinationCreateParams.Type type) { + this.type = type; + return this; + } + + /** Webhook endpoint configuration. */ + public Builder setWebhookEndpoint( + EventDestinationCreateParams.WebhookEndpoint webhookEndpoint) { + this.webhookEndpoint = webhookEndpoint; + return this; + } + } + + @Getter + public static class AmazonEventbridge { + /** Required. The AWS account ID. */ + @SerializedName("aws_account_id") + String awsAccountId; + + /** Required. The region of the AWS event source. */ + @SerializedName("aws_region") + String awsRegion; + + /** + * 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 AmazonEventbridge( + String awsAccountId, String awsRegion, Map extraParams) { + this.awsAccountId = awsAccountId; + this.awsRegion = awsRegion; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String awsAccountId; + + private String awsRegion; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public EventDestinationCreateParams.AmazonEventbridge build() { + return new EventDestinationCreateParams.AmazonEventbridge( + this.awsAccountId, this.awsRegion, this.extraParams); + } + + /** Required. The AWS account ID. */ + public Builder setAwsAccountId(String awsAccountId) { + this.awsAccountId = awsAccountId; + return this; + } + + /** Required. The region of the AWS event source. */ + public Builder setAwsRegion(String awsRegion) { + this.awsRegion = awsRegion; + 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 + * EventDestinationCreateParams.AmazonEventbridge#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 EventDestinationCreateParams.AmazonEventbridge#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 + public static class WebhookEndpoint { + /** + * 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; + + /** Required. The URL of the webhook endpoint. */ + @SerializedName("url") + String url; + + private WebhookEndpoint(Map extraParams, String url) { + this.extraParams = extraParams; + this.url = url; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private String url; + + /** Finalize and obtain parameter instance from this builder. */ + public EventDestinationCreateParams.WebhookEndpoint build() { + return new EventDestinationCreateParams.WebhookEndpoint(this.extraParams, this.url); + } + + /** + * 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 + * EventDestinationCreateParams.WebhookEndpoint#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 EventDestinationCreateParams.WebhookEndpoint#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. The URL of the webhook endpoint. */ + public Builder setUrl(String url) { + this.url = url; + return this; + } + } + } + + public enum EventPayload implements ApiRequestParams.EnumParam { + @SerializedName("snapshot") + SNAPSHOT("snapshot"), + + @SerializedName("thin") + THIN("thin"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EventPayload(String value) { + this.value = value; + } + } + + public enum EventsFrom implements ApiRequestParams.EnumParam { + @SerializedName("other_accounts") + OTHER_ACCOUNTS("other_accounts"), + + @SerializedName("self") + SELF("self"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + EventsFrom(String value) { + this.value = value; + } + } + + public enum Include implements ApiRequestParams.EnumParam { + @SerializedName("webhook_endpoint.signing_secret") + WEBHOOK_ENDPOINT__SIGNING_SECRET("webhook_endpoint.signing_secret"), + + @SerializedName("webhook_endpoint.url") + WEBHOOK_ENDPOINT__URL("webhook_endpoint.url"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Include(String value) { + this.value = value; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("amazon_eventbridge") + AMAZON_EVENTBRIDGE("amazon_eventbridge"), + + @SerializedName("webhook_endpoint") + WEBHOOK_ENDPOINT("webhook_endpoint"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/core/EventDestinationListParams.java b/src/main/java/com/stripe/param/v2/core/EventDestinationListParams.java new file mode 100644 index 00000000000..c3e52fe99e5 --- /dev/null +++ b/src/main/java/com/stripe/param/v2/core/EventDestinationListParams.java @@ -0,0 +1,142 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.core; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class EventDestinationListParams extends ApiRequestParams { + /** + * 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; + + /** + * Additional fields to include in the response. Currently supports {@code webhook_endpoint.url}. + */ + @SerializedName("include") + List include; + + /** The page size. */ + @SerializedName("limit") + Integer limit; + + /** The requested page. */ + @SerializedName("page") + String page; + + private EventDestinationListParams( + Map extraParams, + List include, + Integer limit, + String page) { + this.extraParams = extraParams; + this.include = include; + this.limit = limit; + this.page = page; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List include; + + private Integer limit; + + private String page; + + /** Finalize and obtain parameter instance from this builder. */ + public EventDestinationListParams build() { + return new EventDestinationListParams(this.extraParams, this.include, this.limit, this.page); + } + + /** + * 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 + * EventDestinationListParams#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 EventDestinationListParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `include` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * EventDestinationListParams#include} for the field documentation. + */ + public Builder addInclude(EventDestinationListParams.Include element) { + if (this.include == null) { + this.include = new ArrayList<>(); + } + this.include.add(element); + return this; + } + + /** + * Add all elements to `include` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationListParams#include} for the field documentation. + */ + public Builder addAllInclude(List elements) { + if (this.include == null) { + this.include = new ArrayList<>(); + } + this.include.addAll(elements); + return this; + } + + /** The page size. */ + public Builder setLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** The requested page. */ + public Builder setPage(String page) { + this.page = page; + return this; + } + } + + public enum Include implements ApiRequestParams.EnumParam { + @SerializedName("webhook_endpoint.url") + WEBHOOK_ENDPOINT__URL("webhook_endpoint.url"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Include(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/core/EventDestinationRetrieveParams.java b/src/main/java/com/stripe/param/v2/core/EventDestinationRetrieveParams.java new file mode 100644 index 00000000000..36436d82614 --- /dev/null +++ b/src/main/java/com/stripe/param/v2/core/EventDestinationRetrieveParams.java @@ -0,0 +1,111 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.core; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class EventDestinationRetrieveParams extends ApiRequestParams { + /** + * 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; + + /** Additional fields to include in the response. */ + @SerializedName("include") + List include; + + private EventDestinationRetrieveParams( + Map extraParams, List include) { + this.extraParams = extraParams; + this.include = include; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private List include; + + /** Finalize and obtain parameter instance from this builder. */ + public EventDestinationRetrieveParams build() { + return new EventDestinationRetrieveParams(this.extraParams, this.include); + } + + /** + * 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 + * EventDestinationRetrieveParams#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 EventDestinationRetrieveParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `include` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * EventDestinationRetrieveParams#include} for the field documentation. + */ + public Builder addInclude(EventDestinationRetrieveParams.Include element) { + if (this.include == null) { + this.include = new ArrayList<>(); + } + this.include.add(element); + return this; + } + + /** + * Add all elements to `include` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationRetrieveParams#include} for the field documentation. + */ + public Builder addAllInclude(List elements) { + if (this.include == null) { + this.include = new ArrayList<>(); + } + this.include.addAll(elements); + return this; + } + } + + public enum Include implements ApiRequestParams.EnumParam { + @SerializedName("webhook_endpoint.url") + WEBHOOK_ENDPOINT__URL("webhook_endpoint.url"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Include(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/core/EventDestinationUpdateParams.java b/src/main/java/com/stripe/param/v2/core/EventDestinationUpdateParams.java new file mode 100644 index 00000000000..8e0856a7a7f --- /dev/null +++ b/src/main/java/com/stripe/param/v2/core/EventDestinationUpdateParams.java @@ -0,0 +1,338 @@ +// File generated from our OpenAPI spec +package com.stripe.param.v2.core; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import com.stripe.param.common.EmptyParam; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class EventDestinationUpdateParams extends ApiRequestParams { + /** An optional description of what the event destination is used for. */ + @SerializedName("description") + Object description; + + /** The list of events to enable for this endpoint. */ + @SerializedName("enabled_events") + List enabledEvents; + + /** + * 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; + + /** + * Additional fields to include in the response. Currently supports {@code webhook_endpoint.url}. + */ + @SerializedName("include") + List include; + + /** Metadata. */ + @SerializedName("metadata") + Map metadata; + + /** Event destination name. */ + @SerializedName("name") + Object name; + + /** Webhook endpoint configuration. */ + @SerializedName("webhook_endpoint") + WebhookEndpoint webhookEndpoint; + + private EventDestinationUpdateParams( + Object description, + List enabledEvents, + Map extraParams, + List include, + Map metadata, + Object name, + WebhookEndpoint webhookEndpoint) { + this.description = description; + this.enabledEvents = enabledEvents; + this.extraParams = extraParams; + this.include = include; + this.metadata = metadata; + this.name = name; + this.webhookEndpoint = webhookEndpoint; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object description; + + private List enabledEvents; + + private Map extraParams; + + private List include; + + private Map metadata; + + private Object name; + + private WebhookEndpoint webhookEndpoint; + + /** Finalize and obtain parameter instance from this builder. */ + public EventDestinationUpdateParams build() { + return new EventDestinationUpdateParams( + this.description, + this.enabledEvents, + this.extraParams, + this.include, + this.metadata, + this.name, + this.webhookEndpoint); + } + + /** An optional description of what the event destination is used for. */ + public Builder setDescription(String description) { + this.description = description; + return this; + } + + /** An optional description of what the event destination is used for. */ + public Builder setDescription(EmptyParam description) { + this.description = description; + return this; + } + + /** + * Add an element to `enabledEvents` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationUpdateParams#enabledEvents} for the field documentation. + */ + public Builder addEnabledEvent(String element) { + if (this.enabledEvents == null) { + this.enabledEvents = new ArrayList<>(); + } + this.enabledEvents.add(element); + return this; + } + + /** + * Add all elements to `enabledEvents` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationUpdateParams#enabledEvents} for the field documentation. + */ + public Builder addAllEnabledEvent(List elements) { + if (this.enabledEvents == null) { + this.enabledEvents = new ArrayList<>(); + } + this.enabledEvents.addAll(elements); + 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 + * EventDestinationUpdateParams#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 EventDestinationUpdateParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add an element to `include` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * EventDestinationUpdateParams#include} for the field documentation. + */ + public Builder addInclude(EventDestinationUpdateParams.Include element) { + if (this.include == null) { + this.include = new ArrayList<>(); + } + this.include.add(element); + return this; + } + + /** + * Add all elements to `include` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * EventDestinationUpdateParams#include} for the field documentation. + */ + public Builder addAllInclude(List elements) { + if (this.include == null) { + this.include = new ArrayList<>(); + } + this.include.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `metadata` 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 + * EventDestinationUpdateParams#metadata} for the field documentation. + */ + public Builder putMetadata(String key, String value) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + return this; + } + + /** + * Add a key/value pair to `metadata` 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 + * EventDestinationUpdateParams#metadata} for the field documentation. + */ + public Builder putMetadata(String key, EmptyParam value) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `metadata` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * Map values can only be one of the following types: `String`, `EmptyParam`. See {@link + * EventDestinationUpdateParams#metadata} for the field documentation. + */ + public Builder putAllMetadata(Map map) { + if (!map.values().stream().allMatch(v -> v instanceof String || v instanceof EmptyParam)) { + throw new IllegalArgumentException( + "All map values must one of the following types: String, EmptyParam"); + } + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } + + /** Event destination name. */ + public Builder setName(String name) { + this.name = name; + return this; + } + + /** Event destination name. */ + public Builder setName(EmptyParam name) { + this.name = name; + return this; + } + + /** Webhook endpoint configuration. */ + public Builder setWebhookEndpoint( + EventDestinationUpdateParams.WebhookEndpoint webhookEndpoint) { + this.webhookEndpoint = webhookEndpoint; + return this; + } + } + + @Getter + public static class WebhookEndpoint { + /** + * 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; + + /** Required. The URL of the webhook endpoint. */ + @SerializedName("url") + Object url; + + private WebhookEndpoint(Map extraParams, Object url) { + this.extraParams = extraParams; + this.url = url; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Object url; + + /** Finalize and obtain parameter instance from this builder. */ + public EventDestinationUpdateParams.WebhookEndpoint build() { + return new EventDestinationUpdateParams.WebhookEndpoint(this.extraParams, this.url); + } + + /** + * 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 + * EventDestinationUpdateParams.WebhookEndpoint#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 EventDestinationUpdateParams.WebhookEndpoint#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. The URL of the webhook endpoint. */ + public Builder setUrl(String url) { + this.url = url; + return this; + } + + /** Required. The URL of the webhook endpoint. */ + public Builder setUrl(EmptyParam url) { + this.url = url; + return this; + } + } + } + + public enum Include implements ApiRequestParams.EnumParam { + @SerializedName("webhook_endpoint.url") + WEBHOOK_ENDPOINT__URL("webhook_endpoint.url"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Include(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/param/v2/core/EventListParams.java b/src/main/java/com/stripe/param/v2/core/EventListParams.java index 46aa46a383b..a5c9f901bd4 100644 --- a/src/main/java/com/stripe/param/v2/core/EventListParams.java +++ b/src/main/java/com/stripe/param/v2/core/EventListParams.java @@ -26,7 +26,7 @@ public class EventListParams extends ApiRequestParams { @SerializedName("object_id") String objectId; - /** The requested page number. */ + /** The requested page. */ @SerializedName("page") String page; @@ -94,7 +94,7 @@ public Builder setObjectId(String objectId) { return this; } - /** The requested page number. */ + /** The requested page. */ public Builder setPage(String page) { this.page = page; return this; diff --git a/src/main/java/com/stripe/service/AccountLoginLinkService.java b/src/main/java/com/stripe/service/AccountLoginLinkService.java index 2b1d2bfe693..eea8e580341 100644 --- a/src/main/java/com/stripe/service/AccountLoginLinkService.java +++ b/src/main/java/com/stripe/service/AccountLoginLinkService.java @@ -18,7 +18,7 @@ public AccountLoginLinkService(StripeResponseGetter responseGetter) { } /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to @@ -29,7 +29,7 @@ public LoginLink create(String account, AccountLoginLinkCreateParams params) return create(account, params, (RequestOptions) null); } /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to @@ -39,7 +39,7 @@ public LoginLink create(String account, RequestOptions options) throws StripeExc return create(account, (AccountLoginLinkCreateParams) null, options); } /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to @@ -49,7 +49,7 @@ public LoginLink create(String account) throws StripeException { return create(account, (AccountLoginLinkCreateParams) null, (RequestOptions) null); } /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * *

You can only create login links for accounts that use the Express Dashboard and are connected to diff --git a/src/main/java/com/stripe/service/TokenService.java b/src/main/java/com/stripe/service/TokenService.java index 0639c2d94c1..05a72fe8ada 100644 --- a/src/main/java/com/stripe/service/TokenService.java +++ b/src/main/java/com/stripe/service/TokenService.java @@ -45,8 +45,8 @@ public Token retrieve(String token, TokenRetrieveParams params, RequestOptions o } /** * Creates a single-use token that represents a bank account’s details. You can use this token - * with any API method in place of a bank account dictionary. You can only use this token once. To - * do so, attach it to a connected account + * with any v1 API method in place of a bank account dictionary. You can only use this token once. + * To do so, attach it to a connected account * where controller.requirement_collection * is {@code application}, which includes Custom accounts. @@ -56,8 +56,8 @@ public Token create(TokenCreateParams params) throws StripeException { } /** * Creates a single-use token that represents a bank account’s details. You can use this token - * with any API method in place of a bank account dictionary. You can only use this token once. To - * do so, attach it to a connected account + * with any v1 API method in place of a bank account dictionary. You can only use this token once. + * To do so, attach it to a connected account * where controller.requirement_collection * is {@code application}, which includes Custom accounts. @@ -67,8 +67,8 @@ public Token create(RequestOptions options) throws StripeException { } /** * Creates a single-use token that represents a bank account’s details. You can use this token - * with any API method in place of a bank account dictionary. You can only use this token once. To - * do so, attach it to a connected account + * with any v1 API method in place of a bank account dictionary. You can only use this token once. + * To do so, attach it to a connected account * where controller.requirement_collection * is {@code application}, which includes Custom accounts. @@ -78,8 +78,8 @@ public Token create() throws StripeException { } /** * Creates a single-use token that represents a bank account’s details. You can use this token - * with any API method in place of a bank account dictionary. You can only use this token once. To - * do so, attach it to a connected account + * with any v1 API method in place of a bank account dictionary. You can only use this token once. + * To do so, attach it to a connected account * where controller.requirement_collection * is {@code application}, which includes Custom accounts. diff --git a/src/main/java/com/stripe/service/testhelpers/issuing/CardService.java b/src/main/java/com/stripe/service/testhelpers/issuing/CardService.java index f60a1da6fe4..1f9149c0c76 100644 --- a/src/main/java/com/stripe/service/testhelpers/issuing/CardService.java +++ b/src/main/java/com/stripe/service/testhelpers/issuing/CardService.java @@ -14,6 +14,7 @@ import com.stripe.param.issuing.CardFailCardParams; import com.stripe.param.issuing.CardReturnCardParams; import com.stripe.param.issuing.CardShipCardParams; +import com.stripe.param.issuing.CardSubmitCardParams; public final class CardService extends ApiService { public CardService(StripeResponseGetter responseGetter) { @@ -160,4 +161,43 @@ public Card shipCard(String card, CardShipCardParams params, RequestOptions opti options); return this.request(request, Card.class); } + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code submitted}. + * This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard(String card, CardSubmitCardParams params) throws StripeException { + return submitCard(card, params, (RequestOptions) null); + } + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code submitted}. + * This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard(String card, RequestOptions options) throws StripeException { + return submitCard(card, (CardSubmitCardParams) null, options); + } + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code submitted}. + * This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard(String card) throws StripeException { + return submitCard(card, (CardSubmitCardParams) null, (RequestOptions) null); + } + /** + * Updates the shipping status of the specified Issuing {@code Card} object to {@code submitted}. + * This method requires Stripe Version ‘2024-09-30.acacia’ or later. + */ + public Card submitCard(String card, CardSubmitCardParams params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/cards/%s/shipping/submit", ApiResource.urlEncodeId(card)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, Card.class); + } } diff --git a/src/main/java/com/stripe/service/v2/CoreService.java b/src/main/java/com/stripe/service/v2/CoreService.java index 313e025c51c..773df5e38ee 100644 --- a/src/main/java/com/stripe/service/v2/CoreService.java +++ b/src/main/java/com/stripe/service/v2/CoreService.java @@ -9,6 +9,10 @@ public CoreService(StripeResponseGetter responseGetter) { super(responseGetter); } + public com.stripe.service.v2.core.EventDestinationService eventDestinations() { + return new com.stripe.service.v2.core.EventDestinationService(this.getResponseGetter()); + } + public com.stripe.service.v2.core.EventService events() { return new com.stripe.service.v2.core.EventService(this.getResponseGetter()); } diff --git a/src/main/java/com/stripe/service/v2/core/EventDestinationService.java b/src/main/java/com/stripe/service/v2/core/EventDestinationService.java new file mode 100644 index 00000000000..fd421f81a09 --- /dev/null +++ b/src/main/java/com/stripe/service/v2/core/EventDestinationService.java @@ -0,0 +1,169 @@ +// File generated from our OpenAPI spec +package com.stripe.service.v2.core; + +import com.google.gson.reflect.TypeToken; +import com.stripe.exception.StripeException; +import com.stripe.model.v2.Event; +import com.stripe.model.v2.EventDestination; +import com.stripe.model.v2.StripeCollection; +import com.stripe.net.ApiRequest; +import com.stripe.net.ApiRequestParams; +import com.stripe.net.ApiResource; +import com.stripe.net.ApiService; +import com.stripe.net.BaseAddress; +import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; +import com.stripe.param.v2.core.EventDestinationCreateParams; +import com.stripe.param.v2.core.EventDestinationListParams; +import com.stripe.param.v2.core.EventDestinationRetrieveParams; +import com.stripe.param.v2.core.EventDestinationUpdateParams; + +public final class EventDestinationService extends ApiService { + public EventDestinationService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** Create a new event destination. */ + public EventDestination create(EventDestinationCreateParams params) throws StripeException { + return create(params, (RequestOptions) null); + } + /** Create a new event destination. */ + public EventDestination create(EventDestinationCreateParams params, RequestOptions options) + throws StripeException { + String path = "/v2/core/event_destinations"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, EventDestination.class); + } + /** Delete an event destination. */ + public EventDestination delete(String id) throws StripeException { + return delete(id, (RequestOptions) null); + } + /** Delete an event destination. */ + public EventDestination delete(String id, RequestOptions options) throws StripeException { + String path = String.format("/v2/core/event_destinations/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.DELETE, path, null, options); + return this.request(request, EventDestination.class); + } + /** Disable an event destination. */ + public EventDestination disable(String id) throws StripeException { + return disable(id, (RequestOptions) null); + } + /** Disable an event destination. */ + public EventDestination disable(String id, RequestOptions options) throws StripeException { + String path = + String.format("/v2/core/event_destinations/%s/disable", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, null, options); + return this.request(request, EventDestination.class); + } + /** Enable an event destination. */ + public EventDestination enable(String id) throws StripeException { + return enable(id, (RequestOptions) null); + } + /** Enable an event destination. */ + public EventDestination enable(String id, RequestOptions options) throws StripeException { + String path = + String.format("/v2/core/event_destinations/%s/enable", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, null, options); + return this.request(request, EventDestination.class); + } + /** Lists all event destinations. */ + public StripeCollection list(EventDestinationListParams params) + throws StripeException { + return list(params, (RequestOptions) null); + } + /** Lists all event destinations. */ + public StripeCollection list(RequestOptions options) throws StripeException { + return list((EventDestinationListParams) null, options); + } + /** Lists all event destinations. */ + public StripeCollection list() throws StripeException { + return list((EventDestinationListParams) null, (RequestOptions) null); + } + /** Lists all event destinations. */ + public StripeCollection list( + EventDestinationListParams params, RequestOptions options) throws StripeException { + String path = "/v2/core/event_destinations"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, new TypeToken>() {}.getType()); + } + /** Send a {@code ping} event to an event destination. */ + public Event ping(String id) throws StripeException { + return ping(id, (RequestOptions) null); + } + /** Send a {@code ping} event to an event destination. */ + public Event ping(String id, RequestOptions options) throws StripeException { + String path = String.format("/v2/core/event_destinations/%s/ping", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, null, options); + return this.request(request, Event.class); + } + /** Retrieves the details of an event destination. */ + public EventDestination retrieve(String id, EventDestinationRetrieveParams params) + throws StripeException { + return retrieve(id, params, (RequestOptions) null); + } + /** Retrieves the details of an event destination. */ + public EventDestination retrieve(String id, RequestOptions options) throws StripeException { + return retrieve(id, (EventDestinationRetrieveParams) null, options); + } + /** Retrieves the details of an event destination. */ + public EventDestination retrieve(String id) throws StripeException { + return retrieve(id, (EventDestinationRetrieveParams) null, (RequestOptions) null); + } + /** Retrieves the details of an event destination. */ + public EventDestination retrieve( + String id, EventDestinationRetrieveParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v2/core/event_destinations/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, EventDestination.class); + } + /** Update the details of an event destination. */ + public EventDestination update(String id, EventDestinationUpdateParams params) + throws StripeException { + return update(id, params, (RequestOptions) null); + } + /** Update the details of an event destination. */ + public EventDestination update(String id, RequestOptions options) throws StripeException { + return update(id, (EventDestinationUpdateParams) null, options); + } + /** Update the details of an event destination. */ + public EventDestination update(String id) throws StripeException { + return update(id, (EventDestinationUpdateParams) null, (RequestOptions) null); + } + /** Update the details of an event destination. */ + public EventDestination update( + String id, EventDestinationUpdateParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v2/core/event_destinations/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, EventDestination.class); + } +}