diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 41e180fca76..17557a68f28 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -fdbf5e05015131c7993d2b4017103f0d94561b6a \ No newline at end of file +e65e48569f6dfad2d5f1b58018017856520c3ae6 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 469687e756a..58dae793582 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2160 \ No newline at end of file +v2186 \ 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 e2e04d01544..ea101df091f 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -2,6 +2,6 @@ package com.stripe; final class ApiVersion { - public static final String CURRENT = "2026-01-28.clover"; + public static final String CURRENT = "2026-02-25.clover"; public static final String CURRENT_MAJOR = "clover"; } diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 0152cd0599a..4cdabae123a 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -2515,6 +2515,13 @@ public static class CardPresent extends StripeObject { @SerializedName("last4") String last4; + /** + * ID of the location that this + * transaction's reader is assigned to. + */ + @SerializedName("location") + String location; + /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, @@ -2557,6 +2564,13 @@ public static class CardPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * ID of the reader this + * transaction was made on. + */ + @SerializedName("reader") + String reader; + /** * A collection of fields required to be displayed on receipts. Only required for EMV * transactions. @@ -3037,6 +3051,13 @@ public static class InteracPresent extends StripeObject { @SerializedName("last4") String last4; + /** + * ID of the location that this + * transaction's reader is assigned to. + */ + @SerializedName("location") + String location; + /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, @@ -3071,6 +3092,13 @@ public static class InteracPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * ID of the reader this + * transaction was made on. + */ + @SerializedName("reader") + String reader; + /** * A collection of fields required to be displayed on receipts. Only required for EMV * transactions. diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index 4c4a570d1fe..a88f65376d0 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -1011,6 +1011,13 @@ public static class CardPresent extends StripeObject { @SerializedName("last4") String last4; + /** + * ID of the location that + * this transaction's reader is assigned to. + */ + @SerializedName("location") + String location; + /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code @@ -1055,6 +1062,13 @@ public static class CardPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * ID of the reader this + * transaction was made on. + */ + @SerializedName("reader") + String reader; + /** * A collection of fields required to be displayed on receipts. Only required for EMV * transactions. diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java index 1f36c7d8289..b210dad8075 100644 --- a/src/main/java/com/stripe/model/Event.java +++ b/src/main/java/com/stripe/model/Event.java @@ -105,21 +105,22 @@ public class Event extends ApiResource implements HasId { * account.external_account.updated}, {@code account.updated}, {@code application_fee.created}, * {@code application_fee.refund.updated}, {@code application_fee.refunded}, {@code * balance.available}, {@code balance_settings.updated}, {@code billing.alert.triggered}, {@code - * billing_portal.configuration.created}, {@code billing_portal.configuration.updated}, {@code - * billing_portal.session.created}, {@code capability.updated}, {@code - * cash_balance.funds_available}, {@code charge.captured}, {@code charge.dispute.closed}, {@code - * charge.dispute.created}, {@code charge.dispute.funds_reinstated}, {@code - * charge.dispute.funds_withdrawn}, {@code charge.dispute.updated}, {@code charge.expired}, {@code - * charge.failed}, {@code charge.pending}, {@code charge.refund.updated}, {@code charge.refunded}, - * {@code charge.succeeded}, {@code charge.updated}, {@code - * checkout.session.async_payment_failed}, {@code checkout.session.async_payment_succeeded}, - * {@code checkout.session.completed}, {@code checkout.session.expired}, {@code - * climate.order.canceled}, {@code climate.order.created}, {@code climate.order.delayed}, {@code - * climate.order.delivered}, {@code climate.order.product_substituted}, {@code - * climate.product.created}, {@code climate.product.pricing_updated}, {@code coupon.created}, - * {@code coupon.deleted}, {@code coupon.updated}, {@code credit_note.created}, {@code - * credit_note.updated}, {@code credit_note.voided}, {@code customer.created}, {@code - * customer.deleted}, {@code customer.discount.created}, {@code customer.discount.deleted}, {@code + * billing.credit_grant.created}, {@code billing_portal.configuration.created}, {@code + * billing_portal.configuration.updated}, {@code billing_portal.session.created}, {@code + * capability.updated}, {@code cash_balance.funds_available}, {@code charge.captured}, {@code + * charge.dispute.closed}, {@code charge.dispute.created}, {@code + * charge.dispute.funds_reinstated}, {@code charge.dispute.funds_withdrawn}, {@code + * charge.dispute.updated}, {@code charge.expired}, {@code charge.failed}, {@code charge.pending}, + * {@code charge.refund.updated}, {@code charge.refunded}, {@code charge.succeeded}, {@code + * charge.updated}, {@code checkout.session.async_payment_failed}, {@code + * checkout.session.async_payment_succeeded}, {@code checkout.session.completed}, {@code + * checkout.session.expired}, {@code climate.order.canceled}, {@code climate.order.created}, + * {@code climate.order.delayed}, {@code climate.order.delivered}, {@code + * climate.order.product_substituted}, {@code climate.product.created}, {@code + * climate.product.pricing_updated}, {@code coupon.created}, {@code coupon.deleted}, {@code + * coupon.updated}, {@code credit_note.created}, {@code credit_note.updated}, {@code + * credit_note.voided}, {@code customer.created}, {@code customer.deleted}, {@code + * customer.discount.created}, {@code customer.discount.deleted}, {@code * customer.discount.updated}, {@code customer.source.created}, {@code customer.source.deleted}, * {@code customer.source.expiring}, {@code customer.source.updated}, {@code * customer.subscription.created}, {@code customer.subscription.deleted}, {@code @@ -176,24 +177,27 @@ public class Event extends ApiResource implements HasId { * radar.early_fraud_warning.created}, {@code radar.early_fraud_warning.updated}, {@code * refund.created}, {@code refund.failed}, {@code refund.updated}, {@code * reporting.report_run.failed}, {@code reporting.report_run.succeeded}, {@code - * reporting.report_type.updated}, {@code review.closed}, {@code review.opened}, {@code - * setup_intent.canceled}, {@code setup_intent.created}, {@code setup_intent.requires_action}, - * {@code setup_intent.setup_failed}, {@code setup_intent.succeeded}, {@code - * sigma.scheduled_query_run.created}, {@code source.canceled}, {@code source.chargeable}, {@code - * source.failed}, {@code source.mandate_notification}, {@code source.refund_attributes_required}, - * {@code source.transaction.created}, {@code source.transaction.updated}, {@code - * subscription_schedule.aborted}, {@code subscription_schedule.canceled}, {@code - * subscription_schedule.completed}, {@code subscription_schedule.created}, {@code - * subscription_schedule.expiring}, {@code subscription_schedule.released}, {@code - * subscription_schedule.updated}, {@code tax.settings.updated}, {@code tax_rate.created}, {@code - * tax_rate.updated}, {@code terminal.reader.action_failed}, {@code - * terminal.reader.action_succeeded}, {@code terminal.reader.action_updated}, {@code - * test_helpers.test_clock.advancing}, {@code test_helpers.test_clock.created}, {@code - * test_helpers.test_clock.deleted}, {@code test_helpers.test_clock.internal_failure}, {@code - * test_helpers.test_clock.ready}, {@code topup.canceled}, {@code topup.created}, {@code - * topup.failed}, {@code topup.reversed}, {@code topup.succeeded}, {@code transfer.created}, - * {@code transfer.reversed}, {@code transfer.updated}, {@code treasury.credit_reversal.created}, - * {@code treasury.credit_reversal.posted}, {@code treasury.debit_reversal.completed}, {@code + * reporting.report_type.updated}, {@code reserve.hold.created}, {@code reserve.hold.updated}, + * {@code reserve.plan.created}, {@code reserve.plan.disabled}, {@code reserve.plan.expired}, + * {@code reserve.plan.updated}, {@code reserve.release.created}, {@code review.closed}, {@code + * review.opened}, {@code setup_intent.canceled}, {@code setup_intent.created}, {@code + * setup_intent.requires_action}, {@code setup_intent.setup_failed}, {@code + * setup_intent.succeeded}, {@code sigma.scheduled_query_run.created}, {@code source.canceled}, + * {@code source.chargeable}, {@code source.failed}, {@code source.mandate_notification}, {@code + * source.refund_attributes_required}, {@code source.transaction.created}, {@code + * source.transaction.updated}, {@code subscription_schedule.aborted}, {@code + * subscription_schedule.canceled}, {@code subscription_schedule.completed}, {@code + * subscription_schedule.created}, {@code subscription_schedule.expiring}, {@code + * subscription_schedule.released}, {@code subscription_schedule.updated}, {@code + * tax.settings.updated}, {@code tax_rate.created}, {@code tax_rate.updated}, {@code + * terminal.reader.action_failed}, {@code terminal.reader.action_succeeded}, {@code + * terminal.reader.action_updated}, {@code test_helpers.test_clock.advancing}, {@code + * test_helpers.test_clock.created}, {@code test_helpers.test_clock.deleted}, {@code + * test_helpers.test_clock.internal_failure}, {@code test_helpers.test_clock.ready}, {@code + * topup.canceled}, {@code topup.created}, {@code topup.failed}, {@code topup.reversed}, {@code + * topup.succeeded}, {@code transfer.created}, {@code transfer.reversed}, {@code + * transfer.updated}, {@code treasury.credit_reversal.created}, {@code + * treasury.credit_reversal.posted}, {@code treasury.debit_reversal.completed}, {@code * treasury.debit_reversal.created}, {@code treasury.debit_reversal.initial_credit_granted}, * {@code treasury.financial_account.closed}, {@code treasury.financial_account.created}, {@code * treasury.financial_account.features_status_updated}, {@code @@ -211,9 +215,9 @@ public class Event extends ApiResource implements HasId { * treasury.outbound_transfer.tracking_details_updated}, {@code treasury.received_credit.created}, * {@code treasury.received_credit.failed}, {@code treasury.received_credit.succeeded}, {@code * treasury.received_debit.created}, {@code billing.credit_balance_transaction.created}, {@code - * billing.credit_grant.created}, {@code billing.credit_grant.updated}, {@code - * billing.meter.created}, {@code billing.meter.deactivated}, {@code billing.meter.reactivated}, - * or {@code billing.meter.updated}. + * billing.credit_grant.updated}, {@code billing.meter.created}, {@code + * billing.meter.deactivated}, {@code billing.meter.reactivated}, or {@code + * billing.meter.updated}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/EventDataClassLookup.java b/src/main/java/com/stripe/model/EventDataClassLookup.java index 0d55bf2b35e..8672bf068bc 100644 --- a/src/main/java/com/stripe/model/EventDataClassLookup.java +++ b/src/main/java/com/stripe/model/EventDataClassLookup.java @@ -173,6 +173,10 @@ public final class EventDataClassLookup { classLookup.put("reporting.report_run", com.stripe.model.reporting.ReportRun.class); classLookup.put("reporting.report_type", com.stripe.model.reporting.ReportType.class); + classLookup.put("reserve.hold", com.stripe.model.reserve.Hold.class); + classLookup.put("reserve.plan", com.stripe.model.reserve.Plan.class); + classLookup.put("reserve.release", com.stripe.model.reserve.Release.class); + classLookup.put("scheduled_query_run", com.stripe.model.sigma.ScheduledQueryRun.class); classLookup.put("tax.association", com.stripe.model.tax.Association.class); diff --git a/src/main/java/com/stripe/model/File.java b/src/main/java/com/stripe/model/File.java index 4565a6885c2..f3fe590c336 100644 --- a/src/main/java/com/stripe/model/File.java +++ b/src/main/java/com/stripe/model/File.java @@ -70,8 +70,8 @@ public class File extends ApiResource implements HasId { * financial_account_statement}, {@code identity_document}, {@code * identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document}, * {@code platform_terms_of_service}, {@code selfie}, {@code sigma_scheduled_query}, {@code - * tax_document_user_upload}, {@code terminal_android_apk}, or {@code - * terminal_reader_splashscreen}. + * tax_document_user_upload}, {@code terminal_android_apk}, {@code terminal_reader_splashscreen}, + * {@code terminal_wifi_certificate}, or {@code terminal_wifi_private_key}. */ @SerializedName("purpose") String purpose; diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 5ee18bcf717..06a06f70801 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -459,7 +459,10 @@ public class Invoice extends ApiResource implements HasId, MetadataStoreinvoice + * payment to get more details. + */ @SerializedName("payments") InvoicePaymentCollection payments; @@ -2107,19 +2110,19 @@ public static class CustomerTaxId 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 pl_nip}, * {@code tw_vat}, {@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 al_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}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code - * cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif}, - * {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code - * tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin}, {@code az_tin}, - * {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code la_tin}, {@code - * cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}. + * {@code li_vat}, {@code lk_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 al_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}, {@code ao_tin}, {@code bs_tin}, {@code + * bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, + * {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code + * np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin}, + * {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code + * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}. */ @SerializedName("type") String type; @@ -2532,7 +2535,7 @@ public static class BankTransfer extends StripeObject { public static class EuBankTransfer extends StripeObject { /** * The desired country code of the bank account information. Permitted values include: - * {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}. + * {@code DE}, {@code FR}, {@code IE}, or {@code NL}. * *

One of {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}. */ diff --git a/src/main/java/com/stripe/model/Mandate.java b/src/main/java/com/stripe/model/Mandate.java index 020e29c8dd3..7d705670dce 100644 --- a/src/main/java/com/stripe/model/Mandate.java +++ b/src/main/java/com/stripe/model/Mandate.java @@ -334,6 +334,10 @@ public static class AuBecsDebit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class BacsDebit extends StripeObject { + /** The display name for the account on this mandate. */ + @SerializedName("display_name") + String displayName; + /** * The status of the mandate on the Bacs network. Can be one of {@code pending}, {@code * revoked}, {@code refused}, or {@code accepted}. @@ -355,6 +359,10 @@ public static class BacsDebit extends StripeObject { @SerializedName("revocation_reason") String revocationReason; + /** The service user number for the account on this mandate. */ + @SerializedName("service_user_number") + String serviceUserNumber; + /** The URL that will contain the mandate that the customer has signed. */ @SerializedName("url") String url; diff --git a/src/main/java/com/stripe/model/PaymentAttemptRecord.java b/src/main/java/com/stripe/model/PaymentAttemptRecord.java index 5e482e24bd6..408fd3ea88d 100644 --- a/src/main/java/com/stripe/model/PaymentAttemptRecord.java +++ b/src/main/java/com/stripe/model/PaymentAttemptRecord.java @@ -698,17 +698,11 @@ public static class AcssDebit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Affirm extends StripeObject { - /** - * ID of the location that this - * transaction's reader is assigned to. - */ + /** ID of the location that this reader is assigned to. */ @SerializedName("location") String location; - /** - * ID of the reader this - * transaction was made on. - */ + /** ID of the reader this transaction was made on. */ @SerializedName("reader") String reader; @@ -729,7 +723,7 @@ public static class AfterpayClearpay extends StripeObject { @SerializedName("order_id") String orderId; - /** Order identifier shown to the merchant in Afterpay’s online portal. */ + /** Order identifier shown to the merchant in Afterpay's online portal. */ @SerializedName("reference") String reference; } @@ -1273,12 +1267,24 @@ public static class Card extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Checks extends StripeObject { + /** + * If you provide a value for {@code address.line1}, the check result is one of {@code + * pass}, {@code fail}, {@code unavailable}, or {@code unchecked}. + */ @SerializedName("address_line1_check") String addressLine1Check; + /** + * If you provide a address postal code, the check result is one of {@code pass}, {@code + * fail}, {@code unavailable}, or {@code unchecked}. + */ @SerializedName("address_postal_code_check") String addressPostalCodeCheck; + /** + * If you provide a CVC, the check results is one of {@code pass}, {@code fail}, {@code + * unavailable}, or {@code unchecked}. + */ @SerializedName("cvc_check") String cvcCheck; } @@ -1291,6 +1297,7 @@ public static class Checks extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Installments extends StripeObject { + /** Installment plan selected for the payment. */ @SerializedName("plan") Plan plan; @@ -1349,15 +1356,40 @@ public static class NetworkToken extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class ThreeDSecure extends StripeObject { + /** + * For authenticated transactions: Indicates how the issuing bank authenticated the + * customer. + * + *

One of {@code challenge}, or {@code frictionless}. + */ @SerializedName("authentication_flow") String authenticationFlow; + /** + * Indicates the outcome of 3D Secure authentication. + * + *

One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code + * failed}, {@code not_supported}, or {@code processing_error}. + */ @SerializedName("result") String result; + /** + * Additional information about why 3D Secure succeeded or failed, based on the {@code + * result}. + * + *

One of {@code abandoned}, {@code bypassed}, {@code canceled}, {@code + * card_not_enrolled}, {@code network_not_supported}, {@code protocol_error}, or {@code + * rejected}. + */ @SerializedName("result_reason") String resultReason; + /** + * The version of 3D Secure that was used. + * + *

One of {@code 1.0.2}, {@code 2.1.0}, or {@code 2.2.0}. + */ @SerializedName("version") String version; } @@ -1538,6 +1570,13 @@ public static class CardPresent extends StripeObject { @SerializedName("last4") String last4; + /** + * ID of the location that this + * transaction's reader is assigned to. + */ + @SerializedName("location") + String location; + /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, @@ -1580,6 +1619,13 @@ public static class CardPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * ID of the reader this + * transaction was made on. + */ + @SerializedName("reader") + String reader; + /** * A collection of fields required to be displayed on receipts. Only required for EMV * transactions. @@ -2080,6 +2126,13 @@ public static class InteracPresent extends StripeObject { @SerializedName("last4") String last4; + /** + * ID of the location that this + * transaction's reader is assigned to. + */ + @SerializedName("location") + String location; + /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, @@ -2114,6 +2167,13 @@ public static class InteracPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * ID of the reader this + * transaction was made on. + */ + @SerializedName("reader") + String reader; + /** * A collection of fields required to be displayed on receipts. Only required for EMV * transactions. diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index c23183b74e7..09647e1a84b 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -3885,7 +3885,7 @@ public static class BankTransfer extends StripeObject { public static class EuBankTransfer extends StripeObject { /** * The desired country code of the bank account information. Permitted values include: - * {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}. + * {@code DE}, {@code FR}, {@code IE}, or {@code NL}. * *

One of {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}. */ @@ -5160,6 +5160,14 @@ public static class UsBankAccount extends StripeObject { @SerializedName("target_date") String targetDate; + /** + * The purpose of the transaction. + * + *

One of {@code goods}, {@code other}, {@code services}, or {@code unspecified}. + */ + @SerializedName("transaction_purpose") + String transactionPurpose; + /** * Bank account verification method. * diff --git a/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java b/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java index 0437e6385c0..28aac26eba8 100644 --- a/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java +++ b/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java @@ -57,7 +57,7 @@ public class PaymentIntentAmountDetailsLineItem extends ApiResource implements H * The product name of the line item. Required for L3 rates. At most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to the - * card networks. For Paypal, this field is truncated to 127 characters. + * card networks. For PayPal, this field is truncated to 127 characters. */ @SerializedName("product_name") String productName; diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java index e2f564dab47..d6282f9987d 100644 --- a/src/main/java/com/stripe/model/PaymentLink.java +++ b/src/main/java/com/stripe/model/PaymentLink.java @@ -688,7 +688,7 @@ public static class CustomField extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Dropdown extends StripeObject { - /** The value that will pre-fill on the payment page. */ + /** The value that pre-fills on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -747,7 +747,7 @@ public static class Label extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Numeric extends StripeObject { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -768,7 +768,7 @@ public static class Numeric extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Text extends StripeObject { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -816,7 +816,7 @@ public static class CustomText extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class AfterSubmit extends StripeObject { - /** Text may be up to 1200 characters in length. */ + /** Text can be up to 1200 characters in length. */ @SerializedName("message") String message; } @@ -829,7 +829,7 @@ public static class AfterSubmit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class ShippingAddress extends StripeObject { - /** Text may be up to 1200 characters in length. */ + /** Text can be up to 1200 characters in length. */ @SerializedName("message") String message; } @@ -842,7 +842,7 @@ public static class ShippingAddress extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Submit extends StripeObject { - /** Text may be up to 1200 characters in length. */ + /** Text can be up to 1200 characters in length. */ @SerializedName("message") String message; } @@ -855,7 +855,7 @@ public static class Submit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class TermsOfServiceAcceptance extends StripeObject { - /** Text may be up to 1200 characters in length. */ + /** Text can be up to 1200 characters in length. */ @SerializedName("message") String message; } diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index cf0854766b7..317508d759f 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -1233,6 +1233,13 @@ public static class CardPresent extends StripeObject { @SerializedName("last4") String last4; + /** + * ID of the location that + * this transaction's reader is assigned to. + */ + @SerializedName("location") + String location; + /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code @@ -1277,6 +1284,13 @@ public static class CardPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * ID of the reader this + * transaction was made on. + */ + @SerializedName("reader") + String reader; + /** * A collection of fields required to be displayed on receipts. Only required for EMV * transactions. diff --git a/src/main/java/com/stripe/model/PaymentRecord.java b/src/main/java/com/stripe/model/PaymentRecord.java index 1fedb45b0da..ac5d09f6900 100644 --- a/src/main/java/com/stripe/model/PaymentRecord.java +++ b/src/main/java/com/stripe/model/PaymentRecord.java @@ -1000,17 +1000,11 @@ public static class AcssDebit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Affirm extends StripeObject { - /** - * ID of the location that this - * transaction's reader is assigned to. - */ + /** ID of the location that this reader is assigned to. */ @SerializedName("location") String location; - /** - * ID of the reader this - * transaction was made on. - */ + /** ID of the reader this transaction was made on. */ @SerializedName("reader") String reader; @@ -1031,7 +1025,7 @@ public static class AfterpayClearpay extends StripeObject { @SerializedName("order_id") String orderId; - /** Order identifier shown to the merchant in Afterpay’s online portal. */ + /** Order identifier shown to the merchant in Afterpay's online portal. */ @SerializedName("reference") String reference; } @@ -1575,12 +1569,24 @@ public static class Card extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Checks extends StripeObject { + /** + * If you provide a value for {@code address.line1}, the check result is one of {@code + * pass}, {@code fail}, {@code unavailable}, or {@code unchecked}. + */ @SerializedName("address_line1_check") String addressLine1Check; + /** + * If you provide a address postal code, the check result is one of {@code pass}, {@code + * fail}, {@code unavailable}, or {@code unchecked}. + */ @SerializedName("address_postal_code_check") String addressPostalCodeCheck; + /** + * If you provide a CVC, the check results is one of {@code pass}, {@code fail}, {@code + * unavailable}, or {@code unchecked}. + */ @SerializedName("cvc_check") String cvcCheck; } @@ -1593,6 +1599,7 @@ public static class Checks extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Installments extends StripeObject { + /** Installment plan selected for the payment. */ @SerializedName("plan") Plan plan; @@ -1651,15 +1658,40 @@ public static class NetworkToken extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class ThreeDSecure extends StripeObject { + /** + * For authenticated transactions: Indicates how the issuing bank authenticated the + * customer. + * + *

One of {@code challenge}, or {@code frictionless}. + */ @SerializedName("authentication_flow") String authenticationFlow; + /** + * Indicates the outcome of 3D Secure authentication. + * + *

One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code + * failed}, {@code not_supported}, or {@code processing_error}. + */ @SerializedName("result") String result; + /** + * Additional information about why 3D Secure succeeded or failed, based on the {@code + * result}. + * + *

One of {@code abandoned}, {@code bypassed}, {@code canceled}, {@code + * card_not_enrolled}, {@code network_not_supported}, {@code protocol_error}, or {@code + * rejected}. + */ @SerializedName("result_reason") String resultReason; + /** + * The version of 3D Secure that was used. + * + *

One of {@code 1.0.2}, {@code 2.1.0}, or {@code 2.2.0}. + */ @SerializedName("version") String version; } @@ -1840,6 +1872,13 @@ public static class CardPresent extends StripeObject { @SerializedName("last4") String last4; + /** + * ID of the location that this + * transaction's reader is assigned to. + */ + @SerializedName("location") + String location; + /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, @@ -1882,6 +1921,13 @@ public static class CardPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * ID of the reader this + * transaction was made on. + */ + @SerializedName("reader") + String reader; + /** * A collection of fields required to be displayed on receipts. Only required for EMV * transactions. @@ -2382,6 +2428,13 @@ public static class InteracPresent extends StripeObject { @SerializedName("last4") String last4; + /** + * ID of the location that this + * transaction's reader is assigned to. + */ + @SerializedName("location") + String location; + /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, @@ -2416,6 +2469,13 @@ public static class InteracPresent extends StripeObject { @SerializedName("read_method") String readMethod; + /** + * ID of the reader this + * transaction was made on. + */ + @SerializedName("reader") + String reader; + /** * A collection of fields required to be displayed on receipts. Only required for EMV * transactions. diff --git a/src/main/java/com/stripe/model/PromotionCode.java b/src/main/java/com/stripe/model/PromotionCode.java index 5761b50a8b5..07257537e10 100644 --- a/src/main/java/com/stripe/model/PromotionCode.java +++ b/src/main/java/com/stripe/model/PromotionCode.java @@ -42,7 +42,7 @@ public class PromotionCode extends ApiResource implements HasId, MetadataStore

) null, (RequestOptions) null); @@ -909,10 +909,10 @@ public Subscription resume() throws StripeException { /** * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor - * and creating prorations. If a resumption invoice is generated, it must be paid or marked - * uncollectible before the subscription will be unpaused. If payment succeeds the subscription - * will become {@code active}, and if payment fails the subscription will be {@code past_due}. The - * resumption invoice will void automatically if not paid by the expiration date. + * and creating prorations. If no resumption invoice is generated, the subscription becomes {@code + * active} immediately. If a resumption invoice is generated, the subscription remains {@code + * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the + * expiration date, it is voided and the subscription remains {@code paused}. */ public Subscription resume(RequestOptions options) throws StripeException { return resume((Map) null, options); @@ -920,10 +920,10 @@ public Subscription resume(RequestOptions options) throws StripeException { /** * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor - * and creating prorations. If a resumption invoice is generated, it must be paid or marked - * uncollectible before the subscription will be unpaused. If payment succeeds the subscription - * will become {@code active}, and if payment fails the subscription will be {@code past_due}. The - * resumption invoice will void automatically if not paid by the expiration date. + * and creating prorations. If no resumption invoice is generated, the subscription becomes {@code + * active} immediately. If a resumption invoice is generated, the subscription remains {@code + * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the + * expiration date, it is voided and the subscription remains {@code paused}. */ public Subscription resume(Map params) throws StripeException { return resume(params, (RequestOptions) null); @@ -931,10 +931,10 @@ public Subscription resume(Map params) throws StripeException { /** * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor - * and creating prorations. If a resumption invoice is generated, it must be paid or marked - * uncollectible before the subscription will be unpaused. If payment succeeds the subscription - * will become {@code active}, and if payment fails the subscription will be {@code past_due}. The - * resumption invoice will void automatically if not paid by the expiration date. + * and creating prorations. If no resumption invoice is generated, the subscription becomes {@code + * active} immediately. If a resumption invoice is generated, the subscription remains {@code + * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the + * expiration date, it is voided and the subscription remains {@code paused}. */ public Subscription resume(Map params, RequestOptions options) throws StripeException { @@ -947,10 +947,10 @@ public Subscription resume(Map params, RequestOptions options) /** * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor - * and creating prorations. If a resumption invoice is generated, it must be paid or marked - * uncollectible before the subscription will be unpaused. If payment succeeds the subscription - * will become {@code active}, and if payment fails the subscription will be {@code past_due}. The - * resumption invoice will void automatically if not paid by the expiration date. + * and creating prorations. If no resumption invoice is generated, the subscription becomes {@code + * active} immediately. If a resumption invoice is generated, the subscription remains {@code + * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the + * expiration date, it is voided and the subscription remains {@code paused}. */ public Subscription resume(SubscriptionResumeParams params) throws StripeException { return resume(params, (RequestOptions) null); @@ -958,10 +958,10 @@ public Subscription resume(SubscriptionResumeParams params) throws StripeExcepti /** * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor - * and creating prorations. If a resumption invoice is generated, it must be paid or marked - * uncollectible before the subscription will be unpaused. If payment succeeds the subscription - * will become {@code active}, and if payment fails the subscription will be {@code past_due}. The - * resumption invoice will void automatically if not paid by the expiration date. + * and creating prorations. If no resumption invoice is generated, the subscription becomes {@code + * active} immediately. If a resumption invoice is generated, the subscription remains {@code + * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the + * expiration date, it is voided and the subscription remains {@code paused}. */ public Subscription resume(SubscriptionResumeParams params, RequestOptions options) throws StripeException { @@ -1885,7 +1885,7 @@ public static class BankTransfer extends StripeObject { public static class EuBankTransfer extends StripeObject { /** * The desired country code of the bank account information. Permitted values include: - * {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}. + * {@code DE}, {@code FR}, {@code IE}, or {@code NL}. * *

One of {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}. */ @@ -2141,11 +2141,11 @@ public void setDestinationObject(Account expandableObject) { @Setter @EqualsAndHashCode(callSuper = false) public static class TrialSettings extends StripeObject { - /** Defines how a subscription behaves when a free trial ends. */ + /** Defines how a subscription behaves when a trial ends. */ @SerializedName("end_behavior") EndBehavior endBehavior; - /** Defines how a subscription behaves when a free trial ends. */ + /** Defines how a subscription behaves when a trial ends. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/TaxId.java b/src/main/java/com/stripe/model/TaxId.java index fc29f689840..7dbecfd4452 100644 --- a/src/main/java/com/stripe/model/TaxId.java +++ b/src/main/java/com/stripe/model/TaxId.java @@ -89,15 +89,15 @@ public class TaxId extends ApiResource implements HasId { * {@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 kg_tin}, {@code * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code - * ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code - * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, - * {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, - * {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code - * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code - * ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code - * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}. Note that some legacy tax IDs have - * type {@code unknown} + * lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code + * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, + * {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code + * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code + * ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}. Note that some + * legacy tax IDs have type {@code unknown} */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index acdb3b0d847..e363355a5b8 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -1321,7 +1321,7 @@ public static class CustomField extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Dropdown extends StripeObject { - /** The value that will pre-fill on the payment page. */ + /** The value that pre-fills on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -1384,7 +1384,7 @@ public static class Label extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Numeric extends StripeObject { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -1409,7 +1409,7 @@ public static class Numeric extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Text extends StripeObject { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -1461,7 +1461,7 @@ public static class CustomText extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class AfterSubmit extends StripeObject { - /** Text may be up to 1200 characters in length. */ + /** Text can be up to 1200 characters in length. */ @SerializedName("message") String message; } @@ -1474,7 +1474,7 @@ public static class AfterSubmit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class ShippingAddress extends StripeObject { - /** Text may be up to 1200 characters in length. */ + /** Text can be up to 1200 characters in length. */ @SerializedName("message") String message; } @@ -1487,7 +1487,7 @@ public static class ShippingAddress extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Submit extends StripeObject { - /** Text may be up to 1200 characters in length. */ + /** Text can be up to 1200 characters in length. */ @SerializedName("message") String message; } @@ -1500,7 +1500,7 @@ public static class Submit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class TermsOfServiceAcceptance extends StripeObject { - /** Text may be up to 1200 characters in length. */ + /** Text can be up to 1200 characters in length. */ @SerializedName("message") String message; } @@ -1578,19 +1578,20 @@ 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 * pl_nip}, {@code tw_vat}, {@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 al_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}, {@code ao_tin}, {@code bs_tin}, - * {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code - * ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, - * {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code - * aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, - * {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}. + * {@code li_uid}, {@code li_vat}, {@code lk_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 al_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}, {@code ao_tin}, {@code + * bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, + * {@code ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code + * am_tin}, {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, + * {@code aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code + * kg_tin}, {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code + * unknown}. */ @SerializedName("type") String type; @@ -2839,7 +2840,7 @@ public static class BankTransfer extends StripeObject { public static class EuBankTransfer extends StripeObject { /** * The desired country code of the bank account information. Permitted values include: - * {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}. + * {@code DE}, {@code FR}, {@code IE}, or {@code NL}. * *

One of {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}. */ diff --git a/src/main/java/com/stripe/model/radar/PaymentEvaluation.java b/src/main/java/com/stripe/model/radar/PaymentEvaluation.java index 87e169804d9..a6ce1803aee 100644 --- a/src/main/java/com/stripe/model/radar/PaymentEvaluation.java +++ b/src/main/java/com/stripe/model/radar/PaymentEvaluation.java @@ -14,7 +14,6 @@ import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; import com.stripe.param.radar.PaymentEvaluationCreateParams; -import java.math.BigDecimal; import java.util.List; import java.util.Map; import lombok.EqualsAndHashCode; @@ -355,10 +354,6 @@ public static class UserInterventionResolved extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Insights extends StripeObject { - /** Stripe Radar's evaluation of the likelihood of a card issuer decline on this payment. */ - @SerializedName("card_issuer_decline") - CardIssuerDecline cardIssuerDecline; - /** The timestamp when the evaluation was performed. */ @SerializedName("evaluated_at") Long evaluatedAt; @@ -367,32 +362,6 @@ public static class Insights extends StripeObject { @SerializedName("fraudulent_dispute") FraudulentDispute fraudulentDispute; - /** - * Provides Stripe Radar's evaluation of the likelihood that a payment will be declined by the - * card issuer. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class CardIssuerDecline extends StripeObject { - /** - * Stripe Radar's evaluation of the likelihood that the payment will be declined by the card - * issuer. Scores range from 0 to 100, with higher values indicating a higher likelihood of - * decline. - */ - @SerializedName("model_score") - BigDecimal modelScore; - - /** - * Recommended action based on the model score. Possible values are {@code block} and {@code - * continue}. - * - *

One of {@code block}, or {@code continue}. - */ - @SerializedName("recommended_action") - String recommendedAction; - } - /** Scores, insights and recommended action for one scorer for this PaymentEvaluation. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/reserve/Hold.java b/src/main/java/com/stripe/model/reserve/Hold.java new file mode 100644 index 00000000000..0499a0d5bcf --- /dev/null +++ b/src/main/java/com/stripe/model/reserve/Hold.java @@ -0,0 +1,171 @@ +// File generated from our OpenAPI spec +package com.stripe.model.reserve; + +import com.google.gson.annotations.SerializedName; +import com.stripe.model.Charge; +import com.stripe.model.ExpandableField; +import com.stripe.model.HasId; +import com.stripe.model.StripeObject; +import com.stripe.net.ApiResource; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** ReserveHolds are used to place a temporary ReserveHold on a merchant's funds. */ +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class Hold extends StripeObject implements HasId { + /** + * Amount reserved. A positive integer representing how much is reserved in the smallest currency unit. + */ + @SerializedName("amount") + Long amount; + + /** Amount in cents that can be released from this ReserveHold. */ + @SerializedName("amount_releasable") + Long amountReleasable; + + /** Time at which the object was created. Measured in seconds since the Unix epoch. */ + @SerializedName("created") + Long created; + + /** + * Indicates which party created this ReserveHold. + * + *

One of {@code application}, or {@code stripe}. + */ + @SerializedName("created_by") + String createdBy; + + /** + * Three-letter ISO currency code, + * in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + String currency; + + /** Unique identifier for the object. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** + * Whether there are any funds available to release on this ReserveHold. Note that if the + * ReserveHold is in the process of being released, this could be false, even though the funds + * haven't been fully released yet. + */ + @SerializedName("is_releasable") + Boolean isReleasable; + + /** + * Has the value {@code true} if the object exists in live mode or the value {@code false} if the + * object exists in test mode. + */ + @SerializedName("livemode") + Boolean livemode; + + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. + */ + @SerializedName("metadata") + Map metadata; + + /** + * String representing the object's type. Objects of the same type share the same value. + * + *

Equal to {@code reserve.hold}. + */ + @SerializedName("object") + String object; + + /** + * The reason for the ReserveHold. + * + *

One of {@code charge}, or {@code standalone}. + */ + @SerializedName("reason") + String reason; + + @SerializedName("release_schedule") + ReleaseSchedule releaseSchedule; + + /** The ReservePlan which produced this ReserveHold (i.e., resplan_123). */ + @SerializedName("reserve_plan") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField reservePlan; + + /** The Charge which funded this ReserveHold (e.g., ch_123). */ + @SerializedName("source_charge") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField sourceCharge; + + /** + * Which source balance type this ReserveHold reserves funds from. One of {@code bank_account}, + * {@code card}, or {@code fpx}. + */ + @SerializedName("source_type") + String sourceType; + + /** Get ID of expandable {@code reservePlan} object. */ + public String getReservePlan() { + return (this.reservePlan != null) ? this.reservePlan.getId() : null; + } + + public void setReservePlan(String id) { + this.reservePlan = ApiResource.setExpandableFieldId(id, this.reservePlan); + } + + /** Get expanded {@code reservePlan}. */ + public Plan getReservePlanObject() { + return (this.reservePlan != null) ? this.reservePlan.getExpanded() : null; + } + + public void setReservePlanObject(Plan expandableObject) { + this.reservePlan = new ExpandableField(expandableObject.getId(), expandableObject); + } + + /** Get ID of expandable {@code sourceCharge} object. */ + public String getSourceCharge() { + return (this.sourceCharge != null) ? this.sourceCharge.getId() : null; + } + + public void setSourceCharge(String id) { + this.sourceCharge = ApiResource.setExpandableFieldId(id, this.sourceCharge); + } + + /** Get expanded {@code sourceCharge}. */ + public Charge getSourceChargeObject() { + return (this.sourceCharge != null) ? this.sourceCharge.getExpanded() : null; + } + + public void setSourceChargeObject(Charge expandableObject) { + this.sourceCharge = new ExpandableField(expandableObject.getId(), expandableObject); + } + + /** + * For more details about ReleaseSchedule, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class ReleaseSchedule extends StripeObject { + /** The time after which the ReserveHold is requested to be released. */ + @SerializedName("release_after") + Long releaseAfter; + + /** + * The time at which the ReserveHold is scheduled to be released, automatically set to midnight + * UTC of the day after {@code release_after}. + */ + @SerializedName("scheduled_release") + Long scheduledRelease; + } +} diff --git a/src/main/java/com/stripe/model/reserve/Plan.java b/src/main/java/com/stripe/model/reserve/Plan.java new file mode 100644 index 00000000000..a5e1154c1fc --- /dev/null +++ b/src/main/java/com/stripe/model/reserve/Plan.java @@ -0,0 +1,136 @@ +// File generated from our OpenAPI spec +package com.stripe.model.reserve; + +import com.google.gson.annotations.SerializedName; +import com.stripe.model.HasId; +import com.stripe.model.StripeObject; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + * ReservePlans are used to automatically place holds on a merchant's funds until the plan expires. + * It takes a portion of each incoming Charge (including those resulting from a Transfer from a + * platform account). + */ +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class Plan extends StripeObject implements HasId { + /** Time at which the object was created. Measured in seconds since the Unix epoch. */ + @SerializedName("created") + Long created; + + /** + * Indicates which party created this ReservePlan. + * + *

One of {@code application}, or {@code stripe}. + */ + @SerializedName("created_by") + String createdBy; + + /** + * Three-letter ISO currency code, + * in lowercase. Must be a supported currency. An + * unset currency indicates that the plan applies to all currencies. + */ + @SerializedName("currency") + String currency; + + /** Time at which the ReservePlan was disabled. */ + @SerializedName("disabled_at") + Long disabledAt; + + @SerializedName("fixed_release") + FixedRelease fixedRelease; + + /** Unique identifier for the object. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** + * Has the value {@code true} if the object exists in live mode or the value {@code false} if the + * object exists in test mode. + */ + @SerializedName("livemode") + Boolean livemode; + + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. + */ + @SerializedName("metadata") + Map metadata; + + /** + * String representing the object's type. Objects of the same type share the same value. + * + *

Equal to {@code reserve.plan}. + */ + @SerializedName("object") + String object; + + /** The percent of each Charge to reserve. */ + @SerializedName("percent") + Long percent; + + @SerializedName("rolling_release") + RollingRelease rollingRelease; + + /** + * The current status of the ReservePlan. The ReservePlan only affects charges if it is {@code + * active}. + * + *

One of {@code active}, {@code disabled}, or {@code expired}. + */ + @SerializedName("status") + String status; + + /** + * The type of the ReservePlan. + * + *

One of {@code fixed_release}, or {@code rolling_release}. + */ + @SerializedName("type") + String type; + + /** + * For more details about FixedRelease, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FixedRelease extends StripeObject { + /** The time after which all reserved funds are requested for release. */ + @SerializedName("release_after") + Long releaseAfter; + + /** + * The time at which reserved funds are scheduled for release, automatically set to midnight UTC + * of the day after {@code release_after}. + */ + @SerializedName("scheduled_release") + Long scheduledRelease; + } + + /** + * For more details about RollingRelease, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class RollingRelease extends StripeObject { + /** The number of days to reserve funds before releasing. */ + @SerializedName("days_after_charge") + Long daysAfterCharge; + + /** The time at which the ReservePlan expires. */ + @SerializedName("expires_on") + Long expiresOn; + } +} diff --git a/src/main/java/com/stripe/model/reserve/Release.java b/src/main/java/com/stripe/model/reserve/Release.java new file mode 100644 index 00000000000..f510d0fb6af --- /dev/null +++ b/src/main/java/com/stripe/model/reserve/Release.java @@ -0,0 +1,207 @@ +// File generated from our OpenAPI spec +package com.stripe.model.reserve; + +import com.google.gson.annotations.SerializedName; +import com.stripe.model.Dispute; +import com.stripe.model.ExpandableField; +import com.stripe.model.HasId; +import com.stripe.model.Refund; +import com.stripe.model.StripeObject; +import com.stripe.net.ApiResource; +import java.util.Map; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** ReserveReleases represent the release of funds from a ReserveHold. */ +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class Release extends StripeObject implements HasId { + /** + * Amount released. A positive integer representing how much is released in the smallest currency unit. + */ + @SerializedName("amount") + Long amount; + + /** Time at which the object was created. Measured in seconds since the Unix epoch. */ + @SerializedName("created") + Long created; + + /** + * Indicates which party created this ReserveRelease. + * + *

One of {@code application}, or {@code stripe}. + */ + @SerializedName("created_by") + String createdBy; + + /** + * Three-letter ISO currency code, + * in lowercase. Must be a supported currency. + */ + @SerializedName("currency") + String currency; + + /** Unique identifier for the object. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** + * Has the value {@code true} if the object exists in live mode or the value {@code false} if the + * object exists in test mode. + */ + @SerializedName("livemode") + Boolean livemode; + + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. + */ + @SerializedName("metadata") + Map metadata; + + /** + * String representing the object's type. Objects of the same type share the same value. + * + *

Equal to {@code reserve.release}. + */ + @SerializedName("object") + String object; + + /** + * The reason for the ReserveRelease, indicating why the funds were released. + * + *

One of {@code bulk_hold_expiry}, {@code hold_released_early}, {@code hold_reversed}, or + * {@code plan_disabled}. + */ + @SerializedName("reason") + String reason; + + /** The release timestamp of the funds. */ + @SerializedName("released_at") + Long releasedAt; + + /** The ReserveHold this ReserveRelease is associated with. */ + @SerializedName("reserve_hold") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField reserveHold; + + /** + * The ReservePlan ID this ReserveRelease is associated with. This field is only populated if a + * ReserveRelease is created by a ReservePlan disable operation, or from a scheduled ReservedHold + * expiry. + */ + @SerializedName("reserve_plan") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField reservePlan; + + @SerializedName("source_transaction") + SourceTransaction sourceTransaction; + + /** Get ID of expandable {@code reserveHold} object. */ + public String getReserveHold() { + return (this.reserveHold != null) ? this.reserveHold.getId() : null; + } + + public void setReserveHold(String id) { + this.reserveHold = ApiResource.setExpandableFieldId(id, this.reserveHold); + } + + /** Get expanded {@code reserveHold}. */ + public Hold getReserveHoldObject() { + return (this.reserveHold != null) ? this.reserveHold.getExpanded() : null; + } + + public void setReserveHoldObject(Hold expandableObject) { + this.reserveHold = new ExpandableField(expandableObject.getId(), expandableObject); + } + + /** Get ID of expandable {@code reservePlan} object. */ + public String getReservePlan() { + return (this.reservePlan != null) ? this.reservePlan.getId() : null; + } + + public void setReservePlan(String id) { + this.reservePlan = ApiResource.setExpandableFieldId(id, this.reservePlan); + } + + /** Get expanded {@code reservePlan}. */ + public Plan getReservePlanObject() { + return (this.reservePlan != null) ? this.reservePlan.getExpanded() : null; + } + + public void setReservePlanObject(Plan expandableObject) { + this.reservePlan = new ExpandableField(expandableObject.getId(), expandableObject); + } + + /** + * For more details about SourceTransaction, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class SourceTransaction extends StripeObject { + /** The ID of the dispute. */ + @SerializedName("dispute") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField dispute; + + /** The ID of the refund. */ + @SerializedName("refund") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField refund; + + /** + * The type of source transaction. + * + *

One of {@code dispute}, or {@code refund}. + */ + @SerializedName("type") + String type; + + /** Get ID of expandable {@code dispute} object. */ + public String getDispute() { + return (this.dispute != null) ? this.dispute.getId() : null; + } + + public void setDispute(String id) { + this.dispute = ApiResource.setExpandableFieldId(id, this.dispute); + } + + /** Get expanded {@code dispute}. */ + public Dispute getDisputeObject() { + return (this.dispute != null) ? this.dispute.getExpanded() : null; + } + + public void setDisputeObject(Dispute expandableObject) { + this.dispute = new ExpandableField(expandableObject.getId(), expandableObject); + } + + /** Get ID of expandable {@code refund} object. */ + public String getRefund() { + return (this.refund != null) ? this.refund.getId() : null; + } + + public void setRefund(String id) { + this.refund = ApiResource.setExpandableFieldId(id, this.refund); + } + + /** Get expanded {@code refund}. */ + public Refund getRefundObject() { + return (this.refund != null) ? this.refund.getExpanded() : null; + } + + public void setRefundObject(Refund expandableObject) { + this.refund = new ExpandableField(expandableObject.getId(), expandableObject); + } + } +} diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java index 8dc6f167c73..cd0ed95862e 100644 --- a/src/main/java/com/stripe/model/tax/Calculation.java +++ b/src/main/java/com/stripe/model/tax/Calculation.java @@ -327,19 +327,20 @@ 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 * pl_nip}, {@code tw_vat}, {@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 al_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}, {@code ao_tin}, {@code bs_tin}, - * {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code - * ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, - * {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code - * aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, - * {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}. + * {@code li_uid}, {@code li_vat}, {@code lk_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 al_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}, {@code ao_tin}, {@code + * bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, + * {@code ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code + * am_tin}, {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, + * {@code aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code + * kg_tin}, {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code + * unknown}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/tax/Registration.java b/src/main/java/com/stripe/model/tax/Registration.java index 79c3c4fcfd2..f7056acdd51 100644 --- a/src/main/java/com/stripe/model/tax/Registration.java +++ b/src/main/java/com/stripe/model/tax/Registration.java @@ -420,6 +420,9 @@ public static class CountryOptions extends StripeObject { @SerializedName("la") La la; + @SerializedName("lk") + Lk lk; + @SerializedName("lt") Lt lt; @@ -1929,6 +1932,23 @@ public static class La extends StripeObject { String type; } + /** + * For more details about Lk, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Lk extends StripeObject { + /** + * Type of registration in {@code country}. + * + *

Equal to {@code simplified}. + */ + @SerializedName("type") + String type; + } + /** * For more details about Lt, please refer to the API * Reference. diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java index ff821c03f95..b36a3d110f7 100644 --- a/src/main/java/com/stripe/model/tax/Transaction.java +++ b/src/main/java/com/stripe/model/tax/Transaction.java @@ -372,19 +372,20 @@ 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 * pl_nip}, {@code tw_vat}, {@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 al_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}, {@code ao_tin}, {@code bs_tin}, - * {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code - * ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, - * {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code - * aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, - * {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}. + * {@code li_uid}, {@code li_vat}, {@code lk_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 al_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}, {@code ao_tin}, {@code + * bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, + * {@code ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code + * am_tin}, {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, + * {@code aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code + * kg_tin}, {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code + * unknown}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/terminal/Configuration.java b/src/main/java/com/stripe/model/terminal/Configuration.java index d6d5456c9ae..44bbb5b6a5e 100644 --- a/src/main/java/com/stripe/model/terminal/Configuration.java +++ b/src/main/java/com/stripe/model/terminal/Configuration.java @@ -39,6 +39,9 @@ public class Configuration extends ApiResource implements HasId { @SerializedName("bbpos_wisepos_e") BbposWiseposE bbposWiseposE; + @SerializedName("cellular") + Cellular cellular; + /** Always true for a deleted object. */ @SerializedName("deleted") Boolean deleted; @@ -80,6 +83,9 @@ public class Configuration extends ApiResource implements HasId { @SerializedName("stripe_s700") StripeS700 stripeS700; + @SerializedName("stripe_s710") + StripeS710 stripeS710; + @SerializedName("tipping") Tipping tipping; @@ -324,6 +330,19 @@ public void setSplashscreenObject(File expandableObject) { } } + /** + * For more details about Cellular, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Cellular extends StripeObject { + /** Whether a cellular-capable reader can connect to the internet over cellular. */ + @SerializedName("enabled") + Boolean enabled; + } + /** * For more details about Offline, please refer to the API * Reference. @@ -393,6 +412,39 @@ public void setSplashscreenObject(File expandableObject) { } } + /** + * For more details about StripeS710, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class StripeS710 extends StripeObject { + /** A File ID representing an image to display on the reader. */ + @SerializedName("splashscreen") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField splashscreen; + + /** Get ID of expandable {@code splashscreen} object. */ + public String getSplashscreen() { + return (this.splashscreen != null) ? this.splashscreen.getId() : null; + } + + public void setSplashscreen(String id) { + this.splashscreen = ApiResource.setExpandableFieldId(id, this.splashscreen); + } + + /** Get expanded {@code splashscreen}. */ + public File getSplashscreenObject() { + return (this.splashscreen != null) ? this.splashscreen.getExpanded() : null; + } + + public void setSplashscreenObject(File expandableObject) { + this.splashscreen = new ExpandableField(expandableObject.getId(), expandableObject); + } + } + /** * For more details about Tipping, please refer to the API * Reference. @@ -1105,9 +1157,11 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); trySetResponseGetter(bbposWisepad3, responseGetter); trySetResponseGetter(bbposWiseposE, responseGetter); + trySetResponseGetter(cellular, responseGetter); trySetResponseGetter(offline, responseGetter); trySetResponseGetter(rebootWindow, responseGetter); trySetResponseGetter(stripeS700, responseGetter); + trySetResponseGetter(stripeS710, responseGetter); trySetResponseGetter(tipping, responseGetter); trySetResponseGetter(verifoneP400, responseGetter); trySetResponseGetter(wifi, responseGetter); diff --git a/src/main/java/com/stripe/model/terminal/Reader.java b/src/main/java/com/stripe/model/terminal/Reader.java index cbde67396b5..4cd80d17268 100644 --- a/src/main/java/com/stripe/model/terminal/Reader.java +++ b/src/main/java/com/stripe/model/terminal/Reader.java @@ -65,8 +65,9 @@ public class Reader extends ApiResource implements HasId, MetadataStore * Device type of the reader. * *

One of {@code bbpos_chipper2x}, {@code bbpos_wisepad3}, {@code bbpos_wisepos_e}, {@code - * mobile_phone_reader}, {@code simulated_stripe_s700}, {@code simulated_wisepos_e}, {@code - * stripe_m2}, {@code stripe_s700}, or {@code verifone_P400}. + * mobile_phone_reader}, {@code simulated_stripe_s700}, {@code simulated_stripe_s710}, {@code + * simulated_wisepos_e}, {@code stripe_m2}, {@code stripe_s700}, {@code stripe_s710}, or {@code + * verifone_P400}. */ @SerializedName("device_type") String deviceType; diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java index ac2b0fa94ad..c738fba0be2 100644 --- a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java +++ b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java @@ -9,7 +9,11 @@ import lombok.Getter; import lombok.Setter; -/** Fix me empty_doc_string. */ +/** + * A Meter Event is a usage record that captures billable activity for usage-based billing. Meter + * Events contain an event name, timestamp, and payload with customer mapping and usage value, + * enabling accurate usage tracking and billing. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java b/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java index a81435ddf07..1ab06307ce2 100644 --- a/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java +++ b/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java @@ -9,6 +9,11 @@ import lombok.Getter; import lombok.Setter; +/** + * A Meter Event Adjustment is used to cancel or modify previously recorded meter events. Meter + * Event Adjustments allow you to correct billing data by canceling individual events or event + * ranges, with tracking of adjustment status and creation time. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEventSession.java b/src/main/java/com/stripe/model/v2/billing/MeterEventSession.java index 7dae9e2705d..5720ae4e1f3 100644 --- a/src/main/java/com/stripe/model/v2/billing/MeterEventSession.java +++ b/src/main/java/com/stripe/model/v2/billing/MeterEventSession.java @@ -9,6 +9,11 @@ import lombok.Getter; import lombok.Setter; +/** + * A Meter Event Session is an authentication session for the high-throughput meter event API. Meter + * Event Sessions provide temporary authentication tokens with expiration times, enabling secure and + * efficient bulk submission of usage events. + */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java index b5c960ad6f7..199ef950979 100644 --- a/src/main/java/com/stripe/model/v2/core/Account.java +++ b/src/main/java/com/stripe/model/v2/core/Account.java @@ -12,9 +12,14 @@ import lombok.Setter; /** - * A V2 Account is a representation of a company or individual that a Stripe user does business - * with. Accounts contain the contact details, Legal Entity information, and configuration required - * to enable the Account for use across Stripe products. + * An Account v2 object represents a company, individual, or other entity that interacts with a + * platform on Stripe. It contains both identifying information and properties that control its + * behavior and functionality. An Account can have one or more configurations that enable sets of + * related features, such as allowing it to act as a merchant or customer. The Accounts v2 API + * supports both the Global Payouts preview feature and the Connect-Billing integration preview + * feature. However, a particular Account can only access one of them. The Connect-Billing + * integration preview feature allows an Account v2 to pay subscription fees to a platform. An + * Account v1 required a separate Customer object to pay subscription fees. */ @Getter @Setter diff --git a/src/main/java/com/stripe/param/CreditNoteCreateParams.java b/src/main/java/com/stripe/param/CreditNoteCreateParams.java index 1bb4ad959cb..4af8c7201f0 100644 --- a/src/main/java/com/stripe/param/CreditNoteCreateParams.java +++ b/src/main/java/com/stripe/param/CreditNoteCreateParams.java @@ -457,22 +457,23 @@ public static class Line { Long quantity; /** - * A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with {@code - * tax_rates}. + * A list of up to 10 tax amounts for the credit note line item. Not valid when {@code + * tax_rates} is used or if invoice is set up with {@code automatic_tax[enabled]=true}. */ @SerializedName("tax_amounts") Object taxAmounts; /** * The tax rates which apply to the credit note line item. Only valid when the {@code type} is - * {@code custom_line_item} and cannot be mixed with {@code tax_amounts}. + * {@code custom_line_item} and {@code tax_amounts} is not used. */ @SerializedName("tax_rates") Object taxRates; /** * Required. Type of the credit note line item, one of {@code - * invoice_line_item} or {@code custom_line_item} + * invoice_line_item} or {@code custom_line_item}. {@code custom_line_item} is not valid when + * the invoice is set up with {@code automatic_tax[enabled]=true}. */ @SerializedName("type") Type type; @@ -644,8 +645,8 @@ public Builder addAllTaxAmount(List eleme } /** - * A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with {@code - * tax_rates}. + * A list of up to 10 tax amounts for the credit note line item. Not valid when {@code + * tax_rates} is used or if invoice is set up with {@code automatic_tax[enabled]=true}. */ public Builder setTaxAmounts(EmptyParam taxAmounts) { this.taxAmounts = taxAmounts; @@ -653,8 +654,8 @@ public Builder setTaxAmounts(EmptyParam taxAmounts) { } /** - * A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with {@code - * tax_rates}. + * A list of up to 10 tax amounts for the credit note line item. Not valid when {@code + * tax_rates} is used or if invoice is set up with {@code automatic_tax[enabled]=true}. */ public Builder setTaxAmounts(List taxAmounts) { this.taxAmounts = taxAmounts; @@ -691,7 +692,7 @@ public Builder addAllTaxRate(List elements) { /** * The tax rates which apply to the credit note line item. Only valid when the {@code type} is - * {@code custom_line_item} and cannot be mixed with {@code tax_amounts}. + * {@code custom_line_item} and {@code tax_amounts} is not used. */ public Builder setTaxRates(EmptyParam taxRates) { this.taxRates = taxRates; @@ -700,7 +701,7 @@ public Builder setTaxRates(EmptyParam taxRates) { /** * The tax rates which apply to the credit note line item. Only valid when the {@code type} is - * {@code custom_line_item} and cannot be mixed with {@code tax_amounts}. + * {@code custom_line_item} and {@code tax_amounts} is not used. */ public Builder setTaxRates(List taxRates) { this.taxRates = taxRates; @@ -709,7 +710,8 @@ public Builder setTaxRates(List taxRates) { /** * Required. Type of the credit note line item, one of {@code - * invoice_line_item} or {@code custom_line_item} + * invoice_line_item} or {@code custom_line_item}. {@code custom_line_item} is not valid when + * the invoice is set up with {@code automatic_tax[enabled]=true}. */ public Builder setType(CreditNoteCreateParams.Line.Type type) { this.type = type; diff --git a/src/main/java/com/stripe/param/CreditNotePreviewLinesListParams.java b/src/main/java/com/stripe/param/CreditNotePreviewLinesListParams.java index ef2dc2f119e..cc81e9c9328 100644 --- a/src/main/java/com/stripe/param/CreditNotePreviewLinesListParams.java +++ b/src/main/java/com/stripe/param/CreditNotePreviewLinesListParams.java @@ -528,22 +528,23 @@ public static class Line { Long quantity; /** - * A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with {@code - * tax_rates}. + * A list of up to 10 tax amounts for the credit note line item. Not valid when {@code + * tax_rates} is used or if invoice is set up with {@code automatic_tax[enabled]=true}. */ @SerializedName("tax_amounts") Object taxAmounts; /** * The tax rates which apply to the credit note line item. Only valid when the {@code type} is - * {@code custom_line_item} and cannot be mixed with {@code tax_amounts}. + * {@code custom_line_item} and {@code tax_amounts} is not used. */ @SerializedName("tax_rates") Object taxRates; /** * Required. Type of the credit note line item, one of {@code - * invoice_line_item} or {@code custom_line_item} + * invoice_line_item} or {@code custom_line_item}. {@code custom_line_item} is not valid when + * the invoice is set up with {@code automatic_tax[enabled]=true}. */ @SerializedName("type") Type type; @@ -716,8 +717,8 @@ public Builder addAllTaxAmount( } /** - * A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with {@code - * tax_rates}. + * A list of up to 10 tax amounts for the credit note line item. Not valid when {@code + * tax_rates} is used or if invoice is set up with {@code automatic_tax[enabled]=true}. */ public Builder setTaxAmounts(EmptyParam taxAmounts) { this.taxAmounts = taxAmounts; @@ -725,8 +726,8 @@ public Builder setTaxAmounts(EmptyParam taxAmounts) { } /** - * A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with {@code - * tax_rates}. + * A list of up to 10 tax amounts for the credit note line item. Not valid when {@code + * tax_rates} is used or if invoice is set up with {@code automatic_tax[enabled]=true}. */ public Builder setTaxAmounts( List taxAmounts) { @@ -764,7 +765,7 @@ public Builder addAllTaxRate(List elements) { /** * The tax rates which apply to the credit note line item. Only valid when the {@code type} is - * {@code custom_line_item} and cannot be mixed with {@code tax_amounts}. + * {@code custom_line_item} and {@code tax_amounts} is not used. */ public Builder setTaxRates(EmptyParam taxRates) { this.taxRates = taxRates; @@ -773,7 +774,7 @@ public Builder setTaxRates(EmptyParam taxRates) { /** * The tax rates which apply to the credit note line item. Only valid when the {@code type} is - * {@code custom_line_item} and cannot be mixed with {@code tax_amounts}. + * {@code custom_line_item} and {@code tax_amounts} is not used. */ public Builder setTaxRates(List taxRates) { this.taxRates = taxRates; @@ -782,7 +783,8 @@ public Builder setTaxRates(List taxRates) { /** * Required. Type of the credit note line item, one of {@code - * invoice_line_item} or {@code custom_line_item} + * invoice_line_item} or {@code custom_line_item}. {@code custom_line_item} is not valid when + * the invoice is set up with {@code automatic_tax[enabled]=true}. */ public Builder setType(CreditNotePreviewLinesListParams.Line.Type type) { this.type = type; diff --git a/src/main/java/com/stripe/param/CreditNotePreviewParams.java b/src/main/java/com/stripe/param/CreditNotePreviewParams.java index 1619ae42160..68518736636 100644 --- a/src/main/java/com/stripe/param/CreditNotePreviewParams.java +++ b/src/main/java/com/stripe/param/CreditNotePreviewParams.java @@ -457,22 +457,23 @@ public static class Line { Long quantity; /** - * A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with {@code - * tax_rates}. + * A list of up to 10 tax amounts for the credit note line item. Not valid when {@code + * tax_rates} is used or if invoice is set up with {@code automatic_tax[enabled]=true}. */ @SerializedName("tax_amounts") Object taxAmounts; /** * The tax rates which apply to the credit note line item. Only valid when the {@code type} is - * {@code custom_line_item} and cannot be mixed with {@code tax_amounts}. + * {@code custom_line_item} and {@code tax_amounts} is not used. */ @SerializedName("tax_rates") Object taxRates; /** * Required. Type of the credit note line item, one of {@code - * invoice_line_item} or {@code custom_line_item} + * invoice_line_item} or {@code custom_line_item}. {@code custom_line_item} is not valid when + * the invoice is set up with {@code automatic_tax[enabled]=true}. */ @SerializedName("type") Type type; @@ -644,8 +645,8 @@ public Builder addAllTaxAmount(List elem } /** - * A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with {@code - * tax_rates}. + * A list of up to 10 tax amounts for the credit note line item. Not valid when {@code + * tax_rates} is used or if invoice is set up with {@code automatic_tax[enabled]=true}. */ public Builder setTaxAmounts(EmptyParam taxAmounts) { this.taxAmounts = taxAmounts; @@ -653,8 +654,8 @@ public Builder setTaxAmounts(EmptyParam taxAmounts) { } /** - * A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with {@code - * tax_rates}. + * A list of up to 10 tax amounts for the credit note line item. Not valid when {@code + * tax_rates} is used or if invoice is set up with {@code automatic_tax[enabled]=true}. */ public Builder setTaxAmounts(List taxAmounts) { this.taxAmounts = taxAmounts; @@ -691,7 +692,7 @@ public Builder addAllTaxRate(List elements) { /** * The tax rates which apply to the credit note line item. Only valid when the {@code type} is - * {@code custom_line_item} and cannot be mixed with {@code tax_amounts}. + * {@code custom_line_item} and {@code tax_amounts} is not used. */ public Builder setTaxRates(EmptyParam taxRates) { this.taxRates = taxRates; @@ -700,7 +701,7 @@ public Builder setTaxRates(EmptyParam taxRates) { /** * The tax rates which apply to the credit note line item. Only valid when the {@code type} is - * {@code custom_line_item} and cannot be mixed with {@code tax_amounts}. + * {@code custom_line_item} and {@code tax_amounts} is not used. */ public Builder setTaxRates(List taxRates) { this.taxRates = taxRates; @@ -709,7 +710,8 @@ public Builder setTaxRates(List taxRates) { /** * Required. Type of the credit note line item, one of {@code - * invoice_line_item} or {@code custom_line_item} + * invoice_line_item} or {@code custom_line_item}. {@code custom_line_item} is not valid when + * the invoice is set up with {@code automatic_tax[enabled]=true}. */ public Builder setType(CreditNotePreviewParams.Line.Type type) { this.type = type; diff --git a/src/main/java/com/stripe/param/CustomerCreateFundingInstructionsParams.java b/src/main/java/com/stripe/param/CustomerCreateFundingInstructionsParams.java index ef5098c2ee0..fa453bafa99 100644 --- a/src/main/java/com/stripe/param/CustomerCreateFundingInstructionsParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateFundingInstructionsParams.java @@ -293,8 +293,7 @@ public Builder setType(CustomerCreateFundingInstructionsParams.BankTransfer.Type public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or - * {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") String country; @@ -330,8 +329,7 @@ public CustomerCreateFundingInstructionsParams.BankTransfer.EuBankTransfer build /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or - * {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ public Builder setCountry(String country) { this.country = country; diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java index 2a94319b861..d30e6acf364 100644 --- a/src/main/java/com/stripe/param/CustomerCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateParams.java @@ -1735,15 +1735,15 @@ public static class TaxIdData { * {@code ge_vat}, {@code gn_nif}, {@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 kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code - * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, - * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code - * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, - * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code - * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, - * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} + * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, + * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code + * pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code + * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -1814,15 +1814,15 @@ public Builder putAllExtraParam(Map map) { * {@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 kg_tin}, {@code kh_tin}, * {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code - * ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, - * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code - * tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, - * {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code - * zw_tin} + * lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, + * {@code ph_tin}, {@code pl_nip}, {@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 sn_ninea}, + * {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code + * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, + * {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code + * zm_tin}, or {@code zw_tin} */ public Builder setType(CustomerCreateParams.TaxIdData.Type type) { this.type = type; @@ -2035,6 +2035,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_vat") LI_VAT("li_vat"), + @SerializedName("lk_vat") + LK_VAT("lk_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/CustomerFundingInstructionsCreateParams.java b/src/main/java/com/stripe/param/CustomerFundingInstructionsCreateParams.java index 7cec0e21fc7..43c97f0058d 100644 --- a/src/main/java/com/stripe/param/CustomerFundingInstructionsCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerFundingInstructionsCreateParams.java @@ -293,8 +293,7 @@ public Builder setType(CustomerFundingInstructionsCreateParams.BankTransfer.Type public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or - * {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") String country; @@ -330,8 +329,7 @@ public CustomerFundingInstructionsCreateParams.BankTransfer.EuBankTransfer build /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or - * {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ public Builder setCountry(String country) { this.country = country; diff --git a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java index a2a30ff9124..aa8cf625167 100644 --- a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java @@ -39,14 +39,14 @@ public class CustomerTaxIdCreateParams extends ApiRequestParams { * {@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 kg_tin}, * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, - * {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code - * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code - * ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} + * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, + * {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, + * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, + * {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -146,15 +146,15 @@ public Builder putAllExtraParam(Map map) { * {@code ge_vat}, {@code gn_nif}, {@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 kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code - * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, - * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code - * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, - * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code - * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, - * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} + * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, + * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code + * pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code + * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(CustomerTaxIdCreateParams.Type type) { this.type = type; @@ -367,6 +367,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_vat") LI_VAT("li_vat"), + @SerializedName("lk_vat") + LK_VAT("lk_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/FileCreateParams.java b/src/main/java/com/stripe/param/FileCreateParams.java index 050660b7e08..24c837c5f85 100644 --- a/src/main/java/com/stripe/param/FileCreateParams.java +++ b/src/main/java/com/stripe/param/FileCreateParams.java @@ -371,7 +371,13 @@ public enum Purpose implements ApiRequestParams.EnumParam { TERMINAL_ANDROID_APK("terminal_android_apk"), @SerializedName("terminal_reader_splashscreen") - TERMINAL_READER_SPLASHSCREEN("terminal_reader_splashscreen"); + TERMINAL_READER_SPLASHSCREEN("terminal_reader_splashscreen"), + + @SerializedName("terminal_wifi_certificate") + TERMINAL_WIFI_CERTIFICATE("terminal_wifi_certificate"), + + @SerializedName("terminal_wifi_private_key") + TERMINAL_WIFI_PRIVATE_KEY("terminal_wifi_private_key"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/FileListParams.java b/src/main/java/com/stripe/param/FileListParams.java index f0085ee3138..eaf277836e1 100644 --- a/src/main/java/com/stripe/param/FileListParams.java +++ b/src/main/java/com/stripe/param/FileListParams.java @@ -379,7 +379,13 @@ public enum Purpose implements ApiRequestParams.EnumParam { TERMINAL_ANDROID_APK("terminal_android_apk"), @SerializedName("terminal_reader_splashscreen") - TERMINAL_READER_SPLASHSCREEN("terminal_reader_splashscreen"); + TERMINAL_READER_SPLASHSCREEN("terminal_reader_splashscreen"), + + @SerializedName("terminal_wifi_certificate") + TERMINAL_WIFI_CERTIFICATE("terminal_wifi_certificate"), + + @SerializedName("terminal_wifi_private_key") + TERMINAL_WIFI_PRIVATE_KEY("terminal_wifi_private_key"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/InvoiceCreateParams.java b/src/main/java/com/stripe/param/InvoiceCreateParams.java index 3f197a5c788..fac571ad3ca 100644 --- a/src/main/java/com/stripe/param/InvoiceCreateParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreateParams.java @@ -2931,8 +2931,7 @@ public Builder setType(String type) { public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") String country; @@ -2971,8 +2970,8 @@ public static class Builder { /** * Required. The desired country code of the bank account - * information. Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code - * FR}, {@code IE}, or {@code NL}. + * information. Permitted values include: {@code DE}, {@code FR}, {@code IE}, or + * {@code NL}. */ public Builder setCountry(String country) { this.country = country; @@ -3939,6 +3938,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("p24") P24("p24"), + @SerializedName("pay_by_bank") + PAY_BY_BANK("pay_by_bank"), + @SerializedName("payco") PAYCO("payco"), diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index 8797706e760..fea9bd6b50e 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -1406,15 +1406,15 @@ public static class TaxId { * {@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 kg_tin}, {@code kh_tin}, * {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code - * ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, - * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code - * tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, - * {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code - * zw_tin} + * lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, + * {@code ph_tin}, {@code pl_nip}, {@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 sn_ninea}, + * {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code + * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, + * {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code + * zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -1488,15 +1488,15 @@ public Builder putAllExtraParam(Map map) { * 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 kg_tin}, {@code * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, - * {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code - * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code - * ph_tin}, {@code pl_nip}, {@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 sn_ninea}, {@code - * sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, - * {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code - * uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, - * or {@code zw_tin} + * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code + * mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code + * pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@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 + * sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code + * tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, + * {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code + * za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(InvoiceCreatePreviewParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1709,6 +1709,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_vat") LI_VAT("li_vat"), + @SerializedName("lk_vat") + LK_VAT("lk_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceUpdateParams.java b/src/main/java/com/stripe/param/InvoiceUpdateParams.java index 73c20e08e6e..61c19645981 100644 --- a/src/main/java/com/stripe/param/InvoiceUpdateParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpdateParams.java @@ -2915,8 +2915,7 @@ public Builder setType(EmptyParam type) { public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") Object country; @@ -2955,8 +2954,8 @@ public static class Builder { /** * Required. The desired country code of the bank account - * information. Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code - * FR}, {@code IE}, or {@code NL}. + * information. Permitted values include: {@code DE}, {@code FR}, {@code IE}, or + * {@code NL}. */ public Builder setCountry(String country) { this.country = country; @@ -2965,8 +2964,8 @@ public Builder setCountry(String country) { /** * Required. The desired country code of the bank account - * information. Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code - * FR}, {@code IE}, or {@code NL}. + * information. Permitted values include: {@code DE}, {@code FR}, {@code IE}, or + * {@code NL}. */ public Builder setCountry(EmptyParam country) { this.country = country; @@ -3933,6 +3932,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("p24") P24("p24"), + @SerializedName("pay_by_bank") + PAY_BY_BANK("pay_by_bank"), + @SerializedName("payco") PAYCO("payco"), diff --git a/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java index 7aec63f319b..ec7a6702ae0 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java @@ -400,8 +400,8 @@ public static class AmountDetails { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic validation - * error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ @SerializedName("enforce_arithmetic_validation") Boolean enforceArithmeticValidation; @@ -508,8 +508,8 @@ public Builder setDiscountAmount(EmptyParam discountAmount) { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic - * validation error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ public Builder setEnforceArithmeticValidation(Boolean enforceArithmeticValidation) { this.enforceArithmeticValidation = enforceArithmeticValidation; @@ -654,7 +654,7 @@ public static class LineItem { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ @SerializedName("product_name") String productName; @@ -803,7 +803,7 @@ public Builder setProductCode(String productCode) { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ public Builder setProductName(String productName) { this.productName = productName; @@ -846,15 +846,15 @@ public Builder setUnitOfMeasure(String unitOfMeasure) { @EqualsAndHashCode(callSuper = false) public static class PaymentMethodOptions { /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ @SerializedName("card") Card card; /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ @SerializedName("card_present") CardPresent cardPresent; @@ -870,15 +870,15 @@ public static class PaymentMethodOptions { Map extraParams; /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} payment + * method. */ @SerializedName("klarna") Klarna klarna; /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} payment + * method. */ @SerializedName("paypal") Paypal paypal; @@ -918,8 +918,8 @@ public PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions bu } /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ public Builder setCard( PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions.Card card) { @@ -928,8 +928,8 @@ public Builder setCard( } /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ public Builder setCardPresent( PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent @@ -969,8 +969,8 @@ public Builder putAllExtraParam(Map map) { } /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} + * payment method. */ public Builder setKlarna( PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna @@ -980,8 +980,8 @@ public Builder setKlarna( } /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} + * payment method. */ public Builder setPaypal( PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal @@ -996,7 +996,7 @@ public Builder setPaypal( public static class Card { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") String commodityCode; @@ -1034,7 +1034,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; @@ -1078,7 +1078,7 @@ public Builder putAllExtraParam(Map map) { public static class CardPresent { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") String commodityCode; @@ -1117,7 +1117,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 669e9aff1b0..380152b2943 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -698,8 +698,8 @@ public static class AmountDetails { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic validation - * error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ @SerializedName("enforce_arithmetic_validation") Boolean enforceArithmeticValidation; @@ -806,8 +806,8 @@ public Builder setDiscountAmount(EmptyParam discountAmount) { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic - * validation error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ public Builder setEnforceArithmeticValidation(Boolean enforceArithmeticValidation) { this.enforceArithmeticValidation = enforceArithmeticValidation; @@ -952,7 +952,7 @@ public static class LineItem { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ @SerializedName("product_name") String productName; @@ -1101,7 +1101,7 @@ public Builder setProductCode(String productCode) { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ public Builder setProductName(String productName) { this.productName = productName; @@ -1144,15 +1144,15 @@ public Builder setUnitOfMeasure(String unitOfMeasure) { @EqualsAndHashCode(callSuper = false) public static class PaymentMethodOptions { /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ @SerializedName("card") Card card; /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ @SerializedName("card_present") CardPresent cardPresent; @@ -1168,15 +1168,15 @@ public static class PaymentMethodOptions { Map extraParams; /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} payment + * method. */ @SerializedName("klarna") Klarna klarna; /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} payment + * method. */ @SerializedName("paypal") Paypal paypal; @@ -1216,8 +1216,8 @@ public PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions bu } /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ public Builder setCard( PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions.Card card) { @@ -1226,8 +1226,8 @@ public Builder setCard( } /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ public Builder setCardPresent( PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent @@ -1267,8 +1267,8 @@ public Builder putAllExtraParam(Map map) { } /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} + * payment method. */ public Builder setKlarna( PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna @@ -1278,8 +1278,8 @@ public Builder setKlarna( } /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} + * payment method. */ public Builder setPaypal( PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal @@ -1294,7 +1294,7 @@ public Builder setPaypal( public static class Card { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") String commodityCode; @@ -1332,7 +1332,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; @@ -1376,7 +1376,7 @@ public Builder putAllExtraParam(Map map) { public static class CardPresent { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") String commodityCode; @@ -1415,7 +1415,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; @@ -15537,8 +15537,7 @@ public Builder setType( public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") String country; @@ -15577,8 +15576,7 @@ public static class Builder { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ public Builder setCountry(String country) { this.country = country; @@ -22246,6 +22244,10 @@ public static class UsBankAccount { @SerializedName("target_date") String targetDate; + /** The purpose of the transaction. */ + @SerializedName("transaction_purpose") + ApiRequestParams.EnumParam transactionPurpose; + /** Bank account verification method. */ @SerializedName("verification_method") VerificationMethod verificationMethod; @@ -22258,6 +22260,7 @@ private UsBankAccount( ApiRequestParams.EnumParam preferredSettlementSpeed, ApiRequestParams.EnumParam setupFutureUsage, String targetDate, + ApiRequestParams.EnumParam transactionPurpose, VerificationMethod verificationMethod) { this.extraParams = extraParams; this.financialConnections = financialConnections; @@ -22266,6 +22269,7 @@ private UsBankAccount( this.preferredSettlementSpeed = preferredSettlementSpeed; this.setupFutureUsage = setupFutureUsage; this.targetDate = targetDate; + this.transactionPurpose = transactionPurpose; this.verificationMethod = verificationMethod; } @@ -22288,6 +22292,8 @@ public static class Builder { private String targetDate; + private ApiRequestParams.EnumParam transactionPurpose; + private VerificationMethod verificationMethod; /** Finalize and obtain parameter instance from this builder. */ @@ -22300,6 +22306,7 @@ public PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount build() { this.preferredSettlementSpeed, this.setupFutureUsage, this.targetDate, + this.transactionPurpose, this.verificationMethod); } @@ -22440,6 +22447,20 @@ public Builder setTargetDate(String targetDate) { return this; } + /** The purpose of the transaction. */ + public Builder setTransactionPurpose( + PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.TransactionPurpose + transactionPurpose) { + this.transactionPurpose = transactionPurpose; + return this; + } + + /** The purpose of the transaction. */ + public Builder setTransactionPurpose(EmptyParam transactionPurpose) { + this.transactionPurpose = transactionPurpose; + return this; + } + /** Bank account verification method. */ public Builder setVerificationMethod( PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.VerificationMethod @@ -23095,6 +23116,27 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + public enum TransactionPurpose implements ApiRequestParams.EnumParam { + @SerializedName("goods") + GOODS("goods"), + + @SerializedName("other") + OTHER("other"), + + @SerializedName("services") + SERVICES("services"), + + @SerializedName("unspecified") + UNSPECIFIED("unspecified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + TransactionPurpose(String value) { + this.value = value; + } + } + public enum VerificationMethod implements ApiRequestParams.EnumParam { @SerializedName("automatic") AUTOMATIC("automatic"), diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index f72c5652648..97ad5db0d0c 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -1101,8 +1101,8 @@ public static class AmountDetails { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic validation - * error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ @SerializedName("enforce_arithmetic_validation") Boolean enforceArithmeticValidation; @@ -1209,8 +1209,8 @@ public Builder setDiscountAmount(EmptyParam discountAmount) { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic - * validation error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ public Builder setEnforceArithmeticValidation(Boolean enforceArithmeticValidation) { this.enforceArithmeticValidation = enforceArithmeticValidation; @@ -1355,7 +1355,7 @@ public static class LineItem { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ @SerializedName("product_name") String productName; @@ -1504,7 +1504,7 @@ public Builder setProductCode(String productCode) { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ public Builder setProductName(String productName) { this.productName = productName; @@ -1547,15 +1547,15 @@ public Builder setUnitOfMeasure(String unitOfMeasure) { @EqualsAndHashCode(callSuper = false) public static class PaymentMethodOptions { /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ @SerializedName("card") Card card; /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ @SerializedName("card_present") CardPresent cardPresent; @@ -1571,15 +1571,15 @@ public static class PaymentMethodOptions { Map extraParams; /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} payment + * method. */ @SerializedName("klarna") Klarna klarna; /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} payment + * method. */ @SerializedName("paypal") Paypal paypal; @@ -1619,8 +1619,8 @@ public PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions bui } /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ public Builder setCard( PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions.Card card) { @@ -1629,8 +1629,8 @@ public Builder setCard( } /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ public Builder setCardPresent( PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent @@ -1670,8 +1670,8 @@ public Builder putAllExtraParam(Map map) { } /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} + * payment method. */ public Builder setKlarna( PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna klarna) { @@ -1680,8 +1680,8 @@ public Builder setKlarna( } /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} + * payment method. */ public Builder setPaypal( PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal paypal) { @@ -1695,7 +1695,7 @@ public Builder setPaypal( public static class Card { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") String commodityCode; @@ -1733,7 +1733,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; @@ -1777,7 +1777,7 @@ public Builder putAllExtraParam(Map map) { public static class CardPresent { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") String commodityCode; @@ -1815,7 +1815,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; @@ -16050,8 +16050,7 @@ public Builder setType( public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") String country; @@ -16090,8 +16089,7 @@ public static class Builder { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ public Builder setCountry(String country) { this.country = country; @@ -22748,6 +22746,10 @@ public static class UsBankAccount { @SerializedName("target_date") String targetDate; + /** The purpose of the transaction. */ + @SerializedName("transaction_purpose") + ApiRequestParams.EnumParam transactionPurpose; + /** Bank account verification method. */ @SerializedName("verification_method") VerificationMethod verificationMethod; @@ -22760,6 +22762,7 @@ private UsBankAccount( ApiRequestParams.EnumParam preferredSettlementSpeed, ApiRequestParams.EnumParam setupFutureUsage, String targetDate, + ApiRequestParams.EnumParam transactionPurpose, VerificationMethod verificationMethod) { this.extraParams = extraParams; this.financialConnections = financialConnections; @@ -22768,6 +22771,7 @@ private UsBankAccount( this.preferredSettlementSpeed = preferredSettlementSpeed; this.setupFutureUsage = setupFutureUsage; this.targetDate = targetDate; + this.transactionPurpose = transactionPurpose; this.verificationMethod = verificationMethod; } @@ -22790,6 +22794,8 @@ public static class Builder { private String targetDate; + private ApiRequestParams.EnumParam transactionPurpose; + private VerificationMethod verificationMethod; /** Finalize and obtain parameter instance from this builder. */ @@ -22802,6 +22808,7 @@ public PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount build() { this.preferredSettlementSpeed, this.setupFutureUsage, this.targetDate, + this.transactionPurpose, this.verificationMethod); } @@ -22940,6 +22947,20 @@ public Builder setTargetDate(String targetDate) { return this; } + /** The purpose of the transaction. */ + public Builder setTransactionPurpose( + PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.TransactionPurpose + transactionPurpose) { + this.transactionPurpose = transactionPurpose; + return this; + } + + /** The purpose of the transaction. */ + public Builder setTransactionPurpose(EmptyParam transactionPurpose) { + this.transactionPurpose = transactionPurpose; + return this; + } + /** Bank account verification method. */ public Builder setVerificationMethod( PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.VerificationMethod @@ -23595,6 +23616,27 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + public enum TransactionPurpose implements ApiRequestParams.EnumParam { + @SerializedName("goods") + GOODS("goods"), + + @SerializedName("other") + OTHER("other"), + + @SerializedName("services") + SERVICES("services"), + + @SerializedName("unspecified") + UNSPECIFIED("unspecified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + TransactionPurpose(String value) { + this.value = value; + } + } + public enum VerificationMethod implements ApiRequestParams.EnumParam { @SerializedName("automatic") AUTOMATIC("automatic"), diff --git a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java index 5c6ed24b654..490b0020c7d 100644 --- a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java @@ -328,8 +328,8 @@ public static class AmountDetails { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic validation - * error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ @SerializedName("enforce_arithmetic_validation") Boolean enforceArithmeticValidation; @@ -436,8 +436,8 @@ public Builder setDiscountAmount(EmptyParam discountAmount) { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic - * validation error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ public Builder setEnforceArithmeticValidation(Boolean enforceArithmeticValidation) { this.enforceArithmeticValidation = enforceArithmeticValidation; @@ -591,7 +591,7 @@ public static class LineItem { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ @SerializedName("product_name") String productName; @@ -742,7 +742,7 @@ public Builder setProductCode(String productCode) { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ public Builder setProductName(String productName) { this.productName = productName; @@ -786,15 +786,15 @@ public Builder setUnitOfMeasure(String unitOfMeasure) { @EqualsAndHashCode(callSuper = false) public static class PaymentMethodOptions { /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ @SerializedName("card") Card card; /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ @SerializedName("card_present") CardPresent cardPresent; @@ -810,15 +810,15 @@ public static class PaymentMethodOptions { Map extraParams; /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} payment + * method. */ @SerializedName("klarna") Klarna klarna; /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} payment + * method. */ @SerializedName("paypal") Paypal paypal; @@ -861,8 +861,8 @@ public static class Builder { } /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ public Builder setCard( PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions @@ -873,8 +873,8 @@ public Builder setCard( } /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ public Builder setCardPresent( PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions @@ -915,8 +915,8 @@ public Builder putAllExtraParam(Map map) { } /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} + * payment method. */ public Builder setKlarna( PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions @@ -927,8 +927,8 @@ public Builder setKlarna( } /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} + * payment method. */ public Builder setPaypal( PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions @@ -944,7 +944,7 @@ public Builder setPaypal( public static class Card { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") String commodityCode; @@ -983,7 +983,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; @@ -1027,7 +1027,7 @@ public Builder putAllExtraParam(Map map) { public static class CardPresent { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") String commodityCode; @@ -1066,7 +1066,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 9225d5c5a09..36189aa82ed 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -1000,8 +1000,8 @@ public static class AmountDetails { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic validation - * error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ @SerializedName("enforce_arithmetic_validation") Boolean enforceArithmeticValidation; @@ -1108,8 +1108,8 @@ public Builder setDiscountAmount(EmptyParam discountAmount) { * fails. Use this for strict validation that prevents processing with line item data that has * arithmetic inconsistencies. * - *

For card payments, Stripe doesn't send line item data if there's an arithmetic - * validation error to card networks. + *

For card payments, Stripe doesn't send line item data to card networks if there's an + * arithmetic validation error. */ public Builder setEnforceArithmeticValidation(Boolean enforceArithmeticValidation) { this.enforceArithmeticValidation = enforceArithmeticValidation; @@ -1254,7 +1254,7 @@ public static class LineItem { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ @SerializedName("product_name") Object productName; @@ -1412,7 +1412,7 @@ public Builder setProductCode(EmptyParam productCode) { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ public Builder setProductName(String productName) { this.productName = productName; @@ -1424,7 +1424,7 @@ public Builder setProductName(String productName) { * most 1024 characters long. * *

For Cards, this field is truncated to 26 alphanumeric characters before being sent to - * the card networks. For Paypal, this field is truncated to 127 characters. + * the card networks. For PayPal, this field is truncated to 127 characters. */ public Builder setProductName(EmptyParam productName) { this.productName = productName; @@ -1473,15 +1473,15 @@ public Builder setUnitOfMeasure(EmptyParam unitOfMeasure) { @EqualsAndHashCode(callSuper = false) public static class PaymentMethodOptions { /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ @SerializedName("card") Card card; /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ @SerializedName("card_present") CardPresent cardPresent; @@ -1497,15 +1497,15 @@ public static class PaymentMethodOptions { Map extraParams; /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} payment + * method. */ @SerializedName("klarna") Klarna klarna; /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} payment + * method. */ @SerializedName("paypal") Paypal paypal; @@ -1545,8 +1545,8 @@ public PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions bui } /** - * This sub-hash contains line item details that are specific to {@code card} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code card} payment + * method. */ public Builder setCard( PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions.Card card) { @@ -1555,8 +1555,8 @@ public Builder setCard( } /** - * This sub-hash contains line item details that are specific to {@code card_present} - * payment method.". + * This sub-hash contains line item details that are specific to the {@code card_present} + * payment method. */ public Builder setCardPresent( PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent @@ -1596,8 +1596,8 @@ public Builder putAllExtraParam(Map map) { } /** - * This sub-hash contains line item details that are specific to {@code klarna} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code klarna} + * payment method. */ public Builder setKlarna( PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna klarna) { @@ -1606,8 +1606,8 @@ public Builder setKlarna( } /** - * This sub-hash contains line item details that are specific to {@code paypal} payment - * method.". + * This sub-hash contains line item details that are specific to the {@code paypal} + * payment method. */ public Builder setPaypal( PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal paypal) { @@ -1621,7 +1621,7 @@ public Builder setPaypal( public static class Card { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") Object commodityCode; @@ -1659,7 +1659,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; @@ -1668,7 +1668,7 @@ public Builder setCommodityCode(String commodityCode) { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(EmptyParam commodityCode) { this.commodityCode = commodityCode; @@ -1712,7 +1712,7 @@ public Builder putAllExtraParam(Map map) { public static class CardPresent { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ @SerializedName("commodity_code") Object commodityCode; @@ -1750,7 +1750,7 @@ public static class Builder { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(String commodityCode) { this.commodityCode = commodityCode; @@ -1759,7 +1759,7 @@ public Builder setCommodityCode(String commodityCode) { /** * Identifier that categorizes the items being purchased using a standardized commodity - * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + * scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. */ public Builder setCommodityCode(EmptyParam commodityCode) { this.commodityCode = commodityCode; @@ -15849,8 +15849,7 @@ public Builder setType( public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") Object country; @@ -15889,8 +15888,7 @@ public static class Builder { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ public Builder setCountry(String country) { this.country = country; @@ -15899,8 +15897,7 @@ public Builder setCountry(String country) { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ public Builder setCountry(EmptyParam country) { this.country = country; @@ -22626,6 +22623,10 @@ public static class UsBankAccount { @SerializedName("target_date") Object targetDate; + /** The purpose of the transaction. */ + @SerializedName("transaction_purpose") + ApiRequestParams.EnumParam transactionPurpose; + /** Bank account verification method. */ @SerializedName("verification_method") VerificationMethod verificationMethod; @@ -22638,6 +22639,7 @@ private UsBankAccount( ApiRequestParams.EnumParam preferredSettlementSpeed, ApiRequestParams.EnumParam setupFutureUsage, Object targetDate, + ApiRequestParams.EnumParam transactionPurpose, VerificationMethod verificationMethod) { this.extraParams = extraParams; this.financialConnections = financialConnections; @@ -22646,6 +22648,7 @@ private UsBankAccount( this.preferredSettlementSpeed = preferredSettlementSpeed; this.setupFutureUsage = setupFutureUsage; this.targetDate = targetDate; + this.transactionPurpose = transactionPurpose; this.verificationMethod = verificationMethod; } @@ -22668,6 +22671,8 @@ public static class Builder { private Object targetDate; + private ApiRequestParams.EnumParam transactionPurpose; + private VerificationMethod verificationMethod; /** Finalize and obtain parameter instance from this builder. */ @@ -22680,6 +22685,7 @@ public PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount build() { this.preferredSettlementSpeed, this.setupFutureUsage, this.targetDate, + this.transactionPurpose, this.verificationMethod); } @@ -22828,6 +22834,20 @@ public Builder setTargetDate(EmptyParam targetDate) { return this; } + /** The purpose of the transaction. */ + public Builder setTransactionPurpose( + PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.TransactionPurpose + transactionPurpose) { + this.transactionPurpose = transactionPurpose; + return this; + } + + /** The purpose of the transaction. */ + public Builder setTransactionPurpose(EmptyParam transactionPurpose) { + this.transactionPurpose = transactionPurpose; + return this; + } + /** Bank account verification method. */ public Builder setVerificationMethod( PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.VerificationMethod @@ -23492,6 +23512,27 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + public enum TransactionPurpose implements ApiRequestParams.EnumParam { + @SerializedName("goods") + GOODS("goods"), + + @SerializedName("other") + OTHER("other"), + + @SerializedName("services") + SERVICES("services"), + + @SerializedName("unspecified") + UNSPECIFIED("unspecified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + TransactionPurpose(String value) { + this.value = value; + } + } + public enum VerificationMethod implements ApiRequestParams.EnumParam { @SerializedName("automatic") AUTOMATIC("automatic"), diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index 5b70c912672..031e01a8480 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -1716,8 +1716,8 @@ public Builder setType(PaymentLinkCreateParams.CustomField.Type type) { @EqualsAndHashCode(callSuper = false) public static class Dropdown { /** - * The value that will pre-fill the field on the payment page.Must match a {@code value} in - * the {@code options} array. + * The value that pre-fills the field on the payment page.Must match a {@code value} in the + * {@code options} array. */ @SerializedName("default_value") String defaultValue; @@ -1765,8 +1765,8 @@ public PaymentLinkCreateParams.CustomField.Dropdown build() { } /** - * The value that will pre-fill the field on the payment page.Must match a {@code value} in - * the {@code options} array. + * The value that pre-fills the field on the payment page.Must match a {@code value} in the + * {@code options} array. */ public Builder setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; @@ -2036,7 +2036,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) public static class Numeric { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -2087,7 +2087,7 @@ public PaymentLinkCreateParams.CustomField.Numeric build() { this.defaultValue, this.extraParams, this.maximumLength, this.minimumLength); } - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ public Builder setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; return this; @@ -2138,7 +2138,7 @@ public Builder setMinimumLength(Long minimumLength) { @Getter @EqualsAndHashCode(callSuper = false) public static class Text { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -2189,7 +2189,7 @@ public PaymentLinkCreateParams.CustomField.Text build() { this.defaultValue, this.extraParams, this.maximumLength, this.minimumLength); } - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ public Builder setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; return this; @@ -2419,7 +2419,7 @@ public static class AfterSubmit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") String message; @@ -2470,7 +2470,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; @@ -2490,7 +2490,7 @@ public static class ShippingAddress { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") String message; @@ -2542,7 +2542,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; @@ -2562,7 +2562,7 @@ public static class Submit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") String message; @@ -2613,7 +2613,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; @@ -2633,7 +2633,7 @@ public static class TermsOfServiceAcceptance { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") String message; @@ -2685,7 +2685,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index fbf7d674611..43bb3383dec 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -103,6 +103,16 @@ public class PaymentLinkUpdateParams extends ApiRequestParams { @SerializedName("name_collection") Object nameCollection; + /** + * A list of optional items the customer can add to their order at checkout. Use this parameter to + * pass one-time or recurring Prices. There is a + * maximum of 10 optional items allowed on a payment link, and the existing limits on the number + * of line items allowed on a payment link apply to the combined number of line items and optional + * items. There is a maximum of 20 combined line items and optional items. + */ + @SerializedName("optional_items") + Object optionalItems; + /** * A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in {@code * payment} mode. @@ -184,6 +194,7 @@ private PaymentLinkUpdateParams( List lineItems, Map metadata, Object nameCollection, + Object optionalItems, PaymentIntentData paymentIntentData, PaymentMethodCollection paymentMethodCollection, Object paymentMethodTypes, @@ -208,6 +219,7 @@ private PaymentLinkUpdateParams( this.lineItems = lineItems; this.metadata = metadata; this.nameCollection = nameCollection; + this.optionalItems = optionalItems; this.paymentIntentData = paymentIntentData; this.paymentMethodCollection = paymentMethodCollection; this.paymentMethodTypes = paymentMethodTypes; @@ -254,6 +266,8 @@ public static class Builder { private Object nameCollection; + private Object optionalItems; + private PaymentIntentData paymentIntentData; private PaymentMethodCollection paymentMethodCollection; @@ -290,6 +304,7 @@ public PaymentLinkUpdateParams build() { this.lineItems, this.metadata, this.nameCollection, + this.optionalItems, this.paymentIntentData, this.paymentMethodCollection, this.paymentMethodTypes, @@ -534,6 +549,58 @@ public Builder setNameCollection(EmptyParam nameCollection) { return this; } + /** + * Add an element to `optionalItems` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PaymentLinkUpdateParams#optionalItems} for the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder addOptionalItem(PaymentLinkUpdateParams.OptionalItem element) { + if (this.optionalItems == null || this.optionalItems instanceof EmptyParam) { + this.optionalItems = new ArrayList(); + } + ((List) this.optionalItems).add(element); + return this; + } + + /** + * Add all elements to `optionalItems` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * PaymentLinkUpdateParams#optionalItems} for the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder addAllOptionalItem(List elements) { + if (this.optionalItems == null || this.optionalItems instanceof EmptyParam) { + this.optionalItems = new ArrayList(); + } + ((List) this.optionalItems).addAll(elements); + return this; + } + + /** + * A list of optional items the customer can add to their order at checkout. Use this parameter + * to pass one-time or recurring Prices. There + * is a maximum of 10 optional items allowed on a payment link, and the existing limits on the + * number of line items allowed on a payment link apply to the combined number of line items and + * optional items. There is a maximum of 20 combined line items and optional items. + */ + public Builder setOptionalItems(EmptyParam optionalItems) { + this.optionalItems = optionalItems; + return this; + } + + /** + * A list of optional items the customer can add to their order at checkout. Use this parameter + * to pass one-time or recurring Prices. There + * is a maximum of 10 optional items allowed on a payment link, and the existing limits on the + * number of line items allowed on a payment link apply to the combined number of line items and + * optional items. There is a maximum of 20 combined line items and optional items. + */ + public Builder setOptionalItems(List optionalItems) { + this.optionalItems = optionalItems; + return this; + } + /** * A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in {@code * payment} mode. @@ -1368,8 +1435,8 @@ public Builder setType(PaymentLinkUpdateParams.CustomField.Type type) { @EqualsAndHashCode(callSuper = false) public static class Dropdown { /** - * The value that will pre-fill the field on the payment page.Must match a {@code value} in - * the {@code options} array. + * The value that pre-fills the field on the payment page.Must match a {@code value} in the + * {@code options} array. */ @SerializedName("default_value") Object defaultValue; @@ -1417,8 +1484,8 @@ public PaymentLinkUpdateParams.CustomField.Dropdown build() { } /** - * The value that will pre-fill the field on the payment page.Must match a {@code value} in - * the {@code options} array. + * The value that pre-fills the field on the payment page.Must match a {@code value} in the + * {@code options} array. */ public Builder setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; @@ -1426,8 +1493,8 @@ public Builder setDefaultValue(String defaultValue) { } /** - * The value that will pre-fill the field on the payment page.Must match a {@code value} in - * the {@code options} array. + * The value that pre-fills the field on the payment page.Must match a {@code value} in the + * {@code options} array. */ public Builder setDefaultValue(EmptyParam defaultValue) { this.defaultValue = defaultValue; @@ -1725,7 +1792,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) public static class Numeric { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") Object defaultValue; @@ -1776,13 +1843,13 @@ public PaymentLinkUpdateParams.CustomField.Numeric build() { this.defaultValue, this.extraParams, this.maximumLength, this.minimumLength); } - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ public Builder setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; return this; } - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ public Builder setDefaultValue(EmptyParam defaultValue) { this.defaultValue = defaultValue; return this; @@ -1833,7 +1900,7 @@ public Builder setMinimumLength(Long minimumLength) { @Getter @EqualsAndHashCode(callSuper = false) public static class Text { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") Object defaultValue; @@ -1884,13 +1951,13 @@ public PaymentLinkUpdateParams.CustomField.Text build() { this.defaultValue, this.extraParams, this.maximumLength, this.minimumLength); } - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ public Builder setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; return this; } - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ public Builder setDefaultValue(EmptyParam defaultValue) { this.defaultValue = defaultValue; return this; @@ -2120,7 +2187,7 @@ public static class AfterSubmit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") Object message; @@ -2171,13 +2238,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(EmptyParam message) { this.message = message; return this; @@ -2197,7 +2264,7 @@ public static class ShippingAddress { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") Object message; @@ -2249,13 +2316,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(EmptyParam message) { this.message = message; return this; @@ -2275,7 +2342,7 @@ public static class Submit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") Object message; @@ -2326,13 +2393,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(EmptyParam message) { this.message = message; return this; @@ -2352,7 +2419,7 @@ public static class TermsOfServiceAcceptance { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") Object message; @@ -2404,13 +2471,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(EmptyParam message) { this.message = message; return this; @@ -3699,6 +3766,256 @@ public Builder setOptional(Boolean optional) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class OptionalItem { + /** + * When set, provides configuration for the customer to adjust the quantity of the line item + * created when a customer chooses to add this optional item to their order. + */ + @SerializedName("adjustable_quantity") + AdjustableQuantity adjustableQuantity; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Required. The ID of the Price or Plan object. + */ + @SerializedName("price") + Object price; + + /** + * Required. The initial quantity of the line item created when a customer + * chooses to add this optional item to their order. + */ + @SerializedName("quantity") + Long quantity; + + private OptionalItem( + AdjustableQuantity adjustableQuantity, + Map extraParams, + Object price, + Long quantity) { + this.adjustableQuantity = adjustableQuantity; + this.extraParams = extraParams; + this.price = price; + this.quantity = quantity; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private AdjustableQuantity adjustableQuantity; + + private Map extraParams; + + private Object price; + + private Long quantity; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentLinkUpdateParams.OptionalItem build() { + return new PaymentLinkUpdateParams.OptionalItem( + this.adjustableQuantity, this.extraParams, this.price, this.quantity); + } + + /** + * When set, provides configuration for the customer to adjust the quantity of the line item + * created when a customer chooses to add this optional item to their order. + */ + public Builder setAdjustableQuantity( + PaymentLinkUpdateParams.OptionalItem.AdjustableQuantity adjustableQuantity) { + this.adjustableQuantity = adjustableQuantity; + 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 + * PaymentLinkUpdateParams.OptionalItem#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 PaymentLinkUpdateParams.OptionalItem#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Required. The ID of the Price or Plan object. + */ + public Builder setPrice(String price) { + this.price = price; + return this; + } + + /** + * Required. The ID of the Price or Plan object. + */ + public Builder setPrice(EmptyParam price) { + this.price = price; + return this; + } + + /** + * Required. The initial quantity of the line item created when a customer + * chooses to add this optional item to their order. + */ + public Builder setQuantity(Long quantity) { + this.quantity = quantity; + return this; + } + } + + @Getter + @EqualsAndHashCode(callSuper = false) + public static class AdjustableQuantity { + /** + * Required. Set to true if the quantity can be adjusted to any non-negative + * integer. + */ + @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; + + /** + * The maximum quantity of this item the customer can purchase. By default this value is 99. + */ + @SerializedName("maximum") + Long maximum; + + /** + * The minimum quantity of this item the customer must purchase, if they choose to purchase + * it. Because this item is optional, the customer will always be able to remove it from their + * order, even if the {@code minimum} configured here is greater than 0. By default this value + * is 0. + */ + @SerializedName("minimum") + Long minimum; + + private AdjustableQuantity( + Boolean enabled, Map extraParams, Long maximum, Long minimum) { + this.enabled = enabled; + this.extraParams = extraParams; + this.maximum = maximum; + this.minimum = minimum; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean enabled; + + private Map extraParams; + + private Long maximum; + + private Long minimum; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentLinkUpdateParams.OptionalItem.AdjustableQuantity build() { + return new PaymentLinkUpdateParams.OptionalItem.AdjustableQuantity( + this.enabled, this.extraParams, this.maximum, this.minimum); + } + + /** + * Required. Set to true if the quantity can be adjusted to any + * non-negative integer. + */ + 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 PaymentLinkUpdateParams.OptionalItem.AdjustableQuantity#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 PaymentLinkUpdateParams.OptionalItem.AdjustableQuantity#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * The maximum quantity of this item the customer can purchase. By default this value is 99. + */ + public Builder setMaximum(Long maximum) { + this.maximum = maximum; + return this; + } + + /** + * The minimum quantity of this item the customer must purchase, if they choose to purchase + * it. Because this item is optional, the customer will always be able to remove it from + * their order, even if the {@code minimum} configured here is greater than 0. By default + * this value is 0. + */ + public Builder setMinimum(Long minimum) { + this.minimum = minimum; + return this; + } + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class PaymentIntentData { diff --git a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptCanceledParams.java b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptCanceledParams.java index 0aad0a5bcaa..3b0884e6813 100644 --- a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptCanceledParams.java +++ b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptCanceledParams.java @@ -34,6 +34,12 @@ public class PaymentRecordReportPaymentAttemptCanceledParams extends ApiRequestP @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys can + * be unset by posting an empty value to {@code metadata}. + */ @SerializedName("metadata") Object metadata; @@ -155,11 +161,23 @@ public Builder putAllMetadata(Map map) { return this; } + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys + * can be unset by posting an empty value to {@code metadata}. + */ public Builder setMetadata(EmptyParam metadata) { this.metadata = metadata; return this; } + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys + * can be unset by posting an empty value to {@code metadata}. + */ public Builder setMetadata(Map metadata) { this.metadata = metadata; return this; diff --git a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptFailedParams.java b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptFailedParams.java index 6ce79b2039b..5b4bf31506f 100644 --- a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptFailedParams.java +++ b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptFailedParams.java @@ -34,6 +34,12 @@ public class PaymentRecordReportPaymentAttemptFailedParams extends ApiRequestPar @SerializedName("failed_at") Long failedAt; + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys can + * be unset by posting an empty value to {@code metadata}. + */ @SerializedName("metadata") Object metadata; @@ -155,11 +161,23 @@ public Builder putAllMetadata(Map map) { return this; } + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys + * can be unset by posting an empty value to {@code metadata}. + */ public Builder setMetadata(EmptyParam metadata) { this.metadata = metadata; return this; } + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys + * can be unset by posting an empty value to {@code metadata}. + */ public Builder setMetadata(Map metadata) { this.metadata = metadata; return this; diff --git a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptGuaranteedParams.java b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptGuaranteedParams.java index 34b62376aa8..ad95ccaf5bc 100644 --- a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptGuaranteedParams.java +++ b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptGuaranteedParams.java @@ -34,6 +34,12 @@ public class PaymentRecordReportPaymentAttemptGuaranteedParams extends ApiReques @SerializedName("guaranteed_at") Long guaranteedAt; + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys can + * be unset by posting an empty value to {@code metadata}. + */ @SerializedName("metadata") Object metadata; @@ -155,11 +161,23 @@ public Builder putAllMetadata(Map map) { return this; } + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys + * can be unset by posting an empty value to {@code metadata}. + */ public Builder setMetadata(EmptyParam metadata) { this.metadata = metadata; return this; } + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys + * can be unset by posting an empty value to {@code metadata}. + */ public Builder setMetadata(Map metadata) { this.metadata = metadata; return this; diff --git a/src/main/java/com/stripe/param/PromotionCodeCreateParams.java b/src/main/java/com/stripe/param/PromotionCodeCreateParams.java index 0cf5e0616d1..c2a2da106ff 100644 --- a/src/main/java/com/stripe/param/PromotionCodeCreateParams.java +++ b/src/main/java/com/stripe/param/PromotionCodeCreateParams.java @@ -20,7 +20,7 @@ public class PromotionCodeCreateParams extends ApiRequestParams { /** * The customer-facing code. Regardless of case, this code must be unique across all active * promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper - * case letters (A-Z), and digits (0-9). + * case letters (A-Z), digits (0-9), and dashes (-). * *

If left blank, we will generate one automatically. */ @@ -163,7 +163,7 @@ public Builder setActive(Boolean active) { /** * The customer-facing code. Regardless of case, this code must be unique across all active * promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper - * case letters (A-Z), and digits (0-9). + * case letters (A-Z), digits (0-9), and dashes (-). * *

If left blank, we will generate one automatically. */ diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index 50a0291608f..22abddda759 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -5126,8 +5126,7 @@ public Builder setType(String type) { public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") String country; @@ -5166,8 +5165,8 @@ public static class Builder { /** * Required. The desired country code of the bank account - * information. Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code - * FR}, {@code IE}, or {@code NL}. + * information. Permitted values include: {@code DE}, {@code FR}, {@code IE}, or + * {@code NL}. */ public Builder setCountry(String country) { this.country = country; @@ -6137,6 +6136,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("p24") P24("p24"), + @SerializedName("pay_by_bank") + PAY_BY_BANK("pay_by_bank"), + @SerializedName("payco") PAYCO("payco"), diff --git a/src/main/java/com/stripe/param/SubscriptionItemDeleteParams.java b/src/main/java/com/stripe/param/SubscriptionItemDeleteParams.java index 5b3eed7d402..e4dd97fd49f 100644 --- a/src/main/java/com/stripe/param/SubscriptionItemDeleteParams.java +++ b/src/main/java/com/stripe/param/SubscriptionItemDeleteParams.java @@ -27,6 +27,37 @@ public class SubscriptionItemDeleteParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * Use {@code allow_incomplete} to transition the subscription to {@code status=past_due} if a + * payment is required but cannot be paid. This allows you to manage scenarios where additional + * user actions are needed to pay a subscription's invoice. For example, SCA regulation may + * require 3DS authentication to complete payment. See the SCA Migration + * Guide for Billing to learn more. This is the default behavior. + * + *

Use {@code default_incomplete} to transition the subscription to {@code status=past_due} + * when payment is required and await explicit confirmation of the invoice's payment intent. This + * allows simpler management of scenarios where additional user actions are needed to pay a + * subscription’s invoice. Such as failed payments, SCA + * regulation, or collecting a mandate for a bank debit payment method. + * + *

Use {@code pending_if_incomplete} to update the subscription using pending updates. When + * you use {@code pending_if_incomplete} you can only pass the parameters supported + * by pending updates. + * + *

Use {@code error_if_incomplete} if you want Stripe to return an HTTP 402 status code if a + * subscription's invoice cannot be paid. For example, if a payment method requires 3DS + * authentication due to SCA regulation and further user action is needed, this parameter does not + * update the subscription and returns an error instead. This was the default behavior for API + * versions prior to 2019-03-14. See the changelog to learn more. + */ + @SerializedName("payment_behavior") + PaymentBehavior paymentBehavior; + /** * Determines how to handle prorations when the billing @@ -48,10 +79,12 @@ public class SubscriptionItemDeleteParams extends ApiRequestParams { private SubscriptionItemDeleteParams( Boolean clearUsage, Map extraParams, + PaymentBehavior paymentBehavior, ProrationBehavior prorationBehavior, Long prorationDate) { this.clearUsage = clearUsage; this.extraParams = extraParams; + this.paymentBehavior = paymentBehavior; this.prorationBehavior = prorationBehavior; this.prorationDate = prorationDate; } @@ -65,6 +98,8 @@ public static class Builder { private Map extraParams; + private PaymentBehavior paymentBehavior; + private ProrationBehavior prorationBehavior; private Long prorationDate; @@ -72,7 +107,11 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SubscriptionItemDeleteParams build() { return new SubscriptionItemDeleteParams( - this.clearUsage, this.extraParams, this.prorationBehavior, this.prorationDate); + this.clearUsage, + this.extraParams, + this.paymentBehavior, + this.prorationBehavior, + this.prorationDate); } /** @@ -110,6 +149,40 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * Use {@code allow_incomplete} to transition the subscription to {@code status=past_due} if a + * payment is required but cannot be paid. This allows you to manage scenarios where additional + * user actions are needed to pay a subscription's invoice. For example, SCA regulation may + * require 3DS authentication to complete payment. See the SCA Migration + * Guide for Billing to learn more. This is the default behavior. + * + *

Use {@code default_incomplete} to transition the subscription to {@code status=past_due} + * when payment is required and await explicit confirmation of the invoice's payment intent. + * This allows simpler management of scenarios where additional user actions are needed to pay a + * subscription’s invoice. Such as failed payments, SCA + * regulation, or collecting a mandate for a bank debit payment method. + * + *

Use {@code pending_if_incomplete} to update the subscription using pending updates. + * When you use {@code pending_if_incomplete} you can only pass the parameters supported + * by pending updates. + * + *

Use {@code error_if_incomplete} if you want Stripe to return an HTTP 402 status code if a + * subscription's invoice cannot be paid. For example, if a payment method requires 3DS + * authentication due to SCA regulation and further user action is needed, this parameter does + * not update the subscription and returns an error instead. This was the default behavior for + * API versions prior to 2019-03-14. See the changelog to learn more. + */ + public Builder setPaymentBehavior( + SubscriptionItemDeleteParams.PaymentBehavior paymentBehavior) { + this.paymentBehavior = paymentBehavior; + return this; + } + /** * Determines how to handle prorations when the @@ -134,6 +207,27 @@ public Builder setProrationDate(Long prorationDate) { } } + public enum PaymentBehavior implements ApiRequestParams.EnumParam { + @SerializedName("allow_incomplete") + ALLOW_INCOMPLETE("allow_incomplete"), + + @SerializedName("default_incomplete") + DEFAULT_INCOMPLETE("default_incomplete"), + + @SerializedName("error_if_incomplete") + ERROR_IF_INCOMPLETE("error_if_incomplete"), + + @SerializedName("pending_if_incomplete") + PENDING_IF_INCOMPLETE("pending_if_incomplete"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + PaymentBehavior(String value) { + this.value = value; + } + } + public enum ProrationBehavior implements ApiRequestParams.EnumParam { @SerializedName("always_invoice") ALWAYS_INVOICE("always_invoice"), diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index 52aaf15a09d..bd3ceca780d 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -5319,8 +5319,7 @@ public Builder setType(EmptyParam type) { public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") Object country; @@ -5359,8 +5358,8 @@ public static class Builder { /** * Required. The desired country code of the bank account - * information. Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code - * FR}, {@code IE}, or {@code NL}. + * information. Permitted values include: {@code DE}, {@code FR}, {@code IE}, or + * {@code NL}. */ public Builder setCountry(String country) { this.country = country; @@ -5369,8 +5368,8 @@ public Builder setCountry(String country) { /** * Required. The desired country code of the bank account - * information. Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code - * FR}, {@code IE}, or {@code NL}. + * information. Permitted values include: {@code DE}, {@code FR}, {@code IE}, or + * {@code NL}. */ public Builder setCountry(EmptyParam country) { this.country = country; @@ -6340,6 +6339,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { @SerializedName("p24") P24("p24"), + @SerializedName("pay_by_bank") + PAY_BY_BANK("pay_by_bank"), + @SerializedName("payco") PAYCO("payco"), diff --git a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java index 509ab49c3b2..d8f4abd78d8 100644 --- a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java @@ -39,14 +39,14 @@ public class TaxIdCollectionCreateParams extends ApiRequestParams { * {@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 kg_tin}, * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, - * {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code - * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code - * ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} + * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, + * {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, + * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, + * {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -146,15 +146,15 @@ public Builder putAllExtraParam(Map map) { * {@code ge_vat}, {@code gn_nif}, {@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 kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code - * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, - * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code - * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, - * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code - * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, - * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} + * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, + * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code + * pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code + * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(TaxIdCollectionCreateParams.Type type) { this.type = type; @@ -367,6 +367,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_vat") LI_VAT("li_vat"), + @SerializedName("lk_vat") + LK_VAT("lk_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 548215820cd..2b1dad2afbd 100644 --- a/src/main/java/com/stripe/param/TaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCreateParams.java @@ -43,14 +43,14 @@ public class TaxIdCreateParams extends ApiRequestParams { * {@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 kg_tin}, * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, - * {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code - * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code - * ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} + * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, + * {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, + * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, + * {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -160,15 +160,15 @@ public Builder setOwner(TaxIdCreateParams.Owner owner) { * {@code ge_vat}, {@code gn_nif}, {@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 kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code - * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, - * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code - * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, - * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code - * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, - * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} + * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, + * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code + * pl_nip}, {@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 sn_ninea}, {@code sr_fin}, {@code + * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(TaxIdCreateParams.Type type) { this.type = type; @@ -522,6 +522,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_vat") LI_VAT("li_vat"), + @SerializedName("lk_vat") + LK_VAT("lk_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index df86f66cde2..d5676820498 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -642,7 +642,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam { VERSION_2025_12_15_CLOVER("2025-12-15.clover"), @SerializedName("2026-01-28.clover") - VERSION_2026_01_28_CLOVER("2026-01-28.clover"); + VERSION_2026_01_28_CLOVER("2026-01-28.clover"), + + @SerializedName("2026-02-25.clover") + VERSION_2026_02_25_CLOVER("2026-02-25.clover"); @Getter(onMethod_ = {@Override}) private final String value; @@ -692,6 +695,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("billing.alert.triggered") BILLING__ALERT__TRIGGERED("billing.alert.triggered"), + @SerializedName("billing.credit_grant.created") + BILLING__CREDIT_GRANT__CREATED("billing.credit_grant.created"), + @SerializedName("billing_portal.configuration.created") BILLING_PORTAL__CONFIGURATION__CREATED("billing_portal.configuration.created"), @@ -1188,6 +1194,27 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("reporting.report_type.updated") REPORTING__REPORT_TYPE__UPDATED("reporting.report_type.updated"), + @SerializedName("reserve.hold.created") + RESERVE__HOLD__CREATED("reserve.hold.created"), + + @SerializedName("reserve.hold.updated") + RESERVE__HOLD__UPDATED("reserve.hold.updated"), + + @SerializedName("reserve.plan.created") + RESERVE__PLAN__CREATED("reserve.plan.created"), + + @SerializedName("reserve.plan.disabled") + RESERVE__PLAN__DISABLED("reserve.plan.disabled"), + + @SerializedName("reserve.plan.expired") + RESERVE__PLAN__EXPIRED("reserve.plan.expired"), + + @SerializedName("reserve.plan.updated") + RESERVE__PLAN__UPDATED("reserve.plan.updated"), + + @SerializedName("reserve.release.created") + RESERVE__RELEASE__CREATED("reserve.release.created"), + @SerializedName("review.closed") REVIEW__CLOSED("review.closed"), @@ -1410,9 +1437,6 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("billing.credit_balance_transaction.created") BILLING__CREDIT_BALANCE_TRANSACTION__CREATED("billing.credit_balance_transaction.created"), - @SerializedName("billing.credit_grant.created") - BILLING__CREDIT_GRANT__CREATED("billing.credit_grant.created"), - @SerializedName("billing.credit_grant.updated") BILLING__CREDIT_GRANT__UPDATED("billing.credit_grant.updated"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java index b281eac08ff..78ee26eb821 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java @@ -302,6 +302,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("billing.alert.triggered") BILLING__ALERT__TRIGGERED("billing.alert.triggered"), + @SerializedName("billing.credit_grant.created") + BILLING__CREDIT_GRANT__CREATED("billing.credit_grant.created"), + @SerializedName("billing_portal.configuration.created") BILLING_PORTAL__CONFIGURATION__CREATED("billing_portal.configuration.created"), @@ -798,6 +801,27 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("reporting.report_type.updated") REPORTING__REPORT_TYPE__UPDATED("reporting.report_type.updated"), + @SerializedName("reserve.hold.created") + RESERVE__HOLD__CREATED("reserve.hold.created"), + + @SerializedName("reserve.hold.updated") + RESERVE__HOLD__UPDATED("reserve.hold.updated"), + + @SerializedName("reserve.plan.created") + RESERVE__PLAN__CREATED("reserve.plan.created"), + + @SerializedName("reserve.plan.disabled") + RESERVE__PLAN__DISABLED("reserve.plan.disabled"), + + @SerializedName("reserve.plan.expired") + RESERVE__PLAN__EXPIRED("reserve.plan.expired"), + + @SerializedName("reserve.plan.updated") + RESERVE__PLAN__UPDATED("reserve.plan.updated"), + + @SerializedName("reserve.release.created") + RESERVE__RELEASE__CREATED("reserve.release.created"), + @SerializedName("review.closed") REVIEW__CLOSED("review.closed"), @@ -1020,9 +1044,6 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("billing.credit_balance_transaction.created") BILLING__CREDIT_BALANCE_TRANSACTION__CREATED("billing.credit_balance_transaction.created"), - @SerializedName("billing.credit_grant.created") - BILLING__CREDIT_GRANT__CREATED("billing.credit_grant.created"), - @SerializedName("billing.credit_grant.updated") BILLING__CREDIT_GRANT__UPDATED("billing.credit_grant.updated"), diff --git a/src/main/java/com/stripe/param/billing/AlertCreateParams.java b/src/main/java/com/stripe/param/billing/AlertCreateParams.java index c8ad48b58c9..18a37776bdf 100644 --- a/src/main/java/com/stripe/param/billing/AlertCreateParams.java +++ b/src/main/java/com/stripe/param/billing/AlertCreateParams.java @@ -162,7 +162,7 @@ public static class UsageThreshold { @SerializedName("filters") List filters; - /** Required. Defines at which value the alert will fire. */ + /** Required. Defines the threshold value that triggers the alert. */ @SerializedName("gte") Long gte; @@ -263,7 +263,7 @@ public Builder addAllFilter(List elemen return this; } - /** Required. Defines at which value the alert will fire. */ + /** Required. Defines the threshold value that triggers the alert. */ public Builder setGte(Long gte) { this.gte = gte; return this; diff --git a/src/main/java/com/stripe/param/billingportal/SessionCreateParams.java b/src/main/java/com/stripe/param/billingportal/SessionCreateParams.java index 180dbeb0364..849b3d85468 100644 --- a/src/main/java/com/stripe/param/billingportal/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/billingportal/SessionCreateParams.java @@ -15,7 +15,7 @@ public class SessionCreateParams extends ApiRequestParams { /** * The ID of an existing configuration to use for + * href="https://docs.stripe.com/api/customer_portal/configurations">configuration to use for * this session, describing its functionality and features. If not specified, the session uses the * default configuration. */ @@ -138,9 +138,9 @@ public SessionCreateParams build() { /** * The ID of an existing configuration to use for - * this session, describing its functionality and features. If not specified, the session uses - * the default configuration. + * href="https://docs.stripe.com/api/customer_portal/configurations">configuration to use + * for this session, describing its functionality and features. If not specified, the session + * uses the default configuration. */ public Builder setConfiguration(String configuration) { this.configuration = configuration; diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index fe2ad8eea9d..ffa2ecce311 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -2841,8 +2841,8 @@ public Builder setType(SessionCreateParams.CustomField.Type type) { @EqualsAndHashCode(callSuper = false) public static class Dropdown { /** - * The value that will pre-fill the field on the payment page.Must match a {@code value} in - * the {@code options} array. + * The value that pre-fills the field on the payment page.Must match a {@code value} in the + * {@code options} array. */ @SerializedName("default_value") String defaultValue; @@ -2890,8 +2890,8 @@ public SessionCreateParams.CustomField.Dropdown build() { } /** - * The value that will pre-fill the field on the payment page.Must match a {@code value} in - * the {@code options} array. + * The value that pre-fills the field on the payment page.Must match a {@code value} in the + * {@code options} array. */ public Builder setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; @@ -3161,7 +3161,7 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter @EqualsAndHashCode(callSuper = false) public static class Numeric { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -3212,7 +3212,7 @@ public SessionCreateParams.CustomField.Numeric build() { this.defaultValue, this.extraParams, this.maximumLength, this.minimumLength); } - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ public Builder setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; return this; @@ -3263,7 +3263,7 @@ public Builder setMinimumLength(Long minimumLength) { @Getter @EqualsAndHashCode(callSuper = false) public static class Text { - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ @SerializedName("default_value") String defaultValue; @@ -3314,7 +3314,7 @@ public SessionCreateParams.CustomField.Text build() { this.defaultValue, this.extraParams, this.maximumLength, this.minimumLength); } - /** The value that will pre-fill the field on the payment page. */ + /** The value that pre-fills the field on the payment page. */ public Builder setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; return this; @@ -3544,7 +3544,7 @@ public static class AfterSubmit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") String message; @@ -3595,7 +3595,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; @@ -3615,7 +3615,7 @@ public static class ShippingAddress { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") String message; @@ -3666,7 +3666,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; @@ -3686,7 +3686,7 @@ public static class Submit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") String message; @@ -3737,7 +3737,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; @@ -3757,7 +3757,7 @@ public static class TermsOfServiceAcceptance { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ @SerializedName("message") String message; @@ -3809,7 +3809,7 @@ public Builder putAllExtraParam(Map map) { return this; } - /** Required. Text may be up to 1200 characters in length. */ + /** Required. Text can be up to 1200 characters in length. */ public Builder setMessage(String message) { this.message = message; return this; @@ -10959,8 +10959,7 @@ public Builder setType( public static class EuBankTransfer { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ @SerializedName("country") String country; @@ -10999,8 +10998,7 @@ public static class Builder { /** * Required. The desired country code of the bank account information. - * Permitted values include: {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, - * or {@code NL}. + * Permitted values include: {@code DE}, {@code FR}, {@code IE}, or {@code NL}. */ public Builder setCountry(String country) { this.country = country; diff --git a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java index e11770bc6ca..a854b816230 100644 --- a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java +++ b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java @@ -643,15 +643,15 @@ public static class TaxId { * {@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 kg_tin}, {@code kh_tin}, * {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code - * ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code pl_nip}, {@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 sn_ninea}, {@code sr_fin}, - * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code - * tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, - * {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code - * zw_tin} + * lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, + * {@code ph_tin}, {@code pl_nip}, {@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 sn_ninea}, + * {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code + * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, + * {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code + * zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -725,15 +725,15 @@ public Builder putAllExtraParam(Map map) { * 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 kg_tin}, {@code * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, - * {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code - * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code - * ph_tin}, {@code pl_nip}, {@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 sn_ninea}, {@code - * sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, - * {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code - * uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, - * or {@code zw_tin} + * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code + * mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code + * pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@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 + * sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code + * tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, + * {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code + * za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(CalculationCreateParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -946,6 +946,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_vat") LI_VAT("li_vat"), + @SerializedName("lk_vat") + LK_VAT("lk_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java b/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java index 3a272c23e08..3aeb2002231 100644 --- a/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java +++ b/src/main/java/com/stripe/param/tax/RegistrationCreateParams.java @@ -430,6 +430,10 @@ public static class CountryOptions { @SerializedName("la") La la; + /** Options for the registration in LK. */ + @SerializedName("lk") + Lk lk; + /** Options for the registration in LT. */ @SerializedName("lt") Lt lt; @@ -667,6 +671,7 @@ private CountryOptions( Kr kr, Kz kz, La la, + Lk lk, Lt lt, Lu lu, Lv lv, @@ -768,6 +773,7 @@ private CountryOptions( this.kr = kr; this.kz = kz; this.la = la; + this.lk = lk; this.lt = lt; this.lu = lu; this.lv = lv; @@ -932,6 +938,8 @@ public static class Builder { private La la; + private Lk lk; + private Lt lt; private Lu lu; @@ -1081,6 +1089,7 @@ public RegistrationCreateParams.CountryOptions build() { this.kr, this.kz, this.la, + this.lk, this.lt, this.lu, this.lv, @@ -1485,6 +1494,12 @@ public Builder setLa(RegistrationCreateParams.CountryOptions.La la) { return this; } + /** Options for the registration in LK. */ + public Builder setLk(RegistrationCreateParams.CountryOptions.Lk lk) { + this.lk = lk; + return this; + } + /** Options for the registration in LT. */ public Builder setLt(RegistrationCreateParams.CountryOptions.Lt lt) { this.lt = lt; @@ -10215,6 +10230,89 @@ public enum Type implements ApiRequestParams.EnumParam { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Lk { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. Type of registration to be created in {@code country}. */ + @SerializedName("type") + Type type; + + private Lk(Map extraParams, Type type) { + this.extraParams = extraParams; + this.type = type; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Type type; + + /** Finalize and obtain parameter instance from this builder. */ + public RegistrationCreateParams.CountryOptions.Lk build() { + return new RegistrationCreateParams.CountryOptions.Lk(this.extraParams, this.type); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Lk#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link RegistrationCreateParams.CountryOptions.Lk#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Type of registration to be created in {@code country}. */ + public Builder setType(RegistrationCreateParams.CountryOptions.Lk.Type type) { + this.type = type; + return this; + } + } + + public enum Type implements ApiRequestParams.EnumParam { + @SerializedName("simplified") + SIMPLIFIED("simplified"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Type(String value) { + this.value = value; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Lt { @@ -15784,10 +15882,11 @@ public static class LocalAmusementTax { /** * Required. A FIPS code - * representing the local jurisdiction. Supported FIPS codes are: {@code 14000} (Chicago), - * {@code 02154} (Arlington Heights), {@code 06613} (Bloomington), {@code 10906} (Campton - * Hills), {@code 21696} (East Dundee), {@code 24582} (Evanston), {@code 45421} (Lynwood), - * {@code 48892} (Midlothian), {@code 64343} (River Grove), and {@code 68081} (Schiller + * representing the local jurisdiction. Supported FIPS codes are: {@code 02154} (Arlington + * Heights), {@code 05248} (Bensenville), {@code 06613} (Bloomington), {@code 10906} + * (Campton Hills), {@code 14000} (Chicago), {@code 21696} (East Dundee), {@code 24582} + * (Evanston), {@code 45421} (Lynwood), {@code 48892} (Midlothian), {@code 64343} (River + * Grove), {@code 64421} (Riverside), {@code 65806} (Roselle), and {@code 68081} (Schiller * Park). */ @SerializedName("jurisdiction") @@ -15846,10 +15945,11 @@ public Builder putAllExtraParam(Map map) { /** * Required. A FIPS code - * representing the local jurisdiction. Supported FIPS codes are: {@code 14000} (Chicago), - * {@code 02154} (Arlington Heights), {@code 06613} (Bloomington), {@code 10906} (Campton - * Hills), {@code 21696} (East Dundee), {@code 24582} (Evanston), {@code 45421} (Lynwood), - * {@code 48892} (Midlothian), {@code 64343} (River Grove), and {@code 68081} (Schiller + * representing the local jurisdiction. Supported FIPS codes are: {@code 02154} (Arlington + * Heights), {@code 05248} (Bensenville), {@code 06613} (Bloomington), {@code 10906} + * (Campton Hills), {@code 14000} (Chicago), {@code 21696} (East Dundee), {@code 24582} + * (Evanston), {@code 45421} (Lynwood), {@code 48892} (Midlothian), {@code 64343} (River + * Grove), {@code 64421} (Riverside), {@code 65806} (Roselle), and {@code 68081} (Schiller * Park). */ public Builder setJurisdiction(String jurisdiction) { diff --git a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java index d4013302e2b..ff778fcd143 100644 --- a/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java +++ b/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.java @@ -22,6 +22,10 @@ public class ConfigurationCreateParams extends ApiRequestParams { @SerializedName("bbpos_wisepos_e") BbposWiseposE bbposWiseposE; + /** Configuration for cellular connectivity. */ + @SerializedName("cellular") + Object cellular; + /** Specifies which fields in the response should be expanded. */ @SerializedName("expand") List expand; @@ -51,6 +55,10 @@ public class ConfigurationCreateParams extends ApiRequestParams { @SerializedName("stripe_s700") StripeS700 stripeS700; + /** An object containing device type specific settings for Stripe S710 readers. */ + @SerializedName("stripe_s710") + StripeS710 stripeS710; + /** Tipping configurations for readers that support on-reader tips. */ @SerializedName("tipping") Object tipping; @@ -66,23 +74,27 @@ public class ConfigurationCreateParams extends ApiRequestParams { private ConfigurationCreateParams( BbposWisepad3 bbposWisepad3, BbposWiseposE bbposWiseposE, + Object cellular, List expand, Map extraParams, String name, Object offline, RebootWindow rebootWindow, StripeS700 stripeS700, + StripeS710 stripeS710, Object tipping, VerifoneP400 verifoneP400, Object wifi) { this.bbposWisepad3 = bbposWisepad3; this.bbposWiseposE = bbposWiseposE; + this.cellular = cellular; this.expand = expand; this.extraParams = extraParams; this.name = name; this.offline = offline; this.rebootWindow = rebootWindow; this.stripeS700 = stripeS700; + this.stripeS710 = stripeS710; this.tipping = tipping; this.verifoneP400 = verifoneP400; this.wifi = wifi; @@ -97,6 +109,8 @@ public static class Builder { private BbposWiseposE bbposWiseposE; + private Object cellular; + private List expand; private Map extraParams; @@ -109,6 +123,8 @@ public static class Builder { private StripeS700 stripeS700; + private StripeS710 stripeS710; + private Object tipping; private VerifoneP400 verifoneP400; @@ -120,12 +136,14 @@ public ConfigurationCreateParams build() { return new ConfigurationCreateParams( this.bbposWisepad3, this.bbposWiseposE, + this.cellular, this.expand, this.extraParams, this.name, this.offline, this.rebootWindow, this.stripeS700, + this.stripeS710, this.tipping, this.verifoneP400, this.wifi); @@ -143,6 +161,18 @@ public Builder setBbposWiseposE(ConfigurationCreateParams.BbposWiseposE bbposWis return this; } + /** Configuration for cellular connectivity. */ + public Builder setCellular(ConfigurationCreateParams.Cellular cellular) { + this.cellular = cellular; + return this; + } + + /** Configuration for cellular connectivity. */ + public Builder setCellular(EmptyParam cellular) { + this.cellular = cellular; + 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 @@ -225,6 +255,12 @@ public Builder setStripeS700(ConfigurationCreateParams.StripeS700 stripeS700) { return this; } + /** An object containing device type specific settings for Stripe S710 readers. */ + public Builder setStripeS710(ConfigurationCreateParams.StripeS710 stripeS710) { + this.stripeS710 = stripeS710; + return this; + } + /** Tipping configurations for readers that support on-reader tips. */ public Builder setTipping(ConfigurationCreateParams.Tipping tipping) { this.tipping = tipping; @@ -408,6 +444,81 @@ public Builder setSplashscreen(EmptyParam splashscreen) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Cellular { + /** + * Required. Determines whether to allow the reader to connect to a cellular + * network. Defaults to false. + */ + @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 Cellular(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 ConfigurationCreateParams.Cellular build() { + return new ConfigurationCreateParams.Cellular(this.enabled, this.extraParams); + } + + /** + * Required. Determines whether to allow the reader to connect to a cellular + * network. Defaults to false. + */ + 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 + * ConfigurationCreateParams.Cellular#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ConfigurationCreateParams.Cellular#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Offline { @@ -653,6 +764,81 @@ public Builder setSplashscreen(EmptyParam splashscreen) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class StripeS710 { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** A File ID representing an image you want to display on the reader. */ + @SerializedName("splashscreen") + Object splashscreen; + + private StripeS710(Map extraParams, Object splashscreen) { + this.extraParams = extraParams; + this.splashscreen = splashscreen; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Object splashscreen; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationCreateParams.StripeS710 build() { + return new ConfigurationCreateParams.StripeS710(this.extraParams, this.splashscreen); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ConfigurationCreateParams.StripeS710#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ConfigurationCreateParams.StripeS710#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** A File ID representing an image you want to display on the reader. */ + public Builder setSplashscreen(String splashscreen) { + this.splashscreen = splashscreen; + return this; + } + + /** A File ID representing an image you want to display on the reader. */ + public Builder setSplashscreen(EmptyParam splashscreen) { + this.splashscreen = splashscreen; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Tipping { diff --git a/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java b/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java index f51015f5fdd..17f5f5595a2 100644 --- a/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java +++ b/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java @@ -22,6 +22,10 @@ public class ConfigurationUpdateParams extends ApiRequestParams { @SerializedName("bbpos_wisepos_e") Object bbposWiseposE; + /** Configuration for cellular connectivity. */ + @SerializedName("cellular") + Object cellular; + /** Specifies which fields in the response should be expanded. */ @SerializedName("expand") List expand; @@ -51,7 +55,11 @@ public class ConfigurationUpdateParams extends ApiRequestParams { @SerializedName("stripe_s700") Object stripeS700; - /** Tipping configurations for readers. supporting on-reader tips */ + /** An object containing device type specific settings for Stripe S710 readers. */ + @SerializedName("stripe_s710") + Object stripeS710; + + /** Tipping configurations for readers that support on-reader tips. */ @SerializedName("tipping") Object tipping; @@ -66,23 +74,27 @@ public class ConfigurationUpdateParams extends ApiRequestParams { private ConfigurationUpdateParams( Object bbposWisepad3, Object bbposWiseposE, + Object cellular, List expand, Map extraParams, Object name, Object offline, Object rebootWindow, Object stripeS700, + Object stripeS710, Object tipping, Object verifoneP400, Object wifi) { this.bbposWisepad3 = bbposWisepad3; this.bbposWiseposE = bbposWiseposE; + this.cellular = cellular; this.expand = expand; this.extraParams = extraParams; this.name = name; this.offline = offline; this.rebootWindow = rebootWindow; this.stripeS700 = stripeS700; + this.stripeS710 = stripeS710; this.tipping = tipping; this.verifoneP400 = verifoneP400; this.wifi = wifi; @@ -97,6 +109,8 @@ public static class Builder { private Object bbposWiseposE; + private Object cellular; + private List expand; private Map extraParams; @@ -109,6 +123,8 @@ public static class Builder { private Object stripeS700; + private Object stripeS710; + private Object tipping; private Object verifoneP400; @@ -120,12 +136,14 @@ public ConfigurationUpdateParams build() { return new ConfigurationUpdateParams( this.bbposWisepad3, this.bbposWiseposE, + this.cellular, this.expand, this.extraParams, this.name, this.offline, this.rebootWindow, this.stripeS700, + this.stripeS710, this.tipping, this.verifoneP400, this.wifi); @@ -155,6 +173,18 @@ public Builder setBbposWiseposE(EmptyParam bbposWiseposE) { return this; } + /** Configuration for cellular connectivity. */ + public Builder setCellular(ConfigurationUpdateParams.Cellular cellular) { + this.cellular = cellular; + return this; + } + + /** Configuration for cellular connectivity. */ + public Builder setCellular(EmptyParam cellular) { + this.cellular = cellular; + 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 @@ -255,13 +285,25 @@ public Builder setStripeS700(EmptyParam stripeS700) { return this; } - /** Tipping configurations for readers. supporting on-reader tips */ + /** An object containing device type specific settings for Stripe S710 readers. */ + public Builder setStripeS710(ConfigurationUpdateParams.StripeS710 stripeS710) { + this.stripeS710 = stripeS710; + return this; + } + + /** An object containing device type specific settings for Stripe S710 readers. */ + public Builder setStripeS710(EmptyParam stripeS710) { + this.stripeS710 = stripeS710; + return this; + } + + /** Tipping configurations for readers that support on-reader tips. */ public Builder setTipping(ConfigurationUpdateParams.Tipping tipping) { this.tipping = tipping; return this; } - /** Tipping configurations for readers. supporting on-reader tips */ + /** Tipping configurations for readers that support on-reader tips. */ public Builder setTipping(EmptyParam tipping) { this.tipping = tipping; return this; @@ -444,6 +486,81 @@ public Builder setSplashscreen(EmptyParam splashscreen) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class Cellular { + /** + * Required. Determines whether to allow the reader to connect to a cellular + * network. Defaults to false. + */ + @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 Cellular(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 ConfigurationUpdateParams.Cellular build() { + return new ConfigurationUpdateParams.Cellular(this.enabled, this.extraParams); + } + + /** + * Required. Determines whether to allow the reader to connect to a cellular + * network. Defaults to false. + */ + 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 + * ConfigurationUpdateParams.Cellular#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ConfigurationUpdateParams.Cellular#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Offline { @@ -689,6 +806,81 @@ public Builder setSplashscreen(EmptyParam splashscreen) { } } + @Getter + @EqualsAndHashCode(callSuper = false) + public static class StripeS710 { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** A File ID representing an image you want to display on the reader. */ + @SerializedName("splashscreen") + Object splashscreen; + + private StripeS710(Map extraParams, Object splashscreen) { + this.extraParams = extraParams; + this.splashscreen = splashscreen; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Object splashscreen; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfigurationUpdateParams.StripeS710 build() { + return new ConfigurationUpdateParams.StripeS710(this.extraParams, this.splashscreen); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * ConfigurationUpdateParams.StripeS710#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link ConfigurationUpdateParams.StripeS710#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** A File ID representing an image you want to display on the reader. */ + public Builder setSplashscreen(String splashscreen) { + this.splashscreen = splashscreen; + return this; + } + + /** A File ID representing an image you want to display on the reader. */ + public Builder setSplashscreen(EmptyParam splashscreen) { + this.splashscreen = splashscreen; + return this; + } + } + } + @Getter @EqualsAndHashCode(callSuper = false) public static class Tipping { diff --git a/src/main/java/com/stripe/param/terminal/ReaderListParams.java b/src/main/java/com/stripe/param/terminal/ReaderListParams.java index 47caf319733..6d6031c89b5 100644 --- a/src/main/java/com/stripe/param/terminal/ReaderListParams.java +++ b/src/main/java/com/stripe/param/terminal/ReaderListParams.java @@ -249,6 +249,9 @@ public enum DeviceType implements ApiRequestParams.EnumParam { @SerializedName("simulated_stripe_s700") SIMULATED_STRIPE_S700("simulated_stripe_s700"), + @SerializedName("simulated_stripe_s710") + SIMULATED_STRIPE_S710("simulated_stripe_s710"), + @SerializedName("simulated_wisepos_e") SIMULATED_WISEPOS_E("simulated_wisepos_e"), @@ -258,6 +261,9 @@ public enum DeviceType implements ApiRequestParams.EnumParam { @SerializedName("stripe_s700") STRIPE_S700("stripe_s700"), + @SerializedName("stripe_s710") + STRIPE_S710("stripe_s710"), + @SerializedName("verifone_P400") VERIFONE_P400("verifone_P400"); diff --git a/src/main/java/com/stripe/service/SubscriptionService.java b/src/main/java/com/stripe/service/SubscriptionService.java index 524670b4e11..e275a677335 100644 --- a/src/main/java/com/stripe/service/SubscriptionService.java +++ b/src/main/java/com/stripe/service/SubscriptionService.java @@ -554,10 +554,10 @@ public Subscription migrate( } /** * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor - * and creating prorations. If a resumption invoice is generated, it must be paid or marked - * uncollectible before the subscription will be unpaused. If payment succeeds the subscription - * will become {@code active}, and if payment fails the subscription will be {@code past_due}. The - * resumption invoice will void automatically if not paid by the expiration date. + * and creating prorations. If no resumption invoice is generated, the subscription becomes {@code + * active} immediately. If a resumption invoice is generated, the subscription remains {@code + * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the + * expiration date, it is voided and the subscription remains {@code paused}. */ public Subscription resume(String subscription, SubscriptionResumeParams params) throws StripeException { @@ -565,30 +565,30 @@ public Subscription resume(String subscription, SubscriptionResumeParams params) } /** * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor - * and creating prorations. If a resumption invoice is generated, it must be paid or marked - * uncollectible before the subscription will be unpaused. If payment succeeds the subscription - * will become {@code active}, and if payment fails the subscription will be {@code past_due}. The - * resumption invoice will void automatically if not paid by the expiration date. + * and creating prorations. If no resumption invoice is generated, the subscription becomes {@code + * active} immediately. If a resumption invoice is generated, the subscription remains {@code + * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the + * expiration date, it is voided and the subscription remains {@code paused}. */ public Subscription resume(String subscription, RequestOptions options) throws StripeException { return resume(subscription, (SubscriptionResumeParams) null, options); } /** * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor - * and creating prorations. If a resumption invoice is generated, it must be paid or marked - * uncollectible before the subscription will be unpaused. If payment succeeds the subscription - * will become {@code active}, and if payment fails the subscription will be {@code past_due}. The - * resumption invoice will void automatically if not paid by the expiration date. + * and creating prorations. If no resumption invoice is generated, the subscription becomes {@code + * active} immediately. If a resumption invoice is generated, the subscription remains {@code + * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the + * expiration date, it is voided and the subscription remains {@code paused}. */ public Subscription resume(String subscription) throws StripeException { return resume(subscription, (SubscriptionResumeParams) null, (RequestOptions) null); } /** * Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor - * and creating prorations. If a resumption invoice is generated, it must be paid or marked - * uncollectible before the subscription will be unpaused. If payment succeeds the subscription - * will become {@code active}, and if payment fails the subscription will be {@code past_due}. The - * resumption invoice will void automatically if not paid by the expiration date. + * and creating prorations. If no resumption invoice is generated, the subscription becomes {@code + * active} immediately. If a resumption invoice is generated, the subscription remains {@code + * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the + * expiration date, it is voided and the subscription remains {@code paused}. */ public Subscription resume( String subscription, SubscriptionResumeParams params, RequestOptions options)