diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 0380667751b..128fcf47628 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1370
\ No newline at end of file
+v1384
\ No newline at end of file
diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java
index 8d56bd863ef..cceb4653c79 100644
--- a/src/main/java/com/stripe/model/Account.java
+++ b/src/main/java/com/stripe/model/Account.java
@@ -914,6 +914,14 @@ public static class Capabilities extends StripeObject {
@SerializedName("au_becs_debit_payments")
String auBecsDebitPayments;
+ /**
+ * The status of the automatic_indirect_tax capability of the account.
+ *
+ *
One of {@code active}, {@code inactive}, or {@code pending}.
+ */
+ @SerializedName("automatic_indirect_tax")
+ String automaticIndirectTax;
+
/**
* The status of the Bacs Direct Debits payments capability of the account, or whether the
* account can directly process Bacs Direct Debits charges.
diff --git a/src/main/java/com/stripe/model/BalanceTransaction.java b/src/main/java/com/stripe/model/BalanceTransaction.java
index 7fd49308ac9..fd1fbc509af 100644
--- a/src/main/java/com/stripe/model/BalanceTransaction.java
+++ b/src/main/java/com/stripe/model/BalanceTransaction.java
@@ -128,13 +128,13 @@ public class BalanceTransaction extends ApiResource implements HasId {
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
- * refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@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}. Learn more about balance transaction types and
- * what they represent. To classify transactions for accounting purposes, consider {@code
- * reporting_category} instead.
+ * 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 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.
*
*
One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
@@ -145,10 +145,10 @@ public class BalanceTransaction extends ApiResource implements HasId {
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
- * refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@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}.
+ * 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 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/Invoice.java b/src/main/java/com/stripe/model/Invoice.java
index 7e6429119d1..01ddecb766c 100644
--- a/src/main/java/com/stripe/model/Invoice.java
+++ b/src/main/java/com/stripe/model/Invoice.java
@@ -2516,6 +2516,15 @@ public static class AmountsDue extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
+ /**
+ * If Stripe disabled automatic tax, this enum describes why.
+ *
+ *
One of {@code finalization_requires_location_inputs}, or {@code
+ * finalization_system_error}.
+ */
+ @SerializedName("disabled_reason")
+ String disabledReason;
+
/**
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice
* items (invoice items with manually specified One of {@code finalization_requires_location_inputs}, or {@code
+ * finalization_system_error}.
+ */
+ @SerializedName("disabled_reason")
+ String disabledReason;
+
/**
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice
* items (invoice items with manually specified Equal to {@code requires_location_inputs}.
+ */
+ @SerializedName("disabled_reason")
+ String disabledReason;
+
/** Whether Stripe automatically computes tax on invoices created during this phase. */
@SerializedName("enabled")
Boolean enabled;
@@ -1130,6 +1138,14 @@ public static class DiscountEnd extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
+ /**
+ * If Stripe disabled automatic tax, this enum describes why.
+ *
+ * Equal to {@code requires_location_inputs}.
+ */
+ @SerializedName("disabled_reason")
+ String disabledReason;
+
/** Whether Stripe automatically computes tax on invoices created during this phase. */
@SerializedName("enabled")
Boolean enabled;
diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java
index c64243283f1..394c857d51a 100644
--- a/src/main/java/com/stripe/model/SetupIntent.java
+++ b/src/main/java/com/stripe/model/SetupIntent.java
@@ -1127,7 +1127,15 @@ public static class BacsDebit extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class MandateOptions extends StripeObject {}
+ public static class MandateOptions extends StripeObject {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ String referencePrefix;
+ }
}
/**
@@ -1391,7 +1399,15 @@ public static class SepaDebit extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class MandateOptions extends StripeObject {}
+ public static class MandateOptions extends StripeObject {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ String referencePrefix;
+ }
}
/**
diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java
index d4b09a31256..eb96a5e2fb1 100644
--- a/src/main/java/com/stripe/model/Subscription.java
+++ b/src/main/java/com/stripe/model/Subscription.java
@@ -1285,6 +1285,14 @@ public Subscription update(SubscriptionUpdateParams params, RequestOptions optio
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
+ /**
+ * If Stripe disabled automatic tax, this enum describes why.
+ *
+ *
Equal to {@code requires_location_inputs}.
+ */
+ @SerializedName("disabled_reason")
+ String disabledReason;
+
/** Whether Stripe automatically computes tax on this subscription. */
@SerializedName("enabled")
Boolean enabled;
diff --git a/src/main/java/com/stripe/model/SubscriptionSchedule.java b/src/main/java/com/stripe/model/SubscriptionSchedule.java
index 02f55a21986..f026bf04a57 100644
--- a/src/main/java/com/stripe/model/SubscriptionSchedule.java
+++ b/src/main/java/com/stripe/model/SubscriptionSchedule.java
@@ -770,6 +770,14 @@ public void setOnBehalfOfObject(Account expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
+ /**
+ * If Stripe disabled automatic tax, this enum describes why.
+ *
+ *
Equal to {@code requires_location_inputs}.
+ */
+ @SerializedName("disabled_reason")
+ String disabledReason;
+
/** Whether Stripe automatically computes tax on invoices created during this phase. */
@SerializedName("enabled")
Boolean enabled;
@@ -1444,6 +1452,14 @@ public static class DiscountEnd extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
+ /**
+ * If Stripe disabled automatic tax, this enum describes why.
+ *
+ *
Equal to {@code requires_location_inputs}.
+ */
+ @SerializedName("disabled_reason")
+ String disabledReason;
+
/** Whether Stripe automatically computes tax on invoices created during this phase. */
@SerializedName("enabled")
Boolean enabled;
diff --git a/src/main/java/com/stripe/model/billing/CreditGrant.java b/src/main/java/com/stripe/model/billing/CreditGrant.java
index 091662a63a4..a320d926d4d 100644
--- a/src/main/java/com/stripe/model/billing/CreditGrant.java
+++ b/src/main/java/com/stripe/model/billing/CreditGrant.java
@@ -63,7 +63,7 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStore customer;
- /** The time when the billing credits become effective—when they're eligible for use. */
+ /** The time when the billing credits become effective-when they're eligible for use. */
@SerializedName("effective_at")
Long effectiveAt;
@@ -451,7 +451,7 @@ public static class ApplicabilityConfig extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Scope extends StripeObject {
/**
- * The price type for which credit grants can apply. We currently only support the {@code
+ * The price type that credit grants can apply to. We currently only support the {@code
* metered} price type. This refers to prices that have a Billing Meter attached to them.
*
diff --git a/src/main/java/com/stripe/model/billing/Meter.java b/src/main/java/com/stripe/model/billing/Meter.java
index 7397d804146..294b51f6bdb 100644
--- a/src/main/java/com/stripe/model/billing/Meter.java
+++ b/src/main/java/com/stripe/model/billing/Meter.java
@@ -24,10 +24,9 @@
import lombok.Setter;
/**
- * A billing meter is a resource that allows you to track usage of a particular event. For example,
- * you might create a billing meter to track the number of API calls made by a particular user. You
- * can then attach the billing meter to a price and attach the price to a subscription to charge the
- * user for the number of API calls they make.
+ * Meters specify how to aggregate meter events over a billing period. Meter events represent the
+ * actions that customers take in your system. Meters attach to prices and form the basis of the
+ * bill.
*
* Related guide: Usage based
* billing
@@ -137,22 +136,34 @@ public static Meter create(MeterCreateParams params, RequestOptions options)
return getGlobalResponseGetter().request(request, Meter.class);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate() throws StripeException {
return deactivate((Map) null, (RequestOptions) null);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate(RequestOptions options) throws StripeException {
return deactivate((Map) null, options);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate(Map params) throws StripeException {
return deactivate(params, (RequestOptions) null);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate(Map params, RequestOptions options)
throws StripeException {
String path =
@@ -162,12 +173,18 @@ public Meter deactivate(Map params, RequestOptions options)
return getResponseGetter().request(request, Meter.class);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate(MeterDeactivateParams params) throws StripeException {
return deactivate(params, (RequestOptions) null);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate(MeterDeactivateParams params, RequestOptions options)
throws StripeException {
String path =
@@ -257,22 +274,34 @@ public static MeterCollection list(MeterListParams params, RequestOptions option
return getGlobalResponseGetter().request(request, MeterCollection.class);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate() throws StripeException {
return reactivate((Map) null, (RequestOptions) null);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate(RequestOptions options) throws StripeException {
return reactivate((Map) null, options);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate(Map params) throws StripeException {
return reactivate(params, (RequestOptions) null);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate(Map params, RequestOptions options)
throws StripeException {
String path =
@@ -282,12 +311,18 @@ public Meter reactivate(Map params, RequestOptions options)
return getResponseGetter().request(request, Meter.class);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate(MeterReactivateParams params) throws StripeException {
return reactivate(params, (RequestOptions) null);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate(MeterReactivateParams params, RequestOptions options)
throws StripeException {
String path =
diff --git a/src/main/java/com/stripe/model/billing/MeterEvent.java b/src/main/java/com/stripe/model/billing/MeterEvent.java
index 12e27d7dd36..bd6e5919402 100644
--- a/src/main/java/com/stripe/model/billing/MeterEvent.java
+++ b/src/main/java/com/stripe/model/billing/MeterEvent.java
@@ -15,9 +15,9 @@
import lombok.Setter;
/**
- * A billing meter event represents a customer's usage of a product. Meter events are used to bill a
- * customer based on their usage. Meter events are associated with billing meters, which define the
- * shape of the event's payload and how those events are aggregated for billing.
+ * Meter events represent actions that customers take in your system. You can use meter events to
+ * bill a customer based on their usage. Meter events are associated with billing meters, which
+ * define both the contents of the event’s payload and how to aggregate those events.
*/
@Getter
@Setter
diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java
index 7cad015af98..c12ab98f3f3 100644
--- a/src/main/java/com/stripe/model/checkout/Session.java
+++ b/src/main/java/com/stripe/model/checkout/Session.java
@@ -109,8 +109,7 @@ public class Session extends ApiResource implements HasId, MetadataStoreinitCustomCheckout
on your front
- * end.
+ * href="https://stripe.com/docs/js/custom_checkout/init">initCheckout on your front end.
*/
@SerializedName("client_secret")
String clientSecret;
@@ -2059,7 +2058,15 @@ public static class BacsDebit extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class MandateOptions extends StripeObject {}
+ public static class MandateOptions extends StripeObject {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ String referencePrefix;
+ }
}
/**
@@ -3226,7 +3233,15 @@ public static class SepaDebit extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class MandateOptions extends StripeObject {}
+ public static class MandateOptions extends StripeObject {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ String referencePrefix;
+ }
}
/**
diff --git a/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java b/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java
index abae47a9c5f..0465195a2e6 100644
--- a/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java
+++ b/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java
@@ -244,11 +244,11 @@ public static class StatusDetail extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class InboundTransfers extends StripeObject {
- /** Toggle settings for enabling/disabling an ACH specific feature. */
+ /** Toggle settings for enabling/disabling an inbound ACH specific feature. */
@SerializedName("ach")
Ach ach;
- /** Toggle settings for enabling/disabling an ACH specific feature. */
+ /** Toggle settings for enabling/disabling an inbound ACH specific feature. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@@ -366,7 +366,7 @@ public static class StatusDetail extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class OutboundPayments extends StripeObject {
- /** Toggle settings for enabling/disabling an ACH specific feature. */
+ /** Toggle settings for enabling/disabling an outbound ACH specific feature. */
@SerializedName("ach")
Ach ach;
@@ -374,7 +374,7 @@ public static class OutboundPayments extends StripeObject {
@SerializedName("us_domestic_wire")
UsDomesticWire usDomesticWire;
- /** Toggle settings for enabling/disabling an ACH specific feature. */
+ /** Toggle settings for enabling/disabling an outbound ACH specific feature. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@@ -492,7 +492,7 @@ public static class StatusDetail extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class OutboundTransfers extends StripeObject {
- /** Toggle settings for enabling/disabling an ACH specific feature. */
+ /** Toggle settings for enabling/disabling an outbound ACH specific feature. */
@SerializedName("ach")
Ach ach;
@@ -500,7 +500,7 @@ public static class OutboundTransfers extends StripeObject {
@SerializedName("us_domestic_wire")
UsDomesticWire usDomesticWire;
- /** Toggle settings for enabling/disabling an ACH specific feature. */
+ /** Toggle settings for enabling/disabling an outbound ACH specific feature. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index 9e4a62b04f4..7d58e379998 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -133,7 +133,7 @@ public class AccountCreateParams extends ApiRequestParams {
/**
* A hash of account group type to tokens. These are account groups this account should be added
- * to
+ * to.
*/
@SerializedName("groups")
Groups groups;
@@ -484,7 +484,7 @@ public Builder putAllExtraParam(Map map) {
/**
* A hash of account group type to tokens. These are account groups this account should be added
- * to
+ * to.
*/
public Builder setGroups(AccountCreateParams.Groups groups) {
this.groups = groups;
@@ -1249,6 +1249,10 @@ public static class Capabilities {
@SerializedName("au_becs_debit_payments")
AuBecsDebitPayments auBecsDebitPayments;
+ /** The automatic_indirect_tax capability. */
+ @SerializedName("automatic_indirect_tax")
+ AutomaticIndirectTax automaticIndirectTax;
+
/** The bacs_debit_payments capability. */
@SerializedName("bacs_debit_payments")
BacsDebitPayments bacsDebitPayments;
@@ -1501,6 +1505,7 @@ private Capabilities(
AlmaPayments almaPayments,
AmazonPayPayments amazonPayPayments,
AuBecsDebitPayments auBecsDebitPayments,
+ AutomaticIndirectTax automaticIndirectTax,
BacsDebitPayments bacsDebitPayments,
BancontactPayments bancontactPayments,
BankTransferPayments bankTransferPayments,
@@ -1567,6 +1572,7 @@ private Capabilities(
this.almaPayments = almaPayments;
this.amazonPayPayments = amazonPayPayments;
this.auBecsDebitPayments = auBecsDebitPayments;
+ this.automaticIndirectTax = automaticIndirectTax;
this.bacsDebitPayments = bacsDebitPayments;
this.bancontactPayments = bancontactPayments;
this.bankTransferPayments = bankTransferPayments;
@@ -1646,6 +1652,8 @@ public static class Builder {
private AuBecsDebitPayments auBecsDebitPayments;
+ private AutomaticIndirectTax automaticIndirectTax;
+
private BacsDebitPayments bacsDebitPayments;
private BancontactPayments bancontactPayments;
@@ -1775,6 +1783,7 @@ public AccountCreateParams.Capabilities build() {
this.almaPayments,
this.amazonPayPayments,
this.auBecsDebitPayments,
+ this.automaticIndirectTax,
this.bacsDebitPayments,
this.bancontactPayments,
this.bankTransferPayments,
@@ -1878,6 +1887,13 @@ public Builder setAuBecsDebitPayments(
return this;
}
+ /** The automatic_indirect_tax capability. */
+ public Builder setAutomaticIndirectTax(
+ AccountCreateParams.Capabilities.AutomaticIndirectTax automaticIndirectTax) {
+ this.automaticIndirectTax = automaticIndirectTax;
+ return this;
+ }
+
/** The bacs_debit_payments capability. */
public Builder setBacsDebitPayments(
AccountCreateParams.Capabilities.BacsDebitPayments bacsDebitPayments) {
@@ -2779,6 +2795,85 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ public static class AutomaticIndirectTax {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private AutomaticIndirectTax(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Capabilities.AutomaticIndirectTax build() {
+ return new AccountCreateParams.Capabilities.AutomaticIndirectTax(
+ this.extraParams, this.requested);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Capabilities.AutomaticIndirectTax#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Capabilities.AutomaticIndirectTax#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+
@Getter
public static class BacsDebitPayments {
/**
diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java
index c5a1ebccc07..f5de947d9bc 100644
--- a/src/main/java/com/stripe/param/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountUpdateParams.java
@@ -117,7 +117,7 @@ public class AccountUpdateParams extends ApiRequestParams {
/**
* A hash of account group type to tokens. These are account groups this account should be added
- * to
+ * to.
*/
@SerializedName("groups")
Groups groups;
@@ -480,7 +480,7 @@ public Builder putAllExtraParam(Map map) {
/**
* A hash of account group type to tokens. These are account groups this account should be added
- * to
+ * to.
*/
public Builder setGroups(AccountUpdateParams.Groups groups) {
this.groups = groups;
@@ -1347,6 +1347,10 @@ public static class Capabilities {
@SerializedName("au_becs_debit_payments")
AuBecsDebitPayments auBecsDebitPayments;
+ /** The automatic_indirect_tax capability. */
+ @SerializedName("automatic_indirect_tax")
+ AutomaticIndirectTax automaticIndirectTax;
+
/** The bacs_debit_payments capability. */
@SerializedName("bacs_debit_payments")
BacsDebitPayments bacsDebitPayments;
@@ -1599,6 +1603,7 @@ private Capabilities(
AlmaPayments almaPayments,
AmazonPayPayments amazonPayPayments,
AuBecsDebitPayments auBecsDebitPayments,
+ AutomaticIndirectTax automaticIndirectTax,
BacsDebitPayments bacsDebitPayments,
BancontactPayments bancontactPayments,
BankTransferPayments bankTransferPayments,
@@ -1665,6 +1670,7 @@ private Capabilities(
this.almaPayments = almaPayments;
this.amazonPayPayments = amazonPayPayments;
this.auBecsDebitPayments = auBecsDebitPayments;
+ this.automaticIndirectTax = automaticIndirectTax;
this.bacsDebitPayments = bacsDebitPayments;
this.bancontactPayments = bancontactPayments;
this.bankTransferPayments = bankTransferPayments;
@@ -1744,6 +1750,8 @@ public static class Builder {
private AuBecsDebitPayments auBecsDebitPayments;
+ private AutomaticIndirectTax automaticIndirectTax;
+
private BacsDebitPayments bacsDebitPayments;
private BancontactPayments bancontactPayments;
@@ -1873,6 +1881,7 @@ public AccountUpdateParams.Capabilities build() {
this.almaPayments,
this.amazonPayPayments,
this.auBecsDebitPayments,
+ this.automaticIndirectTax,
this.bacsDebitPayments,
this.bancontactPayments,
this.bankTransferPayments,
@@ -1976,6 +1985,13 @@ public Builder setAuBecsDebitPayments(
return this;
}
+ /** The automatic_indirect_tax capability. */
+ public Builder setAutomaticIndirectTax(
+ AccountUpdateParams.Capabilities.AutomaticIndirectTax automaticIndirectTax) {
+ this.automaticIndirectTax = automaticIndirectTax;
+ return this;
+ }
+
/** The bacs_debit_payments capability. */
public Builder setBacsDebitPayments(
AccountUpdateParams.Capabilities.BacsDebitPayments bacsDebitPayments) {
@@ -2877,6 +2893,85 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ public static class AutomaticIndirectTax {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private AutomaticIndirectTax(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Capabilities.AutomaticIndirectTax build() {
+ return new AccountUpdateParams.Capabilities.AutomaticIndirectTax(
+ this.extraParams, this.requested);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Capabilities.AutomaticIndirectTax#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Capabilities.AutomaticIndirectTax#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+
@Getter
public static class BacsDebitPayments {
/**
diff --git a/src/main/java/com/stripe/param/BalanceTransactionListParams.java b/src/main/java/com/stripe/param/BalanceTransactionListParams.java
index fd751e78649..c3cc50da7e0 100644
--- a/src/main/java/com/stripe/param/BalanceTransactionListParams.java
+++ b/src/main/java/com/stripe/param/BalanceTransactionListParams.java
@@ -82,10 +82,10 @@ public class BalanceTransactionListParams extends ApiRequestParams {
* {@code payment}, {@code payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
- * refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@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}.
+ * 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 tax_fee}, {@code topup}, {@code topup_reversal}, {@code
+ * transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}.
*/
@SerializedName("type")
String type;
@@ -283,7 +283,8 @@ public Builder setStartingAfter(String startingAfter) {
* obligation_reversal_inbound}, {@code payment}, {@code payment_failure_refund}, {@code
* payment_network_reserve_hold}, {@code payment_network_reserve_release}, {@code
* payment_refund}, {@code payment_reversal}, {@code payment_unreconciled}, {@code payout},
- * {@code payout_cancel}, {@code payout_failure}, {@code refund}, {@code refund_failure}, {@code
+ * {@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 tax_fee}, {@code topup}, {@code topup_reversal}, {@code transfer}, {@code
* transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}.
diff --git a/src/main/java/com/stripe/param/CustomerUpdateParams.java b/src/main/java/com/stripe/param/CustomerUpdateParams.java
index 7b26280b5a6..3a4c538ab4c 100644
--- a/src/main/java/com/stripe/param/CustomerUpdateParams.java
+++ b/src/main/java/com/stripe/param/CustomerUpdateParams.java
@@ -1743,7 +1743,7 @@ public static class Tax {
/**
* A flag that indicates when Stripe should validate the customer tax location. Defaults to
- * {@code deferred}.
+ * {@code auto}.
*/
@SerializedName("validate_location")
ValidateLocation validateLocation;
@@ -1822,7 +1822,7 @@ public Builder setIpAddress(EmptyParam ipAddress) {
/**
* A flag that indicates when Stripe should validate the customer tax location. Defaults to
- * {@code deferred}.
+ * {@code auto}.
*/
public Builder setValidateLocation(
CustomerUpdateParams.Tax.ValidateLocation validateLocation) {
diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
index 6c16d6efbb4..96348a24193 100644
--- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
+++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
@@ -12932,8 +12932,9 @@ public static class Item {
Object billingThresholds;
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
@SerializedName("clear_usage")
Boolean clearUsage;
@@ -13097,8 +13098,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) {
}
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set
- * to {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
public Builder setClearUsage(Boolean clearUsage) {
this.clearUsage = clearUsage;
diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java
index 84f5b4b9243..8c0624bef47 100644
--- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java
+++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java
@@ -13530,8 +13530,9 @@ public static class Item {
Object billingThresholds;
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
@SerializedName("clear_usage")
Boolean clearUsage;
@@ -13695,8 +13696,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) {
}
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set
- * to {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
public Builder setClearUsage(Boolean clearUsage) {
this.clearUsage = clearUsage;
@@ -14880,8 +14882,9 @@ public static class SubscriptionItem {
Object billingThresholds;
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing meter
+ * attached.
*/
@SerializedName("clear_usage")
Boolean clearUsage;
@@ -15044,8 +15047,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) {
}
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
public Builder setClearUsage(Boolean clearUsage) {
this.clearUsage = clearUsage;
diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java
index b9b411994a6..cc20fb3cdea 100644
--- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java
+++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java
@@ -13438,8 +13438,9 @@ public static class Item {
Object billingThresholds;
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
@SerializedName("clear_usage")
Boolean clearUsage;
@@ -13603,8 +13604,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) {
}
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set
- * to {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
public Builder setClearUsage(Boolean clearUsage) {
this.clearUsage = clearUsage;
@@ -14783,8 +14785,9 @@ public static class SubscriptionItem {
Object billingThresholds;
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing meter
+ * attached.
*/
@SerializedName("clear_usage")
Boolean clearUsage;
@@ -14947,8 +14950,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) {
}
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
public Builder setClearUsage(Boolean clearUsage) {
this.clearUsage = clearUsage;
diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java
index 1f539f95bb8..4712e327c08 100644
--- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java
+++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java
@@ -13277,8 +13277,9 @@ public static class Item {
Object billingThresholds;
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
@SerializedName("clear_usage")
Boolean clearUsage;
@@ -13441,8 +13442,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) {
}
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set
- * to {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
public Builder setClearUsage(Boolean clearUsage) {
this.clearUsage = clearUsage;
@@ -14607,8 +14609,9 @@ public static class SubscriptionItem {
Object billingThresholds;
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing meter
+ * attached.
*/
@SerializedName("clear_usage")
Boolean clearUsage;
@@ -14771,8 +14774,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) {
}
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
public Builder setClearUsage(Boolean clearUsage) {
this.clearUsage = clearUsage;
diff --git a/src/main/java/com/stripe/param/OrderCreateParams.java b/src/main/java/com/stripe/param/OrderCreateParams.java
index c0500c14036..55644ae9276 100644
--- a/src/main/java/com/stripe/param/OrderCreateParams.java
+++ b/src/main/java/com/stripe/param/OrderCreateParams.java
@@ -6463,8 +6463,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long.
+ * Must consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -6474,12 +6483,14 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.SepaDebit
.MandateOptions
build() {
return new OrderCreateParams.Payment.Settings.PaymentMethodOptions.SepaDebit
- .MandateOptions(this.extraParams);
+ .MandateOptions(this.extraParams, this.referencePrefix);
}
/**
@@ -6511,6 +6522,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long.
+ * Must consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long.
+ * Must consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/OrderUpdateParams.java b/src/main/java/com/stripe/param/OrderUpdateParams.java
index 1faa055f741..a56a3142cf1 100644
--- a/src/main/java/com/stripe/param/OrderUpdateParams.java
+++ b/src/main/java/com/stripe/param/OrderUpdateParams.java
@@ -6999,8 +6999,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long.
+ * Must consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -7010,12 +7019,14 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public OrderUpdateParams.Payment.Settings.PaymentMethodOptions.SepaDebit
.MandateOptions
build() {
return new OrderUpdateParams.Payment.Settings.PaymentMethodOptions.SepaDebit
- .MandateOptions(this.extraParams);
+ .MandateOptions(this.extraParams, this.referencePrefix);
}
/**
@@ -7047,6 +7058,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long.
+ * Must consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long.
+ * Must consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
index 6b2a957b49c..13c23aec55e 100644
--- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
@@ -14294,8 +14294,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -14305,10 +14314,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions build() {
return new PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -14340,6 +14351,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
@@ -23746,8 +23777,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -23757,10 +23797,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions build() {
return new PaymentIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -23792,6 +23834,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
index 38c3d31cca3..9428df66071 100644
--- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
@@ -14773,8 +14773,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -14784,10 +14793,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() {
return new PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -14819,6 +14830,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
@@ -24212,8 +24243,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -24223,10 +24263,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() {
return new PaymentIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -24258,6 +24300,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
index ae694af9bd2..5e6a947c891 100644
--- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
@@ -15002,8 +15002,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -15013,10 +15022,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() {
return new PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -15048,6 +15059,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
@@ -24637,8 +24668,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -24648,10 +24688,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() {
return new PaymentIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -24683,6 +24725,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java
index 907ac43774e..22a60d4c240 100644
--- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java
@@ -4507,6 +4507,13 @@ public static class SubscriptionData {
@SerializedName("metadata")
Object metadata;
+ /**
+ * Integer representing the number of trial period days before the customer is charged for the
+ * first time. Has to be at least 1.
+ */
+ @SerializedName("trial_period_days")
+ Object trialPeriodDays;
+
/** Settings related to subscription trials. */
@SerializedName("trial_settings")
Object trialSettings;
@@ -4515,10 +4522,12 @@ private SubscriptionData(
Map extraParams,
InvoiceSettings invoiceSettings,
Object metadata,
+ Object trialPeriodDays,
Object trialSettings) {
this.extraParams = extraParams;
this.invoiceSettings = invoiceSettings;
this.metadata = metadata;
+ this.trialPeriodDays = trialPeriodDays;
this.trialSettings = trialSettings;
}
@@ -4533,12 +4542,18 @@ public static class Builder {
private Object metadata;
+ private Object trialPeriodDays;
+
private Object trialSettings;
/** Finalize and obtain parameter instance from this builder. */
public PaymentLinkUpdateParams.SubscriptionData build() {
return new PaymentLinkUpdateParams.SubscriptionData(
- this.extraParams, this.invoiceSettings, this.metadata, this.trialSettings);
+ this.extraParams,
+ this.invoiceSettings,
+ this.metadata,
+ this.trialPeriodDays,
+ this.trialSettings);
}
/**
@@ -4627,6 +4642,24 @@ public Builder setMetadata(Map metadata) {
return this;
}
+ /**
+ * Integer representing the number of trial period days before the customer is charged for the
+ * first time. Has to be at least 1.
+ */
+ public Builder setTrialPeriodDays(Long trialPeriodDays) {
+ this.trialPeriodDays = trialPeriodDays;
+ return this;
+ }
+
+ /**
+ * Integer representing the number of trial period days before the customer is charged for the
+ * first time. Has to be at least 1.
+ */
+ public Builder setTrialPeriodDays(EmptyParam trialPeriodDays) {
+ this.trialPeriodDays = trialPeriodDays;
+ return this;
+ }
+
/** Settings related to subscription trials. */
public Builder setTrialSettings(
PaymentLinkUpdateParams.SubscriptionData.TrialSettings trialSettings) {
diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
index 21113063c12..a65c13c57db 100644
--- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
@@ -7098,8 +7098,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -7109,10 +7118,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions build() {
return new SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -7144,6 +7155,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
}
@@ -8975,8 +9006,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -8986,10 +9026,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public SetupIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions build() {
return new SetupIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -9021,6 +9063,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
}
diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java
index 42ee87f9309..5b703c57c21 100644
--- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java
@@ -7557,8 +7557,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -7568,10 +7577,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() {
return new SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -7603,6 +7614,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
}
@@ -9434,8 +9465,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -9445,10 +9485,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public SetupIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() {
return new SetupIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -9480,6 +9522,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
}
diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
index 12fd5a23a67..baf20bf2f8d 100644
--- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
@@ -7058,8 +7058,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -7069,10 +7078,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() {
return new SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -7104,6 +7115,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
}
@@ -9039,8 +9070,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -9050,10 +9090,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public SetupIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() {
return new SetupIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -9085,6 +9127,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
}
diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java
index 7e0162f236b..a3202041f48 100644
--- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java
+++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java
@@ -4143,6 +4143,7 @@ public static class PaymentSettings {
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
+ * Should not be specified with payment_method_configuration
*/
@SerializedName("payment_method_types")
Object paymentMethodTypes;
@@ -4265,6 +4266,7 @@ public Builder addAllPaymentMethodType(
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
+ * Should not be specified with payment_method_configuration
*/
public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) {
this.paymentMethodTypes = paymentMethodTypes;
@@ -4277,6 +4279,7 @@ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) {
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
+ * Should not be specified with payment_method_configuration
*/
public Builder setPaymentMethodTypes(
List paymentMethodTypes) {
diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java
index 222b14a3f98..b557d02a185 100644
--- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java
+++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java
@@ -3042,8 +3042,9 @@ public static class Item {
Object billingThresholds;
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing meter
+ * attached.
*/
@SerializedName("clear_usage")
Boolean clearUsage;
@@ -3206,8 +3207,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) {
}
/**
- * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to
- * {@code true} and the current plan's {@code usage_type} is {@code metered}.
+ * Delete all usage for a given subscription item. You must pass this when deleting a usage
+ * records subscription item. {@code clear_usage} has no effect if the plan has a billing
+ * meter attached.
*/
public Builder setClearUsage(Boolean clearUsage) {
this.clearUsage = clearUsage;
@@ -4391,6 +4393,7 @@ public static class PaymentSettings {
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
+ * Should not be specified with payment_method_configuration
*/
@SerializedName("payment_method_types")
Object paymentMethodTypes;
@@ -4513,6 +4516,7 @@ public Builder addAllPaymentMethodType(
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
+ * Should not be specified with payment_method_configuration
*/
public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) {
this.paymentMethodTypes = paymentMethodTypes;
@@ -4525,6 +4529,7 @@ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) {
* invoice’s default payment method, the subscription’s default payment method, the customer’s
* default payment method, and your invoice template settings.
+ * Should not be specified with payment_method_configuration
*/
public Builder setPaymentMethodTypes(
List paymentMethodTypes) {
diff --git a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java
index 90edb084feb..cbef780ed3c 100644
--- a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java
+++ b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java
@@ -236,7 +236,7 @@ public static class ApplicabilityScope {
Map extraParams;
/**
- * Required. The price type for which credit grants can apply. We currently
+ * Required. The price type that credit grants can apply to. We currently
* only support the {@code metered} price type.
*/
@SerializedName("price_type")
@@ -291,7 +291,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * Required. The price type for which credit grants can apply. We currently
+ * Required. The price type that credit grants can apply to. We currently
* only support the {@code metered} price type.
*/
public Builder setPriceType(
diff --git a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java
index a00472e10e3..c5ab4882949 100644
--- a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java
+++ b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java
@@ -28,8 +28,8 @@ public class CreditGrantCreateParams extends ApiRequestParams {
String customer;
/**
- * The time when the billing credits become effective—when they're eligible for use. Defaults to
- * the current timestamp if not specified.
+ * The time when the billing credits become effective-when they're eligible for use. It defaults
+ * to the current timestamp if not specified.
*/
@SerializedName("effective_at")
Long effectiveAt;
@@ -39,8 +39,7 @@ public class CreditGrantCreateParams extends ApiRequestParams {
List expand;
/**
- * The time when the billing credits will expire. If not specified, the billing credits don't
- * expire.
+ * The time when the billing credits expire. If not specified, the billing credits don't expire.
*/
@SerializedName("expires_at")
Long expiresAt;
@@ -55,8 +54,8 @@ public class CreditGrantCreateParams extends ApiRequestParams {
Map extraParams;
/**
- * Set of key-value pairs that you can attach to an object. This can be useful for storing
- * additional information about the object (for example, cost basis) in a structured format.
+ * Set of key-value pairs that you can attach to an object. You can use this to store additional
+ * information about the object (for example, cost basis) in a structured format.
*/
@SerializedName("metadata")
Map metadata;
@@ -154,8 +153,8 @@ public Builder setCustomer(String customer) {
}
/**
- * The time when the billing credits become effective—when they're eligible for use. Defaults to
- * the current timestamp if not specified.
+ * The time when the billing credits become effective-when they're eligible for use. It defaults
+ * to the current timestamp if not specified.
*/
public Builder setEffectiveAt(Long effectiveAt) {
this.effectiveAt = effectiveAt;
@@ -189,8 +188,7 @@ public Builder addAllExpand(List elements) {
}
/**
- * The time when the billing credits will expire. If not specified, the billing credits don't
- * expire.
+ * The time when the billing credits expire. If not specified, the billing credits don't expire.
*/
public Builder setExpiresAt(Long expiresAt) {
this.expiresAt = expiresAt;
@@ -530,7 +528,7 @@ public static class Scope {
Map extraParams;
/**
- * Required. The price type for which credit grants can apply. We currently
+ * Required. The price type that credit grants can apply to. We currently
* only support the {@code metered} price type.
*/
@SerializedName("price_type")
@@ -585,7 +583,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * Required. The price type for which credit grants can apply. We currently
+ * Required. The price type that credit grants can apply to. We currently
* only support the {@code metered} price type.
*/
public Builder setPriceType(
diff --git a/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java
index cde992e155d..77218e325df 100644
--- a/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java
+++ b/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java
@@ -33,7 +33,7 @@ public class CreditGrantUpdateParams extends ApiRequestParams {
Map extraParams;
/**
- * Set of key-value pairs you can attach to an object. This can be useful for storing additional
+ * Set of key-value pairs you can attach to an object. You can use this to store additional
* information about the object (for example, cost basis) in a structured format.
*/
@SerializedName("metadata")
diff --git a/src/main/java/com/stripe/param/billing/MeterCreateParams.java b/src/main/java/com/stripe/param/billing/MeterCreateParams.java
index 05978ad27fe..dc694505067 100644
--- a/src/main/java/com/stripe/param/billing/MeterCreateParams.java
+++ b/src/main/java/com/stripe/param/billing/MeterCreateParams.java
@@ -19,7 +19,7 @@ public class MeterCreateParams extends ApiRequestParams {
@SerializedName("default_aggregation")
DefaultAggregation defaultAggregation;
- /** Required. The meter's name. */
+ /** Required. The meter’s name. Not visible to the customer. */
@SerializedName("display_name")
String displayName;
@@ -116,7 +116,7 @@ public Builder setDefaultAggregation(MeterCreateParams.DefaultAggregation defaul
return this;
}
- /** Required. The meter's name. */
+ /** Required. The meter’s name. Not visible to the customer. */
public Builder setDisplayName(String displayName) {
this.displayName = displayName;
return this;
@@ -199,7 +199,7 @@ public Builder setValueSettings(MeterCreateParams.ValueSettings valueSettings) {
@Getter
public static class CustomerMapping {
/**
- * Required. The key in the usage event payload to use for mapping the event to
+ * Required. The key in the meter event payload to use for mapping the event to
* a customer.
*/
@SerializedName("event_payload_key")
@@ -245,7 +245,7 @@ public MeterCreateParams.CustomerMapping build() {
}
/**
- * Required. The key in the usage event payload to use for mapping the event
+ * Required. The key in the meter event payload to use for mapping the event
* to a customer.
*/
public Builder setEventPayloadKey(String eventPayloadKey) {
diff --git a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java
index be342f300fe..5eefd997cdd 100644
--- a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java
+++ b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java
@@ -32,10 +32,10 @@ public class MeterEventCreateParams extends ApiRequestParams {
Map extraParams;
/**
- * A unique identifier for the event. If not provided, one will be generated. We strongly advise
- * using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24
- * hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries
- * or other problems occurring within extremely brief time intervals. This approach helps prevent
+ * A unique identifier for the event. If not provided, one is generated. We recommend using
+ * UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours.
+ * The enforcement of uniqueness primarily addresses issues arising from accidental retries or
+ * other problems occurring within extremely brief time intervals. This approach helps prevent
* duplicate entries and ensures data integrity in high-frequency operations.
*/
@SerializedName("identifier")
@@ -162,9 +162,9 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A unique identifier for the event. If not provided, one will be generated. We strongly advise
- * using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least
- * 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental
+ * A unique identifier for the event. If not provided, one is generated. We recommend using
+ * UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24
+ * hours. The enforcement of uniqueness primarily addresses issues arising from accidental
* retries or other problems occurring within extremely brief time intervals. This approach
* helps prevent duplicate entries and ensures data integrity in high-frequency operations.
*/
diff --git a/src/main/java/com/stripe/param/billing/MeterUpdateParams.java b/src/main/java/com/stripe/param/billing/MeterUpdateParams.java
index 6b9552bd775..23987c1af33 100644
--- a/src/main/java/com/stripe/param/billing/MeterUpdateParams.java
+++ b/src/main/java/com/stripe/param/billing/MeterUpdateParams.java
@@ -12,7 +12,7 @@
@Getter
public class MeterUpdateParams extends ApiRequestParams {
- /** The meter's name. */
+ /** The meter’s name. Not visible to the customer. */
@SerializedName("display_name")
Object displayName;
@@ -52,13 +52,13 @@ public MeterUpdateParams build() {
return new MeterUpdateParams(this.displayName, this.expand, this.extraParams);
}
- /** The meter's name. */
+ /** The meter’s name. Not visible to the customer. */
public Builder setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
- /** The meter's name. */
+ /** The meter’s name. Not visible to the customer. */
public Builder setDisplayName(EmptyParam displayName) {
this.displayName = displayName;
return this;
diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
index 63aeb7ca614..22507d7746f 100644
--- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
+++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
@@ -7610,8 +7610,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -7621,10 +7630,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() {
return new SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -7656,6 +7667,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
@@ -12507,8 +12538,17 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private MandateOptions(Map extraParams) {
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special characters:
+ * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ @SerializedName("reference_prefix")
+ Object referencePrefix;
+
+ private MandateOptions(Map extraParams, Object referencePrefix) {
this.extraParams = extraParams;
+ this.referencePrefix = referencePrefix;
}
public static Builder builder() {
@@ -12518,10 +12558,12 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
+ private Object referencePrefix;
+
/** Finalize and obtain parameter instance from this builder. */
public SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() {
return new SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions(
- this.extraParams);
+ this.extraParams, this.referencePrefix);
}
/**
@@ -12553,6 +12595,26 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(String referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
+
+ /**
+ * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
+ * consist of only uppercase letters, numbers, spaces, or the following special
+ * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ */
+ public Builder setReferencePrefix(EmptyParam referencePrefix) {
+ this.referencePrefix = referencePrefix;
+ return this;
+ }
}
}
diff --git a/src/main/java/com/stripe/param/checkout/SessionUpdateParams.java b/src/main/java/com/stripe/param/checkout/SessionUpdateParams.java
index f2a296f7066..93cdc2d0340 100644
--- a/src/main/java/com/stripe/param/checkout/SessionUpdateParams.java
+++ b/src/main/java/com/stripe/param/checkout/SessionUpdateParams.java
@@ -32,15 +32,15 @@ public class SessionUpdateParams extends ApiRequestParams {
/**
* A list of items the customer is purchasing.
*
- * When updating line items, the entire array of line items must be retransmitted.
+ *
When updating line items, you must retransmit the entire array of line items.
*
*
To retain an existing line item, specify its {@code id}.
*
*
To update an existing line item, specify its {@code id} along with the new values of the
- * fields to be updated.
+ * fields to update.
*
- *
To add a new line item, specify a {@code price} and {@code quantity}. Recurring prices are
- * not supported yet.
+ *
To add a new line item, specify a {@code price} and {@code quantity}. We don't currently
+ * support recurring prices.
*
*
To remove an existing line item, omit the line item's ID from the retransmitted array.
*
diff --git a/src/main/java/com/stripe/service/billing/MeterService.java b/src/main/java/com/stripe/service/billing/MeterService.java
index 57e247d51bb..fe88176b5f7 100644
--- a/src/main/java/com/stripe/service/billing/MeterService.java
+++ b/src/main/java/com/stripe/service/billing/MeterService.java
@@ -115,19 +115,31 @@ public Meter update(String id, MeterUpdateParams params, RequestOptions options)
options);
return this.request(request, Meter.class);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate(String id, MeterDeactivateParams params) throws StripeException {
return deactivate(id, params, (RequestOptions) null);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate(String id, RequestOptions options) throws StripeException {
return deactivate(id, (MeterDeactivateParams) null, options);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate(String id) throws StripeException {
return deactivate(id, (MeterDeactivateParams) null, (RequestOptions) null);
}
- /** Deactivates a billing meter. */
+ /**
+ * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t
+ * attach a deactivated meter to a price.
+ */
public Meter deactivate(String id, MeterDeactivateParams params, RequestOptions options)
throws StripeException {
String path = String.format("/v1/billing/meters/%s/deactivate", ApiResource.urlEncodeId(id));
@@ -140,19 +152,31 @@ public Meter deactivate(String id, MeterDeactivateParams params, RequestOptions
options);
return this.request(request, Meter.class);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate(String id, MeterReactivateParams params) throws StripeException {
return reactivate(id, params, (RequestOptions) null);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate(String id, RequestOptions options) throws StripeException {
return reactivate(id, (MeterReactivateParams) null, options);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate(String id) throws StripeException {
return reactivate(id, (MeterReactivateParams) null, (RequestOptions) null);
}
- /** Reactivates a billing meter. */
+ /**
+ * When a meter is reactivated, events for this meter can be accepted and you can attach the meter
+ * to a price.
+ */
public Meter reactivate(String id, MeterReactivateParams params, RequestOptions options)
throws StripeException {
String path = String.format("/v1/billing/meters/%s/reactivate", ApiResource.urlEncodeId(id));