additionalFiles;
+
/**
* Whether your business sells digital content or not.
*
@@ -3088,6 +3072,74 @@ public static class PaypayPayments extends StripeObject {
*/
@SerializedName("goods_type")
String goodsType;
+
+ @SerializedName("site")
+ Site site;
+
+ /**
+ * For more details about Site, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Site extends StripeObject {
+ @SerializedName("accessible")
+ Accessible accessible;
+
+ @SerializedName("in_development")
+ InDevelopment inDevelopment;
+
+ @SerializedName("restricted")
+ Restricted restricted;
+
+ /**
+ * The status of your business's website.
+ *
+ * One of {@code accessible}, {@code in_development}, or {@code restricted}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /**
+ * For more details about Accessible, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Accessible extends StripeObject {}
+
+ /**
+ * For more details about InDevelopment, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class InDevelopment extends StripeObject {
+ /** Field to indicate that the website password has been provided. */
+ @SerializedName("password_provided")
+ Boolean passwordProvided;
+
+ /** The username needed to access your business's website. */
+ @SerializedName("username")
+ String username;
+ }
+
+ /**
+ * For more details about Restricted, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Restricted extends StripeObject {
+ /** File explaining the payment flow for your business. */
+ @SerializedName("payment_flow_file")
+ String paymentFlowFile;
+ }
+ }
}
/**
diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java
index 00b1c0ce956..e016166a5c1 100644
--- a/src/main/java/com/stripe/model/AccountSession.java
+++ b/src/main/java/com/stripe/model/AccountSession.java
@@ -132,6 +132,14 @@ public static class Components extends StripeObject {
@SerializedName("account_onboarding")
AccountOnboarding accountOnboarding;
+ /**
+ * Configuration for the agentic
+ * commerce settings embedded component.
+ */
+ @SerializedName("agentic_commerce_settings")
+ AgenticCommerceSettings agenticCommerceSettings;
+
@SerializedName("balances")
Balances balances;
@@ -288,6 +296,31 @@ public static class Features extends StripeObject {
}
}
+ /**
+ * For more details about AgenticCommerceSettings, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AgenticCommerceSettings extends StripeObject {
+ /** Whether the embedded component is enabled. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ @SerializedName("features")
+ Features features;
+
+ /**
+ * For more details about Features, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features extends StripeObject {}
+ }
+
/**
* For more details about Balances, please refer to the API Reference.
@@ -339,9 +372,9 @@ public static class Features extends StripeObject {
Boolean externalAccountCollection;
/**
- * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
- * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
- * false}.
+ * Whether to allow creation of instant payouts. The default value is {@code enabled} when
+ * Stripe is responsible for negative account balances, and {@code use_dashboard_rules}
+ * otherwise.
*/
@SerializedName("instant_payouts")
Boolean instantPayouts;
@@ -655,9 +688,9 @@ public static class Features extends StripeObject {
Boolean externalAccountCollection;
/**
- * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
- * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
- * false}.
+ * Whether to allow creation of instant payouts. The default value is {@code enabled} when
+ * Stripe is responsible for negative account balances, and {@code use_dashboard_rules}
+ * otherwise.
*/
@SerializedName("instant_payouts")
Boolean instantPayouts;
@@ -1019,9 +1052,9 @@ public static class Features extends StripeObject {
Boolean externalAccountCollection;
/**
- * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
- * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
- * false}.
+ * Whether to allow creation of instant payouts. The default value is {@code enabled} when
+ * Stripe is responsible for negative account balances, and {@code use_dashboard_rules}
+ * otherwise.
*/
@SerializedName("instant_payouts")
Boolean instantPayouts;
diff --git a/src/main/java/com/stripe/model/BalanceTransaction.java b/src/main/java/com/stripe/model/BalanceTransaction.java
index 3d4063c691b..13729aef1d4 100644
--- a/src/main/java/com/stripe/model/BalanceTransaction.java
+++ b/src/main/java/com/stripe/model/BalanceTransaction.java
@@ -43,8 +43,8 @@ public class BalanceTransaction extends ApiResource implements HasId {
/**
* The balance that this transaction impacts.
*
- *
One of {@code issuing}, {@code payments}, {@code refund_and_dispute_prefunding}, or {@code
- * transit}.
+ *
One of {@code issuing}, {@code payments}, {@code refund_and_dispute_prefunding}, {@code
+ * risk_reserved}, or {@code transit}.
*/
@SerializedName("balance_type")
String balanceType;
@@ -138,11 +138,11 @@ public class BalanceTransaction extends ApiResource implements HasId {
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
- * refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
- * {@code stripe_fx_fee}, {@code stripe_balance_payment_debit}, {@code
- * stripe_balance_payment_debit_reversal}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
- * {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
- * transfer_refund}. Learn more about balance transaction types and
* what they represent. To classify transactions for accounting purposes, consider {@code
* reporting_category} instead.
@@ -157,11 +157,11 @@ public class BalanceTransaction extends ApiResource implements HasId {
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
- * refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
- * stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code
- * stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
- * {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
- * transfer_refund}.
+ * refund_failure}, {@code reserve_hold}, {@code reserve_release}, {@code reserve_transaction},
+ * {@code reserved_funds}, {@code stripe_balance_payment_debit}, {@code
+ * stripe_balance_payment_debit_reversal}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
+ * tax_fee}, {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel},
+ * {@code transfer_failure}, or {@code transfer_refund}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java
index 0252c6ab450..15d5f4b1683 100644
--- a/src/main/java/com/stripe/model/Charge.java
+++ b/src/main/java/com/stripe/model/Charge.java
@@ -2313,7 +2313,7 @@ public static class ThreeDSecure extends StripeObject {
/**
* The version of 3D Secure that was used.
*
- *
One of {@code 1.0.2}, {@code 2.1.0}, or {@code 2.2.0}.
+ *
One of {@code 1.0.2}, {@code 2.1.0}, {@code 2.2.0}, {@code 2.3.0}, or {@code 2.3.1}.
*/
@SerializedName("version")
String version;
@@ -2991,11 +2991,11 @@ public static class IdBankTransfer extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Ideal extends StripeObject {
/**
- * The customer's bank. Can be one of {@code abn_amro}, {@code asn_bank}, {@code bunq}, {@code
- * buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code mollie},
- * {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code regiobank}, {@code
- * revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot}, or {@code
- * yoursafe}.
+ * The customer's bank. Can be one of {@code abn_amro}, {@code adyen}, {@code asn_bank},
+ * {@code bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code
+ * knab}, {@code mollie}, {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code
+ * regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot},
+ * or {@code yoursafe}.
*/
@SerializedName("bank")
String bank;
@@ -3003,11 +3003,11 @@ public static class Ideal extends StripeObject {
/**
* The Bank Identifier Code of the customer's bank.
*
- *
One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
- * BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code
- * KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code
- * RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or
- * {@code TRIONL2U}.
+ *
One of {@code ABNANL2A}, {@code ADYBNL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code
+ * BUNQNL2A}, {@code BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code
+ * INGBNL2A}, {@code KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code
+ * NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code
+ * SNSBNL2A}, or {@code TRIONL2U}.
*/
@SerializedName("bic")
String bic;
diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java
index 579a7e33452..dea58a218e9 100644
--- a/src/main/java/com/stripe/model/ConfirmationToken.java
+++ b/src/main/java/com/stripe/model/ConfirmationToken.java
@@ -1747,11 +1747,11 @@ public static class IdBankTransfer extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Ideal extends StripeObject {
/**
- * The customer's bank, if provided. Can be one of {@code abn_amro}, {@code asn_bank}, {@code
- * bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code knab},
- * {@code mollie}, {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code
- * regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot},
- * or {@code yoursafe}.
+ * The customer's bank, if provided. Can be one of {@code abn_amro}, {@code adyen}, {@code
+ * asn_bank}, {@code bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing},
+ * {@code knab}, {@code mollie}, {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank},
+ * {@code regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank}, {@code
+ * van_lanschot}, or {@code yoursafe}.
*/
@SerializedName("bank")
String bank;
@@ -1759,11 +1759,11 @@ public static class Ideal extends StripeObject {
/**
* The Bank Identifier Code of the customer's bank, if the bank was provided.
*
- *
One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
- * BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code
- * KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code
- * RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or
- * {@code TRIONL2U}.
+ *
One of {@code ABNANL2A}, {@code ADYBNL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code
+ * BUNQNL2A}, {@code BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code
+ * INGBNL2A}, {@code KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code
+ * NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code
+ * SNSBNL2A}, or {@code TRIONL2U}.
*/
@SerializedName("bic")
String bic;
diff --git a/src/main/java/com/stripe/model/Coupon.java b/src/main/java/com/stripe/model/Coupon.java
index 7429253ab83..b5085568b02 100644
--- a/src/main/java/com/stripe/model/Coupon.java
+++ b/src/main/java/com/stripe/model/Coupon.java
@@ -142,6 +142,9 @@ public class Coupon extends ApiResource implements HasId, MetadataStore
@SerializedName("script")
Script script;
+ @SerializedName("service_period")
+ ServicePeriod servicePeriod;
+
/** Number of times this coupon has been applied to a customer. */
@SerializedName("times_redeemed")
Long timesRedeemed;
@@ -444,10 +447,44 @@ public static class Script extends StripeObject implements HasId {
String id;
}
+ /**
+ * For more details about ServicePeriod, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ServicePeriod extends StripeObject {
+ @SerializedName("interval")
+ String interval;
+
+ @SerializedName("interval_count")
+ Long intervalCount;
+
+ @SerializedName("iterations")
+ Iterations iterations;
+
+ /**
+ * For more details about Iterations, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Iterations extends StripeObject {
+ @SerializedName("count")
+ Long count;
+
+ @SerializedName("type")
+ String type;
+ }
+ }
+
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(appliesTo, responseGetter);
trySetResponseGetter(script, responseGetter);
+ trySetResponseGetter(servicePeriod, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/Customer.java b/src/main/java/com/stripe/model/Customer.java
index efdf01ffd71..309c0dadb5d 100644
--- a/src/main/java/com/stripe/model/Customer.java
+++ b/src/main/java/com/stripe/model/Customer.java
@@ -787,14 +787,14 @@ public static CustomerSearchResult search(CustomerSearchParams params, RequestOp
/**
* Updates the specified customer by setting the values of the parameters passed. Any parameters
- * not provided will be left unchanged. For example, if you pass the source
- * parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges
- * in the future. When you update a customer to a new valid card source by passing the
+ * not provided are left unchanged. For example, if you pass the source
+ * parameter, that becomes the customer’s active source (such as a card) to be used for all
+ * charges in the future. When you update a customer to a new valid card source by passing the
* source parameter: for each of the customer’s current subscriptions, if the
* subscription bills automatically and is in the {@code past_due} state, then the latest open
- * invoice for the subscription with automatic collection enabled will be retried. This retry will
- * not count as an automatic retry, and will not affect the next regularly scheduled payment for
- * the invoice. Changing the default_source for a customer will not trigger this
+ * invoice for the subscription with automatic collection enabled is retried. This retry doesn’t
+ * count as an automatic retry, and doesn’t affect the next regularly scheduled payment for the
+ * invoice. Changing the default_source for a customer doesn’t trigger this
* behavior.
*
* This request accepts mostly the same arguments as the customer creation call.
@@ -806,14 +806,14 @@ public Customer update(Map params) throws StripeException {
/**
* Updates the specified customer by setting the values of the parameters passed. Any parameters
- * not provided will be left unchanged. For example, if you pass the source
- * parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges
- * in the future. When you update a customer to a new valid card source by passing the
+ * not provided are left unchanged. For example, if you pass the source
+ * parameter, that becomes the customer’s active source (such as a card) to be used for all
+ * charges in the future. When you update a customer to a new valid card source by passing the
* source parameter: for each of the customer’s current subscriptions, if the
* subscription bills automatically and is in the {@code past_due} state, then the latest open
- * invoice for the subscription with automatic collection enabled will be retried. This retry will
- * not count as an automatic retry, and will not affect the next regularly scheduled payment for
- * the invoice. Changing the default_source for a customer will not trigger this
+ * invoice for the subscription with automatic collection enabled is retried. This retry doesn’t
+ * count as an automatic retry, and doesn’t affect the next regularly scheduled payment for the
+ * invoice. Changing the default_source for a customer doesn’t trigger this
* behavior.
*
* This request accepts mostly the same arguments as the customer creation call.
@@ -829,14 +829,14 @@ public Customer update(Map params, RequestOptions options)
/**
* Updates the specified customer by setting the values of the parameters passed. Any parameters
- * not provided will be left unchanged. For example, if you pass the source
- * parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges
- * in the future. When you update a customer to a new valid card source by passing the
+ * not provided are left unchanged. For example, if you pass the source
+ * parameter, that becomes the customer’s active source (such as a card) to be used for all
+ * charges in the future. When you update a customer to a new valid card source by passing the
* source parameter: for each of the customer’s current subscriptions, if the
* subscription bills automatically and is in the {@code past_due} state, then the latest open
- * invoice for the subscription with automatic collection enabled will be retried. This retry will
- * not count as an automatic retry, and will not affect the next regularly scheduled payment for
- * the invoice. Changing the default_source for a customer will not trigger this
+ * invoice for the subscription with automatic collection enabled is retried. This retry doesn’t
+ * count as an automatic retry, and doesn’t affect the next regularly scheduled payment for the
+ * invoice. Changing the default_source for a customer doesn’t trigger this
* behavior.
*
* This request accepts mostly the same arguments as the customer creation call.
@@ -847,14 +847,14 @@ public Customer update(CustomerUpdateParams params) throws StripeException {
/**
* Updates the specified customer by setting the values of the parameters passed. Any parameters
- * not provided will be left unchanged. For example, if you pass the source
- * parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges
- * in the future. When you update a customer to a new valid card source by passing the
+ * not provided are left unchanged. For example, if you pass the source
+ * parameter, that becomes the customer’s active source (such as a card) to be used for all
+ * charges in the future. When you update a customer to a new valid card source by passing the
* source parameter: for each of the customer’s current subscriptions, if the
* subscription bills automatically and is in the {@code past_due} state, then the latest open
- * invoice for the subscription with automatic collection enabled will be retried. This retry will
- * not count as an automatic retry, and will not affect the next regularly scheduled payment for
- * the invoice. Changing the default_source for a customer will not trigger this
+ * invoice for the subscription with automatic collection enabled is retried. This retry doesn’t
+ * count as an automatic retry, and doesn’t affect the next regularly scheduled payment for the
+ * invoice. Changing the default_source for a customer doesn’t trigger this
* behavior.
*
*
This request accepts mostly the same arguments as the customer creation call.
diff --git a/src/main/java/com/stripe/model/Discount.java b/src/main/java/com/stripe/model/Discount.java
index 6b71a8bdab2..b1b4069da7a 100644
--- a/src/main/java/com/stripe/model/Discount.java
+++ b/src/main/java/com/stripe/model/Discount.java
@@ -92,6 +92,9 @@ public class Discount extends StripeObject implements HasId {
@SerializedName("schedule")
String schedule;
+ @SerializedName("service_period_details")
+ ServicePeriodDetails servicePeriodDetails;
+
@SerializedName("source")
Source source;
@@ -149,6 +152,23 @@ public void setPromotionCodeObject(PromotionCode expandableObject) {
new ExpandableField(expandableObject.getId(), expandableObject);
}
+ /**
+ * For more details about ServicePeriodDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ServicePeriodDetails extends StripeObject {
+ /** The date that the service period was anchored to. */
+ @SerializedName("service_period_anchored_at")
+ Long servicePeriodAnchoredAt;
+
+ /** The date that the service period started. */
+ @SerializedName("start_date")
+ Long startDate;
+ }
+
/**
* For more details about Source, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java
index e16e30c7cad..8e2615e4762 100644
--- a/src/main/java/com/stripe/model/Event.java
+++ b/src/main/java/com/stripe/model/Event.java
@@ -120,20 +120,22 @@ public class Event extends ApiResource implements HasId {
* capital.financing_offer.canceled}, {@code capital.financing_offer.created}, {@code
* capital.financing_offer.expired}, {@code capital.financing_offer.fully_repaid}, {@code
* capital.financing_offer.paid_out}, {@code capital.financing_offer.rejected}, {@code
- * capital.financing_offer.replacement_created}, {@code capital.financing_transaction.created},
- * {@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
+ * capital.financing_offer.replacement_created}, {@code
+ * capital.financing_summary.line_of_credit_update}, {@code
+ * capital.financing_transaction.created}, {@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.collection_paused}, {@code customer.subscription.collection_resumed},
@@ -237,10 +239,11 @@ public class Event extends ApiResource implements HasId {
* treasury.outbound_transfer.returned}, {@code
* 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}.
+ * treasury.received_debit.created}, {@code invoice_payment.detached}, {@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}.
*/
@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 28c12348ab1..9a603ae7b19 100644
--- a/src/main/java/com/stripe/model/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/EventDataClassLookup.java
@@ -51,6 +51,7 @@ public final class EventDataClassLookup {
classLookup.put("fee_refund", com.stripe.model.FeeRefund.class);
classLookup.put("file", com.stripe.model.File.class);
classLookup.put("file_link", com.stripe.model.FileLink.class);
+ classLookup.put("fr_meal_vouchers_onboarding", com.stripe.model.FrMealVouchersOnboarding.class);
classLookup.put("funding_instructions", com.stripe.model.FundingInstructions.class);
classLookup.put("fx_quote", com.stripe.model.FxQuote.class);
classLookup.put("invoice", com.stripe.model.Invoice.class);
@@ -172,6 +173,9 @@ public final class EventDataClassLookup {
classLookup.put(
"financial_connections.account_ownership",
com.stripe.model.financialconnections.AccountOwnership.class);
+ classLookup.put(
+ "financial_connections.authorization",
+ com.stripe.model.financialconnections.Authorization.class);
classLookup.put(
"financial_connections.institution",
com.stripe.model.financialconnections.Institution.class);
@@ -219,12 +223,17 @@ public final class EventDataClassLookup {
classLookup.put("radar.account_evaluation", com.stripe.model.radar.AccountEvaluation.class);
classLookup.put("radar.early_fraud_warning", com.stripe.model.radar.EarlyFraudWarning.class);
+ classLookup.put("radar.payment_evaluation", com.stripe.model.radar.PaymentEvaluation.class);
classLookup.put("radar.value_list", com.stripe.model.radar.ValueList.class);
classLookup.put("radar.value_list_item", com.stripe.model.radar.ValueListItem.class);
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(
diff --git a/src/main/java/com/stripe/model/FrMealVouchersOnboarding.java b/src/main/java/com/stripe/model/FrMealVouchersOnboarding.java
new file mode 100644
index 00000000000..98458534aee
--- /dev/null
+++ b/src/main/java/com/stripe/model/FrMealVouchersOnboarding.java
@@ -0,0 +1,337 @@
+// File generated from our OpenAPI spec
+package com.stripe.model;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.FrMealVouchersOnboardingCreateParams;
+import com.stripe.param.FrMealVouchersOnboardingListParams;
+import com.stripe.param.FrMealVouchersOnboardingRetrieveParams;
+import com.stripe.param.FrMealVouchersOnboardingUpdateParams;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related
+ * information for a single restaurant (SIRET number) in the context of the French Meal Vouchers
+ * program.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class FrMealVouchersOnboarding extends ApiResource
+ implements HasId, MetadataStore {
+ /** 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.
+ */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("metadata")
+ Map metadata;
+
+ /** Name of the restaurant. */
+ @SerializedName("name")
+ String name;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value.
+ *
+ * Equal to {@code fr_meal_vouchers_onboarding}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** Postal code of the restaurant. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /** This represents the onboarding state of the restaurant on different providers. */
+ @SerializedName("providers")
+ Providers providers;
+
+ /** SIRET number associated with the restaurant. */
+ @SerializedName("siret")
+ String siret;
+
+ /**
+ * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
+ * status and starts the onboarding process.
+ */
+ public static FrMealVouchersOnboarding create(Map params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /**
+ * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
+ * status and starts the onboarding process.
+ */
+ public static FrMealVouchersOnboarding create(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/fr_meal_vouchers_onboardings";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
+ }
+
+ /**
+ * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
+ * status and starts the onboarding process.
+ */
+ public static FrMealVouchersOnboarding create(FrMealVouchersOnboardingCreateParams params)
+ throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /**
+ * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
+ * status and starts the onboarding process.
+ */
+ public static FrMealVouchersOnboarding create(
+ FrMealVouchersOnboardingCreateParams params, RequestOptions options) throws StripeException {
+ String path = "/v1/fr_meal_vouchers_onboardings";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
+ }
+
+ /** Lists French Meal Vouchers Onboarding objects. */
+ public static FrMealVouchersOnboardingCollection list(Map params)
+ throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+
+ /** Lists French Meal Vouchers Onboarding objects. */
+ public static FrMealVouchersOnboardingCollection list(
+ Map params, RequestOptions options) throws StripeException {
+ String path = "/v1/fr_meal_vouchers_onboardings";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, FrMealVouchersOnboardingCollection.class);
+ }
+
+ /** Lists French Meal Vouchers Onboarding objects. */
+ public static FrMealVouchersOnboardingCollection list(FrMealVouchersOnboardingListParams params)
+ throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+
+ /** Lists French Meal Vouchers Onboarding objects. */
+ public static FrMealVouchersOnboardingCollection list(
+ FrMealVouchersOnboardingListParams params, RequestOptions options) throws StripeException {
+ String path = "/v1/fr_meal_vouchers_onboardings";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, FrMealVouchersOnboardingCollection.class);
+ }
+
+ /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ public static FrMealVouchersOnboarding retrieve(String id) throws StripeException {
+ return retrieve(id, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ public static FrMealVouchersOnboarding retrieve(String id, RequestOptions options)
+ throws StripeException {
+ return retrieve(id, (Map) null, options);
+ }
+
+ /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ public static FrMealVouchersOnboarding retrieve(
+ String id, Map params, RequestOptions options) throws StripeException {
+ String path = String.format("/v1/fr_meal_vouchers_onboardings/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
+ }
+
+ /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ public static FrMealVouchersOnboarding retrieve(
+ String id, FrMealVouchersOnboardingRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/fr_meal_vouchers_onboardings/%s", ApiResource.urlEncodeId(id));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
+ }
+
+ /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ @Override
+ public FrMealVouchersOnboarding update(Map params) throws StripeException {
+ return update(params, (RequestOptions) null);
+ }
+
+ /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ @Override
+ public FrMealVouchersOnboarding update(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format("/v1/fr_meal_vouchers_onboardings/%s", ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, FrMealVouchersOnboarding.class);
+ }
+
+ /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ public FrMealVouchersOnboarding update(FrMealVouchersOnboardingUpdateParams params)
+ throws StripeException {
+ return update(params, (RequestOptions) null);
+ }
+
+ /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ public FrMealVouchersOnboarding update(
+ FrMealVouchersOnboardingUpdateParams params, RequestOptions options) throws StripeException {
+ String path =
+ String.format("/v1/fr_meal_vouchers_onboardings/%s", ApiResource.urlEncodeId(this.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getResponseGetter().request(request, FrMealVouchersOnboarding.class);
+ }
+
+ /** This represents the onboarding state of the restaurant on different providers. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Providers extends StripeObject {
+ /** This represents the onboarding state of the restaurant on Conecs. */
+ @SerializedName("conecs")
+ Conecs conecs;
+
+ /** This represents the onboarding state of the restaurant on Conecs. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Conecs extends StripeObject {
+ /** This represents information which issuers are available to this restaurant via Conecs. */
+ @SerializedName("issuers")
+ Issuers issuers;
+
+ /**
+ * This represents information about outstanding requirements for this restaurant to onboard
+ * to Conecs.
+ */
+ @SerializedName("requirements")
+ Requirements requirements;
+
+ /**
+ * Status of the restaurant's onboarding to Conecs
+ *
+ * One of {@code action_required}, {@code active}, {@code disentitled}, or {@code pending}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /** This represents information which issuers are available to this restaurant via Conecs. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Issuers extends StripeObject {
+ /**
+ * Issuers are available to this restaurant via Conecs, will be blank if the onboarding to
+ * Conecs is not complete or unsuccessful.
+ */
+ @SerializedName("available")
+ List available;
+ }
+
+ /**
+ * This represents information about outstanding requirements for this restaurant to onboard
+ * to Conecs.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Requirements extends StripeObject {
+ /**
+ * Information any errors that are preventing the onboarding to Conecs from being completed.
+ */
+ @SerializedName("errors")
+ List errors;
+
+ /** Fields that need to be provided to complete the onboarding to Conecs. */
+ @SerializedName("past_due")
+ List pastDue;
+
+ /**
+ * For more details about Errors, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Errors extends StripeObject {
+ /**
+ * The code for the type of error.
+ *
+ * One of {@code postal_code_invalid}, or {@code siret_invalid}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /** An informative message that provides additional details about the error. */
+ @SerializedName("message")
+ String message;
+
+ /**
+ * The specific onboarding requirement field (in the requirements hash) that needs to be
+ * resolved.
+ *
+ *
One of {@code postal_code}, or {@code siret}.
+ */
+ @SerializedName("requirement")
+ String requirement;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(providers, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/FrMealVouchersOnboardingCollection.java b/src/main/java/com/stripe/model/FrMealVouchersOnboardingCollection.java
new file mode 100644
index 00000000000..6f89fc46248
--- /dev/null
+++ b/src/main/java/com/stripe/model/FrMealVouchersOnboardingCollection.java
@@ -0,0 +1,5 @@
+// File generated from our OpenAPI spec
+package com.stripe.model;
+
+public class FrMealVouchersOnboardingCollection
+ extends StripeCollection {}
diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java
index e2a960ab0c9..0c4a6a2e38a 100644
--- a/src/main/java/com/stripe/model/Invoice.java
+++ b/src/main/java/com/stripe/model/Invoice.java
@@ -15,6 +15,7 @@
import com.stripe.param.InvoiceAttachPaymentParams;
import com.stripe.param.InvoiceCreateParams;
import com.stripe.param.InvoiceCreatePreviewParams;
+import com.stripe.param.InvoiceDetachPaymentParams;
import com.stripe.param.InvoiceFinalizeInvoiceParams;
import com.stripe.param.InvoiceListParams;
import com.stripe.param.InvoiceMarkUncollectibleParams;
@@ -1037,8 +1038,8 @@ public Invoice attachPayment(InvoiceAttachPaymentParams params, RequestOptions o
/**
* This endpoint creates a draft invoice for a given customer. The invoice remains a draft until
* you finalize the invoice, which
- * allows you to pay or send the invoice to your customers.
+ * allows you to pay or send the invoice to your customers.
*/
public static Invoice create(Map params) throws StripeException {
return create(params, (RequestOptions) null);
@@ -1047,8 +1048,8 @@ public static Invoice create(Map params) throws StripeException
/**
* This endpoint creates a draft invoice for a given customer. The invoice remains a draft until
* you finalize the invoice, which
- * allows you to pay or send the invoice to your customers.
+ * allows you to pay or send the invoice to your customers.
*/
public static Invoice create(Map params, RequestOptions options)
throws StripeException {
@@ -1061,8 +1062,8 @@ public static Invoice create(Map params, RequestOptions options)
/**
* This endpoint creates a draft invoice for a given customer. The invoice remains a draft until
* you finalize the invoice, which
- * allows you to pay or send the invoice to your customers.
+ * allows you to pay or send the invoice to your customers.
*/
public static Invoice create(InvoiceCreateParams params) throws StripeException {
return create(params, (RequestOptions) null);
@@ -1071,8 +1072,8 @@ public static Invoice create(InvoiceCreateParams params) throws StripeException
/**
* This endpoint creates a draft invoice for a given customer. The invoice remains a draft until
* you finalize the invoice, which
- * allows you to pay or send the invoice to your customers.
+ * allows you to pay or send the invoice to your customers.
*/
public static Invoice create(InvoiceCreateParams params, RequestOptions options)
throws StripeException {
@@ -1313,6 +1314,52 @@ public Invoice delete(Map params, RequestOptions options) throws
return getResponseGetter().request(request, Invoice.class);
}
+ /** Detaches a payment from the invoice, removing it from the list of {@code payments}. */
+ public Invoice detachPayment() throws StripeException {
+ return detachPayment((Map) null, (RequestOptions) null);
+ }
+
+ /** Detaches a payment from the invoice, removing it from the list of {@code payments}. */
+ public Invoice detachPayment(RequestOptions options) throws StripeException {
+ return detachPayment((Map) null, options);
+ }
+
+ /** Detaches a payment from the invoice, removing it from the list of {@code payments}. */
+ public Invoice detachPayment(Map params) throws StripeException {
+ return detachPayment(params, (RequestOptions) null);
+ }
+
+ /** Detaches a payment from the invoice, removing it from the list of {@code payments}. */
+ public Invoice detachPayment(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format("/v1/invoices/%s/detach_payment", ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, Invoice.class);
+ }
+
+ /** Detaches a payment from the invoice, removing it from the list of {@code payments}. */
+ public Invoice detachPayment(InvoiceDetachPaymentParams params) throws StripeException {
+ return detachPayment(params, (RequestOptions) null);
+ }
+
+ /** Detaches a payment from the invoice, removing it from the list of {@code payments}. */
+ public Invoice detachPayment(InvoiceDetachPaymentParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format("/v1/invoices/%s/detach_payment", ApiResource.urlEncodeId(this.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getResponseGetter().request(request, Invoice.class);
+ }
+
/**
* Stripe automatically finalizes drafts before sending and attempting payment on invoices.
* However, if you’d like to finalize a draft invoice manually, you can do so using this method.
@@ -2210,21 +2257,21 @@ public static class CustomerTaxId extends StripeObject {
* ro_tin}, {@code rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin},
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
- * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat},
- * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code 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 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}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/InvoiceItem.java b/src/main/java/com/stripe/model/InvoiceItem.java
index 16b304014b2..d4cdea39dc5 100644
--- a/src/main/java/com/stripe/model/InvoiceItem.java
+++ b/src/main/java/com/stripe/model/InvoiceItem.java
@@ -729,11 +729,31 @@ public static class LicenseFeeDetails extends StripeObject {
public static class PriceDetails extends StripeObject {
/** The ID of the price this item is associated with. */
@SerializedName("price")
- String price;
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField price;
/** The ID of the product this item is associated with. */
@SerializedName("product")
String product;
+
+ /** Get ID of expandable {@code price} object. */
+ public String getPrice() {
+ return (this.price != null) ? this.price.getId() : null;
+ }
+
+ public void setPrice(String id) {
+ this.price = ApiResource.setExpandableFieldId(id, this.price);
+ }
+
+ /** Get expanded {@code price}. */
+ public Price getPriceObject() {
+ return (this.price != null) ? this.price.getExpanded() : null;
+ }
+
+ public void setPriceObject(Price expandableObject) {
+ this.price = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
}
/**
diff --git a/src/main/java/com/stripe/model/InvoiceLineItem.java b/src/main/java/com/stripe/model/InvoiceLineItem.java
index 4baa7b8685e..1cde704d54a 100644
--- a/src/main/java/com/stripe/model/InvoiceLineItem.java
+++ b/src/main/java/com/stripe/model/InvoiceLineItem.java
@@ -134,6 +134,12 @@ public class InvoiceLineItem extends ApiResource implements HasId, MetadataStore
@Setter(lombok.AccessLevel.NONE)
ExpandableField subscription;
+ /**
+ * The subtotal of the line item, in cents (or local equivalent), before any discounts or taxes.
+ */
+ @SerializedName("subtotal")
+ Long subtotal;
+
/** The tax calculation identifiers of the line item. */
@SerializedName("tax_calculation_reference")
TaxCalculationReference taxCalculationReference;
@@ -794,11 +800,31 @@ public static class LicenseFeeDetails extends StripeObject {
public static class PriceDetails extends StripeObject {
/** The ID of the price this item is associated with. */
@SerializedName("price")
- String price;
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField price;
/** The ID of the product this item is associated with. */
@SerializedName("product")
String product;
+
+ /** Get ID of expandable {@code price} object. */
+ public String getPrice() {
+ return (this.price != null) ? this.price.getId() : null;
+ }
+
+ public void setPrice(String id) {
+ this.price = ApiResource.setExpandableFieldId(id, this.price);
+ }
+
+ /** Get expanded {@code price}. */
+ public Price getPriceObject() {
+ return (this.price != null) ? this.price.getExpanded() : null;
+ }
+
+ public void setPriceObject(Price expandableObject) {
+ this.price = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
}
/**
diff --git a/src/main/java/com/stripe/model/Order.java b/src/main/java/com/stripe/model/Order.java
index b36d949f04b..d0fde5941ea 100644
--- a/src/main/java/com/stripe/model/Order.java
+++ b/src/main/java/com/stripe/model/Order.java
@@ -9,11 +9,8 @@
import com.stripe.net.BaseAddress;
import com.stripe.net.RequestOptions;
import com.stripe.net.StripeResponseGetter;
-import com.stripe.param.OrderCancelParams;
import com.stripe.param.OrderCreateParams;
-import com.stripe.param.OrderListLineItemsParams;
import com.stripe.param.OrderListParams;
-import com.stripe.param.OrderReopenParams;
import com.stripe.param.OrderRetrieveParams;
import com.stripe.param.OrderSubmitParams;
import com.stripe.param.OrderUpdateParams;
@@ -249,48 +246,6 @@ public void setDiscountObjects(List objs) {
: null;
}
- /** Cancels the order as well as the payment intent if one is attached. */
- public Order cancel() throws StripeException {
- return cancel((Map) null, (RequestOptions) null);
- }
-
- /** Cancels the order as well as the payment intent if one is attached. */
- public Order cancel(RequestOptions options) throws StripeException {
- return cancel((Map) null, options);
- }
-
- /** Cancels the order as well as the payment intent if one is attached. */
- public Order cancel(Map params) throws StripeException {
- return cancel(params, (RequestOptions) null);
- }
-
- /** Cancels the order as well as the payment intent if one is attached. */
- public Order cancel(Map params, RequestOptions options) throws StripeException {
- String path = String.format("/v1/orders/%s/cancel", ApiResource.urlEncodeId(this.getId()));
- ApiRequest request =
- new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
- return getResponseGetter().request(request, Order.class);
- }
-
- /** Cancels the order as well as the payment intent if one is attached. */
- public Order cancel(OrderCancelParams params) throws StripeException {
- return cancel(params, (RequestOptions) null);
- }
-
- /** Cancels the order as well as the payment intent if one is attached. */
- public Order cancel(OrderCancelParams params, RequestOptions options) throws StripeException {
- String path = String.format("/v1/orders/%s/cancel", ApiResource.urlEncodeId(this.getId()));
- ApiResource.checkNullTypedParams(path, params);
- ApiRequest request =
- new ApiRequest(
- BaseAddress.API,
- ApiResource.RequestMethod.POST,
- path,
- ApiRequestParams.paramsToMap(params),
- options);
- return getResponseGetter().request(request, Order.class);
- }
-
/** Creates a new {@code open} order object. */
public static Order create(Map params) throws StripeException {
return create(params, (RequestOptions) null);
@@ -371,107 +326,6 @@ public static OrderCollection list(OrderListParams params, RequestOptions option
return getGlobalResponseGetter().request(request, OrderCollection.class);
}
- /**
- * When retrieving an order, there is an includable line_items property
- * containing the first handful of those items. There is also a URL where you can retrieve the
- * full (paginated) list of line items.
- */
- public LineItemCollection listLineItems() throws StripeException {
- return listLineItems((Map) null, (RequestOptions) null);
- }
-
- /**
- * When retrieving an order, there is an includable line_items property
- * containing the first handful of those items. There is also a URL where you can retrieve the
- * full (paginated) list of line items.
- */
- public LineItemCollection listLineItems(Map params) throws StripeException {
- return listLineItems(params, (RequestOptions) null);
- }
-
- /**
- * When retrieving an order, there is an includable line_items property
- * containing the first handful of those items. There is also a URL where you can retrieve the
- * full (paginated) list of line items.
- */
- public LineItemCollection listLineItems(Map params, RequestOptions options)
- throws StripeException {
- String path = String.format("/v1/orders/%s/line_items", ApiResource.urlEncodeId(this.getId()));
- ApiRequest request =
- new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
- return getResponseGetter().request(request, LineItemCollection.class);
- }
-
- /**
- * When retrieving an order, there is an includable line_items property
- * containing the first handful of those items. There is also a URL where you can retrieve the
- * full (paginated) list of line items.
- */
- public LineItemCollection listLineItems(OrderListLineItemsParams params) throws StripeException {
- return listLineItems(params, (RequestOptions) null);
- }
-
- /**
- * When retrieving an order, there is an includable line_items property
- * containing the first handful of those items. There is also a URL where you can retrieve the
- * full (paginated) list of line items.
- */
- public LineItemCollection listLineItems(OrderListLineItemsParams params, RequestOptions options)
- throws StripeException {
- String path = String.format("/v1/orders/%s/line_items", ApiResource.urlEncodeId(this.getId()));
- ApiResource.checkNullTypedParams(path, params);
- ApiRequest request =
- new ApiRequest(
- BaseAddress.API,
- ApiResource.RequestMethod.GET,
- path,
- ApiRequestParams.paramsToMap(params),
- options);
- return getResponseGetter().request(request, LineItemCollection.class);
- }
-
- /** Reopens a {@code submitted} order. */
- public Order reopen() throws StripeException {
- return reopen((Map) null, (RequestOptions) null);
- }
-
- /** Reopens a {@code submitted} order. */
- public Order reopen(RequestOptions options) throws StripeException {
- return reopen((Map) null, options);
- }
-
- /** Reopens a {@code submitted} order. */
- public Order reopen(Map params) throws StripeException {
- return reopen(params, (RequestOptions) null);
- }
-
- /** Reopens a {@code submitted} order. */
- public Order reopen(Map params, RequestOptions options) throws StripeException {
- String path = String.format("/v1/orders/%s/reopen", ApiResource.urlEncodeId(this.getId()));
- ApiRequest request =
- new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
- return getResponseGetter().request(request, Order.class);
- }
-
- /** Reopens a {@code submitted} order. */
- public Order reopen(OrderReopenParams params) throws StripeException {
- return reopen(params, (RequestOptions) null);
- }
-
- /** Reopens a {@code submitted} order. */
- public Order reopen(OrderReopenParams params, RequestOptions options) throws StripeException {
- String path = String.format("/v1/orders/%s/reopen", ApiResource.urlEncodeId(this.getId()));
- ApiResource.checkNullTypedParams(path, params);
- ApiRequest request =
- new ApiRequest(
- BaseAddress.API,
- ApiResource.RequestMethod.POST,
- path,
- ApiRequestParams.paramsToMap(params),
- options);
- return getResponseGetter().request(request, Order.class);
- }
-
/**
* Retrieves the details of an existing order. Supply the unique order ID from either an order
* creation request or the order list, and Stripe will return the corresponding order information.
@@ -1897,20 +1751,20 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid},
- * {@code 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}.
+ * 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}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/PaymentAttemptRecord.java b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
index 23f43ac7c21..9a207d02afd 100644
--- a/src/main/java/com/stripe/model/PaymentAttemptRecord.java
+++ b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
@@ -1968,11 +1968,11 @@ public static class IdBankTransfer extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Ideal extends StripeObject {
/**
- * The customer's bank. Can be one of {@code abn_amro}, {@code asn_bank}, {@code bunq}, {@code
- * buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code mollie},
- * {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code regiobank}, {@code
- * revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot}, or {@code
- * yoursafe}.
+ * The customer's bank. Can be one of {@code abn_amro}, {@code adyen}, {@code asn_bank},
+ * {@code bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code
+ * knab}, {@code mollie}, {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code
+ * regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot},
+ * or {@code yoursafe}.
*/
@SerializedName("bank")
String bank;
@@ -1980,11 +1980,11 @@ public static class Ideal extends StripeObject {
/**
* The Bank Identifier Code of the customer's bank.
*
- * One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
- * BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code
- * KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code
- * RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or
- * {@code TRIONL2U}.
+ *
One of {@code ABNANL2A}, {@code ADYBNL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code
+ * BUNQNL2A}, {@code BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code
+ * INGBNL2A}, {@code KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code
+ * NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code
+ * SNSBNL2A}, or {@code TRIONL2U}.
*/
@SerializedName("bic")
String bic;
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index 650f181e444..c034dcb650b 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -1752,9 +1752,12 @@ public static class AmountDetails extends StripeObject {
@SerializedName("discount_amount")
Long discountAmount;
+ @SerializedName("error")
+ Errors error;
+
/**
* A list of line items, each containing information about a product in the PaymentIntent. There
- * is a maximum of 100 line items.
+ * is a maximum of 200 line items.
*/
@SerializedName("line_items")
PaymentIntentAmountDetailsLineItemCollection lineItems;
@@ -1768,6 +1771,28 @@ public static class AmountDetails extends StripeObject {
@SerializedName("tip")
Tip tip;
+ /**
+ * For more details about Errors, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Errors extends StripeObject {
+ /**
+ * The code of the error that occurred when validating the current amount details.
+ *
+ *
One of {@code amount_details_amount_mismatch}, or {@code
+ * amount_details_tax_shipping_discount_greater_than_amount}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /** A message providing more details about the error. */
+ @SerializedName("message")
+ String message;
+ }
+
/**
* For more details about Shipping, please refer to the API Reference.
@@ -2885,6 +2910,9 @@ public static class PaymentDetails extends StripeObject {
@SerializedName("car_rental")
CarRental carRental;
+ @SerializedName("car_rental_data")
+ List carRentalData;
+
/**
* A unique value to identify the customer. This field is available only for card payments.
*
@@ -2897,6 +2925,12 @@ public static class PaymentDetails extends StripeObject {
@SerializedName("event_details")
EventDetails eventDetails;
+ @SerializedName("flight_data")
+ List flightData;
+
+ @SerializedName("lodging_data")
+ List lodgingData;
+
/**
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
* rates.
@@ -3137,6 +3171,389 @@ public static class Driver extends StripeObject {
}
}
+ /**
+ * For more details about CarRentalDatum, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CarRentalDatum extends StripeObject {
+ @SerializedName("affiliate")
+ Affiliate affiliate;
+
+ /** The booking number associated with the car rental. */
+ @SerializedName("booking_number")
+ String bookingNumber;
+
+ /** The name of the car rental company. */
+ @SerializedName("carrier_name")
+ String carrierName;
+
+ /** The customer service phone number of the car rental company. */
+ @SerializedName("customer_service_phone_number")
+ String customerServicePhoneNumber;
+
+ /** Number of days the car is being rented. */
+ @SerializedName("days_rented")
+ Long daysRented;
+
+ @SerializedName("distance")
+ Distance distance;
+
+ /** The details of the drivers associated with the rental. */
+ @SerializedName("drivers")
+ List drivers;
+
+ @SerializedName("drop_off")
+ DropOff dropOff;
+
+ /** Insurance details for the car rental. */
+ @SerializedName("insurances")
+ List insurances;
+
+ /** Indicates if the customer did not keep nor cancel their booking. */
+ @SerializedName("no_show_indicator")
+ Boolean noShowIndicator;
+
+ @SerializedName("pickup")
+ Pickup pickup;
+
+ /** Name of the person renting the vehicle. */
+ @SerializedName("renter_name")
+ String renterName;
+
+ @SerializedName("total")
+ Total total;
+
+ @SerializedName("vehicle")
+ Vehicle vehicle;
+
+ /**
+ * For more details about Affiliate, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Affiliate extends StripeObject {
+ /** Affiliate code. */
+ @SerializedName("code")
+ String code;
+
+ /** Affiliate name. */
+ @SerializedName("name")
+ String name;
+ }
+
+ /**
+ * For more details about Distance, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Distance extends StripeObject {
+ /** Distance amount. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Unit for the distance.
+ *
+ * One of {@code kilometers}, or {@code miles}.
+ */
+ @SerializedName("unit")
+ String unit;
+ }
+
+ /**
+ * For more details about Driver, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Driver extends StripeObject {
+ @SerializedName("date_of_birth")
+ DateOfBirth dateOfBirth;
+
+ /** Driver's identification number. */
+ @SerializedName("driver_identification_number")
+ String driverIdentificationNumber;
+
+ /** Driver's tax number. */
+ @SerializedName("driver_tax_number")
+ String driverTaxNumber;
+
+ /** Full name of the driver. */
+ @SerializedName("name")
+ String name;
+
+ /**
+ * For more details about DateOfBirth, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DateOfBirth extends StripeObject {
+ /** Day of birth. */
+ @SerializedName("day")
+ Long day;
+
+ /** Month of birth. */
+ @SerializedName("month")
+ Long month;
+
+ /** Year of birth. */
+ @SerializedName("year")
+ Long year;
+ }
+ }
+
+ /**
+ * For more details about DropOff, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DropOff extends StripeObject {
+ @SerializedName("address")
+ com.stripe.model.Address address;
+
+ /** Name of the location. */
+ @SerializedName("location_name")
+ String locationName;
+
+ /** Time associated with the location. */
+ @SerializedName("time")
+ Long time;
+ }
+
+ /**
+ * For more details about Insurance, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Insurance extends StripeObject {
+ /** Amount of the insurance. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** Currency for the insurance price. */
+ @SerializedName("currency")
+ String currency;
+
+ /** Name of the insurance company. */
+ @SerializedName("insurance_company_name")
+ String insuranceCompanyName;
+
+ /**
+ * Type of insurance.
+ *
+ *
One of {@code liability_supplement}, {@code loss_damage_waiver}, {@code other}, {@code
+ * partial_damage_waiver}, {@code personal_accident}, or {@code personal_effects}.
+ */
+ @SerializedName("insurance_type")
+ String insuranceType;
+ }
+
+ /**
+ * For more details about Pickup, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Pickup extends StripeObject {
+ @SerializedName("address")
+ com.stripe.model.Address address;
+
+ /** Name of the location. */
+ @SerializedName("location_name")
+ String locationName;
+
+ /** Time associated with the location. */
+ @SerializedName("time")
+ Long time;
+ }
+
+ /**
+ * For more details about Total, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Total extends StripeObject {
+ /** Total amount. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** Currency for the total amount. */
+ @SerializedName("currency")
+ String currency;
+
+ @SerializedName("discounts")
+ Discounts discounts;
+
+ /** Additional charges for the rental. */
+ @SerializedName("extra_charges")
+ List extraCharges;
+
+ /** Rate per unit. */
+ @SerializedName("rate_per_unit")
+ Long ratePerUnit;
+
+ /**
+ * Unit for the rate.
+ *
+ * One of {@code kilometers}, or {@code miles}.
+ */
+ @SerializedName("rate_unit")
+ String rateUnit;
+
+ @SerializedName("tax")
+ Tax tax;
+
+ /**
+ * For more details about Discounts, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Discounts extends StripeObject {
+ /** Corporate client discount code. */
+ @SerializedName("corporate_client_code")
+ String corporateClientCode;
+
+ /** Coupon code applied. */
+ @SerializedName("coupon")
+ String coupon;
+
+ /** Maximum free miles or kilometers included. */
+ @SerializedName("maximum_free_miles_or_kilometers")
+ Long maximumFreeMilesOrKilometers;
+ }
+
+ /**
+ * For more details about ExtraCharge, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ExtraCharge extends StripeObject {
+ /** Amount of the extra charge. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Type of extra charge.
+ *
+ *
One of {@code extra_mileage}, {@code gas}, {@code gps}, {@code late_charge}, {@code
+ * one_way_drop_off}, {@code other}, {@code parking}, {@code phone}, {@code
+ * regular_mileage}, or {@code towing}.
+ */
+ @SerializedName("type")
+ String type;
+ }
+
+ /**
+ * For more details about Tax, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Tax extends StripeObject {
+ /** Indicates whether the rental is tax-exempt. */
+ @SerializedName("tax_exempt_indicator")
+ Boolean taxExemptIndicator;
+
+ /** Tax details. */
+ @SerializedName("taxes")
+ List taxes;
+
+ /**
+ * For more details about InnerTax, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class InnerTax extends StripeObject {
+ /** Tax amount. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** Tax rate. */
+ @SerializedName("rate")
+ Long rate;
+
+ /** Type of tax. */
+ @SerializedName("type")
+ String type;
+ }
+ }
+ }
+
+ /**
+ * For more details about Vehicle, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Vehicle extends StripeObject {
+ /** Make of the vehicle. */
+ @SerializedName("make")
+ String make;
+
+ /** Model of the vehicle. */
+ @SerializedName("model")
+ String model;
+
+ /** Odometer reading. */
+ @SerializedName("odometer")
+ Long odometer;
+
+ /**
+ * Type of the vehicle.
+ *
+ * One of {@code cargo_van}, {@code compact}, {@code economy}, {@code exotic}, {@code
+ * exotic_suv}, {@code fifteen_passenger_van}, {@code four_wheel_drive}, {@code full_size},
+ * {@code intermediate}, {@code large_suv}, {@code large_truck}, {@code luxury}, {@code
+ * medium_suv}, {@code midsize}, {@code mini}, {@code minivan}, {@code miscellaneous},
+ * {@code moped}, {@code moving_van}, {@code premium}, {@code regular}, {@code
+ * small_medium_truck}, {@code small_suv}, {@code special}, {@code standard}, {@code
+ * stretch}, {@code subcompact}, {@code taxi}, {@code twelve_foot_truck}, {@code
+ * twelve_passenger_van}, {@code twenty_foot_truck}, {@code twenty_four_foot_truck}, {@code
+ * twenty_six_foot_truck}, or {@code unique}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /**
+ * Class of the vehicle.
+ *
+ *
One of {@code business}, {@code economy}, {@code first_class}, or {@code
+ * premium_economy}.
+ */
+ @SerializedName("vehicle_class")
+ String vehicleClass;
+
+ /** Vehicle identification number. */
+ @SerializedName("vehicle_identification_number")
+ String vehicleIdentificationNumber;
+ }
+ }
+
/**
* For more details about EventDetails, please refer to the API Reference.
@@ -3233,6 +3650,670 @@ public static class Recipient extends StripeObject {
}
}
+ /**
+ * For more details about FlightDatum, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FlightDatum extends StripeObject {
+ @SerializedName("affiliate")
+ Affiliate affiliate;
+
+ /** The booking number associated with the flight reservation. */
+ @SerializedName("booking_number")
+ String bookingNumber;
+
+ /**
+ * The computerized reservation system used to make the reservation and purchase the ticket.
+ */
+ @SerializedName("computerized_reservation_system")
+ String computerizedReservationSystem;
+
+ /** Ticket restrictions. */
+ @SerializedName("endorsements_and_restrictions")
+ String endorsementsAndRestrictions;
+
+ /** Insurance details for the flight. */
+ @SerializedName("insurances")
+ List insurances;
+
+ /** The list of passengers for this flight. */
+ @SerializedName("passengers")
+ List passengers;
+
+ /** The list of flight segments for this reservation. */
+ @SerializedName("segments")
+ List segments;
+
+ /** Electronic ticket indicator. */
+ @SerializedName("ticket_electronically_issued_indicator")
+ Boolean ticketElectronicallyIssuedIndicator;
+
+ @SerializedName("total")
+ Total total;
+
+ /**
+ * Type of flight transaction.
+ *
+ * One of {@code exchange_ticket}, {@code miscellaneous}, {@code refund}, or {@code
+ * ticket_purchase}.
+ */
+ @SerializedName("transaction_type")
+ String transactionType;
+
+ /**
+ * For more details about Affiliate, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Affiliate extends StripeObject {
+ /** Affiliate code. */
+ @SerializedName("code")
+ String code;
+
+ /** Affiliate name. */
+ @SerializedName("name")
+ String name;
+
+ /** Code provided by the company to a travel agent authorizing ticket issuance. */
+ @SerializedName("travel_authorization_code")
+ String travelAuthorizationCode;
+ }
+
+ /**
+ * For more details about Insurance, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Insurance extends StripeObject {
+ /** Amount of the insurance. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** Currency for the insurance price. */
+ @SerializedName("currency")
+ String currency;
+
+ /** Name of the insurance company. */
+ @SerializedName("insurance_company_name")
+ String insuranceCompanyName;
+
+ /**
+ * Type of insurance.
+ *
+ *
One of {@code baggage}, {@code bankruptcy}, {@code cancelation}, {@code emergency}, or
+ * {@code medical}.
+ */
+ @SerializedName("insurance_type")
+ String insuranceType;
+ }
+
+ /**
+ * For more details about Passenger, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Passenger extends StripeObject {
+ /** Full name of the passenger. */
+ @SerializedName("name")
+ String name;
+ }
+
+ /**
+ * For more details about Segment, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Segment extends StripeObject {
+ /** Segment fare amount. */
+ @SerializedName("amount")
+ Long amount;
+
+ @SerializedName("arrival")
+ Arrival arrival;
+
+ /** Airline carrier code. */
+ @SerializedName("carrier_code")
+ String carrierCode;
+
+ /** Carrier name. */
+ @SerializedName("carrier_name")
+ String carrierName;
+
+ /** Segment currency. */
+ @SerializedName("currency")
+ String currency;
+
+ @SerializedName("departure")
+ Departure departure;
+
+ /** Exchange ticket number. */
+ @SerializedName("exchange_ticket_number")
+ String exchangeTicketNumber;
+
+ /** Fare basis code. */
+ @SerializedName("fare_basis_code")
+ String fareBasisCode;
+
+ /** Additional fees. */
+ @SerializedName("fees")
+ Long fees;
+
+ /** Flight number. */
+ @SerializedName("flight_number")
+ String flightNumber;
+
+ /** Stopover indicator. */
+ @SerializedName("is_stop_over_indicator")
+ Boolean isStopOverIndicator;
+
+ /** Refundable ticket indicator. */
+ @SerializedName("refundable")
+ Boolean refundable;
+
+ /**
+ * Class of service.
+ *
+ *
One of {@code business}, {@code economy}, {@code first_class}, or {@code
+ * premium_economy}.
+ */
+ @SerializedName("service_class")
+ String serviceClass;
+
+ /** Tax amount for segment. */
+ @SerializedName("tax_amount")
+ Long taxAmount;
+
+ /** Ticket number. */
+ @SerializedName("ticket_number")
+ String ticketNumber;
+
+ /**
+ * For more details about Arrival, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Arrival extends StripeObject {
+ /** Arrival airport IATA code. */
+ @SerializedName("airport")
+ String airport;
+
+ /** Arrival date and time. */
+ @SerializedName("arrives_at")
+ Long arrivesAt;
+
+ /** Arrival city. */
+ @SerializedName("city")
+ String city;
+
+ /** Arrival country. */
+ @SerializedName("country")
+ String country;
+ }
+
+ /**
+ * For more details about Departure, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Departure extends StripeObject {
+ /** Departure airport IATA code. */
+ @SerializedName("airport")
+ String airport;
+
+ /** Departure city. */
+ @SerializedName("city")
+ String city;
+
+ /** Departure country. */
+ @SerializedName("country")
+ String country;
+
+ /** Departure date and time. */
+ @SerializedName("departs_at")
+ Long departsAt;
+ }
+ }
+
+ /**
+ * For more details about Total, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Total extends StripeObject {
+ /** Total amount. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Reason for credit.
+ *
+ *
One of {@code other}, {@code partial_ticket_refund}, {@code
+ * passenger_transport_ancillary_cancellation}, {@code ticket_and_ancillary_cancellation},
+ * or {@code ticket_cancellation}.
+ */
+ @SerializedName("credit_reason")
+ String creditReason;
+
+ /** Currency for the total amount. */
+ @SerializedName("currency")
+ String currency;
+
+ @SerializedName("discounts")
+ Discounts discounts;
+
+ /** Additional charges for the flight. */
+ @SerializedName("extra_charges")
+ List extraCharges;
+
+ @SerializedName("tax")
+ Tax tax;
+
+ /**
+ * For more details about Discounts, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Discounts extends StripeObject {
+ /** Corporate client discount code. */
+ @SerializedName("corporate_client_code")
+ String corporateClientCode;
+ }
+
+ /**
+ * For more details about ExtraCharge, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ExtraCharge extends StripeObject {
+ /** Amount of the extra charge. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Type of extra charge.
+ *
+ * One of {@code additional_fees}, {@code ancillary_service_charges}, or {@code
+ * exchange_fee}.
+ */
+ @SerializedName("type")
+ String type;
+ }
+
+ /**
+ * For more details about Tax, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Tax extends StripeObject {
+ /** Tax details. */
+ @SerializedName("taxes")
+ List taxes;
+
+ /**
+ * For more details about InnerTax, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class InnerTax extends StripeObject {
+ /** Tax amount. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** Tax rate. */
+ @SerializedName("rate")
+ Long rate;
+
+ /** Type of tax. */
+ @SerializedName("type")
+ String type;
+ }
+ }
+ }
+ }
+
+ /**
+ * For more details about LodgingDatum, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class LodgingDatum extends StripeObject {
+ @SerializedName("accommodation")
+ Accommodation accommodation;
+
+ @SerializedName("affiliate")
+ Affiliate affiliate;
+
+ /** Booking confirmation number for the lodging. */
+ @SerializedName("booking_number")
+ String bookingNumber;
+
+ /** Check-in date. */
+ @SerializedName("checkin_at")
+ Long checkinAt;
+
+ /** Check-out date. */
+ @SerializedName("checkout_at")
+ Long checkoutAt;
+
+ /** Customer service phone number for the lodging company. */
+ @SerializedName("customer_service_phone_number")
+ String customerServicePhoneNumber;
+
+ /** Whether the lodging is compliant with any hotel fire safety regulations. */
+ @SerializedName("fire_safety_act_compliance_indicator")
+ Boolean fireSafetyActComplianceIndicator;
+
+ /** List of guests for the lodging. */
+ @SerializedName("guests")
+ List guests;
+
+ @SerializedName("host")
+ Host host;
+
+ /** List of insurances for the lodging. */
+ @SerializedName("insurances")
+ List insurances;
+
+ /** Whether the renter is a no-show. */
+ @SerializedName("no_show_indicator")
+ Boolean noShowIndicator;
+
+ /** Renter ID number for the lodging. */
+ @SerializedName("renter_id_number")
+ String renterIdNumber;
+
+ /** Renter name for the lodging. */
+ @SerializedName("renter_name")
+ String renterName;
+
+ @SerializedName("total")
+ Total total;
+
+ /**
+ * For more details about Accommodation, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Accommodation extends StripeObject {
+ /**
+ * Type of accommodation.
+ *
+ * One of {@code apartment}, {@code cabana}, {@code house}, {@code penthouse}, {@code
+ * room}, {@code standard}, {@code suite}, or {@code villa}.
+ */
+ @SerializedName("accommodation_type")
+ String accommodationType;
+
+ /** Bed type. */
+ @SerializedName("bed_type")
+ String bedType;
+
+ /** Daily accommodation rate in cents. */
+ @SerializedName("daily_rate_amount")
+ Long dailyRateAmount;
+
+ /** Number of nights. */
+ @SerializedName("nights")
+ Long nights;
+
+ /** Number of rooms, cabanas, apartments, and so on. */
+ @SerializedName("number_of_rooms")
+ Long numberOfRooms;
+
+ /** Rate type. */
+ @SerializedName("rate_type")
+ String rateType;
+
+ /** Whether smoking is allowed. */
+ @SerializedName("smoking_indicator")
+ Boolean smokingIndicator;
+ }
+
+ /**
+ * For more details about Affiliate, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Affiliate extends StripeObject {
+ /** Affiliate partner code. */
+ @SerializedName("code")
+ String code;
+
+ /** Affiliate partner name. */
+ @SerializedName("name")
+ String name;
+ }
+
+ /**
+ * For more details about Guest, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Guest extends StripeObject {
+ /** Guest's full name. */
+ @SerializedName("name")
+ String name;
+ }
+
+ /**
+ * For more details about Host, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Host extends StripeObject {
+ @SerializedName("address")
+ com.stripe.model.Address address;
+
+ /** Host's country of domicile. */
+ @SerializedName("country_of_domicile")
+ String countryOfDomicile;
+
+ /** Reference number for the host. */
+ @SerializedName("host_reference")
+ String hostReference;
+
+ /**
+ * Type of host.
+ *
+ *
One of {@code hostel}, {@code hotel}, {@code owner}, or {@code rental_agency}.
+ */
+ @SerializedName("host_type")
+ String hostType;
+
+ /** Name of the lodging property or host. */
+ @SerializedName("name")
+ String name;
+
+ /** Total number of reservations for the host. */
+ @SerializedName("number_of_reservations")
+ Long numberOfReservations;
+
+ /** Property phone number. */
+ @SerializedName("property_phone_number")
+ String propertyPhoneNumber;
+
+ /** Host's registration date. */
+ @SerializedName("registered_at")
+ Long registeredAt;
+ }
+
+ /**
+ * For more details about Insurance, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Insurance extends StripeObject {
+ /** Price of the insurance coverage in cents. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** Currency of the insurance amount. */
+ @SerializedName("currency")
+ String currency;
+
+ /** Name of the insurance company. */
+ @SerializedName("insurance_company_name")
+ String insuranceCompanyName;
+
+ /**
+ * Type of insurance coverage.
+ *
+ *
One of {@code bankruptcy}, {@code cancelation}, {@code emergency}, or {@code medical}.
+ */
+ @SerializedName("insurance_type")
+ String insuranceType;
+ }
+
+ /**
+ * For more details about Total, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Total extends StripeObject {
+ /** Total price of the lodging reservation in cents. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** Cash advances in cents. */
+ @SerializedName("cash_advances")
+ Long cashAdvances;
+
+ /** Currency of the total amount. */
+ @SerializedName("currency")
+ String currency;
+
+ @SerializedName("discounts")
+ Discounts discounts;
+
+ /** Additional charges for the lodging. */
+ @SerializedName("extra_charges")
+ List extraCharges;
+
+ /** Prepaid amount in cents. */
+ @SerializedName("prepaid_amount")
+ Long prepaidAmount;
+
+ @SerializedName("tax")
+ Tax tax;
+
+ /**
+ * For more details about Discounts, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Discounts extends StripeObject {
+ /** Corporate client discount code. */
+ @SerializedName("corporate_client_code")
+ String corporateClientCode;
+
+ /** Coupon code. */
+ @SerializedName("coupon")
+ String coupon;
+ }
+
+ /**
+ * For more details about ExtraCharge, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ExtraCharge extends StripeObject {
+ /** Amount of the extra charge in cents. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Type of extra charge.
+ *
+ * One of {@code gift_shop}, {@code laundry}, {@code mini_bar}, {@code other}, {@code
+ * phone}, or {@code restaurant}.
+ */
+ @SerializedName("type")
+ String type;
+ }
+
+ /**
+ * For more details about Tax, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Tax extends StripeObject {
+ /** Indicates whether the transaction is tax exempt. */
+ @SerializedName("tax_exempt_indicator")
+ Boolean taxExemptIndicator;
+
+ /** Tax details. */
+ @SerializedName("taxes")
+ List taxes;
+
+ /**
+ * For more details about InnerTax, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class InnerTax extends StripeObject {
+ /** Tax amount in cents. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** Tax rate. */
+ @SerializedName("rate")
+ Long rate;
+
+ /** Type of tax applied. */
+ @SerializedName("type")
+ String type;
+ }
+ }
+ }
+ }
+
/**
* For more details about Subscription, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java
index 55261a8c76f..e2f564dab47 100644
--- a/src/main/java/com/stripe/model/PaymentLink.java
+++ b/src/main/java/com/stripe/model/PaymentLink.java
@@ -96,7 +96,7 @@ public class PaymentLink extends ApiResource implements HasId, MetadataStore customFields;
diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java
index 35319fcc9c9..c0151aba099 100644
--- a/src/main/java/com/stripe/model/PaymentMethod.java
+++ b/src/main/java/com/stripe/model/PaymentMethod.java
@@ -2056,11 +2056,11 @@ public static class IdBankTransfer extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Ideal extends StripeObject {
/**
- * The customer's bank, if provided. Can be one of {@code abn_amro}, {@code asn_bank}, {@code
- * bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code
- * mollie}, {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code regiobank},
- * {@code revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot}, or {@code
- * yoursafe}.
+ * The customer's bank, if provided. Can be one of {@code abn_amro}, {@code adyen}, {@code
+ * asn_bank}, {@code bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing},
+ * {@code knab}, {@code mollie}, {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank},
+ * {@code regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank}, {@code
+ * van_lanschot}, or {@code yoursafe}.
*/
@SerializedName("bank")
String bank;
@@ -2068,11 +2068,11 @@ public static class Ideal extends StripeObject {
/**
* The Bank Identifier Code of the customer's bank, if the bank was provided.
*
- * One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
- * BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code
- * KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code
- * RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or {@code
- * TRIONL2U}.
+ *
One of {@code ABNANL2A}, {@code ADYBNL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code
+ * BUNQNL2A}, {@code BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code
+ * INGBNL2A}, {@code KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code
+ * NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code
+ * SNSBNL2A}, or {@code TRIONL2U}.
*/
@SerializedName("bic")
String bic;
diff --git a/src/main/java/com/stripe/model/PaymentRecord.java b/src/main/java/com/stripe/model/PaymentRecord.java
index ea9154631a8..02fa3ce3a05 100644
--- a/src/main/java/com/stripe/model/PaymentRecord.java
+++ b/src/main/java/com/stripe/model/PaymentRecord.java
@@ -2270,11 +2270,11 @@ public static class IdBankTransfer extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Ideal extends StripeObject {
/**
- * The customer's bank. Can be one of {@code abn_amro}, {@code asn_bank}, {@code bunq}, {@code
- * buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code mollie},
- * {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code regiobank}, {@code
- * revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot}, or {@code
- * yoursafe}.
+ * The customer's bank. Can be one of {@code abn_amro}, {@code adyen}, {@code asn_bank},
+ * {@code bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code
+ * knab}, {@code mollie}, {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code
+ * regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot},
+ * or {@code yoursafe}.
*/
@SerializedName("bank")
String bank;
@@ -2282,11 +2282,11 @@ public static class Ideal extends StripeObject {
/**
* The Bank Identifier Code of the customer's bank.
*
- *
One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
- * BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code
- * KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code
- * RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or
- * {@code TRIONL2U}.
+ *
One of {@code ABNANL2A}, {@code ADYBNL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code
+ * BUNQNL2A}, {@code BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code
+ * INGBNL2A}, {@code KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code
+ * NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code
+ * SNSBNL2A}, or {@code TRIONL2U}.
*/
@SerializedName("bic")
String bic;
diff --git a/src/main/java/com/stripe/model/QuotePreviewInvoice.java b/src/main/java/com/stripe/model/QuotePreviewInvoice.java
index b07a4ef3f62..698749c09ed 100644
--- a/src/main/java/com/stripe/model/QuotePreviewInvoice.java
+++ b/src/main/java/com/stripe/model/QuotePreviewInvoice.java
@@ -1078,21 +1078,21 @@ public static class CustomerTaxId extends StripeObject {
* ro_tin}, {@code rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin},
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
- * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat},
- * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code 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 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}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/SetupAttempt.java b/src/main/java/com/stripe/model/SetupAttempt.java
index 86e67391664..acda61f4b9d 100644
--- a/src/main/java/com/stripe/model/SetupAttempt.java
+++ b/src/main/java/com/stripe/model/SetupAttempt.java
@@ -682,7 +682,7 @@ public static class ThreeDSecure extends StripeObject {
/**
* The version of 3D Secure that was used.
*
- *
One of {@code 1.0.2}, {@code 2.1.0}, or {@code 2.2.0}.
+ *
One of {@code 1.0.2}, {@code 2.1.0}, {@code 2.2.0}, {@code 2.3.0}, or {@code 2.3.1}.
*/
@SerializedName("version")
String version;
@@ -839,11 +839,11 @@ public static class IdBankTransfer extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Ideal extends StripeObject {
/**
- * The customer's bank. Can be one of {@code abn_amro}, {@code asn_bank}, {@code bunq}, {@code
- * buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code knab}, {@code mollie},
- * {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code regiobank}, {@code
- * revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot}, or {@code
- * yoursafe}.
+ * The customer's bank. Can be one of {@code abn_amro}, {@code adyen}, {@code asn_bank},
+ * {@code bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing}, {@code
+ * knab}, {@code mollie}, {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank}, {@code
+ * regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank}, {@code van_lanschot},
+ * or {@code yoursafe}.
*/
@SerializedName("bank")
String bank;
@@ -851,11 +851,11 @@ public static class Ideal extends StripeObject {
/**
* The Bank Identifier Code of the customer's bank.
*
- *
One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
- * BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code
- * KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code NTSBDEB1}, {@code
- * RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code SNSBNL2A}, or
- * {@code TRIONL2U}.
+ *
One of {@code ABNANL2A}, {@code ADYBNL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code
+ * BUNQNL2A}, {@code BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code
+ * INGBNL2A}, {@code KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code
+ * NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code
+ * SNSBNL2A}, or {@code TRIONL2U}.
*/
@SerializedName("bic")
String bic;
diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java
index 8ef74da144f..e6df6884b87 100644
--- a/src/main/java/com/stripe/model/StripeError.java
+++ b/src/main/java/com/stripe/model/StripeError.java
@@ -93,11 +93,11 @@ public class StripeError extends StripeObject {
* payouts_limit_exceeded}, {@code payouts_not_allowed}, {@code platform_account_required}, {@code
* platform_api_key_expired}, {@code postal_code_invalid}, {@code processing_error}, {@code
* product_inactive}, {@code progressive_onboarding_limit_exceeded}, {@code rate_limit}, {@code
- * refer_to_customer}, {@code refund_disputed_payment}, {@code resource_already_exists}, {@code
- * resource_missing}, {@code return_intent_already_processed}, {@code routing_number_invalid},
- * {@code secret_key_required}, {@code sensitive_data_access_expired}, {@code
- * sepa_unsupported_account}, {@code setup_attempt_failed}, {@code
- * setup_intent_authentication_failure}, {@code setup_intent_invalid_parameter}, {@code
+ * refer_to_customer}, {@code refund_disputed_payment}, {@code request_blocked}, {@code
+ * resource_already_exists}, {@code resource_missing}, {@code return_intent_already_processed},
+ * {@code routing_number_invalid}, {@code secret_key_required}, {@code
+ * sensitive_data_access_expired}, {@code sepa_unsupported_account}, {@code setup_attempt_failed},
+ * {@code setup_intent_authentication_failure}, {@code setup_intent_invalid_parameter}, {@code
* setup_intent_mandate_invalid}, {@code setup_intent_mobile_wallet_unsupported}, {@code
* setup_intent_setup_attempt_expired}, {@code setup_intent_unexpected_state}, {@code
* shipping_address_invalid}, {@code shipping_calculation_failed}, {@code sku_inactive}, {@code
diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java
index 8ff6648628c..7f5ec224e9f 100644
--- a/src/main/java/com/stripe/model/Subscription.java
+++ b/src/main/java/com/stripe/model/Subscription.java
@@ -15,6 +15,7 @@
import com.stripe.param.SubscriptionCreateParams;
import com.stripe.param.SubscriptionListParams;
import com.stripe.param.SubscriptionMigrateParams;
+import com.stripe.param.SubscriptionPauseParams;
import com.stripe.param.SubscriptionResumeParams;
import com.stripe.param.SubscriptionRetrieveParams;
import com.stripe.param.SubscriptionSearchParams;
@@ -224,7 +225,10 @@ public class Subscription extends ApiResource implements HasId, MetadataStore params) throws StripeException {
+ return pause(params, (RequestOptions) null);
+ }
+
+ /**
+ * Pauses a subscription by transitioning it to the paused status. A paused subscription does not
+ * generate invoices and will not advance to new billing periods. The subscription can be resumed
+ * later using the resume endpoint. Cannot pause subscriptions with attached schedules.
+ */
+ public Subscription pause(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format("/v1/subscriptions/%s/pause", ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, Subscription.class);
+ }
+
+ /**
+ * Pauses a subscription by transitioning it to the paused status. A paused subscription does not
+ * generate invoices and will not advance to new billing periods. The subscription can be resumed
+ * later using the resume endpoint. Cannot pause subscriptions with attached schedules.
+ */
+ public Subscription pause(SubscriptionPauseParams params) throws StripeException {
+ return pause(params, (RequestOptions) null);
+ }
+
+ /**
+ * Pauses a subscription by transitioning it to the paused status. A paused subscription does not
+ * generate invoices and will not advance to new billing periods. The subscription can be resumed
+ * later using the resume endpoint. Cannot pause subscriptions with attached schedules.
+ */
+ public Subscription pause(SubscriptionPauseParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format("/v1/subscriptions/%s/pause", ApiResource.urlEncodeId(this.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getResponseGetter().request(request, Subscription.class);
+ }
+
/**
* 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
diff --git a/src/main/java/com/stripe/model/TaxId.java b/src/main/java/com/stripe/model/TaxId.java
index ad63f053471..fc29f689840 100644
--- a/src/main/java/com/stripe/model/TaxId.java
+++ b/src/main/java/com/stripe/model/TaxId.java
@@ -91,13 +91,13 @@ public class TaxId extends ApiResource implements HasId {
* 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 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}
+ * {@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 da681481858..9ebdce05176 100644
--- a/src/main/java/com/stripe/model/checkout/Session.java
+++ b/src/main/java/com/stripe/model/checkout/Session.java
@@ -160,7 +160,7 @@ public class Session extends ApiResource implements HasId, MetadataStore customFields;
@@ -839,8 +839,8 @@ public static Session retrieve(
/**
* Updates a Checkout Session object.
*
- * Related guide: Dynamically
- * update Checkout.
+ *
Related guide: Dynamically
+ * update a Checkout Session.
*/
@Override
public Session update(Map params) throws StripeException {
@@ -850,8 +850,8 @@ public Session update(Map params) throws StripeException {
/**
* Updates a Checkout Session object.
*
- * Related guide: Dynamically
- * update Checkout.
+ *
Related guide: Dynamically
+ * update a Checkout Session.
*/
@Override
public Session update(Map params, RequestOptions options) throws StripeException {
@@ -864,8 +864,8 @@ public Session update(Map params, RequestOptions options) throws
/**
* Updates a Checkout Session object.
*
- * Related guide: Dynamically
- * update Checkout.
+ *
Related guide: Dynamically
+ * update a Checkout Session.
*/
public Session update(SessionUpdateParams params) throws StripeException {
return update(params, (RequestOptions) null);
@@ -874,8 +874,8 @@ public Session update(SessionUpdateParams params) throws StripeException {
/**
* Updates a Checkout Session object.
*
- *
Related guide: Dynamically
- * update Checkout.
+ *
Related guide: Dynamically
+ * update a Checkout Session.
*/
public Session update(SessionUpdateParams params, RequestOptions options) throws StripeException {
String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(this.getId()));
@@ -1290,20 +1290,20 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid},
- * {@code 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}.
+ * 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}.
*/
@SerializedName("type")
String type;
@@ -1728,20 +1728,20 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid},
- * {@code 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}.
+ * 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}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/financialconnections/Account.java b/src/main/java/com/stripe/model/financialconnections/Account.java
index 9aafea3d42e..64092491593 100644
--- a/src/main/java/com/stripe/model/financialconnections/Account.java
+++ b/src/main/java/com/stripe/model/financialconnections/Account.java
@@ -42,6 +42,10 @@ public class Account extends ApiResource implements HasId {
@SerializedName("account_numbers")
List accountNumbers;
+ /** The ID of the Financial Connections Authorization this account belongs to. */
+ @SerializedName("authorization")
+ String authorization;
+
/** The most recent information about the account's balance. */
@SerializedName("balance")
Balance balance;
@@ -132,6 +136,9 @@ public class Account extends ApiResource implements HasId {
@SerializedName("status")
String status;
+ @SerializedName("status_details")
+ StatusDetails statusDetails;
+
/**
* If {@code category} is {@code cash}, one of:
*
@@ -828,6 +835,44 @@ public static class OwnershipRefresh extends StripeObject {
String status;
}
+ /**
+ * For more details about StatusDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetails extends StripeObject {
+ @SerializedName("inactive")
+ Inactive inactive;
+
+ /**
+ * For more details about Inactive, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Inactive extends StripeObject {
+ /**
+ * The action (if any) to relink the inactive Account.
+ *
+ * One of {@code none}, or {@code relink_required}.
+ */
+ @SerializedName("action")
+ String action;
+
+ /**
+ * The underlying cause of the Account being inactive.
+ *
+ *
One of {@code access_denied}, {@code access_expired}, {@code account_closed}, {@code
+ * account_unavailable}, or {@code unspecified}.
+ */
+ @SerializedName("cause")
+ String cause;
+ }
+ }
+
/**
* For more details about TransactionRefresh, please refer to the API Reference.
@@ -874,6 +919,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(institution, responseGetter);
trySetResponseGetter(ownership, responseGetter);
trySetResponseGetter(ownershipRefresh, responseGetter);
+ trySetResponseGetter(statusDetails, responseGetter);
trySetResponseGetter(transactionRefresh, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/financialconnections/Authorization.java b/src/main/java/com/stripe/model/financialconnections/Authorization.java
new file mode 100644
index 00000000000..ce78b312d06
--- /dev/null
+++ b/src/main/java/com/stripe/model/financialconnections/Authorization.java
@@ -0,0 +1,248 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.financialconnections;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.Account;
+import com.stripe.model.Customer;
+import com.stripe.model.ExpandableField;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.financialconnections.AuthorizationRetrieveParams;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * An Authorization represents the set of credentials used to connect a group of Financial
+ * Connections Accounts.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class Authorization extends ApiResource implements HasId {
+ /** The account holder that this authorization belongs to. */
+ @SerializedName("account_holder")
+ AccountHolder accountHolder;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * The ID of the Financial Connections Institution this account belongs to. Note that this
+ * relationship may sometimes change in rare circumstances (e.g. institution mergers).
+ */
+ @SerializedName("institution")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField institution;
+
+ /** The name of the institution that this authorization belongs to. */
+ @SerializedName("institution_name")
+ String institutionName;
+
+ /**
+ * 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;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value.
+ *
+ * Equal to {@code financial_connections.authorization}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * The status of the connection to the Authorization.
+ *
+ *
One of {@code active}, {@code disconnected}, or {@code inactive}.
+ */
+ @SerializedName("status")
+ String status;
+
+ @SerializedName("status_details")
+ StatusDetails statusDetails;
+
+ /** Get ID of expandable {@code institution} object. */
+ public String getInstitution() {
+ return (this.institution != null) ? this.institution.getId() : null;
+ }
+
+ public void setInstitution(String id) {
+ this.institution = ApiResource.setExpandableFieldId(id, this.institution);
+ }
+
+ /** Get expanded {@code institution}. */
+ public Institution getInstitutionObject() {
+ return (this.institution != null) ? this.institution.getExpanded() : null;
+ }
+
+ public void setInstitutionObject(Institution expandableObject) {
+ this.institution = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+
+ /** Retrieves the details of an Financial Connections {@code Authorization}. */
+ public static Authorization retrieve(String authorization) throws StripeException {
+ return retrieve(authorization, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieves the details of an Financial Connections {@code Authorization}. */
+ public static Authorization retrieve(String authorization, RequestOptions options)
+ throws StripeException {
+ return retrieve(authorization, (Map) null, options);
+ }
+
+ /** Retrieves the details of an Financial Connections {@code Authorization}. */
+ public static Authorization retrieve(
+ String authorization, Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/financial_connections/authorizations/%s", ApiResource.urlEncodeId(authorization));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, Authorization.class);
+ }
+
+ /** Retrieves the details of an Financial Connections {@code Authorization}. */
+ public static Authorization retrieve(
+ String authorization, AuthorizationRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/financial_connections/authorizations/%s", ApiResource.urlEncodeId(authorization));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, Authorization.class);
+ }
+
+ /**
+ * For more details about AccountHolder, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AccountHolder extends StripeObject {
+ /**
+ * The ID of the Stripe account that this account belongs to. Only available when {@code
+ * account_holder.type} is {@code account}.
+ */
+ @SerializedName("account")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField account;
+
+ /**
+ * The ID for an Account representing a customer that this account belongs to. Only available
+ * when {@code account_holder.type} is {@code customer}.
+ */
+ @SerializedName("customer")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField customer;
+
+ @SerializedName("customer_account")
+ String customerAccount;
+
+ /**
+ * Type of account holder that this account belongs to.
+ *
+ * One of {@code account}, or {@code customer}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Get ID of expandable {@code account} object. */
+ public String getAccount() {
+ return (this.account != null) ? this.account.getId() : null;
+ }
+
+ public void setAccount(String id) {
+ this.account = ApiResource.setExpandableFieldId(id, this.account);
+ }
+
+ /** Get expanded {@code account}. */
+ public Account getAccountObject() {
+ return (this.account != null) ? this.account.getExpanded() : null;
+ }
+
+ public void setAccountObject(Account expandableObject) {
+ this.account = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+
+ /** Get ID of expandable {@code customer} object. */
+ public String getCustomer() {
+ return (this.customer != null) ? this.customer.getId() : null;
+ }
+
+ public void setCustomer(String id) {
+ this.customer = ApiResource.setExpandableFieldId(id, this.customer);
+ }
+
+ /** Get expanded {@code customer}. */
+ public Customer getCustomerObject() {
+ return (this.customer != null) ? this.customer.getExpanded() : null;
+ }
+
+ public void setCustomerObject(Customer expandableObject) {
+ this.customer = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+ }
+
+ /**
+ * For more details about StatusDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetails extends StripeObject {
+ @SerializedName("inactive")
+ Inactive inactive;
+
+ /**
+ * For more details about Inactive, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Inactive extends StripeObject {
+ /**
+ * The action (if any) to relink the inactive Authorization.
+ *
+ * One of {@code none}, or {@code relink_required}.
+ */
+ @SerializedName("action")
+ String action;
+ }
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(accountHolder, responseGetter);
+ trySetResponseGetter(institution, responseGetter);
+ trySetResponseGetter(statusDetails, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/financialconnections/Session.java b/src/main/java/com/stripe/model/financialconnections/Session.java
index 3b7d59116b3..fe3d77110f0 100644
--- a/src/main/java/com/stripe/model/financialconnections/Session.java
+++ b/src/main/java/com/stripe/model/financialconnections/Session.java
@@ -79,6 +79,12 @@ public class Session extends ApiResource implements HasId {
@SerializedName("prefetch")
List prefetch;
+ @SerializedName("relink_options")
+ RelinkOptions relinkOptions;
+
+ @SerializedName("relink_result")
+ RelinkResult relinkResult;
+
/**
* For webview integrations only. Upon completing OAuth login in the native browser, the user will
* be redirected to this URL to return to your app.
@@ -300,6 +306,53 @@ public static class Limits extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class ManualEntry extends StripeObject {}
+ /**
+ * For more details about RelinkOptions, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RelinkOptions extends StripeObject {
+ /**
+ * Requires the end user to repair this specific account during the authentication flow instead
+ * of connecting a different one.
+ */
+ @SerializedName("account")
+ String account;
+
+ /** The authorization to relink in the Session. */
+ @SerializedName("authorization")
+ String authorization;
+ }
+
+ /**
+ * For more details about RelinkResult, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RelinkResult extends StripeObject {
+ /**
+ * The account relinked in the Session. Only present if {@code relink_options[account]} is set
+ * and relink is successful.
+ */
+ @SerializedName("account")
+ String account;
+
+ /** The authorization relinked in the Session. Only present if relink is successful. */
+ @SerializedName("authorization")
+ String authorization;
+
+ /**
+ * Reason for why relink failed. One of {@code no_authorization}, {@code no_account}, or {@code
+ * other}.
+ */
+ @SerializedName("failure_reason")
+ String failureReason;
+ }
+
/**
* For more details about StatusDetails, please refer to the API Reference.
@@ -337,6 +390,8 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(filters, responseGetter);
trySetResponseGetter(limits, responseGetter);
trySetResponseGetter(manualEntry, responseGetter);
+ trySetResponseGetter(relinkOptions, responseGetter);
+ trySetResponseGetter(relinkResult, responseGetter);
trySetResponseGetter(statusDetails, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/radar/PaymentEvaluation.java b/src/main/java/com/stripe/model/radar/PaymentEvaluation.java
new file mode 100644
index 00000000000..87e169804d9
--- /dev/null
+++ b/src/main/java/com/stripe/model/radar/PaymentEvaluation.java
@@ -0,0 +1,800 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.radar;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.ExpandableField;
+import com.stripe.model.HasId;
+import com.stripe.model.PaymentMethod;
+import com.stripe.model.StripeObject;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+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;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * Payment Evaluations represent the risk lifecycle of an externally processed payment. It includes
+ * the Radar risk score from Stripe, payment outcome taken by the merchant or processor, and any
+ * post transaction events, such as refunds or disputes. See the Radar API guide for integration steps.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class PaymentEvaluation extends ApiResource implements HasId {
+ /** Client device metadata attached to this payment evaluation. */
+ @SerializedName("client_device_metadata_details")
+ ClientDeviceMetadataDetails clientDeviceMetadataDetails;
+
+ /** Time at which the object was created. Measured in seconds since the Unix epoch. */
+ @SerializedName("created_at")
+ Long createdAt;
+
+ /** Customer details attached to this payment evaluation. */
+ @SerializedName("customer_details")
+ CustomerDetails customerDetails;
+
+ /**
+ * Event information associated with the payment evaluation, such as refunds, dispute, early fraud
+ * warnings, or user interventions.
+ */
+ @SerializedName("events")
+ List events;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** Collection of scores and insights for this payment evaluation. */
+ @SerializedName("insights")
+ Insights insights;
+
+ /**
+ * 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 radar.payment_evaluation}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** Indicates the final outcome for the payment evaluation. */
+ @SerializedName("outcome")
+ Outcome outcome;
+
+ /** Payment details attached to this payment evaluation. */
+ @SerializedName("payment_details")
+ PaymentDetails paymentDetails;
+
+ /**
+ * Request a Radar API fraud risk score from Stripe for a payment before sending it for external
+ * processor authorization.
+ */
+ public static PaymentEvaluation create(Map params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /**
+ * Request a Radar API fraud risk score from Stripe for a payment before sending it for external
+ * processor authorization.
+ */
+ public static PaymentEvaluation create(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/radar/payment_evaluations";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getGlobalResponseGetter().request(request, PaymentEvaluation.class);
+ }
+
+ /**
+ * Request a Radar API fraud risk score from Stripe for a payment before sending it for external
+ * processor authorization.
+ */
+ public static PaymentEvaluation create(PaymentEvaluationCreateParams params)
+ throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /**
+ * Request a Radar API fraud risk score from Stripe for a payment before sending it for external
+ * processor authorization.
+ */
+ public static PaymentEvaluation create(
+ PaymentEvaluationCreateParams params, RequestOptions options) throws StripeException {
+ String path = "/v1/radar/payment_evaluations";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, PaymentEvaluation.class);
+ }
+
+ /** Client device metadata attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ClientDeviceMetadataDetails extends StripeObject {
+ /**
+ * ID for the Radar Session associated with the payment evaluation. A Radar Session is a snapshot of the
+ * browser metadata and device details that help Radar make more accurate predictions on your
+ * payments.
+ */
+ @SerializedName("radar_session")
+ String radarSession;
+ }
+
+ /** Customer details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomerDetails extends StripeObject {
+ /** The ID of the customer associated with the payment evaluation. */
+ @SerializedName("customer")
+ String customer;
+
+ /** The ID of the Account representing the customer associated with the payment evaluation. */
+ @SerializedName("customer_account")
+ String customerAccount;
+
+ /** The customer's email address. */
+ @SerializedName("email")
+ String email;
+
+ /** The customer's full name or business name. */
+ @SerializedName("name")
+ String name;
+
+ /** The customer's phone number. */
+ @SerializedName("phone")
+ String phone;
+ }
+
+ /** Event reported for this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Event extends StripeObject {
+ /** Dispute opened event details attached to this payment evaluation. */
+ @SerializedName("dispute_opened")
+ DisputeOpened disputeOpened;
+
+ /** Early Fraud Warning Received event details attached to this payment evaluation. */
+ @SerializedName("early_fraud_warning_received")
+ EarlyFraudWarningReceived earlyFraudWarningReceived;
+
+ /** Timestamp when the event occurred. */
+ @SerializedName("occurred_at")
+ Long occurredAt;
+
+ /** Refunded Event details attached to this payment evaluation. */
+ @SerializedName("refunded")
+ Refunded refunded;
+
+ /**
+ * Indicates the type of event attached to the payment evaluation.
+ *
+ * One of {@code dispute_opened}, {@code early_fraud_warning_received}, {@code refunded},
+ * {@code user_intervention_raised}, or {@code user_intervention_resolved}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** User intervention raised event details attached to this payment evaluation. */
+ @SerializedName("user_intervention_raised")
+ UserInterventionRaised userInterventionRaised;
+
+ /** User Intervention Resolved Event details attached to this payment evaluation. */
+ @SerializedName("user_intervention_resolved")
+ UserInterventionResolved userInterventionResolved;
+
+ /** Dispute opened event details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisputeOpened extends StripeObject {
+ /**
+ * Amount to dispute for this payment. A positive integer representing how much to charge in
+ * the smallest currency unit
+ * (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal
+ * currency).
+ */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Three-letter ISO currency
+ * code, in lowercase. Must be a supported
+ * currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ /**
+ * Reason given by cardholder for dispute.
+ *
+ *
One of {@code account_not_available}, {@code credit_not_processed}, {@code
+ * customer_initiated}, {@code duplicate}, {@code fraudulent}, {@code general}, {@code
+ * noncompliant}, {@code product_not_received}, {@code product_unacceptable}, {@code
+ * subscription_canceled}, or {@code unrecognized}.
+ */
+ @SerializedName("reason")
+ String reason;
+ }
+
+ /** Early Fraud Warning Received event details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class EarlyFraudWarningReceived extends StripeObject {
+ /**
+ * The type of fraud labeled by the issuer.
+ *
+ *
One of {@code made_with_lost_card}, {@code made_with_stolen_card}, {@code other}, or
+ * {@code unauthorized_use_of_card}.
+ */
+ @SerializedName("fraud_type")
+ String fraudType;
+ }
+
+ /** Refunded Event details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Refunded extends StripeObject {
+ /**
+ * Amount refunded for this payment. A positive integer representing how much to charge in the smallest currency unit (for
+ * example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency).
+ */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Three-letter ISO currency
+ * code, in lowercase. Must be a supported
+ * currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ /**
+ * Indicates the reason for the refund.
+ *
+ *
One of {@code duplicate}, {@code fraudulent}, {@code other}, or {@code
+ * requested_by_customer}.
+ */
+ @SerializedName("reason")
+ String reason;
+ }
+
+ /** User intervention raised event details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UserInterventionRaised extends StripeObject {
+ /** User intervention raised custom event details attached to this payment evaluation. */
+ @SerializedName("custom")
+ Custom custom;
+
+ /** Unique identifier for the user intervention event. */
+ @SerializedName("key")
+ String key;
+
+ /**
+ * Type of user intervention raised.
+ *
+ *
One of {@code 3ds}, {@code captcha}, or {@code custom}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** User intervention raised custom event details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Custom extends StripeObject {
+ /**
+ * Custom type of user intervention raised. The string must use a snake case description for
+ * the type of intervention performed.
+ */
+ @SerializedName("type")
+ String type;
+ }
+ }
+
+ /** User Intervention Resolved Event details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UserInterventionResolved extends StripeObject {
+ /** Unique ID of this intervention. Use this to provide the result. */
+ @SerializedName("key")
+ String key;
+
+ /**
+ * Result of the intervention if it has been completed.
+ *
+ *
One of {@code abandoned}, {@code failed}, or {@code passed}.
+ */
+ @SerializedName("outcome")
+ String outcome;
+ }
+ }
+
+ /** Collection of scores and insights for this payment evaluation. */
+ @Getter
+ @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;
+
+ /** Scores, insights and recommended action for one scorer for this PaymentEvaluation. */
+ @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
+ @EqualsAndHashCode(callSuper = false)
+ public static class FraudulentDispute extends StripeObject {
+ /**
+ * Recommended action based on the risk score. Possible values are {@code block} and {@code
+ * continue}.
+ *
+ *
One of {@code block}, or {@code continue}.
+ */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /**
+ * Stripe Radar’s evaluation of the risk level of the payment. Possible values for evaluated
+ * payments are between 0 and 100, with higher scores indicating higher risk.
+ */
+ @SerializedName("risk_score")
+ Long riskScore;
+ }
+ }
+
+ /** Outcome details for this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Outcome extends StripeObject {
+ /** Details of a merchant_blocked outcome attached to this payment evaluation. */
+ @SerializedName("merchant_blocked")
+ MerchantBlocked merchantBlocked;
+
+ /** The PaymentIntent ID associated with the payment evaluation. */
+ @SerializedName("payment_intent_id")
+ String paymentIntentId;
+
+ /** Details of an rejected outcome attached to this payment evaluation. */
+ @SerializedName("rejected")
+ Rejected rejected;
+
+ /** Details of a succeeded outcome attached to this payment evaluation. */
+ @SerializedName("succeeded")
+ Succeeded succeeded;
+
+ /**
+ * Indicates the outcome of the payment evaluation.
+ *
+ *
One of {@code failed}, {@code merchant_blocked}, {@code rejected}, or {@code succeeded}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Details of a merchant_blocked outcome attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MerchantBlocked extends StripeObject {
+ /**
+ * The reason the payment was blocked by the merchant.
+ *
+ *
One of {@code authentication_required}, {@code blocked_for_fraud}, {@code
+ * invalid_payment}, or {@code other}.
+ */
+ @SerializedName("reason")
+ String reason;
+ }
+
+ /** Details of an rejected outcome attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Rejected extends StripeObject {
+ /** Details of an rejected card outcome attached to this payment evaluation. */
+ @SerializedName("card")
+ Card card;
+
+ /** Details of an rejected card outcome attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Card extends StripeObject {
+ /**
+ * Result of the address line 1 check.
+ *
+ *
One of {@code fail}, {@code pass}, {@code unavailable}, or {@code unchecked}.
+ */
+ @SerializedName("address_line1_check")
+ String addressLine1Check;
+
+ /**
+ * Indicates whether the cardholder provided a postal code and if it matched the
+ * cardholder’s billing address.
+ *
+ *
One of {@code fail}, {@code pass}, {@code unavailable}, or {@code unchecked}.
+ */
+ @SerializedName("address_postal_code_check")
+ String addressPostalCodeCheck;
+
+ /**
+ * Result of the CVC check.
+ *
+ *
One of {@code fail}, {@code pass}, {@code unavailable}, or {@code unchecked}.
+ */
+ @SerializedName("cvc_check")
+ String cvcCheck;
+
+ /**
+ * Card issuer's reason for the network decline.
+ *
+ *
One of {@code authentication_failed}, {@code do_not_honor}, {@code expired}, {@code
+ * incorrect_cvc}, {@code incorrect_number}, {@code incorrect_postal_code}, {@code
+ * insufficient_funds}, {@code invalid_account}, {@code lost_card}, {@code other}, {@code
+ * processing_error}, {@code reported_stolen}, or {@code try_again_later}.
+ */
+ @SerializedName("reason")
+ String reason;
+ }
+ }
+
+ /** Details of a succeeded outcome attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Succeeded extends StripeObject {
+ /** Details of an succeeded card outcome attached to this payment evaluation. */
+ @SerializedName("card")
+ Card card;
+
+ /** Details of an succeeded card outcome attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Card extends StripeObject {
+ /**
+ * Result of the address line 1 check.
+ *
+ *
One of {@code fail}, {@code pass}, {@code unavailable}, or {@code unchecked}.
+ */
+ @SerializedName("address_line1_check")
+ String addressLine1Check;
+
+ /**
+ * Indicates whether the cardholder provided a postal code and if it matched the
+ * cardholder’s billing address.
+ *
+ *
One of {@code fail}, {@code pass}, {@code unavailable}, or {@code unchecked}.
+ */
+ @SerializedName("address_postal_code_check")
+ String addressPostalCodeCheck;
+
+ /**
+ * Result of the CVC check.
+ *
+ *
One of {@code fail}, {@code pass}, {@code unavailable}, or {@code unchecked}.
+ */
+ @SerializedName("cvc_check")
+ String cvcCheck;
+ }
+ }
+ }
+
+ /** Payment details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaymentDetails extends StripeObject {
+ /**
+ * Amount intended to be collected by this payment. A positive integer representing how much to
+ * charge in the smallest currency
+ * unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency).
+ * The minimum amount is $0.50 US or equivalent in
+ * charge currency. The amount value supports up to eight digits (e.g., a value of 99999999
+ * for a USD charge of $999,999.99).
+ */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Three-letter ISO currency
+ * code, in lowercase. Must be a supported
+ * currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ /** An arbitrary string attached to the object. Often useful for displaying to users. */
+ @SerializedName("description")
+ String description;
+
+ /** Details about the payment's customer presence and type. */
+ @SerializedName("money_movement_details")
+ MoneyMovementDetails moneyMovementDetails;
+
+ /** Details about the payment method used for the payment. */
+ @SerializedName("payment_method_details")
+ PaymentMethodDetails paymentMethodDetails;
+
+ /** Shipping details for the payment evaluation. */
+ @SerializedName("shipping_details")
+ ShippingDetails shippingDetails;
+
+ /** Payment statement descriptor. */
+ @SerializedName("statement_descriptor")
+ String statementDescriptor;
+
+ /** Money Movement details attached to this payment. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MoneyMovementDetails extends StripeObject {
+ /** Describes card money movement details for the payment evaluation. */
+ @SerializedName("card")
+ Card card;
+
+ /**
+ * Describes the type of money movement. Currently only {@code card} is supported.
+ *
+ *
Equal to {@code card}.
+ */
+ @SerializedName("money_movement_type")
+ String moneyMovementType;
+
+ /** Money Movement card details attached to this payment. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Card extends StripeObject {
+ /**
+ * Describes the presence of the customer during the payment.
+ *
+ *
One of {@code off_session}, or {@code on_session}.
+ */
+ @SerializedName("customer_presence")
+ String customerPresence;
+
+ /**
+ * Describes the type of payment.
+ *
+ *
One of {@code one_off}, {@code recurring}, {@code setup_one_off}, or {@code
+ * setup_recurring}.
+ */
+ @SerializedName("payment_type")
+ String paymentType;
+ }
+ }
+
+ /** Payment method details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaymentMethodDetails extends StripeObject {
+ /** Billing information associated with the payment evaluation. */
+ @SerializedName("billing_details")
+ BillingDetails billingDetails;
+
+ /** The payment method used in this payment evaluation. */
+ @SerializedName("payment_method")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField paymentMethod;
+
+ /** Get ID of expandable {@code paymentMethod} object. */
+ public String getPaymentMethod() {
+ return (this.paymentMethod != null) ? this.paymentMethod.getId() : null;
+ }
+
+ public void setPaymentMethod(String id) {
+ this.paymentMethod = ApiResource.setExpandableFieldId(id, this.paymentMethod);
+ }
+
+ /** Get expanded {@code paymentMethod}. */
+ public PaymentMethod getPaymentMethodObject() {
+ return (this.paymentMethod != null) ? this.paymentMethod.getExpanded() : null;
+ }
+
+ public void setPaymentMethodObject(PaymentMethod expandableObject) {
+ this.paymentMethod =
+ new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+
+ /** Billing details attached to this payment evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingDetails extends StripeObject {
+ /** Address data. */
+ @SerializedName("address")
+ Address address;
+
+ /** Email address. */
+ @SerializedName("email")
+ String email;
+
+ /** Full name. */
+ @SerializedName("name")
+ String name;
+
+ /** Billing phone number (including extension). */
+ @SerializedName("phone")
+ String phone;
+
+ /** Address data. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address extends StripeObject {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
+ /** Address line 1, such as the street, PO Box, or company name. */
+ @SerializedName("line1")
+ String line1;
+
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ String line2;
+
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ @SerializedName("state")
+ String state;
+ }
+ }
+ }
+
+ /** Shipping details attached to this payment. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ShippingDetails extends StripeObject {
+ /** Address data. */
+ @SerializedName("address")
+ Address address;
+
+ /** Shipping name. */
+ @SerializedName("name")
+ String name;
+
+ /** Shipping phone number. */
+ @SerializedName("phone")
+ String phone;
+
+ /** Address data. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address extends StripeObject {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
+ /** Address line 1, such as the street, PO Box, or company name. */
+ @SerializedName("line1")
+ String line1;
+
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ String line2;
+
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ @SerializedName("state")
+ String state;
+ }
+ }
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(clientDeviceMetadataDetails, responseGetter);
+ trySetResponseGetter(customerDetails, responseGetter);
+ trySetResponseGetter(insights, responseGetter);
+ trySetResponseGetter(outcome, responseGetter);
+ trySetResponseGetter(paymentDetails, responseGetter);
+ }
+}
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..f7f3ae9319d
--- /dev/null
+++ b/src/main/java/com/stripe/model/reserve/Hold.java
@@ -0,0 +1,267 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.reserve;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.Charge;
+import com.stripe.model.ExpandableField;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.reserve.HoldListParams;
+import com.stripe.param.reserve.HoldRetrieveParams;
+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 ApiResource 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);
+ }
+
+ /**
+ * Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted
+ * order, with the most recent ReserveHolds appearing first.
+ */
+ public static HoldCollection list(Map params) throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+
+ /**
+ * Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted
+ * order, with the most recent ReserveHolds appearing first.
+ */
+ public static HoldCollection list(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/reserve/holds";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, HoldCollection.class);
+ }
+
+ /**
+ * Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted
+ * order, with the most recent ReserveHolds appearing first.
+ */
+ public static HoldCollection list(HoldListParams params) throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+
+ /**
+ * Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted
+ * order, with the most recent ReserveHolds appearing first.
+ */
+ public static HoldCollection list(HoldListParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/reserve/holds";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, HoldCollection.class);
+ }
+
+ /** Retrieve a ReserveHold. */
+ public static Hold retrieve(String id) throws StripeException {
+ return retrieve(id, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieve a ReserveHold. */
+ public static Hold retrieve(String id, RequestOptions options) throws StripeException {
+ return retrieve(id, (Map) null, options);
+ }
+
+ /** Retrieve a ReserveHold. */
+ public static Hold retrieve(String id, Map params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/reserve/holds/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, Hold.class);
+ }
+
+ /** Retrieve a ReserveHold. */
+ public static Hold retrieve(String id, HoldRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/reserve/holds/%s", ApiResource.urlEncodeId(id));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, Hold.class);
+ }
+
+ /**
+ * 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;
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(releaseSchedule, responseGetter);
+ trySetResponseGetter(reservePlan, responseGetter);
+ trySetResponseGetter(sourceCharge, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/reserve/HoldCollection.java b/src/main/java/com/stripe/model/reserve/HoldCollection.java
new file mode 100644
index 00000000000..b9af14c5b4e
--- /dev/null
+++ b/src/main/java/com/stripe/model/reserve/HoldCollection.java
@@ -0,0 +1,6 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.reserve;
+
+import com.stripe.model.StripeCollection;
+
+public class HoldCollection extends StripeCollection {}
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..a30279352b3
--- /dev/null
+++ b/src/main/java/com/stripe/model/reserve/Plan.java
@@ -0,0 +1,185 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.reserve;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.reserve.PlanRetrieveParams;
+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 ApiResource 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;
+
+ /** Retrieve a ReservePlan. */
+ public static Plan retrieve(String id) throws StripeException {
+ return retrieve(id, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieve a ReservePlan. */
+ public static Plan retrieve(String id, RequestOptions options) throws StripeException {
+ return retrieve(id, (Map) null, options);
+ }
+
+ /** Retrieve a ReservePlan. */
+ public static Plan retrieve(String id, Map params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/reserve/plans/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, Plan.class);
+ }
+
+ /** Retrieve a ReservePlan. */
+ public static Plan retrieve(String id, PlanRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/reserve/plans/%s", ApiResource.urlEncodeId(id));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, Plan.class);
+ }
+
+ /**
+ * 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;
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(fixedRelease, responseGetter);
+ trySetResponseGetter(rollingRelease, responseGetter);
+ }
+}
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..ae0b2b83fc2
--- /dev/null
+++ b/src/main/java/com/stripe/model/reserve/Release.java
@@ -0,0 +1,303 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.reserve;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+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.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.reserve.ReleaseListParams;
+import com.stripe.param.reserve.ReleaseRetrieveParams;
+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 ApiResource 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);
+ }
+
+ /**
+ * Returns a list of ReserveReleases previously created. The ReserveReleases are returned in
+ * sorted order, with the most recent ReserveReleases appearing first.
+ */
+ public static ReleaseCollection list(Map params) throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+
+ /**
+ * Returns a list of ReserveReleases previously created. The ReserveReleases are returned in
+ * sorted order, with the most recent ReserveReleases appearing first.
+ */
+ public static ReleaseCollection list(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/reserve/releases";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, ReleaseCollection.class);
+ }
+
+ /**
+ * Returns a list of ReserveReleases previously created. The ReserveReleases are returned in
+ * sorted order, with the most recent ReserveReleases appearing first.
+ */
+ public static ReleaseCollection list(ReleaseListParams params) throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+
+ /**
+ * Returns a list of ReserveReleases previously created. The ReserveReleases are returned in
+ * sorted order, with the most recent ReserveReleases appearing first.
+ */
+ public static ReleaseCollection list(ReleaseListParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/reserve/releases";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, ReleaseCollection.class);
+ }
+
+ /** Retrieve a ReserveRelease. */
+ public static Release retrieve(String id) throws StripeException {
+ return retrieve(id, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieve a ReserveRelease. */
+ public static Release retrieve(String id, RequestOptions options) throws StripeException {
+ return retrieve(id, (Map) null, options);
+ }
+
+ /** Retrieve a ReserveRelease. */
+ public static Release retrieve(String id, Map params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/reserve/releases/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, Release.class);
+ }
+
+ /** Retrieve a ReserveRelease. */
+ public static Release retrieve(String id, ReleaseRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/reserve/releases/%s", ApiResource.urlEncodeId(id));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, Release.class);
+ }
+
+ /**
+ * 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);
+ }
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(reserveHold, responseGetter);
+ trySetResponseGetter(reservePlan, responseGetter);
+ trySetResponseGetter(sourceTransaction, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/reserve/ReleaseCollection.java b/src/main/java/com/stripe/model/reserve/ReleaseCollection.java
new file mode 100644
index 00000000000..de7d05a019b
--- /dev/null
+++ b/src/main/java/com/stripe/model/reserve/ReleaseCollection.java
@@ -0,0 +1,6 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.reserve;
+
+import com.stripe.model.StripeCollection;
+
+public class ReleaseCollection extends StripeCollection {}
diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java
index bcf98d9be3b..7a8face6bce 100644
--- a/src/main/java/com/stripe/model/tax/Calculation.java
+++ b/src/main/java/com/stripe/model/tax/Calculation.java
@@ -326,20 +326,20 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid},
- * {@code 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}.
+ * 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}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java
index 99f048a1a82..4cf46630144 100644
--- a/src/main/java/com/stripe/model/tax/Transaction.java
+++ b/src/main/java/com/stripe/model/tax/Transaction.java
@@ -371,20 +371,20 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid},
- * {@code 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}.
+ * 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}.
*/
@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 c01718d5c1e..a9a4d773780 100644
--- a/src/main/java/com/stripe/model/terminal/Configuration.java
+++ b/src/main/java/com/stripe/model/terminal/Configuration.java
@@ -423,9 +423,6 @@ public static class Tipping extends StripeObject {
@SerializedName("aud")
Aud aud;
- @SerializedName("bgn")
- Bgn bgn;
-
@SerializedName("cad")
Cad cad;
@@ -531,30 +528,6 @@ public static class Aud extends StripeObject {
Long smartTipThreshold;
}
- /**
- * For more details about Bgn, please refer to the API
- * Reference.
- */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class Bgn extends StripeObject {
- /** Fixed amounts displayed when collecting a tip. */
- @SerializedName("fixed_amounts")
- List fixedAmounts;
-
- /** Percentages displayed when collecting a tip. */
- @SerializedName("percentages")
- List percentages;
-
- /**
- * Below this amount, fixed amounts will be displayed; above it, percentages will be
- * displayed.
- */
- @SerializedName("smart_tip_threshold")
- Long smartTipThreshold;
- }
-
/**
* For more details about Cad, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/treasury/ReceivedDebit.java b/src/main/java/com/stripe/model/treasury/ReceivedDebit.java
index f8b78696221..b603e094ec0 100644
--- a/src/main/java/com/stripe/model/treasury/ReceivedDebit.java
+++ b/src/main/java/com/stripe/model/treasury/ReceivedDebit.java
@@ -376,6 +376,13 @@ public static class LinkedFlows extends StripeObject {
/** The ReceivedCredit that Capital withheld from. */
@SerializedName("received_credit_capital_withholding")
String receivedCreditCapitalWithholding;
+
+ /**
+ * Set if the ReceivedDebit was created due to a Topup object.
+ */
+ @SerializedName("topup")
+ String topup;
}
/**
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index 39ec32e30cb..5ddf1f67ebb 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -11788,6 +11788,7 @@ public static class ProofOfRegistration {
@SerializedName("files")
List files;
+ /** Information regarding the person signing the document if applicable. */
@SerializedName("signer")
Signer signer;
@@ -11869,6 +11870,7 @@ public Builder addAllFile(List elements) {
return this;
}
+ /** Information regarding the person signing the document if applicable. */
public Builder setSigner(AccountCreateParams.Documents.ProofOfRegistration.Signer signer) {
this.signer = signer;
return this;
@@ -11968,6 +11970,7 @@ public static class ProofOfUltimateBeneficialOwnership {
@SerializedName("files")
List files;
+ /** Information regarding the person signing the document if applicable. */
@SerializedName("signer")
Signer signer;
@@ -12053,6 +12056,7 @@ public Builder addAllFile(List elements) {
return this;
}
+ /** Information regarding the person signing the document if applicable. */
public Builder setSigner(
AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership.Signer signer) {
this.signer = signer;
@@ -16381,6 +16385,10 @@ public enum WeeklyPayoutDay implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class PaypayPayments {
+ /** Additional files that are required to support the onboarding process of your business. */
+ @SerializedName("additional_files")
+ List additionalFiles;
+
/**
* 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.
@@ -16394,9 +16402,19 @@ public static class PaypayPayments {
@SerializedName("goods_type")
GoodsType goodsType;
- private PaypayPayments(Map extraParams, GoodsType goodsType) {
+ /** Details regarding your business's website. */
+ @SerializedName("site")
+ Site site;
+
+ private PaypayPayments(
+ List additionalFiles,
+ Map extraParams,
+ GoodsType goodsType,
+ Site site) {
+ this.additionalFiles = additionalFiles;
this.extraParams = extraParams;
this.goodsType = goodsType;
+ this.site = site;
}
public static Builder builder() {
@@ -16404,13 +16422,46 @@ public static Builder builder() {
}
public static class Builder {
+ private List additionalFiles;
+
private Map extraParams;
private GoodsType goodsType;
+ private Site site;
+
/** Finalize and obtain parameter instance from this builder. */
public AccountCreateParams.Settings.PaypayPayments build() {
- return new AccountCreateParams.Settings.PaypayPayments(this.extraParams, this.goodsType);
+ return new AccountCreateParams.Settings.PaypayPayments(
+ this.additionalFiles, this.extraParams, this.goodsType, this.site);
+ }
+
+ /**
+ * Add an element to `additionalFiles` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list.
+ * See {@link AccountCreateParams.Settings.PaypayPayments#additionalFiles} for the field
+ * documentation.
+ */
+ public Builder addAdditionalFile(String element) {
+ if (this.additionalFiles == null) {
+ this.additionalFiles = new ArrayList<>();
+ }
+ this.additionalFiles.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `additionalFiles` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list.
+ * See {@link AccountCreateParams.Settings.PaypayPayments#additionalFiles} for the field
+ * documentation.
+ */
+ public Builder addAllAdditionalFile(List elements) {
+ if (this.additionalFiles == null) {
+ this.additionalFiles = new ArrayList<>();
+ }
+ this.additionalFiles.addAll(elements);
+ return this;
}
/**
@@ -16447,6 +16498,375 @@ public Builder setGoodsType(
this.goodsType = goodsType;
return this;
}
+
+ /** Details regarding your business's website. */
+ public Builder setSite(AccountCreateParams.Settings.PaypayPayments.Site site) {
+ this.site = site;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Site {
+ /** Additional information about your business's website. */
+ @SerializedName("accessible")
+ Accessible accessible;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Additional information about your business's website. */
+ @SerializedName("in_development")
+ InDevelopment inDevelopment;
+
+ /** Additional information about your business's website. */
+ @SerializedName("restricted")
+ Restricted restricted;
+
+ /** The status of your business's website. */
+ @SerializedName("type")
+ Type type;
+
+ private Site(
+ Accessible accessible,
+ Map extraParams,
+ InDevelopment inDevelopment,
+ Restricted restricted,
+ Type type) {
+ this.accessible = accessible;
+ this.extraParams = extraParams;
+ this.inDevelopment = inDevelopment;
+ this.restricted = restricted;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Accessible accessible;
+
+ private Map extraParams;
+
+ private InDevelopment inDevelopment;
+
+ private Restricted restricted;
+
+ private Type type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Settings.PaypayPayments.Site build() {
+ return new AccountCreateParams.Settings.PaypayPayments.Site(
+ this.accessible, this.extraParams, this.inDevelopment, this.restricted, this.type);
+ }
+
+ /** Additional information about your business's website. */
+ public Builder setAccessible(
+ AccountCreateParams.Settings.PaypayPayments.Site.Accessible accessible) {
+ this.accessible = accessible;
+ 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 AccountCreateParams.Settings.PaypayPayments.Site#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Settings.PaypayPayments.Site#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Additional information about your business's website. */
+ public Builder setInDevelopment(
+ AccountCreateParams.Settings.PaypayPayments.Site.InDevelopment inDevelopment) {
+ this.inDevelopment = inDevelopment;
+ return this;
+ }
+
+ /** Additional information about your business's website. */
+ public Builder setRestricted(
+ AccountCreateParams.Settings.PaypayPayments.Site.Restricted restricted) {
+ this.restricted = restricted;
+ return this;
+ }
+
+ /** The status of your business's website. */
+ public Builder setType(AccountCreateParams.Settings.PaypayPayments.Site.Type type) {
+ this.type = type;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Accessible {
+ /**
+ * 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 Accessible(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Settings.PaypayPayments.Site.Accessible build() {
+ return new AccountCreateParams.Settings.PaypayPayments.Site.Accessible(
+ this.extraParams);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Settings.PaypayPayments.Site.Accessible#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Settings.PaypayPayments.Site.Accessible#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 InDevelopment {
+ /**
+ * 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 password needed to access your business's website. */
+ @SerializedName("password")
+ String password;
+
+ /** The username needed to access your business's website. */
+ @SerializedName("username")
+ String username;
+
+ private InDevelopment(Map extraParams, String password, String username) {
+ this.extraParams = extraParams;
+ this.password = password;
+ this.username = username;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private String password;
+
+ private String username;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Settings.PaypayPayments.Site.InDevelopment build() {
+ return new AccountCreateParams.Settings.PaypayPayments.Site.InDevelopment(
+ this.extraParams, this.password, this.username);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Settings.PaypayPayments.Site.InDevelopment#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Settings.PaypayPayments.Site.InDevelopment#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 password needed to access your business's website. */
+ public Builder setPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+ /** The username needed to access your business's website. */
+ public Builder setUsername(String username) {
+ this.username = username;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Restricted {
+ /**
+ * 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 file explaining the payment flow for your business. */
+ @SerializedName("payment_flow_file")
+ String paymentFlowFile;
+
+ private Restricted(Map extraParams, String paymentFlowFile) {
+ this.extraParams = extraParams;
+ this.paymentFlowFile = paymentFlowFile;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private String paymentFlowFile;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Settings.PaypayPayments.Site.Restricted build() {
+ return new AccountCreateParams.Settings.PaypayPayments.Site.Restricted(
+ this.extraParams, this.paymentFlowFile);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Settings.PaypayPayments.Site.Restricted#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Settings.PaypayPayments.Site.Restricted#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 file explaining the payment flow for your business. */
+ public Builder setPaymentFlowFile(String paymentFlowFile) {
+ this.paymentFlowFile = paymentFlowFile;
+ return this;
+ }
+ }
+ }
+
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("accessible")
+ ACCESSIBLE("accessible"),
+
+ @SerializedName("in_development")
+ IN_DEVELOPMENT("in_development"),
+
+ @SerializedName("restricted")
+ RESTRICTED("restricted");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
+ }
}
public enum GoodsType implements ApiRequestParams.EnumParam {
diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
index 32e918b94bd..642876a8de2 100644
--- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
@@ -1876,11 +1876,7 @@ public static class Features {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
- * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
- * false}.
- */
+ /** Whether instant payouts are enabled for this component. */
@SerializedName("instant_payouts")
Boolean instantPayouts;
@@ -1998,11 +1994,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
- * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
- * false}.
- */
+ /** Whether instant payouts are enabled for this component. */
public Builder setInstantPayouts(Boolean instantPayouts) {
this.instantPayouts = instantPayouts;
return this;
@@ -3810,11 +3802,7 @@ public static class Features {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
- * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
- * false}.
- */
+ /** Whether instant payouts are enabled for this component. */
@SerializedName("instant_payouts")
Boolean instantPayouts;
@@ -3906,11 +3894,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
- * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
- * false}.
- */
+ /** Whether instant payouts are enabled for this component. */
public Builder setInstantPayouts(Boolean instantPayouts) {
this.instantPayouts = instantPayouts;
return this;
@@ -5652,11 +5636,7 @@ public static class Features {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
- * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
- * false}.
- */
+ /** Whether instant payouts are enabled for this component. */
@SerializedName("instant_payouts")
Boolean instantPayouts;
@@ -5774,11 +5754,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Whether to allow creation of instant payouts. Defaults to {@code true} when {@code
- * controller.losses.payments} is set to {@code stripe} for the account, otherwise {@code
- * false}.
- */
+ /** Whether instant payouts are enabled for this component. */
public Builder setInstantPayouts(Boolean instantPayouts) {
this.instantPayouts = instantPayouts;
return this;
diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java
index 2c4d5b90728..ea85e995a4d 100644
--- a/src/main/java/com/stripe/param/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountUpdateParams.java
@@ -11487,6 +11487,7 @@ public static class ProofOfRegistration {
@SerializedName("files")
List files;
+ /** Information regarding the person signing the document if applicable. */
@SerializedName("signer")
Signer signer;
@@ -11568,6 +11569,7 @@ public Builder addAllFile(List elements) {
return this;
}
+ /** Information regarding the person signing the document if applicable. */
public Builder setSigner(AccountUpdateParams.Documents.ProofOfRegistration.Signer signer) {
this.signer = signer;
return this;
@@ -11673,6 +11675,7 @@ public static class ProofOfUltimateBeneficialOwnership {
@SerializedName("files")
List files;
+ /** Information regarding the person signing the document if applicable. */
@SerializedName("signer")
Signer signer;
@@ -11758,6 +11761,7 @@ public Builder addAllFile(List elements) {
return this;
}
+ /** Information regarding the person signing the document if applicable. */
public Builder setSigner(
AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership.Signer signer) {
this.signer = signer;
@@ -16610,6 +16614,10 @@ public enum WeeklyPayoutDay implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class PaypayPayments {
+ /** Additional files that are required to support the onboarding process of your business. */
+ @SerializedName("additional_files")
+ List additionalFiles;
+
/**
* 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.
@@ -16623,9 +16631,19 @@ public static class PaypayPayments {
@SerializedName("goods_type")
GoodsType goodsType;
- private PaypayPayments(Map extraParams, GoodsType goodsType) {
+ /** Details regarding your business's website. */
+ @SerializedName("site")
+ Site site;
+
+ private PaypayPayments(
+ List additionalFiles,
+ Map extraParams,
+ GoodsType goodsType,
+ Site site) {
+ this.additionalFiles = additionalFiles;
this.extraParams = extraParams;
this.goodsType = goodsType;
+ this.site = site;
}
public static Builder builder() {
@@ -16633,13 +16651,46 @@ public static Builder builder() {
}
public static class Builder {
+ private List additionalFiles;
+
private Map extraParams;
private GoodsType goodsType;
+ private Site site;
+
/** Finalize and obtain parameter instance from this builder. */
public AccountUpdateParams.Settings.PaypayPayments build() {
- return new AccountUpdateParams.Settings.PaypayPayments(this.extraParams, this.goodsType);
+ return new AccountUpdateParams.Settings.PaypayPayments(
+ this.additionalFiles, this.extraParams, this.goodsType, this.site);
+ }
+
+ /**
+ * Add an element to `additionalFiles` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list.
+ * See {@link AccountUpdateParams.Settings.PaypayPayments#additionalFiles} for the field
+ * documentation.
+ */
+ public Builder addAdditionalFile(String element) {
+ if (this.additionalFiles == null) {
+ this.additionalFiles = new ArrayList<>();
+ }
+ this.additionalFiles.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `additionalFiles` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list.
+ * See {@link AccountUpdateParams.Settings.PaypayPayments#additionalFiles} for the field
+ * documentation.
+ */
+ public Builder addAllAdditionalFile(List elements) {
+ if (this.additionalFiles == null) {
+ this.additionalFiles = new ArrayList<>();
+ }
+ this.additionalFiles.addAll(elements);
+ return this;
}
/**
@@ -16676,6 +16727,393 @@ public Builder setGoodsType(
this.goodsType = goodsType;
return this;
}
+
+ /** Details regarding your business's website. */
+ public Builder setSite(AccountUpdateParams.Settings.PaypayPayments.Site site) {
+ this.site = site;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Site {
+ /** Additional information about your business's website. */
+ @SerializedName("accessible")
+ Accessible accessible;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Additional information about your business's website. */
+ @SerializedName("in_development")
+ InDevelopment inDevelopment;
+
+ /** Additional information about your business's website. */
+ @SerializedName("restricted")
+ Restricted restricted;
+
+ /** The status of your business's website. */
+ @SerializedName("type")
+ Type type;
+
+ private Site(
+ Accessible accessible,
+ Map extraParams,
+ InDevelopment inDevelopment,
+ Restricted restricted,
+ Type type) {
+ this.accessible = accessible;
+ this.extraParams = extraParams;
+ this.inDevelopment = inDevelopment;
+ this.restricted = restricted;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Accessible accessible;
+
+ private Map extraParams;
+
+ private InDevelopment inDevelopment;
+
+ private Restricted restricted;
+
+ private Type type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Settings.PaypayPayments.Site build() {
+ return new AccountUpdateParams.Settings.PaypayPayments.Site(
+ this.accessible, this.extraParams, this.inDevelopment, this.restricted, this.type);
+ }
+
+ /** Additional information about your business's website. */
+ public Builder setAccessible(
+ AccountUpdateParams.Settings.PaypayPayments.Site.Accessible accessible) {
+ this.accessible = accessible;
+ 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 AccountUpdateParams.Settings.PaypayPayments.Site#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Settings.PaypayPayments.Site#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Additional information about your business's website. */
+ public Builder setInDevelopment(
+ AccountUpdateParams.Settings.PaypayPayments.Site.InDevelopment inDevelopment) {
+ this.inDevelopment = inDevelopment;
+ return this;
+ }
+
+ /** Additional information about your business's website. */
+ public Builder setRestricted(
+ AccountUpdateParams.Settings.PaypayPayments.Site.Restricted restricted) {
+ this.restricted = restricted;
+ return this;
+ }
+
+ /** The status of your business's website. */
+ public Builder setType(AccountUpdateParams.Settings.PaypayPayments.Site.Type type) {
+ this.type = type;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Accessible {
+ /**
+ * 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 Accessible(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Settings.PaypayPayments.Site.Accessible build() {
+ return new AccountUpdateParams.Settings.PaypayPayments.Site.Accessible(
+ this.extraParams);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountUpdateParams.Settings.PaypayPayments.Site.Accessible#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountUpdateParams.Settings.PaypayPayments.Site.Accessible#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 InDevelopment {
+ /**
+ * 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 password needed to access your business's website. */
+ @SerializedName("password")
+ Object password;
+
+ /** The username needed to access your business's website. */
+ @SerializedName("username")
+ Object username;
+
+ private InDevelopment(Map extraParams, Object password, Object username) {
+ this.extraParams = extraParams;
+ this.password = password;
+ this.username = username;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Object password;
+
+ private Object username;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Settings.PaypayPayments.Site.InDevelopment build() {
+ return new AccountUpdateParams.Settings.PaypayPayments.Site.InDevelopment(
+ this.extraParams, this.password, this.username);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountUpdateParams.Settings.PaypayPayments.Site.InDevelopment#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountUpdateParams.Settings.PaypayPayments.Site.InDevelopment#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 password needed to access your business's website. */
+ public Builder setPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+ /** Required. The password needed to access your business's website. */
+ public Builder setPassword(EmptyParam password) {
+ this.password = password;
+ return this;
+ }
+
+ /** The username needed to access your business's website. */
+ public Builder setUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ /** The username needed to access your business's website. */
+ public Builder setUsername(EmptyParam username) {
+ this.username = username;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Restricted {
+ /**
+ * 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 file explaining the payment flow for your business. */
+ @SerializedName("payment_flow_file")
+ Object paymentFlowFile;
+
+ private Restricted(Map extraParams, Object paymentFlowFile) {
+ this.extraParams = extraParams;
+ this.paymentFlowFile = paymentFlowFile;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Object paymentFlowFile;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Settings.PaypayPayments.Site.Restricted build() {
+ return new AccountUpdateParams.Settings.PaypayPayments.Site.Restricted(
+ this.extraParams, this.paymentFlowFile);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountUpdateParams.Settings.PaypayPayments.Site.Restricted#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountUpdateParams.Settings.PaypayPayments.Site.Restricted#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 file explaining the payment flow for your business. */
+ public Builder setPaymentFlowFile(String paymentFlowFile) {
+ this.paymentFlowFile = paymentFlowFile;
+ return this;
+ }
+
+ /** The file explaining the payment flow for your business. */
+ public Builder setPaymentFlowFile(EmptyParam paymentFlowFile) {
+ this.paymentFlowFile = paymentFlowFile;
+ return this;
+ }
+ }
+ }
+
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("accessible")
+ ACCESSIBLE("accessible"),
+
+ @SerializedName("in_development")
+ IN_DEVELOPMENT("in_development"),
+
+ @SerializedName("restricted")
+ RESTRICTED("restricted");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
+ }
}
public enum GoodsType implements ApiRequestParams.EnumParam {
diff --git a/src/main/java/com/stripe/param/BalanceTransactionListParams.java b/src/main/java/com/stripe/param/BalanceTransactionListParams.java
index 744b212f76d..e3e649ec359 100644
--- a/src/main/java/com/stripe/param/BalanceTransactionListParams.java
+++ b/src/main/java/com/stripe/param/BalanceTransactionListParams.java
@@ -61,7 +61,7 @@ public class BalanceTransactionListParams extends ApiRequestParams {
@SerializedName("payout")
String payout;
- /** Only returns the original transaction. */
+ /** Only returns transactions associated with the given object. */
@SerializedName("source")
String source;
@@ -85,11 +85,11 @@ public class BalanceTransactionListParams extends ApiRequestParams {
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
- * refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
- * {@code stripe_fx_fee}, {@code stripe_balance_payment_debit}, {@code
- * stripe_balance_payment_debit_reversal}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
- * {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
- * transfer_refund}.
+ * refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code reserve_hold},
+ * {@code reserve_release}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
+ * stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code tax_fee},
+ * {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code
+ * transfer_failure}, or {@code transfer_refund}.
*/
@SerializedName("type")
String type;
@@ -260,7 +260,7 @@ public Builder setPayout(String payout) {
return this;
}
- /** Only returns the original transaction. */
+ /** Only returns transactions associated with the given object. */
public Builder setSource(String source) {
this.source = source;
return this;
@@ -289,10 +289,11 @@ public Builder setStartingAfter(String startingAfter) {
* payment_refund}, {@code payment_reversal}, {@code payment_unreconciled}, {@code payout},
* {@code payout_cancel}, {@code payout_failure}, {@code payout_minimum_balance_hold}, {@code
* payout_minimum_balance_release}, {@code refund}, {@code refund_failure}, {@code
- * reserve_transaction}, {@code reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee},
- * {@code stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code
- * tax_fee}, {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel},
- * {@code transfer_failure}, or {@code transfer_refund}.
+ * reserve_transaction}, {@code reserved_funds}, {@code reserve_hold}, {@code reserve_release},
+ * {@code stripe_fee}, {@code stripe_fx_fee}, {@code stripe_balance_payment_debit}, {@code
+ * stripe_balance_payment_debit_reversal}, {@code tax_fee}, {@code topup}, {@code
+ * topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or
+ * {@code transfer_refund}.
*/
public Builder setType(String type) {
this.type = type;
diff --git a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
index 2e092fb7dca..8ece8d38971 100644
--- a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
+++ b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
@@ -3633,6 +3633,9 @@ public enum Bank implements ApiRequestParams.EnumParam {
@SerializedName("abn_amro")
ABN_AMRO("abn_amro"),
+ @SerializedName("adyen")
+ ADYEN("adyen"),
+
@SerializedName("asn_bank")
ASN_BANK("asn_bank"),
diff --git a/src/main/java/com/stripe/param/CouponCreateParams.java b/src/main/java/com/stripe/param/CouponCreateParams.java
index ed8abfde592..3844bf1c7bd 100644
--- a/src/main/java/com/stripe/param/CouponCreateParams.java
+++ b/src/main/java/com/stripe/param/CouponCreateParams.java
@@ -109,8 +109,9 @@ public class CouponCreateParams extends ApiRequestParams {
BigDecimal percentOff;
/**
- * Unix timestamp specifying the last time at which the coupon can be redeemed. After the
- * redeem_by date, the coupon can no longer be applied to new customers.
+ * Unix timestamp specifying the last time at which the coupon can be redeemed (cannot be set to
+ * more than 5 years in the future). After the redeem_by date, the coupon can no longer be applied
+ * to new customers.
*/
@SerializedName("redeem_by")
Long redeemBy;
@@ -123,6 +124,10 @@ public class CouponCreateParams extends ApiRequestParams {
@SerializedName("script")
Script script;
+ /** A hash specifying the service period for the coupon. */
+ @SerializedName("service_period")
+ ServicePeriod servicePeriod;
+
private CouponCreateParams(
Long amountOff,
AppliesTo appliesTo,
@@ -138,7 +143,8 @@ private CouponCreateParams(
String name,
BigDecimal percentOff,
Long redeemBy,
- Script script) {
+ Script script,
+ ServicePeriod servicePeriod) {
this.amountOff = amountOff;
this.appliesTo = appliesTo;
this.currency = currency;
@@ -154,6 +160,7 @@ private CouponCreateParams(
this.percentOff = percentOff;
this.redeemBy = redeemBy;
this.script = script;
+ this.servicePeriod = servicePeriod;
}
public static Builder builder() {
@@ -191,6 +198,8 @@ public static class Builder {
private Script script;
+ private ServicePeriod servicePeriod;
+
/** Finalize and obtain parameter instance from this builder. */
public CouponCreateParams build() {
return new CouponCreateParams(
@@ -208,7 +217,8 @@ public CouponCreateParams build() {
this.name,
this.percentOff,
this.redeemBy,
- this.script);
+ this.script,
+ this.servicePeriod);
}
/**
@@ -420,8 +430,9 @@ public Builder setPercentOff(BigDecimal percentOff) {
}
/**
- * Unix timestamp specifying the last time at which the coupon can be redeemed. After the
- * redeem_by date, the coupon can no longer be applied to new customers.
+ * Unix timestamp specifying the last time at which the coupon can be redeemed (cannot be set to
+ * more than 5 years in the future). After the redeem_by date, the coupon can no longer be
+ * applied to new customers.
*/
public Builder setRedeemBy(Long redeemBy) {
this.redeemBy = redeemBy;
@@ -437,6 +448,12 @@ public Builder setScript(CouponCreateParams.Script script) {
this.script = script;
return this;
}
+
+ /** A hash specifying the service period for the coupon. */
+ public Builder setServicePeriod(CouponCreateParams.ServicePeriod servicePeriod) {
+ this.servicePeriod = servicePeriod;
+ return this;
+ }
}
@Getter
@@ -708,6 +725,245 @@ public Builder setId(String id) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ServicePeriod {
+ /**
+ * 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. Specifies coupon frequency. Either {@code day}, {@code week},
+ * {@code month} or {@code year}.
+ */
+ @SerializedName("interval")
+ Interval interval;
+
+ /** Required. The number of intervals for which the coupon will be applied. */
+ @SerializedName("interval_count")
+ Long intervalCount;
+
+ /** Specifies the number of times the coupon is contiguously applied. */
+ @SerializedName("iterations")
+ Iterations iterations;
+
+ private ServicePeriod(
+ Map extraParams,
+ Interval interval,
+ Long intervalCount,
+ Iterations iterations) {
+ this.extraParams = extraParams;
+ this.interval = interval;
+ this.intervalCount = intervalCount;
+ this.iterations = iterations;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Interval interval;
+
+ private Long intervalCount;
+
+ private Iterations iterations;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public CouponCreateParams.ServicePeriod build() {
+ return new CouponCreateParams.ServicePeriod(
+ this.extraParams, this.interval, this.intervalCount, this.iterations);
+ }
+
+ /**
+ * 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
+ * CouponCreateParams.ServicePeriod#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 CouponCreateParams.ServicePeriod#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. Specifies coupon frequency. Either {@code day}, {@code week},
+ * {@code month} or {@code year}.
+ */
+ public Builder setInterval(CouponCreateParams.ServicePeriod.Interval interval) {
+ this.interval = interval;
+ return this;
+ }
+
+ /**
+ * Required. The number of intervals for which the coupon will be applied.
+ */
+ public Builder setIntervalCount(Long intervalCount) {
+ this.intervalCount = intervalCount;
+ return this;
+ }
+
+ /** Specifies the number of times the coupon is contiguously applied. */
+ public Builder setIterations(CouponCreateParams.ServicePeriod.Iterations iterations) {
+ this.iterations = iterations;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Iterations {
+ /**
+ * The number of iterations the service period will repeat for. Only used when type is {@code
+ * count}, defaults to 1.
+ */
+ @SerializedName("count")
+ Long count;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Required. The type of iterations, defaults to {@code count} if omitted.
+ */
+ @SerializedName("type")
+ Type type;
+
+ private Iterations(Long count, Map extraParams, Type type) {
+ this.count = count;
+ this.extraParams = extraParams;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long count;
+
+ private Map extraParams;
+
+ private Type type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public CouponCreateParams.ServicePeriod.Iterations build() {
+ return new CouponCreateParams.ServicePeriod.Iterations(
+ this.count, this.extraParams, this.type);
+ }
+
+ /**
+ * The number of iterations the service period will repeat for. Only used when type is
+ * {@code count}, defaults to 1.
+ */
+ public Builder setCount(Long count) {
+ this.count = count;
+ 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 CouponCreateParams.ServicePeriod.Iterations#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 CouponCreateParams.ServicePeriod.Iterations#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. The type of iterations, defaults to {@code count} if omitted.
+ */
+ public Builder setType(CouponCreateParams.ServicePeriod.Iterations.Type type) {
+ this.type = type;
+ return this;
+ }
+ }
+
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("count")
+ COUNT("count"),
+
+ @SerializedName("forever")
+ FOREVER("forever");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
+ }
+ }
+
+ public enum Interval implements ApiRequestParams.EnumParam {
+ @SerializedName("day")
+ DAY("day"),
+
+ @SerializedName("month")
+ MONTH("month"),
+
+ @SerializedName("week")
+ WEEK("week"),
+
+ @SerializedName("year")
+ YEAR("year");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Interval(String value) {
+ this.value = value;
+ }
+ }
+ }
+
public enum Duration implements ApiRequestParams.EnumParam {
@SerializedName("forever")
FOREVER("forever"),
@@ -716,7 +972,10 @@ public enum Duration implements ApiRequestParams.EnumParam {
ONCE("once"),
@SerializedName("repeating")
- REPEATING("repeating");
+ REPEATING("repeating"),
+
+ @SerializedName("service_period")
+ SERVICE_PERIOD("service_period");
@Getter(onMethod_ = {@Override})
private final String value;
diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java
index e12cebfad7c..2a94319b861 100644
--- a/src/main/java/com/stripe/param/CustomerCreateParams.java
+++ b/src/main/java/com/stripe/param/CustomerCreateParams.java
@@ -1738,12 +1738,12 @@ public static class TaxIdData {
* 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 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 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;
@@ -1817,11 +1817,12 @@ public Builder putAllExtraParam(Map map) {
* 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 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 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;
@@ -2085,6 +2086,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("ph_tin")
PH_TIN("ph_tin"),
+ @SerializedName("pl_nip")
+ PL_NIP("pl_nip"),
+
@SerializedName("ro_tin")
RO_TIN("ro_tin"),
diff --git a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java
index b135c6adc4c..a2a30ff9124 100644
--- a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java
+++ b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java
@@ -42,11 +42,11 @@ public class CustomerTaxIdCreateParams extends ApiRequestParams {
* {@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 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 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;
@@ -149,12 +149,12 @@ public Builder putAllExtraParam(Map map) {
* 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 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 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;
@@ -418,6 +418,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("ph_tin")
PH_TIN("ph_tin"),
+ @SerializedName("pl_nip")
+ PL_NIP("pl_nip"),
+
@SerializedName("ro_tin")
RO_TIN("ro_tin"),
diff --git a/src/main/java/com/stripe/param/FrMealVouchersOnboardingCreateParams.java b/src/main/java/com/stripe/param/FrMealVouchersOnboardingCreateParams.java
new file mode 100644
index 00000000000..0bdcc4ca922
--- /dev/null
+++ b/src/main/java/com/stripe/param/FrMealVouchersOnboardingCreateParams.java
@@ -0,0 +1,197 @@
+// File generated from our OpenAPI spec
+package com.stripe.param;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class FrMealVouchersOnboardingCreateParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * 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}. This cannot be changed after creation
+ * of this object.
+ */
+ @SerializedName("metadata")
+ Map metadata;
+
+ /**
+ * Required. Name of the restaurant. This cannot be changed after creation of
+ * this object.
+ */
+ @SerializedName("name")
+ String name;
+
+ /** Required. Postal code of the restaurant. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /**
+ * Required. SIRET number associated with the restaurant. This cannot be changed
+ * after creation of this object.
+ */
+ @SerializedName("siret")
+ String siret;
+
+ private FrMealVouchersOnboardingCreateParams(
+ List expand,
+ Map extraParams,
+ Map metadata,
+ String name,
+ String postalCode,
+ String siret) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ this.metadata = metadata;
+ this.name = name;
+ this.postalCode = postalCode;
+ this.siret = siret;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ private Map metadata;
+
+ private String name;
+
+ private String postalCode;
+
+ private String siret;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public FrMealVouchersOnboardingCreateParams build() {
+ return new FrMealVouchersOnboardingCreateParams(
+ this.expand, this.extraParams, this.metadata, this.name, this.postalCode, this.siret);
+ }
+
+ /**
+ * 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
+ * FrMealVouchersOnboardingCreateParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * FrMealVouchersOnboardingCreateParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * FrMealVouchersOnboardingCreateParams#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 FrMealVouchersOnboardingCreateParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call,
+ * and subsequent calls add additional key/value pairs to the original map. See {@link
+ * FrMealVouchersOnboardingCreateParams#metadata} for the field documentation.
+ */
+ public Builder putMetadata(String key, String value) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `metadata` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link FrMealVouchersOnboardingCreateParams#metadata} for the field documentation.
+ */
+ public Builder putAllMetadata(Map map) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. Name of the restaurant. This cannot be changed after creation of
+ * this object.
+ */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /** Required. Postal code of the restaurant. */
+ public Builder setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
+
+ /**
+ * Required. SIRET number associated with the restaurant. This cannot be
+ * changed after creation of this object.
+ */
+ public Builder setSiret(String siret) {
+ this.siret = siret;
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/OrderLineItemListParams.java b/src/main/java/com/stripe/param/FrMealVouchersOnboardingListParams.java
similarity index 91%
rename from src/main/java/com/stripe/param/OrderLineItemListParams.java
rename to src/main/java/com/stripe/param/FrMealVouchersOnboardingListParams.java
index c9d5f865371..4f2b91c6975 100644
--- a/src/main/java/com/stripe/param/OrderLineItemListParams.java
+++ b/src/main/java/com/stripe/param/FrMealVouchersOnboardingListParams.java
@@ -12,7 +12,7 @@
@Getter
@EqualsAndHashCode(callSuper = false)
-public class OrderLineItemListParams extends ApiRequestParams {
+public class FrMealVouchersOnboardingListParams extends ApiRequestParams {
/**
* A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
* in the list. For instance, if you make a list request and receive 100 objects, starting with
@@ -51,7 +51,7 @@ public class OrderLineItemListParams extends ApiRequestParams {
@SerializedName("starting_after")
String startingAfter;
- private OrderLineItemListParams(
+ private FrMealVouchersOnboardingListParams(
String endingBefore,
List expand,
Map extraParams,
@@ -80,8 +80,8 @@ public static class Builder {
private String startingAfter;
/** Finalize and obtain parameter instance from this builder. */
- public OrderLineItemListParams build() {
- return new OrderLineItemListParams(
+ public FrMealVouchersOnboardingListParams build() {
+ return new FrMealVouchersOnboardingListParams(
this.endingBefore, this.expand, this.extraParams, this.limit, this.startingAfter);
}
@@ -99,7 +99,7 @@ public Builder setEndingBefore(String endingBefore) {
/**
* 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
- * OrderLineItemListParams#expand} for the field documentation.
+ * FrMealVouchersOnboardingListParams#expand} for the field documentation.
*/
public Builder addExpand(String element) {
if (this.expand == null) {
@@ -112,7 +112,7 @@ public Builder addExpand(String element) {
/**
* Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
* subsequent calls adds additional elements to the original list. See {@link
- * OrderLineItemListParams#expand} for the field documentation.
+ * FrMealVouchersOnboardingListParams#expand} for the field documentation.
*/
public Builder addAllExpand(List elements) {
if (this.expand == null) {
@@ -125,7 +125,7 @@ public Builder addAllExpand(List elements) {
/**
* 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
- * OrderLineItemListParams#extraParams} for the field documentation.
+ * FrMealVouchersOnboardingListParams#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -138,7 +138,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link OrderLineItemListParams#extraParams} for the field documentation.
+ * See {@link FrMealVouchersOnboardingListParams#extraParams} for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
diff --git a/src/main/java/com/stripe/param/FrMealVouchersOnboardingRetrieveParams.java b/src/main/java/com/stripe/param/FrMealVouchersOnboardingRetrieveParams.java
new file mode 100644
index 00000000000..141cb16d6be
--- /dev/null
+++ b/src/main/java/com/stripe/param/FrMealVouchersOnboardingRetrieveParams.java
@@ -0,0 +1,101 @@
+// File generated from our OpenAPI spec
+package com.stripe.param;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class FrMealVouchersOnboardingRetrieveParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private FrMealVouchersOnboardingRetrieveParams(
+ List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public FrMealVouchersOnboardingRetrieveParams build() {
+ return new FrMealVouchersOnboardingRetrieveParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * FrMealVouchersOnboardingRetrieveParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * FrMealVouchersOnboardingRetrieveParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * FrMealVouchersOnboardingRetrieveParams#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 FrMealVouchersOnboardingRetrieveParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/FrMealVouchersOnboardingUpdateParams.java b/src/main/java/com/stripe/param/FrMealVouchersOnboardingUpdateParams.java
new file mode 100644
index 00000000000..af349bd472a
--- /dev/null
+++ b/src/main/java/com/stripe/param/FrMealVouchersOnboardingUpdateParams.java
@@ -0,0 +1,122 @@
+// File generated from our OpenAPI spec
+package com.stripe.param;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.param.common.EmptyParam;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class FrMealVouchersOnboardingUpdateParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. Corrected Postal code of the restaurant. */
+ @SerializedName("postal_code")
+ Object postalCode;
+
+ private FrMealVouchersOnboardingUpdateParams(
+ List expand, Map extraParams, Object postalCode) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ this.postalCode = postalCode;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map