diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c626f7dd819..7ab08411da8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1319 \ No newline at end of file +v1347 \ 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 631e13a482b..d00fa011271 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-10-28.acacia"; + public static final String CURRENT = "2024-11-20.acacia"; } diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 01322ffc7ce..8dddcf4d8f8 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1778,7 +1778,16 @@ public static class FutureRequirements extends StripeObject { @SerializedName("currently_due") List currentlyDue; - /** This is typed as a string for consistency with {@code requirements.disabled_reason}. */ + /** + * This is typed as an enum for consistency with {@code requirements.disabled_reason}. + * + *

One of {@code action_required.requested_capabilities}, {@code listed}, {@code other}, + * {@code platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, + * {@code rejected.listed}, {@code rejected.other}, {@code rejected.platform_fraud}, {@code + * rejected.platform_other}, {@code rejected.platform_terms_of_service}, {@code + * rejected.terms_of_service}, {@code requirements.past_due}, {@code + * requirements.pending_verification}, or {@code under_review}. + */ @SerializedName("disabled_reason") String disabledReason; @@ -1970,13 +1979,16 @@ public static class Requirements extends StripeObject { List currentlyDue; /** - * If the account is disabled, this string describes why. Learn more about handling - * verification issues. Can be {@code action_required.requested_capabilities}, {@code - * requirements.past_due}, {@code requirements.pending_verification}, {@code listed}, {@code - * platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, {@code - * rejected.listed}, {@code rejected.other}, {@code rejected.terms_of_service}, {@code - * under_review}, or {@code other}. + * verification issues. + * + *

One of {@code action_required.requested_capabilities}, {@code listed}, {@code other}, + * {@code platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, + * {@code rejected.listed}, {@code rejected.other}, {@code rejected.platform_fraud}, {@code + * rejected.platform_other}, {@code rejected.platform_terms_of_service}, {@code + * rejected.terms_of_service}, {@code requirements.past_due}, {@code + * requirements.pending_verification}, or {@code under_review}. */ @SerializedName("disabled_reason") String disabledReason; diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 3ba6cd29506..f1b1022543e 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1675,7 +1675,8 @@ public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; @@ -1779,7 +1780,8 @@ public static class Card extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("network") String network; @@ -2218,7 +2220,8 @@ public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; @@ -2330,7 +2333,8 @@ public static class CardPresent extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("network") String network; @@ -2792,7 +2796,8 @@ public static class InteracPresent extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("network") String network; diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index 7be185f94ae..7e0e1add208 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -610,7 +610,8 @@ public static class Boleto extends StripeObject { public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; @@ -807,7 +808,8 @@ public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or + * {@code unknown}. */ @SerializedName("brand") String brand; @@ -920,8 +922,8 @@ public static class CardPresent extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * interac}, {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * interac}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code + * visa}, or {@code unknown}. */ @SerializedName("network") String network; @@ -1277,7 +1279,8 @@ public static class VisaCheckout extends StripeObject { public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index 790d5a5a542..e8c6c92ebd8 100644 --- a/src/main/java/com/stripe/model/Dispute.java +++ b/src/main/java/com/stripe/model/Dispute.java @@ -1113,7 +1113,8 @@ public static class AmazonPay extends StripeObject { public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/File.java b/src/main/java/com/stripe/model/File.java index b5c52b45e57..09ba4022a2b 100644 --- a/src/main/java/com/stripe/model/File.java +++ b/src/main/java/com/stripe/model/File.java @@ -67,10 +67,11 @@ public class File extends ApiResource implements HasId { * *

One of {@code account_requirement}, {@code additional_verification}, {@code business_icon}, * {@code business_logo}, {@code customer_signature}, {@code dispute_evidence}, {@code - * document_provider_identity_document}, {@code finance_report_run}, {@code identity_document}, - * {@code identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code - * pci_document}, {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, - * or {@code terminal_reader_splashscreen}. + * document_provider_identity_document}, {@code finance_report_run}, {@code + * financial_account_statement}, {@code identity_document}, {@code + * identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document}, + * {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code + * terminal_reader_splashscreen}. */ @SerializedName("purpose") String purpose; diff --git a/src/main/java/com/stripe/model/FundingInstructions.java b/src/main/java/com/stripe/model/FundingInstructions.java index 67ab75417e5..17db7de5395 100644 --- a/src/main/java/com/stripe/model/FundingInstructions.java +++ b/src/main/java/com/stripe/model/FundingInstructions.java @@ -124,10 +124,24 @@ public static class FinancialAddress extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Aba extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + + /** The account holder name. */ + @SerializedName("account_holder_name") + String accountHolderName; + /** The ABA account number. */ @SerializedName("account_number") String accountNumber; + /** The account type. */ + @SerializedName("account_type") + String accountType; + + @SerializedName("bank_address") + Address bankAddress; + /** The bank name. */ @SerializedName("bank_name") String bankName; @@ -203,10 +217,24 @@ public static class Spei extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Swift extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + + /** The account holder name. */ + @SerializedName("account_holder_name") + String accountHolderName; + /** The account number. */ @SerializedName("account_number") String accountNumber; + /** The account type. */ + @SerializedName("account_type") + String accountType; + + @SerializedName("bank_address") + Address bankAddress; + /** The bank name. */ @SerializedName("bank_name") String bankName; diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 27856c2d8bd..060f1051f50 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -2267,14 +2267,15 @@ public static class CustomerTaxId extends StripeObject { * {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, - * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, - * {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code 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}, {@code tz_vat}, {@code - * uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or {@code unknown}. + * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code li_vat}, + * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code + * 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}, {@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; diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index 289a78e82e7..06493408af6 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -251,7 +251,11 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

paymentMethod; - /** Information about the payment method configuration used for this PaymentIntent. */ + /** + * Information about the payment method + * configuration used for this PaymentIntent. + */ @SerializedName("payment_method_configuration_details") PaymentMethodConfigurationDetails paymentMethodConfigurationDetails; @@ -1822,10 +1826,24 @@ public static class FinancialAddress extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Aba extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + + /** The account holder name. */ + @SerializedName("account_holder_name") + String accountHolderName; + /** The ABA account number. */ @SerializedName("account_number") String accountNumber; + /** The account type. */ + @SerializedName("account_type") + String accountType; + + @SerializedName("bank_address") + Address bankAddress; + /** The bank name. */ @SerializedName("bank_name") String bankName; @@ -1901,10 +1919,24 @@ public static class Spei extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Swift extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + + /** The account holder name. */ + @SerializedName("account_holder_name") + String accountHolderName; + /** The account number. */ @SerializedName("account_number") String accountNumber; + /** The account type. */ + @SerializedName("account_type") + String accountType; + + @SerializedName("bank_address") + Address bankAddress; + /** The bank name. */ @SerializedName("bank_name") String bankName; diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java index 8a3a23026a3..077ad74fb35 100644 --- a/src/main/java/com/stripe/model/PaymentLink.java +++ b/src/main/java/com/stripe/model/PaymentLink.java @@ -202,7 +202,7 @@ public class PaymentLink extends ApiResource implements HasId, MetadataStoreOne of {@code auto}, {@code book}, {@code donate}, or {@code pay}. + *

One of {@code auto}, {@code book}, {@code donate}, {@code pay}, or {@code subscribe}. */ @SerializedName("submit_type") String submitType; diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index 76a741d2485..7be4badbe15 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -843,7 +843,7 @@ public static class Boleto extends StripeObject { public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. */ @SerializedName("brand") String brand; @@ -1039,7 +1039,8 @@ public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or + * {@code unknown}. */ @SerializedName("brand") String brand; @@ -1151,8 +1152,8 @@ public static class CardPresent extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * interac}, {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * interac}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code + * visa}, or {@code unknown}. */ @SerializedName("network") String network; @@ -1503,7 +1504,7 @@ public static class VisaCheckout extends StripeObject { public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/Payout.java b/src/main/java/com/stripe/model/Payout.java index 19f3590ca05..3bc8183df69 100644 --- a/src/main/java/com/stripe/model/Payout.java +++ b/src/main/java/com/stripe/model/Payout.java @@ -203,6 +203,13 @@ public class Payout extends ApiResource implements MetadataStore, Balanc @SerializedName("status") String status; + /** + * A value that generates from the beneficiary's bank that allows users to track payouts with + * their bank. Banks might call this a "reference number" or something similar. + */ + @SerializedName("trace_id") + TraceId traceId; + /** Can be {@code bank_account} or {@code card}. */ @SerializedName("type") String type; @@ -696,6 +703,32 @@ public Payout update(PayoutUpdateParams params, RequestOptions options) throws S return getResponseGetter().request(request, Payout.class); } + /** + * For more details about TraceId, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class TraceId extends StripeObject { + /** + * Possible values are {@code pending}, {@code supported}, and {@code unsupported}. When {@code + * payout.status} is {@code pending} or {@code in_transit}, this will be {@code pending}. When + * the payout transitions to {@code paid}, {@code failed}, or {@code canceled}, this status will + * become {@code supported} or {@code unsupported} shortly after in most cases. In some cases, + * this may appear as {@code pending} for up to 10 days after {@code arrival_date} until + * transitioning to {@code supported} or {@code unsupported}. + */ + @SerializedName("status") + String status; + + /** + * The trace ID value if {@code trace_id.status} is {@code supported}, otherwise {@code nil}. + */ + @SerializedName("value") + String value; + } + @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); @@ -705,5 +738,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(failureBalanceTransaction, responseGetter); trySetResponseGetter(originalPayout, responseGetter); trySetResponseGetter(reversedBy, responseGetter); + trySetResponseGetter(traceId, responseGetter); } } diff --git a/src/main/java/com/stripe/model/Person.java b/src/main/java/com/stripe/model/Person.java index 371b5bb096b..2101b84409e 100644 --- a/src/main/java/com/stripe/model/Person.java +++ b/src/main/java/com/stripe/model/Person.java @@ -584,6 +584,10 @@ public static class Errors extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Relationship extends StripeObject { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets diff --git a/src/main/java/com/stripe/model/Refund.java b/src/main/java/com/stripe/model/Refund.java index 4435944a0f2..88884b59a5a 100644 --- a/src/main/java/com/stripe/model/Refund.java +++ b/src/main/java/com/stripe/model/Refund.java @@ -746,6 +746,13 @@ public static class AuBankTransfer extends StripeObject {} @Setter @EqualsAndHashCode(callSuper = false) public static class Blik extends StripeObject { + /** + * For refunds declined by the network, a decline code provided by the network which indicates + * the reason the refund failed. + */ + @SerializedName("network_decline_code") + String networkDeclineCode; + /** The reference assigned to the refund. */ @SerializedName("reference") String reference; @@ -1037,6 +1044,13 @@ public static class Sofort extends StripeObject {} @Setter @EqualsAndHashCode(callSuper = false) public static class Swish extends StripeObject { + /** + * For refunds declined by the network, a decline code provided by the network which indicates + * the reason the refund failed. + */ + @SerializedName("network_decline_code") + String networkDeclineCode; + /** The reference assigned to the refund. */ @SerializedName("reference") String reference; diff --git a/src/main/java/com/stripe/model/SetupAttempt.java b/src/main/java/com/stripe/model/SetupAttempt.java index 91e7c0504c1..245eef779f9 100644 --- a/src/main/java/com/stripe/model/SetupAttempt.java +++ b/src/main/java/com/stripe/model/SetupAttempt.java @@ -485,7 +485,8 @@ public static class Boleto extends StripeObject {} public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; @@ -556,7 +557,8 @@ public static class Card extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("network") String network; diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java index b6b0301514c..1272118c232 100644 --- a/src/main/java/com/stripe/model/SetupIntent.java +++ b/src/main/java/com/stripe/model/SetupIntent.java @@ -193,7 +193,11 @@ public class SetupIntent extends ApiResource implements HasId, MetadataStore paymentMethod; - /** Information about the payment method configuration used for this Setup Intent. */ + /** + * Information about the payment method + * configuration used for this Setup Intent. + */ @SerializedName("payment_method_configuration_details") PaymentMethodConfigurationDetails paymentMethodConfigurationDetails; diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index 40d8991bc6f..4a71991e985 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -266,7 +266,8 @@ public class Subscription extends ApiResource implements HasId, MetadataStorepausing collection. + * about pausing + * collection. */ @SerializedName("pause_collection") PauseCollection pauseCollection; @@ -332,12 +333,12 @@ public class Subscription extends ApiResource implements HasId, MetadataStoreA subscription can only enter a {@code paused} status when + * href="https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment">when * a trial ends without a payment method. A {@code paused} subscription doesn't generate * invoices and can be resumed after your customer adds their payment method. The {@code paused} * status is different from pausing collection, which - * still generates invoices and leaves the subscription's status unchanged. + * href="https://stripe.com/docs/billing/subscriptions/pause-payment">pausing collection, + * which still generates invoices and leaves the subscription's status unchanged. * *

If subscription {@code collection_method=charge_automatically}, it becomes {@code past_due} * when payment is required but cannot be paid (due to failed payment or awaiting additional user @@ -1070,7 +1071,7 @@ public static SubscriptionSearchResult search( * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -1123,7 +1124,7 @@ public Subscription update(Map params) throws StripeException { * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -1180,7 +1181,7 @@ public Subscription update(Map params, RequestOptions options) * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -1232,7 +1233,7 @@ public Subscription update(SubscriptionUpdateParams params) throws StripeExcepti * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code diff --git a/src/main/java/com/stripe/model/TaxId.java b/src/main/java/com/stripe/model/TaxId.java index 8ae108c649a..d53166ff8c7 100644 --- a/src/main/java/com/stripe/model/TaxId.java +++ b/src/main/java/com/stripe/model/TaxId.java @@ -81,13 +81,13 @@ public class TaxId extends ApiResource implements HasId { * {@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} + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@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") String type; diff --git a/src/main/java/com/stripe/model/TaxRate.java b/src/main/java/com/stripe/model/TaxRate.java index 2e2f6797c35..84195dd5852 100644 --- a/src/main/java/com/stripe/model/TaxRate.java +++ b/src/main/java/com/stripe/model/TaxRate.java @@ -160,7 +160,7 @@ 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 retail_delivery_fee}, - * {@code rst}, {@code sales_tax}, or {@code vat}. + * {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/model/billing/CreditGrant.java b/src/main/java/com/stripe/model/billing/CreditGrant.java index 64563a07182..091662a63a4 100644 --- a/src/main/java/com/stripe/model/billing/CreditGrant.java +++ b/src/main/java/com/stripe/model/billing/CreditGrant.java @@ -32,7 +32,7 @@ * *

Related guide: Billing - * credits end + * credits */ @Getter @Setter @@ -45,8 +45,8 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStoreOne of {@code paid}, or {@code promotional}. */ @@ -57,20 +57,17 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStore customer; - /** The time when the billing credits become effective i.e when they are eligible to be used. */ + /** The time when the billing credits become effective—when they're eligible for use. */ @SerializedName("effective_at") Long effectiveAt; - /** - * The time when the billing credits will expire. If not present, the billing credits will never - * expire. - */ + /** The time when the billing credits expire. If not present, the billing credits don't expire. */ @SerializedName("expires_at") Long expiresAt; @@ -454,7 +451,7 @@ public static class ApplicabilityConfig extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Scope extends StripeObject { /** - * The price type to which credit grants can apply to. We currently only support {@code + * The price type for which credit grants can apply. We currently only support the {@code * metered} price type. This refers to prices that have a Billing Meter attached to them. * diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 1747e2e5db5..f28a95d9cea 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -58,6 +58,13 @@ @Setter @EqualsAndHashCode(callSuper = false) public class Session extends ApiResource implements HasId, MetadataStore { + /** + * Settings for price localization with Adaptive Pricing. + */ + @SerializedName("adaptive_pricing") + AdaptivePricing adaptivePricing; + /** When set, provides configuration for actions to take if this Checkout Session expires. */ @SerializedName("after_expiration") AfterExpiration afterExpiration; @@ -371,7 +378,7 @@ public class Session extends ApiResource implements HasId, MetadataStoreOne of {@code auto}, {@code book}, {@code donate}, or {@code pay}. + *

One of {@code auto}, {@code book}, {@code donate}, {@code pay}, or {@code subscribe}. */ @SerializedName("submit_type") String submitType; @@ -795,6 +802,19 @@ public Session update(SessionUpdateParams params, RequestOptions options) throws return getResponseGetter().request(request, Session.class); } + /** + * For more details about AdaptivePricing, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AdaptivePricing extends StripeObject { + /** Whether Adaptive Pricing is enabled. */ + @SerializedName("enabled") + Boolean enabled; + } + /** * For more details about AfterExpiration, please refer to the API Reference. @@ -1320,14 +1340,14 @@ public static class TaxId extends StripeObject { * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, - * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code - * 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}, {@code - * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or - * {@code unknown}. + * {@code li_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, + * {@code sg_gst}, {@code 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}, {@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; @@ -1920,6 +1940,9 @@ public static class AuBecsDebit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class BacsDebit extends StripeObject { + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1943,6 +1966,15 @@ 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 {} } /** @@ -2030,6 +2062,43 @@ public static class Card extends StripeObject { @SerializedName("installments") Installments installments; + /** + * Request ability to capture + * beyond the standard authorization validity window for this CheckoutSession. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_extended_authorization") + String requestExtendedAuthorization; + + /** + * Request ability to increment the + * authorization for this CheckoutSession. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_incremental_authorization") + String requestIncrementalAuthorization; + + /** + * Request ability to make multiple + * captures for this CheckoutSession. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_multicapture") + String requestMulticapture; + + /** + * Request ability to overcapture for + * this CheckoutSession. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_overcapture") + String requestOvercapture; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MandateOptions extends StripeObject {} } /** @@ -3412,6 +3493,7 @@ public static class Tax extends StripeObject { @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); + trySetResponseGetter(adaptivePricing, responseGetter); trySetResponseGetter(afterExpiration, responseGetter); trySetResponseGetter(automaticTax, responseGetter); trySetResponseGetter(consent, responseGetter); diff --git a/src/main/java/com/stripe/model/identity/VerificationReport.java b/src/main/java/com/stripe/model/identity/VerificationReport.java index ebc14e94857..ee0fef5d21a 100644 --- a/src/main/java/com/stripe/model/identity/VerificationReport.java +++ b/src/main/java/com/stripe/model/identity/VerificationReport.java @@ -102,7 +102,7 @@ public class VerificationReport extends ApiResource implements HasId { @SerializedName("type") String type; - /** The configuration token of a Verification Flow from the dashboard. */ + /** The configuration token of a verification flow from the dashboard. */ @SerializedName("verification_flow") String verificationFlow; diff --git a/src/main/java/com/stripe/model/identity/VerificationSession.java b/src/main/java/com/stripe/model/identity/VerificationSession.java index 54c1da3c2d7..cd26557bff8 100644 --- a/src/main/java/com/stripe/model/identity/VerificationSession.java +++ b/src/main/java/com/stripe/model/identity/VerificationSession.java @@ -162,7 +162,7 @@ public class VerificationSession extends ApiResource @SerializedName("url") String url; - /** The configuration token of a Verification Flow from the dashboard. */ + /** The configuration token of a verification flow from the dashboard. */ @SerializedName("verification_flow") String verificationFlow; diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java index 8c9da51055c..05b589e57ff 100644 --- a/src/main/java/com/stripe/model/issuing/Authorization.java +++ b/src/main/java/com/stripe/model/issuing/Authorization.java @@ -22,6 +22,7 @@ import com.stripe.param.issuing.AuthorizationFinalizeAmountParams; import com.stripe.param.issuing.AuthorizationIncrementParams; import com.stripe.param.issuing.AuthorizationListParams; +import com.stripe.param.issuing.AuthorizationRespondParams; import com.stripe.param.issuing.AuthorizationRetrieveParams; import com.stripe.param.issuing.AuthorizationReverseParams; import com.stripe.param.issuing.AuthorizationUpdateParams; @@ -80,8 +81,8 @@ public class Authorization extends ApiResource List balanceTransactions; /** - * You can create physical or virtual cards - * that are issued to cardholders. + * You can create physical or virtual cards that are + * issued to cardholders. */ @SerializedName("card") Card card; @@ -109,6 +110,13 @@ public class Authorization extends ApiResource @SerializedName("fleet") Fleet fleet; + /** + * Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk + * reasons. + */ + @SerializedName("fraud_challenges") + List fraudChallenges; + /** * Information about fuel that was purchased with this transaction. Typically this information is * received from the merchant after the authorization has been approved and the fuel dispensed. @@ -224,6 +232,13 @@ public class Authorization extends ApiResource @SerializedName("verification_data") VerificationData verificationData; + /** + * Whether the authorization bypassed fraud risk checks because the cardholder has previously + * completed a fraud challenge on a similar high-risk authorization from the same merchant. + */ + @SerializedName("verified_by_fraud_challenge") + Boolean verifiedByFraudChallenge; + /** * The digital wallet used for this transaction. One of {@code apple_pay}, {@code google_pay}, or * {@code samsung_pay}. Will populate as {@code null} when no digital wallet was utilized. @@ -770,6 +785,40 @@ public static class Tax extends StripeObject { } } + /** + * For more details about FraudChallenge, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FraudChallenge extends StripeObject { + /** + * The method by which the fraud challenge was delivered to the cardholder. + * + *

Equal to {@code sms}. + */ + @SerializedName("channel") + String channel; + + /** + * The status of the fraud challenge. + * + *

One of {@code expired}, {@code pending}, {@code rejected}, {@code undeliverable}, or + * {@code verified}. + */ + @SerializedName("status") + String status; + + /** + * If the challenge is not deliverable, the reason why. + * + *

One of {@code no_phone_number}, or {@code unsupported_phone_number}. + */ + @SerializedName("undeliverable_reason") + String undeliverableReason; + } + /** * For more details about Fuel, please refer to the API * Reference. @@ -1434,6 +1483,58 @@ public Authorization finalizeAmount( return resource.getResponseGetter().request(request, Authorization.class); } + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(Map params) throws StripeException { + return respond(params, (RequestOptions) null); + } + + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(Map params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", + ApiResource.urlEncodeId(this.resource.getId())); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); + return resource.getResponseGetter().request(request, Authorization.class); + } + + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(AuthorizationRespondParams params) throws StripeException { + return respond(params, (RequestOptions) null); + } + + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(AuthorizationRespondParams params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", + 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, Authorization.class); + } + /** Increment a test-mode Authorization. */ public Authorization increment(Map params) throws StripeException { return increment(params, (RequestOptions) null); diff --git a/src/main/java/com/stripe/model/issuing/Card.java b/src/main/java/com/stripe/model/issuing/Card.java index 1a0a8afac24..979aff4b95e 100644 --- a/src/main/java/com/stripe/model/issuing/Card.java +++ b/src/main/java/com/stripe/model/issuing/Card.java @@ -30,8 +30,8 @@ import lombok.Setter; /** - * You can create physical or virtual cards that - * are issued to cardholders. + * You can create physical or virtual cards that are + * issued to cardholders. */ @Getter @Setter @@ -53,7 +53,8 @@ public class Card extends ApiResource implements HasId, MetadataStore { * An Issuing {@code Cardholder} object represents an individual or business entity who is issued cards. * - *

Related guide: How to + *

Related guide: How to * create a cardholder */ @SerializedName("cardholder") diff --git a/src/main/java/com/stripe/model/issuing/Cardholder.java b/src/main/java/com/stripe/model/issuing/Cardholder.java index 42a75396962..3e0b8556aab 100644 --- a/src/main/java/com/stripe/model/issuing/Cardholder.java +++ b/src/main/java/com/stripe/model/issuing/Cardholder.java @@ -29,7 +29,8 @@ * An Issuing {@code Cardholder} object represents an individual or business entity who is issued cards. * - *

Related guide: How to create + *

Related guide: How to create * a cardholder */ @Getter diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java index 5fadc7b6d33..916eaf99ba6 100644 --- a/src/main/java/com/stripe/model/tax/Calculation.java +++ b/src/main/java/com/stripe/model/tax/Calculation.java @@ -327,14 +327,14 @@ public static class TaxId extends StripeObject { * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, - * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code - * 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}, {@code - * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or - * {@code unknown}. + * {@code li_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, + * {@code sg_gst}, {@code 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}, {@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; @@ -562,7 +562,8 @@ public static class TaxRateDetails extends StripeObject { * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code - * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code + * vat}. */ @SerializedName("tax_type") String taxType; @@ -658,7 +659,7 @@ public static class TaxRateDetails extends StripeObject { * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code - * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/model/tax/CalculationLineItem.java b/src/main/java/com/stripe/model/tax/CalculationLineItem.java index 0d231fcacab..041f16d431a 100644 --- a/src/main/java/com/stripe/model/tax/CalculationLineItem.java +++ b/src/main/java/com/stripe/model/tax/CalculationLineItem.java @@ -199,7 +199,7 @@ public static class TaxRateDetails extends StripeObject { * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code - * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java index 3cf65286ee9..cbb0832d0c2 100644 --- a/src/main/java/com/stripe/model/tax/Transaction.java +++ b/src/main/java/com/stripe/model/tax/Transaction.java @@ -372,14 +372,14 @@ public static class TaxId extends StripeObject { * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, - * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code - * 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}, {@code - * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or - * {@code unknown}. + * {@code li_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, + * {@code sg_gst}, {@code 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}, {@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; @@ -623,7 +623,8 @@ public static class TaxRateDetails extends StripeObject { * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code - * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code + * vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/param/AccountPersonCreateParams.java b/src/main/java/com/stripe/param/AccountPersonCreateParams.java index cb47088e7bc..e937acbd681 100644 --- a/src/main/java/com/stripe/param/AccountPersonCreateParams.java +++ b/src/main/java/com/stripe/param/AccountPersonCreateParams.java @@ -1977,6 +1977,10 @@ public Builder setState(String state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets @@ -2028,6 +2032,7 @@ public static class Relationship { String title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -2036,6 +2041,7 @@ private Relationship( Object percentOwnership, Boolean representative, String title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -2051,6 +2057,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -2070,6 +2078,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountPersonCreateParams.Relationship build() { return new AccountPersonCreateParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -2080,6 +2089,12 @@ public AccountPersonCreateParams.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/AccountPersonListParams.java b/src/main/java/com/stripe/param/AccountPersonListParams.java index 6f2d0344f57..ea897c16060 100644 --- a/src/main/java/com/stripe/param/AccountPersonListParams.java +++ b/src/main/java/com/stripe/param/AccountPersonListParams.java @@ -194,6 +194,13 @@ public Builder setStartingAfter(String startingAfter) { @Getter public static class Relationship { + /** + * A filter on the list of people returned based on whether these people are authorizers of the + * account's representative. + */ + @SerializedName("authorizer") + Boolean authorizer; + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. @@ -239,12 +246,14 @@ public static class Relationship { Boolean representative; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, Boolean legalGuardian, Boolean owner, Boolean representative) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -258,6 +267,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -273,6 +284,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountPersonListParams.Relationship build() { return new AccountPersonListParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -281,6 +293,15 @@ public AccountPersonListParams.Relationship build() { this.representative); } + /** + * A filter on the list of people returned based on whether these people are authorizers of + * the account's representative. + */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. diff --git a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java index d60e41f4ac8..bab641a2155 100644 --- a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java @@ -2272,6 +2272,10 @@ public Builder setState(EmptyParam state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets @@ -2323,6 +2327,7 @@ public static class Relationship { Object title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -2331,6 +2336,7 @@ private Relationship( Object percentOwnership, Boolean representative, Object title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -2346,6 +2352,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -2365,6 +2373,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountPersonUpdateParams.Relationship build() { return new AccountPersonUpdateParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -2375,6 +2384,12 @@ public AccountPersonUpdateParams.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/AccountPersonsParams.java b/src/main/java/com/stripe/param/AccountPersonsParams.java index 054e8347ad5..4752eeb169b 100644 --- a/src/main/java/com/stripe/param/AccountPersonsParams.java +++ b/src/main/java/com/stripe/param/AccountPersonsParams.java @@ -194,6 +194,13 @@ public Builder setStartingAfter(String startingAfter) { @Getter public static class Relationship { + /** + * A filter on the list of people returned based on whether these people are authorizers of the + * account's representative. + */ + @SerializedName("authorizer") + Boolean authorizer; + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. @@ -239,12 +246,14 @@ public static class Relationship { Boolean representative; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, Boolean legalGuardian, Boolean owner, Boolean representative) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -258,6 +267,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -273,6 +284,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountPersonsParams.Relationship build() { return new AccountPersonsParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -281,6 +293,15 @@ public AccountPersonsParams.Relationship build() { this.representative); } + /** + * A filter on the list of people returned based on whether these people are authorizers of + * the account's representative. + */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java index 7c6f21300d5..7f09c119bc9 100644 --- a/src/main/java/com/stripe/param/CustomerCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateParams.java @@ -1689,13 +1689,13 @@ public static class TaxIdData { * 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} + * {@code li_vat}, {@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; @@ -1762,13 +1762,13 @@ public Builder putAllExtraParam(Map map) { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -1921,6 +1921,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java index c96f11f9110..dbc72bfabe0 100644 --- a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java @@ -33,13 +33,13 @@ public class CustomerTaxIdCreateParams extends ApiRequestParams { * 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} + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -136,13 +136,13 @@ public Builder putAllExtraParam(Map map) { * 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} + * {@code li_vat}, {@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; @@ -295,6 +295,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/FileLinkCreateParams.java b/src/main/java/com/stripe/param/FileLinkCreateParams.java index 8af6e55221b..45e0137c875 100644 --- a/src/main/java/com/stripe/param/FileLinkCreateParams.java +++ b/src/main/java/com/stripe/param/FileLinkCreateParams.java @@ -32,9 +32,9 @@ public class FileLinkCreateParams extends ApiRequestParams { /** * Required. The ID of the file. The file's {@code purpose} must be one of the * following: {@code business_icon}, {@code business_logo}, {@code customer_signature}, {@code - * dispute_evidence}, {@code finance_report_run}, {@code identity_document_downloadable}, {@code - * issuing_regulatory_reporting}, {@code pci_document}, {@code selfie}, {@code - * sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code + * dispute_evidence}, {@code finance_report_run}, {@code financial_account_statement}, {@code + * identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document}, + * {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code * terminal_reader_splashscreen}. */ @SerializedName("file") @@ -144,9 +144,9 @@ public Builder putAllExtraParam(Map map) { /** * Required. The ID of the file. The file's {@code purpose} must be one of the * following: {@code business_icon}, {@code business_logo}, {@code customer_signature}, {@code - * dispute_evidence}, {@code finance_report_run}, {@code identity_document_downloadable}, {@code - * issuing_regulatory_reporting}, {@code pci_document}, {@code selfie}, {@code - * sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code + * dispute_evidence}, {@code finance_report_run}, {@code financial_account_statement}, {@code + * identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document}, + * {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code * terminal_reader_splashscreen}. */ public Builder setFile(String file) { diff --git a/src/main/java/com/stripe/param/FileListParams.java b/src/main/java/com/stripe/param/FileListParams.java index 6f2a04b4d53..f0414bc75f6 100644 --- a/src/main/java/com/stripe/param/FileListParams.java +++ b/src/main/java/com/stripe/param/FileListParams.java @@ -345,6 +345,9 @@ public enum Purpose implements ApiRequestParams.EnumParam { @SerializedName("finance_report_run") FINANCE_REPORT_RUN("finance_report_run"), + @SerializedName("financial_account_statement") + FINANCIAL_ACCOUNT_STATEMENT("financial_account_statement"), + @SerializedName("identity_document") IDENTITY_DOCUMENT("identity_document"), diff --git a/src/main/java/com/stripe/param/InvoiceAddLinesParams.java b/src/main/java/com/stripe/param/InvoiceAddLinesParams.java index 8a4a50006f9..b50a01042fc 100644 --- a/src/main/java/com/stripe/param/InvoiceAddLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceAddLinesParams.java @@ -1665,6 +1665,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index 3845bd338f1..edfa2218e62 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -1364,13 +1364,13 @@ public static class TaxId { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -1440,13 +1440,13 @@ public Builder putAllExtraParam(Map map) { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -1599,6 +1599,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java b/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java index 2f29a61fa7f..4e2b62eff3f 100644 --- a/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java +++ b/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java @@ -1613,6 +1613,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java index 47005100b28..f9819ba92ab 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java @@ -1856,13 +1856,13 @@ public static class TaxId { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -1932,13 +1932,13 @@ public Builder putAllExtraParam(Map map) { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -2091,6 +2091,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java index c2fdce3648d..77da275f068 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java @@ -1848,13 +1848,13 @@ public static class TaxId { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -1924,13 +1924,13 @@ public Builder putAllExtraParam(Map map) { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -2083,6 +2083,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index 2395d4b8aca..5659c84f109 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -1770,13 +1770,13 @@ public static class TaxId { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -1846,13 +1846,13 @@ public Builder putAllExtraParam(Map map) { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -2005,6 +2005,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java index 3165e698db5..554e287b15f 100644 --- a/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java @@ -1691,6 +1691,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 5c02d9dda8a..a519de9b02f 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -11311,6 +11311,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index b21a3d0a76c..7477332327c 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -182,7 +182,10 @@ public class PaymentIntentCreateParams extends ApiRequestParams { @SerializedName("payment_method") String paymentMethod; - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ @SerializedName("payment_method_configuration") String paymentMethodConfiguration; @@ -201,9 +204,8 @@ public class PaymentIntentCreateParams extends ApiRequestParams { /** * The list of payment method types (for example, a card) that this PaymentIntent can use. If you - * don't provide this, it defaults to ["card"]. Use {@code automatic_payment_methods} to - * manage payment methods from the Stripe Dashboard. + * don't provide this, Stripe will dynamically show relevant payment methods from your payment method settings. */ @SerializedName("payment_method_types") List paymentMethodTypes; @@ -769,7 +771,10 @@ public Builder setPaymentMethod(String paymentMethod) { return this; } - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ public Builder setPaymentMethodConfiguration(String paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; @@ -11814,6 +11819,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index f301ca65eb2..c347babe145 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -97,7 +97,10 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { @SerializedName("payment_method") Object paymentMethod; - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ @SerializedName("payment_method_configuration") Object paymentMethodConfiguration; @@ -554,13 +557,19 @@ public Builder setPaymentMethod(EmptyParam paymentMethod) { return this; } - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ public Builder setPaymentMethodConfiguration(String paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; } - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ public Builder setPaymentMethodConfiguration(EmptyParam paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; @@ -11385,6 +11394,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index 90a0ffb3ad7..78e83b42c2a 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -4015,8 +4015,7 @@ public Builder setLimit(Long limit) { public static class ShippingAddressCollection { /** * Required. An array of two-letter ISO country codes representing which - * countries Checkout should provide as options for shipping locations. Unsupported country - * codes: {@code AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI}. + * countries Checkout should provide as options for shipping locations. */ @SerializedName("allowed_countries") List allowedCountries; @@ -5799,7 +5798,10 @@ public enum SubmitType implements ApiRequestParams.EnumParam { DONATE("donate"), @SerializedName("pay") - PAY("pay"); + PAY("pay"), + + @SerializedName("subscribe") + SUBSCRIBE("subscribe"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index 478eaecd0bf..31a19f3614d 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -131,6 +131,15 @@ public class PaymentLinkUpdateParams extends ApiRequestParams { @SerializedName("shipping_address_collection") Object shippingAddressCollection; + /** + * Describes the type of transaction being performed in order to customize relevant text on the + * page, such as the submit button. Changing this value will also affect the hostname in the url property + * (example: {@code donate.stripe.com}). + */ + @SerializedName("submit_type") + SubmitType submitType; + /** * When creating a subscription, the specified configuration data will be used. There must be at * least one line item with a recurring price to use {@code subscription_data}. @@ -162,6 +171,7 @@ private PaymentLinkUpdateParams( Object paymentMethodTypes, Object restrictions, Object shippingAddressCollection, + SubmitType submitType, SubscriptionData subscriptionData, TaxIdCollection taxIdCollection) { this.active = active; @@ -183,6 +193,7 @@ private PaymentLinkUpdateParams( this.paymentMethodTypes = paymentMethodTypes; this.restrictions = restrictions; this.shippingAddressCollection = shippingAddressCollection; + this.submitType = submitType; this.subscriptionData = subscriptionData; this.taxIdCollection = taxIdCollection; } @@ -230,6 +241,8 @@ public static class Builder { private Object shippingAddressCollection; + private SubmitType submitType; + private SubscriptionData subscriptionData; private TaxIdCollection taxIdCollection; @@ -256,6 +269,7 @@ public PaymentLinkUpdateParams build() { this.paymentMethodTypes, this.restrictions, this.shippingAddressCollection, + this.submitType, this.subscriptionData, this.taxIdCollection); } @@ -580,6 +594,17 @@ public Builder setShippingAddressCollection(EmptyParam shippingAddressCollection return this; } + /** + * Describes the type of transaction being performed in order to customize relevant text on the + * page, such as the submit button. Changing this value will also affect the hostname in the url property + * (example: {@code donate.stripe.com}). + */ + public Builder setSubmitType(PaymentLinkUpdateParams.SubmitType submitType) { + this.submitType = submitType; + return this; + } + /** * When creating a subscription, the specified configuration data will be used. There must be at * least one line item with a recurring price to use {@code subscription_data}. @@ -3633,8 +3658,7 @@ public Builder setLimit(Long limit) { public static class ShippingAddressCollection { /** * Required. An array of two-letter ISO country codes representing which - * countries Checkout should provide as options for shipping locations. Unsupported country - * codes: {@code AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI}. + * countries Checkout should provide as options for shipping locations. */ @SerializedName("allowed_countries") List allowedCountries; @@ -5236,4 +5260,28 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { this.value = value; } } + + public enum SubmitType implements ApiRequestParams.EnumParam { + @SerializedName("auto") + AUTO("auto"), + + @SerializedName("book") + BOOK("book"), + + @SerializedName("donate") + DONATE("donate"), + + @SerializedName("pay") + PAY("pay"), + + @SerializedName("subscribe") + SUBSCRIBE("subscribe"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SubmitType(String value) { + this.value = value; + } + } } diff --git a/src/main/java/com/stripe/param/PersonCollectionCreateParams.java b/src/main/java/com/stripe/param/PersonCollectionCreateParams.java index e27a2902c37..c056d733e01 100644 --- a/src/main/java/com/stripe/param/PersonCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/PersonCollectionCreateParams.java @@ -1982,6 +1982,10 @@ public Builder setState(String state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets @@ -2033,6 +2037,7 @@ public static class Relationship { String title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -2041,6 +2046,7 @@ private Relationship( Object percentOwnership, Boolean representative, String title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -2056,6 +2062,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -2075,6 +2083,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonCollectionCreateParams.Relationship build() { return new PersonCollectionCreateParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -2085,6 +2094,12 @@ public PersonCollectionCreateParams.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/PersonCollectionListParams.java b/src/main/java/com/stripe/param/PersonCollectionListParams.java index 96bf4194057..7f16eead33f 100644 --- a/src/main/java/com/stripe/param/PersonCollectionListParams.java +++ b/src/main/java/com/stripe/param/PersonCollectionListParams.java @@ -194,6 +194,13 @@ public Builder setStartingAfter(String startingAfter) { @Getter public static class Relationship { + /** + * A filter on the list of people returned based on whether these people are authorizers of the + * account's representative. + */ + @SerializedName("authorizer") + Boolean authorizer; + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. @@ -239,12 +246,14 @@ public static class Relationship { Boolean representative; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, Boolean legalGuardian, Boolean owner, Boolean representative) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -258,6 +267,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -273,6 +284,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonCollectionListParams.Relationship build() { return new PersonCollectionListParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -281,6 +293,15 @@ public PersonCollectionListParams.Relationship build() { this.representative); } + /** + * A filter on the list of people returned based on whether these people are authorizers of + * the account's representative. + */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. diff --git a/src/main/java/com/stripe/param/PersonUpdateParams.java b/src/main/java/com/stripe/param/PersonUpdateParams.java index f5a6ef6f15a..dc4ed3975da 100644 --- a/src/main/java/com/stripe/param/PersonUpdateParams.java +++ b/src/main/java/com/stripe/param/PersonUpdateParams.java @@ -2265,6 +2265,10 @@ public Builder setState(EmptyParam state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets @@ -2316,6 +2320,7 @@ public static class Relationship { Object title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -2324,6 +2329,7 @@ private Relationship( Object percentOwnership, Boolean representative, Object title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -2339,6 +2345,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -2358,6 +2366,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonUpdateParams.Relationship build() { return new PersonUpdateParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -2368,6 +2377,12 @@ public PersonUpdateParams.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index 96aff01fc18..2b2f85f524a 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -7442,6 +7442,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 1233e5f8e3d..ad9151e22ce 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -111,7 +111,10 @@ public class SetupIntentCreateParams extends ApiRequestParams { @SerializedName("payment_method") String paymentMethod; - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ @SerializedName("payment_method_configuration") String paymentMethodConfiguration; @@ -129,7 +132,8 @@ public class SetupIntentCreateParams extends ApiRequestParams { /** * The list of payment method types (for example, card) that this SetupIntent can use. If you - * don't provide this, it defaults to ["card"]. + * don't provide this, Stripe will dynamically show relevant payment methods from your payment method settings. */ @SerializedName("payment_method_types") List paymentMethodTypes; @@ -486,7 +490,10 @@ public Builder setPaymentMethod(String paymentMethod) { return this; } - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ public Builder setPaymentMethodConfiguration(String paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; @@ -7896,6 +7903,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index 6210a333a91..2b89aa41f9c 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -75,7 +75,10 @@ public class SetupIntentUpdateParams extends ApiRequestParams { @SerializedName("payment_method") Object paymentMethod; - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ @SerializedName("payment_method_configuration") Object paymentMethodConfiguration; @@ -93,7 +96,8 @@ public class SetupIntentUpdateParams extends ApiRequestParams { /** * The list of payment method types (for example, card) that this SetupIntent can set up. If you - * don't provide this array, it defaults to ["card"]. + * don't provide this, Stripe will dynamically show relevant payment methods from your payment method settings. */ @SerializedName("payment_method_types") List paymentMethodTypes; @@ -367,13 +371,19 @@ public Builder setPaymentMethod(EmptyParam paymentMethod) { return this; } - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ public Builder setPaymentMethodConfiguration(String paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; } - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ public Builder setPaymentMethodConfiguration(EmptyParam paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; @@ -7441,6 +7451,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index dbe9e2dc954..367991e8a04 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -4248,6 +4248,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index b81e61b8e1e..c953b8f3a52 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -189,7 +189,8 @@ public class SubscriptionUpdateParams extends ApiRequestParams { /** * If specified, payment collection for this subscription will be paused. Note that the * subscription status will be unchanged and will not be updated to {@code paused}. Learn more - * about pausing collection. + * about pausing + * collection. */ @SerializedName("pause_collection") Object pauseCollection; @@ -977,7 +978,7 @@ public Builder setOnBehalfOf(EmptyParam onBehalfOf) { /** * If specified, payment collection for this subscription will be paused. Note that the * subscription status will be unchanged and will not be updated to {@code paused}. Learn more - * about pausing + * about pausing * collection. */ public Builder setPauseCollection(SubscriptionUpdateParams.PauseCollection pauseCollection) { @@ -988,7 +989,7 @@ public Builder setPauseCollection(SubscriptionUpdateParams.PauseCollection pause /** * If specified, payment collection for this subscription will be paused. Note that the * subscription status will be unchanged and will not be updated to {@code paused}. Learn more - * about pausing + * about pausing * collection. */ public Builder setPauseCollection(EmptyParam pauseCollection) { @@ -4641,6 +4642,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java index 467044f224f..24b2317f61d 100644 --- a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java @@ -33,13 +33,13 @@ public class TaxIdCollectionCreateParams extends ApiRequestParams { * 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} + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -136,13 +136,13 @@ public Builder putAllExtraParam(Map map) { * 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} + * {@code li_vat}, {@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; @@ -295,6 +295,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/TaxIdCreateParams.java b/src/main/java/com/stripe/param/TaxIdCreateParams.java index e8c04d77f6a..6a7dea021d0 100644 --- a/src/main/java/com/stripe/param/TaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCreateParams.java @@ -37,13 +37,13 @@ public class TaxIdCreateParams extends ApiRequestParams { * 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} + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -150,13 +150,13 @@ public Builder setOwner(TaxIdCreateParams.Owner owner) { * 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} + * {@code li_vat}, {@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; @@ -425,6 +425,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/TaxRateCreateParams.java b/src/main/java/com/stripe/param/TaxRateCreateParams.java index 6dfde76285c..a3df1a13942 100644 --- a/src/main/java/com/stripe/param/TaxRateCreateParams.java +++ b/src/main/java/com/stripe/param/TaxRateCreateParams.java @@ -347,6 +347,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/TaxRateUpdateParams.java b/src/main/java/com/stripe/param/TaxRateUpdateParams.java index 3ad5c153a02..7e24c42954b 100644 --- a/src/main/java/com/stripe/param/TaxRateUpdateParams.java +++ b/src/main/java/com/stripe/param/TaxRateUpdateParams.java @@ -381,6 +381,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/TokenCreateParams.java b/src/main/java/com/stripe/param/TokenCreateParams.java index 16b974ec1f4..a7ca783a21a 100644 --- a/src/main/java/com/stripe/param/TokenCreateParams.java +++ b/src/main/java/com/stripe/param/TokenCreateParams.java @@ -6097,6 +6097,10 @@ public Builder setState(String state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company @@ -6148,6 +6152,7 @@ public static class Relationship { String title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -6156,6 +6161,7 @@ private Relationship( Object percentOwnership, Boolean representative, String title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -6171,6 +6177,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -6190,6 +6198,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public TokenCreateParams.Person.Relationship build() { return new TokenCreateParams.Person.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -6200,6 +6209,12 @@ public TokenCreateParams.Person.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index 312d0edffea..0580d57feca 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -592,7 +592,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam { VERSION_2024_09_30_ACACIA("2024-09-30.acacia"), @SerializedName("2024-10-28.acacia") - VERSION_2024_10_28_ACACIA("2024-10-28.acacia"); + VERSION_2024_10_28_ACACIA("2024-10-28.acacia"), + + @SerializedName("2024-11-20.acacia") + VERSION_2024_11_20_ACACIA("2024-11-20.acacia"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java index a56cf342eb3..90edb084feb 100644 --- a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java +++ b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java @@ -236,8 +236,8 @@ public static class ApplicabilityScope { Map extraParams; /** - * Required. The price type to which credit grants can apply to. We currently - * only support {@code metered} price type. + * Required. The price type for which credit grants can apply. We currently + * only support the {@code metered} price type. */ @SerializedName("price_type") PriceType priceType; @@ -291,8 +291,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The price type to which credit grants can apply to. We - * currently only support {@code metered} price type. + * Required. The price type for which credit grants can apply. We currently + * only support the {@code metered} price type. */ public Builder setPriceType( CreditBalanceSummaryRetrieveParams.Filter.ApplicabilityScope.PriceType priceType) { diff --git a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java index 2efeb965b30..a00472e10e3 100644 --- a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java +++ b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java @@ -23,15 +23,13 @@ public class CreditGrantCreateParams extends ApiRequestParams { @SerializedName("category") Category category; - /** - * Required. ID of the customer to whom the billing credits should be granted. - */ + /** Required. ID of the customer to receive the billing credits. */ @SerializedName("customer") String customer; /** - * 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. + * The time when the billing credits become effective—when they're eligible for use. Defaults to + * the current timestamp if not specified. */ @SerializedName("effective_at") Long effectiveAt; @@ -41,7 +39,7 @@ public class CreditGrantCreateParams extends ApiRequestParams { List expand; /** - * The time when the billing credits will expire. If not specified, the billing credits will never + * The time when the billing credits will expire. If not specified, the billing credits don't * expire. */ @SerializedName("expires_at") @@ -58,12 +56,12 @@ public class CreditGrantCreateParams extends ApiRequestParams { /** * Set of key-value pairs that you can attach to an object. This can be useful for storing - * additional information about the object (ex: cost basis) in a structured format. + * additional information about the object (for example, cost basis) in a structured format. */ @SerializedName("metadata") Map metadata; - /** A descriptive name shown in dashboard. */ + /** A descriptive name shown in the Dashboard. */ @SerializedName("name") String name; @@ -149,17 +147,15 @@ public Builder setCategory(CreditGrantCreateParams.Category category) { return this; } - /** - * Required. ID of the customer to whom the billing credits should be granted. - */ + /** Required. ID of the customer to receive the billing credits. */ public Builder setCustomer(String customer) { this.customer = customer; return this; } /** - * 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. + * The time when the billing credits become effective—when they're eligible for use. Defaults to + * the current timestamp if not specified. */ public Builder setEffectiveAt(Long effectiveAt) { this.effectiveAt = effectiveAt; @@ -193,8 +189,8 @@ public Builder addAllExpand(List elements) { } /** - * The time when the billing credits will expire. If not specified, the billing credits will - * never expire. + * The time when the billing credits will expire. If not specified, the billing credits don't + * expire. */ public Builder setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; @@ -253,7 +249,7 @@ public Builder putAllMetadata(Map map) { return this; } - /** A descriptive name shown in dashboard. */ + /** A descriptive name shown in the Dashboard. */ public Builder setName(String name) { this.name = name; return this; @@ -534,8 +530,8 @@ public static class Scope { Map extraParams; /** - * Required. The price type to which credit grants can apply to. We currently - * only support {@code metered} price type. + * Required. The price type for which credit grants can apply. We currently + * only support the {@code metered} price type. */ @SerializedName("price_type") PriceType priceType; @@ -589,8 +585,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The price type to which credit grants can apply to. We - * currently only support {@code metered} price type. + * Required. The price type for which credit grants can apply. We currently + * only support the {@code metered} price type. */ public Builder setPriceType( CreditGrantCreateParams.ApplicabilityConfig.Scope.PriceType priceType) { diff --git a/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java index a4a2020e00c..cde992e155d 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 billing credits created by this credit grant will expire. If set to empty, - * the billing credits will never expire. + * The time when the billing credits created by this credit grant expire. If set to empty, the + * billing credits never expire. */ @SerializedName("expires_at") Object expiresAt; @@ -33,8 +33,8 @@ public class CreditGrantUpdateParams extends ApiRequestParams { 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 (ex: cost basis) in a structured format. + * Set of key-value pairs you can attach to an object. This can be useful for storing additional + * information about the object (for example, cost basis) in a structured format. */ @SerializedName("metadata") Map metadata; @@ -96,8 +96,8 @@ public Builder addAllExpand(List elements) { } /** - * The time when the billing credits created by this credit grant will expire. If set to empty, - * the billing credits will never expire. + * The time when the billing credits created by this credit grant expire. If set to empty, the + * billing credits never expire. */ public Builder setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; @@ -105,8 +105,8 @@ public Builder setExpiresAt(Long expiresAt) { } /** - * The time when the billing credits created by this credit grant will expire. If set to empty, - * the billing credits will never expire. + * The time when the billing credits created by this credit grant expire. If set to empty, the + * billing credits never expire. */ public Builder setExpiresAt(EmptyParam expiresAt) { this.expiresAt = expiresAt; diff --git a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java index 11b7b1a2f92..be342f300fe 100644 --- a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java +++ b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java @@ -32,8 +32,11 @@ public class MeterEventCreateParams extends ApiRequestParams { Map extraParams; /** - * A unique identifier for the event. If not provided, one will be generated. We recommend using a - * globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period. + * A unique identifier for the event. If not provided, one will be generated. We strongly advise + * using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 + * hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries + * or other problems occurring within extremely brief time intervals. This approach helps prevent + * duplicate entries and ensures data integrity in high-frequency operations. */ @SerializedName("identifier") String identifier; @@ -159,9 +162,11 @@ public Builder putAllExtraParam(Map map) { } /** - * A unique identifier for the event. If not provided, one will be generated. We recommend using - * a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour - * period. + * A unique identifier for the event. If not provided, one will be generated. We strongly advise + * using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least + * 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental + * retries or other problems occurring within extremely brief time intervals. This approach + * helps prevent duplicate entries and ensures data integrity in high-frequency operations. */ public Builder setIdentifier(String identifier) { this.identifier = identifier; diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 59de3fb2a51..e5d713ef794 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -13,6 +13,13 @@ @Getter public class SessionCreateParams extends ApiRequestParams { + /** + * Settings for price localization with Adaptive Pricing. + */ + @SerializedName("adaptive_pricing") + AdaptivePricing adaptivePricing; + /** Configure actions after a Checkout Session has expired. */ @SerializedName("after_expiration") AfterExpiration afterExpiration; @@ -342,6 +349,7 @@ public class SessionCreateParams extends ApiRequestParams { UiMode uiMode; private SessionCreateParams( + AdaptivePricing adaptivePricing, AfterExpiration afterExpiration, Boolean allowPromotionCodes, AutomaticTax automaticTax, @@ -383,6 +391,7 @@ private SessionCreateParams( String successUrl, TaxIdCollection taxIdCollection, UiMode uiMode) { + this.adaptivePricing = adaptivePricing; this.afterExpiration = afterExpiration; this.allowPromotionCodes = allowPromotionCodes; this.automaticTax = automaticTax; @@ -431,6 +440,8 @@ public static Builder builder() { } public static class Builder { + private AdaptivePricing adaptivePricing; + private AfterExpiration afterExpiration; private Boolean allowPromotionCodes; @@ -516,6 +527,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams build() { return new SessionCreateParams( + this.adaptivePricing, this.afterExpiration, this.allowPromotionCodes, this.automaticTax, @@ -559,6 +571,15 @@ public SessionCreateParams build() { this.uiMode); } + /** + * Settings for price localization with Adaptive Pricing. + */ + public Builder setAdaptivePricing(SessionCreateParams.AdaptivePricing adaptivePricing) { + this.adaptivePricing = adaptivePricing; + return this; + } + /** Configure actions after a Checkout Session has expired. */ public Builder setAfterExpiration(SessionCreateParams.AfterExpiration afterExpiration) { this.afterExpiration = afterExpiration; @@ -1097,6 +1118,84 @@ public Builder setUiMode(SessionCreateParams.UiMode uiMode) { } } + @Getter + public static class AdaptivePricing { + /** + * Set to {@code true} to enable Adaptive Pricing. + * Defaults to your dashboard + * setting. + */ + @SerializedName("enabled") + Boolean enabled; + + /** + * 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 AdaptivePricing(Boolean enabled, Map extraParams) { + this.enabled = enabled; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean enabled; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SessionCreateParams.AdaptivePricing build() { + return new SessionCreateParams.AdaptivePricing(this.enabled, this.extraParams); + } + + /** + * Set to {@code true} to enable Adaptive Pricing. + * Defaults to your dashboard + * setting. + */ + public Builder setEnabled(Boolean enabled) { + this.enabled = enabled; + 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 + * SessionCreateParams.AdaptivePricing#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.AdaptivePricing#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 AfterExpiration { /** @@ -5676,7 +5775,7 @@ public static class PaymentMethodOptions { @SerializedName("multibanco") Multibanco multibanco; - /** contains details about the Kakao Pay payment method options. */ + /** contains details about the Naver Pay payment method options. */ @SerializedName("naver_pay") NaverPay naverPay; @@ -6114,7 +6213,7 @@ public Builder setMultibanco(SessionCreateParams.PaymentMethodOptions.Multibanco return this; } - /** contains details about the Kakao Pay payment method options. */ + /** contains details about the Naver Pay payment method options. */ public Builder setNaverPay(SessionCreateParams.PaymentMethodOptions.NaverPay naverPay) { this.naverPay = naverPay; return this; @@ -7289,6 +7388,10 @@ public static class BacsDebit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -7311,8 +7414,12 @@ public static class BacsDebit { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private BacsDebit(Map extraParams, SetupFutureUsage setupFutureUsage) { + private BacsDebit( + Map extraParams, + MandateOptions mandateOptions, + SetupFutureUsage setupFutureUsage) { this.extraParams = extraParams; + this.mandateOptions = mandateOptions; this.setupFutureUsage = setupFutureUsage; } @@ -7323,12 +7430,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private MandateOptions mandateOptions; + private SetupFutureUsage setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.BacsDebit build() { return new SessionCreateParams.PaymentMethodOptions.BacsDebit( - this.extraParams, this.setupFutureUsage); + this.extraParams, this.mandateOptions, this.setupFutureUsage); } /** @@ -7359,6 +7468,13 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -7386,6 +7502,67 @@ public Builder setSetupFutureUsage( } } + @Getter + public static class MandateOptions { + /** + * 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 MandateOptions(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.BacsDebit.MandateOptions build() { + return new SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( + 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.BacsDebit.MandateOptions#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.BacsDebit.MandateOptions#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"), @@ -7692,6 +7869,35 @@ public static class Card { @SerializedName("installments") Installments installments; + /** + * Request ability to capture + * beyond the standard authorization validity window for this CheckoutSession. + */ + @SerializedName("request_extended_authorization") + RequestExtendedAuthorization requestExtendedAuthorization; + + /** + * Request ability to increment the + * authorization for this CheckoutSession. + */ + @SerializedName("request_incremental_authorization") + RequestIncrementalAuthorization requestIncrementalAuthorization; + + /** + * Request ability to make multiple + * captures for this CheckoutSession. + */ + @SerializedName("request_multicapture") + RequestMulticapture requestMulticapture; + + /** + * Request ability to overcapture for + * this CheckoutSession. + */ + @SerializedName("request_overcapture") + RequestOvercapture requestOvercapture; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and extraParams, Installments installments, + RequestExtendedAuthorization requestExtendedAuthorization, + RequestIncrementalAuthorization requestIncrementalAuthorization, + RequestMulticapture requestMulticapture, + RequestOvercapture requestOvercapture, RequestThreeDSecure requestThreeDSecure, SetupFutureUsage setupFutureUsage, String statementDescriptorSuffixKana, String statementDescriptorSuffixKanji) { this.extraParams = extraParams; this.installments = installments; + this.requestExtendedAuthorization = requestExtendedAuthorization; + this.requestIncrementalAuthorization = requestIncrementalAuthorization; + this.requestMulticapture = requestMulticapture; + this.requestOvercapture = requestOvercapture; this.requestThreeDSecure = requestThreeDSecure; this.setupFutureUsage = setupFutureUsage; this.statementDescriptorSuffixKana = statementDescriptorSuffixKana; @@ -7772,6 +7986,14 @@ public static class Builder { private Installments installments; + private RequestExtendedAuthorization requestExtendedAuthorization; + + private RequestIncrementalAuthorization requestIncrementalAuthorization; + + private RequestMulticapture requestMulticapture; + + private RequestOvercapture requestOvercapture; + private RequestThreeDSecure requestThreeDSecure; private SetupFutureUsage setupFutureUsage; @@ -7785,6 +8007,10 @@ public SessionCreateParams.PaymentMethodOptions.Card build() { return new SessionCreateParams.PaymentMethodOptions.Card( this.extraParams, this.installments, + this.requestExtendedAuthorization, + this.requestIncrementalAuthorization, + this.requestMulticapture, + this.requestOvercapture, this.requestThreeDSecure, this.setupFutureUsage, this.statementDescriptorSuffixKana, @@ -7826,6 +8052,49 @@ public Builder setInstallments( return this; } + /** + * Request ability to capture + * beyond the standard authorization validity window for this CheckoutSession. + */ + public Builder setRequestExtendedAuthorization( + SessionCreateParams.PaymentMethodOptions.Card.RequestExtendedAuthorization + requestExtendedAuthorization) { + this.requestExtendedAuthorization = requestExtendedAuthorization; + return this; + } + + /** + * Request ability to increment the + * authorization for this CheckoutSession. + */ + public Builder setRequestIncrementalAuthorization( + SessionCreateParams.PaymentMethodOptions.Card.RequestIncrementalAuthorization + requestIncrementalAuthorization) { + this.requestIncrementalAuthorization = requestIncrementalAuthorization; + return this; + } + + /** + * Request ability to make multiple + * captures for this CheckoutSession. + */ + public Builder setRequestMulticapture( + SessionCreateParams.PaymentMethodOptions.Card.RequestMulticapture requestMulticapture) { + this.requestMulticapture = requestMulticapture; + return this; + } + + /** + * Request ability to overcapture for + * this CheckoutSession. + */ + public Builder setRequestOvercapture( + SessionCreateParams.PaymentMethodOptions.Card.RequestOvercapture requestOvercapture) { + this.requestOvercapture = requestOvercapture; + return this; + } + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and map) { } } + public enum RequestExtendedAuthorization implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestExtendedAuthorization(String value) { + this.value = value; + } + } + + public enum RequestIncrementalAuthorization implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestIncrementalAuthorization(String value) { + this.value = value; + } + } + + public enum RequestMulticapture implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestMulticapture(String value) { + this.value = value; + } + } + + public enum RequestOvercapture implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestOvercapture(String value) { + this.value = value; + } + } + public enum RequestThreeDSecure implements ApiRequestParams.EnumParam { @SerializedName("any") ANY("any"), @@ -9215,6 +9544,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class KakaoPay { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod 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. @@ -9246,7 +9579,11 @@ public static class KakaoPay { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private KakaoPay(Map extraParams, SetupFutureUsage setupFutureUsage) { + private KakaoPay( + CaptureMethod captureMethod, + Map extraParams, + SetupFutureUsage setupFutureUsage) { + this.captureMethod = captureMethod; this.extraParams = extraParams; this.setupFutureUsage = setupFutureUsage; } @@ -9256,6 +9593,8 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; private SetupFutureUsage setupFutureUsage; @@ -9263,7 +9602,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.KakaoPay build() { return new SessionCreateParams.PaymentMethodOptions.KakaoPay( - this.extraParams, this.setupFutureUsage); + this.captureMethod, this.extraParams, this.setupFutureUsage); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.KakaoPay.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -9321,6 +9667,18 @@ public Builder setSetupFutureUsage( } } + 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"), @@ -9607,6 +9965,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class KrCard { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod 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. @@ -9638,7 +10000,11 @@ public static class KrCard { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private KrCard(Map extraParams, SetupFutureUsage setupFutureUsage) { + private KrCard( + CaptureMethod captureMethod, + Map extraParams, + SetupFutureUsage setupFutureUsage) { + this.captureMethod = captureMethod; this.extraParams = extraParams; this.setupFutureUsage = setupFutureUsage; } @@ -9648,6 +10014,8 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; private SetupFutureUsage setupFutureUsage; @@ -9655,7 +10023,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.KrCard build() { return new SessionCreateParams.PaymentMethodOptions.KrCard( - this.extraParams, this.setupFutureUsage); + this.captureMethod, this.extraParams, this.setupFutureUsage); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.KrCard.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -9713,6 +10088,18 @@ public Builder setSetupFutureUsage( } } + 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"), @@ -10097,6 +10484,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class NaverPay { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod 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. @@ -10128,7 +10519,11 @@ public static class NaverPay { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private NaverPay(Map extraParams, SetupFutureUsage setupFutureUsage) { + private NaverPay( + CaptureMethod captureMethod, + Map extraParams, + SetupFutureUsage setupFutureUsage) { + this.captureMethod = captureMethod; this.extraParams = extraParams; this.setupFutureUsage = setupFutureUsage; } @@ -10138,6 +10533,8 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; private SetupFutureUsage setupFutureUsage; @@ -10145,7 +10542,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.NaverPay build() { return new SessionCreateParams.PaymentMethodOptions.NaverPay( - this.extraParams, this.setupFutureUsage); + this.captureMethod, this.extraParams, this.setupFutureUsage); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.NaverPay.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -10203,6 +10607,18 @@ public Builder setSetupFutureUsage( } } + 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"), @@ -10503,6 +10919,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class Payco { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod 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. @@ -10512,7 +10932,8 @@ public static class Payco { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Payco(Map extraParams) { + private Payco(CaptureMethod captureMethod, Map extraParams) { + this.captureMethod = captureMethod; this.extraParams = extraParams; } @@ -10521,11 +10942,21 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.Payco build() { - return new SessionCreateParams.PaymentMethodOptions.Payco(this.extraParams); + return new SessionCreateParams.PaymentMethodOptions.Payco( + this.captureMethod, this.extraParams); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.Payco.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -10556,6 +10987,18 @@ public Builder putAllExtraParam(Map 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 @@ -11214,6 +11657,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class SamsungPay { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod 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. @@ -11223,7 +11670,8 @@ public static class SamsungPay { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private SamsungPay(Map extraParams) { + private SamsungPay(CaptureMethod captureMethod, Map extraParams) { + this.captureMethod = captureMethod; this.extraParams = extraParams; } @@ -11232,11 +11680,21 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.SamsungPay build() { - return new SessionCreateParams.PaymentMethodOptions.SamsungPay(this.extraParams); + return new SessionCreateParams.PaymentMethodOptions.SamsungPay( + this.captureMethod, this.extraParams); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.SamsungPay.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -11267,6 +11725,18 @@ public Builder putAllExtraParam(Map 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 @@ -11280,6 +11750,10 @@ public static class SepaDebit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -11302,8 +11776,12 @@ public static class SepaDebit { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private SepaDebit(Map extraParams, SetupFutureUsage setupFutureUsage) { + private SepaDebit( + Map extraParams, + MandateOptions mandateOptions, + SetupFutureUsage setupFutureUsage) { this.extraParams = extraParams; + this.mandateOptions = mandateOptions; this.setupFutureUsage = setupFutureUsage; } @@ -11314,12 +11792,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private MandateOptions mandateOptions; + private SetupFutureUsage setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.SepaDebit build() { return new SessionCreateParams.PaymentMethodOptions.SepaDebit( - this.extraParams, this.setupFutureUsage); + this.extraParams, this.mandateOptions, this.setupFutureUsage); } /** @@ -11350,6 +11830,13 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -11377,6 +11864,67 @@ public Builder setSetupFutureUsage( } } + @Getter + public static class MandateOptions { + /** + * 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 MandateOptions(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.SepaDebit.MandateOptions build() { + return new SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions( + 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.SepaDebit.MandateOptions#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.SepaDebit.MandateOptions#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"), @@ -12502,8 +13050,7 @@ public Builder setOnBehalfOf(String onBehalfOf) { public static class ShippingAddressCollection { /** * Required. An array of two-letter ISO country codes representing which - * countries Checkout should provide as options for shipping locations. Unsupported country - * codes: {@code AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI}. + * countries Checkout should provide as options for shipping locations. */ @SerializedName("allowed_countries") List allowedCountries; @@ -15535,7 +16082,10 @@ public enum SubmitType implements ApiRequestParams.EnumParam { DONATE("donate"), @SerializedName("pay") - PAY("pay"); + PAY("pay"), + + @SerializedName("subscribe") + SUBSCRIBE("subscribe"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java index 9f47aecddbe..bf58632728a 100644 --- a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java +++ b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java @@ -66,7 +66,7 @@ public class VerificationSessionCreateParams extends ApiRequestParams { Type type; /** - * The ID of a Verification Flow from the Dashboard. See + * The ID of a verification flow from the Dashboard. See * https://docs.stripe.com/identity/verification-flows. */ @SerializedName("verification_flow") @@ -258,7 +258,7 @@ public Builder setType(VerificationSessionCreateParams.Type type) { } /** - * The ID of a Verification Flow from the Dashboard. See + * The ID of a verification flow from the Dashboard. See * https://docs.stripe.com/identity/verification-flows. */ public Builder setVerificationFlow(String verificationFlow) { diff --git a/src/main/java/com/stripe/param/issuing/AuthorizationCreateParams.java b/src/main/java/com/stripe/param/issuing/AuthorizationCreateParams.java index 703a3c79756..bcddaceb4b2 100644 --- a/src/main/java/com/stripe/param/issuing/AuthorizationCreateParams.java +++ b/src/main/java/com/stripe/param/issuing/AuthorizationCreateParams.java @@ -13,8 +13,8 @@ @Getter public class AuthorizationCreateParams extends ApiRequestParams { /** - * Required. The total amount to attempt to authorize. This amount is in the - * provided currency, or defaults to the card's currency, and in the smallest currency unit. */ @SerializedName("amount") @@ -72,6 +72,21 @@ public class AuthorizationCreateParams extends ApiRequestParams { @SerializedName("is_amount_controllable") Boolean isAmountControllable; + /** + * The total amount to attempt to authorize. This amount is in the provided merchant currency, and + * in the smallest currency unit. + */ + @SerializedName("merchant_amount") + Long merchantAmount; + + /** + * The currency of the authorization. If not provided, defaults to the currency of the card. + * Three-letter ISO currency code, + * in lowercase. Must be a supported currency. + */ + @SerializedName("merchant_currency") + String merchantCurrency; + /** * Details about the seller (grocery store, e-commerce website, etc.) where the card authorization * happened. @@ -108,6 +123,8 @@ private AuthorizationCreateParams( Fleet fleet, Fuel fuel, Boolean isAmountControllable, + Long merchantAmount, + String merchantCurrency, MerchantData merchantData, NetworkData networkData, VerificationData verificationData, @@ -122,6 +139,8 @@ private AuthorizationCreateParams( this.fleet = fleet; this.fuel = fuel; this.isAmountControllable = isAmountControllable; + this.merchantAmount = merchantAmount; + this.merchantCurrency = merchantCurrency; this.merchantData = merchantData; this.networkData = networkData; this.verificationData = verificationData; @@ -153,6 +172,10 @@ public static class Builder { private Boolean isAmountControllable; + private Long merchantAmount; + + private String merchantCurrency; + private MerchantData merchantData; private NetworkData networkData; @@ -174,6 +197,8 @@ public AuthorizationCreateParams build() { this.fleet, this.fuel, this.isAmountControllable, + this.merchantAmount, + this.merchantCurrency, this.merchantData, this.networkData, this.verificationData, @@ -181,8 +206,8 @@ public AuthorizationCreateParams build() { } /** - * Required. The total amount to attempt to authorize. This amount is in the - * provided currency, or defaults to the card's currency, and in the smallest currency unit. */ public Builder setAmount(Long amount) { @@ -298,6 +323,27 @@ public Builder setIsAmountControllable(Boolean isAmountControllable) { return this; } + /** + * The total amount to attempt to authorize. This amount is in the provided merchant currency, + * and in the smallest currency + * unit. + */ + public Builder setMerchantAmount(Long merchantAmount) { + this.merchantAmount = merchantAmount; + return this; + } + + /** + * The currency of the authorization. If not provided, defaults to the currency of the card. + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setMerchantCurrency(String merchantCurrency) { + this.merchantCurrency = merchantCurrency; + return this; + } + /** * Details about the seller (grocery store, e-commerce website, etc.) where the card * authorization happened. diff --git a/src/main/java/com/stripe/param/issuing/AuthorizationRespondParams.java b/src/main/java/com/stripe/param/issuing/AuthorizationRespondParams.java new file mode 100644 index 00000000000..18efce535ec --- /dev/null +++ b/src/main/java/com/stripe/param/issuing/AuthorizationRespondParams.java @@ -0,0 +1,118 @@ +// 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 AuthorizationRespondParams extends ApiRequestParams { + /** + * Required. Whether to simulate the user confirming that the transaction was + * legitimate (true) or telling Stripe that it was fraudulent (false). + */ + @SerializedName("confirmed") + Boolean confirmed; + + /** 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 AuthorizationRespondParams( + Boolean confirmed, List expand, Map extraParams) { + this.confirmed = confirmed; + this.expand = expand; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean confirmed; + + private List expand; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AuthorizationRespondParams build() { + return new AuthorizationRespondParams(this.confirmed, this.expand, this.extraParams); + } + + /** + * Required. Whether to simulate the user confirming that the transaction was + * legitimate (true) or telling Stripe that it was fraudulent (false). + */ + public Builder setConfirmed(Boolean confirmed) { + this.confirmed = confirmed; + return this; + } + + /** + * 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 + * AuthorizationRespondParams#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 + * AuthorizationRespondParams#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 + * AuthorizationRespondParams#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 AuthorizationRespondParams#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 a408d6ae5c3..5948d1f6023 100644 --- a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java +++ b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java @@ -634,13 +634,13 @@ public static class TaxId { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -710,13 +710,13 @@ public Builder putAllExtraParam(Map map) { * {@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} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@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; @@ -869,6 +869,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/service/SubscriptionService.java b/src/main/java/com/stripe/service/SubscriptionService.java index e716e23a4b7..e885a444c25 100644 --- a/src/main/java/com/stripe/service/SubscriptionService.java +++ b/src/main/java/com/stripe/service/SubscriptionService.java @@ -176,7 +176,7 @@ public Subscription retrieve( * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -228,7 +228,7 @@ public Subscription update(String subscriptionExposedId, SubscriptionUpdateParam * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -280,7 +280,7 @@ public Subscription update(String subscriptionExposedId, RequestOptions options) * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -331,7 +331,7 @@ public Subscription update(String subscriptionExposedId) throws StripeException * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code diff --git a/src/main/java/com/stripe/service/testhelpers/issuing/AuthorizationService.java b/src/main/java/com/stripe/service/testhelpers/issuing/AuthorizationService.java index db7bb9468d9..0fdf60f2b00 100644 --- a/src/main/java/com/stripe/service/testhelpers/issuing/AuthorizationService.java +++ b/src/main/java/com/stripe/service/testhelpers/issuing/AuthorizationService.java @@ -15,6 +15,7 @@ import com.stripe.param.issuing.AuthorizationExpireParams; import com.stripe.param.issuing.AuthorizationFinalizeAmountParams; import com.stripe.param.issuing.AuthorizationIncrementParams; +import com.stripe.param.issuing.AuthorizationRespondParams; import com.stripe.param.issuing.AuthorizationReverseParams; public final class AuthorizationService extends ApiService { @@ -128,6 +129,34 @@ public Authorization finalizeAmount( options); return this.request(request, Authorization.class); } + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(String authorization, AuthorizationRespondParams params) + throws StripeException { + return respond(authorization, params, (RequestOptions) null); + } + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond( + String authorization, AuthorizationRespondParams params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", + ApiResource.urlEncodeId(authorization)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, Authorization.class); + } /** Increment a test-mode Authorization. */ public Authorization increment(String authorization, AuthorizationIncrementParams params) throws StripeException {