diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index eabc6731b4c..f17f495b561 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-74913070eb5bc81c058d07ad167346b6d68d8b0b
\ No newline at end of file
+afce9794b52053b2efda64fd3af04dcf9225eafa
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 195c486d2da..f8ca2f439bf 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2164
\ No newline at end of file
+v2169
\ No newline at end of file
diff --git a/src/main/java/com/stripe/model/ApplicationFee.java b/src/main/java/com/stripe/model/ApplicationFee.java
index c0537819dd0..880cd0e9af2 100644
--- a/src/main/java/com/stripe/model/ApplicationFee.java
+++ b/src/main/java/com/stripe/model/ApplicationFee.java
@@ -116,6 +116,13 @@ public class ApplicationFee extends ApiResource implements BalanceTransactionSou
@SerializedName("refunds")
FeeRefundCollection refunds;
+ /**
+ * Type of settlement for the application fee. One of {@code net_settled} or {@code
+ * gross_settled}.
+ */
+ @SerializedName("settlement_type")
+ String settlementType;
+
/** Get ID of expandable {@code account} object. */
public String getAccount() {
return (this.account != null) ? this.account.getId() : null;
diff --git a/src/main/java/com/stripe/model/FrMealVouchersOnboarding.java b/src/main/java/com/stripe/model/FrMealVouchersOnboarding.java
index 98458534aee..2701716fb8a 100644
--- a/src/main/java/com/stripe/model/FrMealVouchersOnboarding.java
+++ b/src/main/java/com/stripe/model/FrMealVouchersOnboarding.java
@@ -20,9 +20,18 @@
import lombok.Setter;
/**
- * The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related
- * information for a single restaurant (SIRET number) in the context of the French Meal Vouchers
- * program.
+ * The {@code French Meal Vouchers Onboarding} resource encapsulates the onboarding status and other
+ * related information for a single restaurant (SIRET number) in the context of the French Meal
+ * Vouchers program.
+ *
+ *
To onboard a restaurant for the French Meal Vouchers program, you create a {@code French Meal
+ * Vouchers Onboarding} object. You can retrieve individual objects, list all such objects, or
+ * update objects to correct the postal code of the restaurant. We identify {@code French Meal
+ * Vouchers Onboarding} objects with a unique, random ID.
+ *
+ *
Related guide: Set up a
+ * restaurant for titres-restaurant payments
*/
@Getter
@Setter
@@ -75,16 +84,16 @@ public class FrMealVouchersOnboarding extends ApiResource
String siret;
/**
- * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
- * status and starts the onboarding process.
+ * Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
+ * onboarding status and starts the onboarding process.
*/
public static FrMealVouchersOnboarding create(Map params) throws StripeException {
return create(params, (RequestOptions) null);
}
/**
- * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
- * status and starts the onboarding process.
+ * Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
+ * onboarding status and starts the onboarding process.
*/
public static FrMealVouchersOnboarding create(Map params, RequestOptions options)
throws StripeException {
@@ -95,8 +104,8 @@ public static FrMealVouchersOnboarding create(Map params, Reques
}
/**
- * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
- * status and starts the onboarding process.
+ * Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
+ * onboarding status and starts the onboarding process.
*/
public static FrMealVouchersOnboarding create(FrMealVouchersOnboardingCreateParams params)
throws StripeException {
@@ -104,8 +113,8 @@ public static FrMealVouchersOnboarding create(FrMealVouchersOnboardingCreatePara
}
/**
- * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
- * status and starts the onboarding process.
+ * Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
+ * onboarding status and starts the onboarding process.
*/
public static FrMealVouchersOnboarding create(
FrMealVouchersOnboardingCreateParams params, RequestOptions options) throws StripeException {
@@ -121,13 +130,19 @@ public static FrMealVouchersOnboarding create(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
}
- /** Lists French Meal Vouchers Onboarding objects. */
+ /**
+ * Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
+ * order, with the most recently created objects appearing first.
+ */
public static FrMealVouchersOnboardingCollection list(Map params)
throws StripeException {
return list(params, (RequestOptions) null);
}
- /** Lists French Meal Vouchers Onboarding objects. */
+ /**
+ * Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
+ * order, with the most recently created objects appearing first.
+ */
public static FrMealVouchersOnboardingCollection list(
Map params, RequestOptions options) throws StripeException {
String path = "/v1/fr_meal_vouchers_onboardings";
@@ -136,13 +151,19 @@ public static FrMealVouchersOnboardingCollection list(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboardingCollection.class);
}
- /** Lists French Meal Vouchers Onboarding objects. */
+ /**
+ * Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
+ * order, with the most recently created objects appearing first.
+ */
public static FrMealVouchersOnboardingCollection list(FrMealVouchersOnboardingListParams params)
throws StripeException {
return list(params, (RequestOptions) null);
}
- /** Lists French Meal Vouchers Onboarding objects. */
+ /**
+ * Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
+ * order, with the most recently created objects appearing first.
+ */
public static FrMealVouchersOnboardingCollection list(
FrMealVouchersOnboardingListParams params, RequestOptions options) throws StripeException {
String path = "/v1/fr_meal_vouchers_onboardings";
@@ -157,18 +178,33 @@ public static FrMealVouchersOnboardingCollection list(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboardingCollection.class);
}
- /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ /**
+ * Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
+ *
+ * Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
+ * previous request, and Stripe returns the corresponding onboarding information.
+ */
public static FrMealVouchersOnboarding retrieve(String id) throws StripeException {
return retrieve(id, (Map) null, (RequestOptions) null);
}
- /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ /**
+ * Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
+ *
+ * Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
+ * previous request, and Stripe returns the corresponding onboarding information.
+ */
public static FrMealVouchersOnboarding retrieve(String id, RequestOptions options)
throws StripeException {
return retrieve(id, (Map) null, options);
}
- /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ /**
+ * Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
+ *
+ * Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
+ * previous request, and Stripe returns the corresponding onboarding information.
+ */
public static FrMealVouchersOnboarding retrieve(
String id, Map params, RequestOptions options) throws StripeException {
String path = String.format("/v1/fr_meal_vouchers_onboardings/%s", ApiResource.urlEncodeId(id));
@@ -177,7 +213,12 @@ public static FrMealVouchersOnboarding retrieve(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
}
- /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ /**
+ * Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
+ *
+ * Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
+ * previous request, and Stripe returns the corresponding onboarding information.
+ */
public static FrMealVouchersOnboarding retrieve(
String id, FrMealVouchersOnboardingRetrieveParams params, RequestOptions options)
throws StripeException {
@@ -193,13 +234,27 @@ public static FrMealVouchersOnboarding retrieve(
return getGlobalResponseGetter().request(request, FrMealVouchersOnboarding.class);
}
- /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ /**
+ * Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
+ * the values of the parameters passed. Any parameters not provided are left unchanged. After you
+ * update the object, the onboarding process automatically restarts.
+ *
+ *
You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
+ * postal_code} field requirement in {@code past_due}.
+ */
@Override
public FrMealVouchersOnboarding update(Map params) throws StripeException {
return update(params, (RequestOptions) null);
}
- /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ /**
+ * Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
+ * the values of the parameters passed. Any parameters not provided are left unchanged. After you
+ * update the object, the onboarding process automatically restarts.
+ *
+ * You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
+ * postal_code} field requirement in {@code past_due}.
+ */
@Override
public FrMealVouchersOnboarding update(Map params, RequestOptions options)
throws StripeException {
@@ -210,13 +265,27 @@ public FrMealVouchersOnboarding update(Map params, RequestOption
return getResponseGetter().request(request, FrMealVouchersOnboarding.class);
}
- /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ /**
+ * Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
+ * the values of the parameters passed. Any parameters not provided are left unchanged. After you
+ * update the object, the onboarding process automatically restarts.
+ *
+ * You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
+ * postal_code} field requirement in {@code past_due}.
+ */
public FrMealVouchersOnboarding update(FrMealVouchersOnboardingUpdateParams params)
throws StripeException {
return update(params, (RequestOptions) null);
}
- /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ /**
+ * Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
+ * the values of the parameters passed. Any parameters not provided are left unchanged. After you
+ * update the object, the onboarding process automatically restarts.
+ *
+ *
You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
+ * postal_code} field requirement in {@code past_due}.
+ */
public FrMealVouchersOnboarding update(
FrMealVouchersOnboardingUpdateParams params, RequestOptions options) throws StripeException {
String path =
diff --git a/src/main/java/com/stripe/model/InvoiceItem.java b/src/main/java/com/stripe/model/InvoiceItem.java
index d4cdea39dc5..07d637d87e4 100644
--- a/src/main/java/com/stripe/model/InvoiceItem.java
+++ b/src/main/java/com/stripe/model/InvoiceItem.java
@@ -679,14 +679,17 @@ public static class Pricing extends StripeObject {
@SerializedName("price_details")
PriceDetails priceDetails;
+ @SerializedName("rate_card_custom_pricing_unit_overage_rate_details")
+ RateCardCustomPricingUnitOverageRateDetails rateCardCustomPricingUnitOverageRateDetails;
+
@SerializedName("rate_card_rate_details")
RateCardRateDetails rateCardRateDetails;
/**
* The type of the pricing details.
*
- *
One of {@code license_fee_details}, {@code price_details}, or {@code
- * rate_card_rate_details}.
+ *
One of {@code license_fee_details}, {@code price_details}, {@code
+ * rate_card_custom_pricing_unit_overage_rate_details}, or {@code rate_card_rate_details}.
*/
@SerializedName("type")
String type;
@@ -756,6 +759,31 @@ public void setPriceObject(Price expandableObject) {
}
}
+ /**
+ * For more details about RateCardCustomPricingUnitOverageRateDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RateCardCustomPricingUnitOverageRateDetails extends StripeObject {
+ /** The ID of the custom pricing unit this item is associated with. */
+ @SerializedName("custom_pricing_unit")
+ String customPricingUnit;
+
+ /** The ID of the custom pricing unit overage rate this item is associated with. */
+ @SerializedName("custom_pricing_unit_overage_rate")
+ String customPricingUnitOverageRate;
+
+ /** The ID of the one-time item this custom pricing unit overage rate is associated with. */
+ @SerializedName("one_time_item")
+ String oneTimeItem;
+
+ /** The ID of the rate card this item is associated with. */
+ @SerializedName("rate_card")
+ String rateCard;
+ }
+
/**
* For more details about RateCardRateDetails, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/InvoiceLineItem.java b/src/main/java/com/stripe/model/InvoiceLineItem.java
index 1cde704d54a..37346f7b5f8 100644
--- a/src/main/java/com/stripe/model/InvoiceLineItem.java
+++ b/src/main/java/com/stripe/model/InvoiceLineItem.java
@@ -750,14 +750,17 @@ public static class Pricing extends StripeObject {
@SerializedName("price_details")
PriceDetails priceDetails;
+ @SerializedName("rate_card_custom_pricing_unit_overage_rate_details")
+ RateCardCustomPricingUnitOverageRateDetails rateCardCustomPricingUnitOverageRateDetails;
+
@SerializedName("rate_card_rate_details")
RateCardRateDetails rateCardRateDetails;
/**
* The type of the pricing details.
*
- *
One of {@code license_fee_details}, {@code price_details}, or {@code
- * rate_card_rate_details}.
+ *
One of {@code license_fee_details}, {@code price_details}, {@code
+ * rate_card_custom_pricing_unit_overage_rate_details}, or {@code rate_card_rate_details}.
*/
@SerializedName("type")
String type;
@@ -827,6 +830,31 @@ public void setPriceObject(Price expandableObject) {
}
}
+ /**
+ * For more details about RateCardCustomPricingUnitOverageRateDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RateCardCustomPricingUnitOverageRateDetails extends StripeObject {
+ /** The ID of the custom pricing unit this item is associated with. */
+ @SerializedName("custom_pricing_unit")
+ String customPricingUnit;
+
+ /** The ID of the custom pricing unit overage rate this item is associated with. */
+ @SerializedName("custom_pricing_unit_overage_rate")
+ String customPricingUnitOverageRate;
+
+ /** The ID of the one-time item this custom pricing unit overage rate is associated with. */
+ @SerializedName("one_time_item")
+ String oneTimeItem;
+
+ /** The ID of the rate card this item is associated with. */
+ @SerializedName("rate_card")
+ String rateCard;
+ }
+
/**
* For more details about RateCardRateDetails, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
index 16819aa7264..1263b47e434 100644
--- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
@@ -30,6 +30,9 @@ public final class EventDataClassLookup {
classLookup.put(
"v2.billing.bill_setting_version", com.stripe.model.v2.billing.BillSettingVersion.class);
classLookup.put("v2.billing.cadence", com.stripe.model.v2.billing.Cadence.class);
+ classLookup.put(
+ "v2.billing.cadence_spend_modifier",
+ com.stripe.model.v2.billing.CadenceSpendModifier.class);
classLookup.put(
"v2.billing.collection_setting", com.stripe.model.v2.billing.CollectionSetting.class);
classLookup.put(
@@ -53,6 +56,7 @@ public final class EventDataClassLookup {
classLookup.put(
"v2.billing.meter_event_session", com.stripe.model.v2.billing.MeterEventSession.class);
classLookup.put("v2.billing.metered_item", com.stripe.model.v2.billing.MeteredItem.class);
+ classLookup.put("v2.billing.one_time_item", com.stripe.model.v2.billing.OneTimeItem.class);
classLookup.put("v2.billing.pricing_plan", com.stripe.model.v2.billing.PricingPlan.class);
classLookup.put(
"v2.billing.pricing_plan_component",
@@ -67,6 +71,9 @@ public final class EventDataClassLookup {
"v2.billing.pricing_plan_version", com.stripe.model.v2.billing.PricingPlanVersion.class);
classLookup.put("v2.billing.profile", com.stripe.model.v2.billing.Profile.class);
classLookup.put("v2.billing.rate_card", com.stripe.model.v2.billing.RateCard.class);
+ classLookup.put(
+ "v2.billing.rate_card_custom_pricing_unit_overage_rate",
+ com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate.class);
classLookup.put("v2.billing.rate_card_rate", com.stripe.model.v2.billing.RateCardRate.class);
classLookup.put(
"v2.billing.rate_card_subscription",
diff --git a/src/main/java/com/stripe/model/v2/billing/CadenceSpendModifier.java b/src/main/java/com/stripe/model/v2/billing/CadenceSpendModifier.java
new file mode 100644
index 00000000000..989a740ad4f
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/billing/CadenceSpendModifier.java
@@ -0,0 +1,125 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.billing;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import java.time.Instant;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/** A Spend Modifier changes how spend is computed when billing for specific cadence. */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class CadenceSpendModifier extends StripeObject implements HasId {
+ /** The ID of the Billing Cadence this spend modifier is associated with. */
+ @SerializedName("billing_cadence")
+ String billingCadence;
+
+ /** Timestamp of when the object was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
+ * object exists in test mode.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /** Max invoice spend details. Present if type is {@code max_billing_period_spend}. */
+ @SerializedName("max_billing_period_spend")
+ MaxBillingPeriodSpend maxBillingPeriodSpend;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value of the
+ * object field.
+ *
+ *
Equal to {@code v2.billing.cadence_spend_modifier}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * The type of the spend modifier.
+ *
+ *
Equal to {@code max_billing_period_spend}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Max invoice spend details. Present if type is {@code max_billing_period_spend}. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MaxBillingPeriodSpend extends StripeObject {
+ /** The billing alert associated with the maximum spend threshold. */
+ @SerializedName("alert")
+ String alert;
+
+ /** The maximum amount of invoice spend. */
+ @SerializedName("amount")
+ Amount amount;
+
+ /** The configuration for the overage rate for the custom pricing unit. */
+ @SerializedName("custom_pricing_unit_overage_rate")
+ CustomPricingUnitOverageRate customPricingUnitOverageRate;
+
+ /** The timestamp from which this spend modifier is effective. */
+ @SerializedName("effective_from")
+ Instant effectiveFrom;
+
+ /**
+ * The timestamp until which this spend modifier is effective. If not set, the modifier is
+ * effective indefinitely.
+ */
+ @SerializedName("effective_until")
+ Instant effectiveUntil;
+
+ /** The maximum amount of invoice spend. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Amount extends StripeObject {
+ /** The custom pricing unit amount. Present if type is {@code custom_pricing_unit}. */
+ @SerializedName("custom_pricing_unit")
+ CustomPricingUnit customPricingUnit;
+
+ /**
+ * The type of the spend modifier amount.
+ *
+ *
Equal to {@code custom_pricing_unit}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** The custom pricing unit amount. Present if type is {@code custom_pricing_unit}. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomPricingUnit extends StripeObject {
+ /** The decimal value of custom pricing units, represented as a string. */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
+ /** The configuration for the overage rate for the custom pricing unit. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomPricingUnitOverageRate extends StripeObject implements HasId {
+ /** ID of the custom pricing unit overage rate. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/billing/IntentAction.java b/src/main/java/com/stripe/model/v2/billing/IntentAction.java
index 5387a32e676..f7f7351dffa 100644
--- a/src/main/java/com/stripe/model/v2/billing/IntentAction.java
+++ b/src/main/java/com/stripe/model/v2/billing/IntentAction.java
@@ -74,18 +74,40 @@ public class IntentAction extends StripeObject implements HasId {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Apply extends StripeObject {
+ /** When the apply action will take effect. Defaults to on_reserve if not specified. */
+ @SerializedName("effective_at")
+ EffectiveAt effectiveAt;
+
/** Details for applying a discount rule to future invoices. */
@SerializedName("invoice_discount_rule")
InvoiceDiscountRule invoiceDiscountRule;
+ /** Details for applying a spend modifier rule. Only present if type is spend_modifier_rule. */
+ @SerializedName("spend_modifier_rule")
+ SpendModifierRule spendModifierRule;
+
/**
* Type of the apply action details.
*
- *
Equal to {@code invoice_discount_rule}.
+ *
One of {@code invoice_discount_rule}, or {@code spend_modifier_rule}.
*/
@SerializedName("type")
String type;
+ /** When the apply action will take effect. Defaults to on_reserve if not specified. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class EffectiveAt extends StripeObject {
+ /**
+ * When the apply action will take effect.
+ *
+ *
One of {@code current_billing_period_end}, or {@code on_reserve}.
+ */
+ @SerializedName("type")
+ String type;
+ }
+
/** Details for applying a discount rule to future invoices. */
@Getter
@Setter
@@ -149,6 +171,96 @@ public static class MaximumApplications extends StripeObject {
}
}
}
+
+ /** Details for applying a spend modifier rule. Only present if type is spend_modifier_rule. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SpendModifierRule extends StripeObject implements HasId {
+ /**
+ * What the spend modifier applies to.
+ *
+ *
Equal to {@code cadence}.
+ */
+ @SerializedName("applies_to")
+ String appliesTo;
+
+ /** The ID of the spend modifier. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * Details for max billing period spend modifier. Only present if type is
+ * max_billing_period_spend.
+ */
+ @SerializedName("max_billing_period_spend")
+ MaxBillingPeriodSpend maxBillingPeriodSpend;
+
+ /**
+ * Type of the spend modifier.
+ *
+ *
Equal to {@code max_billing_period_spend}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /**
+ * Details for max billing period spend modifier. Only present if type is
+ * max_billing_period_spend.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MaxBillingPeriodSpend extends StripeObject {
+ /** The maximum amount allowed for the billing period. */
+ @SerializedName("amount")
+ Amount amount;
+
+ /** The configration for the overage rate for the custom pricing unit. */
+ @SerializedName("custom_pricing_unit_overage_rate")
+ CustomPricingUnitOverageRate customPricingUnitOverageRate;
+
+ /** The maximum amount allowed for the billing period. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Amount extends StripeObject {
+ /** The custom pricing unit amount. */
+ @SerializedName("custom_pricing_unit")
+ CustomPricingUnit customPricingUnit;
+
+ /**
+ * The type of the amount.
+ *
+ *
Equal to {@code custom_pricing_unit}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** The custom pricing unit amount. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomPricingUnit extends StripeObject {
+ /** The value of the custom pricing unit. */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
+ /** The configration for the overage rate for the custom pricing unit. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomPricingUnitOverageRate extends StripeObject implements HasId {
+ /** ID of the custom pricing unit overage rate. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+ }
+ }
+ }
}
/** Details for a deactivate action. */
@@ -464,17 +576,39 @@ public static class LicenseFee extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Remove extends StripeObject {
+ /** When the remove action will take effect. Defaults to on_reserve if not specified. */
+ @SerializedName("effective_at")
+ EffectiveAt effectiveAt;
+
/** The ID of the discount rule to remove for future invoices. */
@SerializedName("invoice_discount_rule")
String invoiceDiscountRule;
+ /** The ID of the spend modifier rule removed. */
+ @SerializedName("spend_modifier_rule")
+ String spendModifierRule;
+
/**
* Type of the remove action.
*
- *
Equal to {@code invoice_discount_rule}.
+ *
One of {@code invoice_discount_rule}, or {@code spend_modifier_rule}.
*/
@SerializedName("type")
String type;
+
+ /** When the remove action will take effect. Defaults to on_reserve if not specified. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class EffectiveAt extends StripeObject {
+ /**
+ * When the remove action will take effect.
+ *
+ *
One of {@code current_billing_period_end}, or {@code on_reserve}.
+ */
+ @SerializedName("type")
+ String type;
+ }
}
/** Details for a subscribe action. */
diff --git a/src/main/java/com/stripe/model/v2/billing/OneTimeItem.java b/src/main/java/com/stripe/model/v2/billing/OneTimeItem.java
new file mode 100644
index 00000000000..0b2c398350d
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/billing/OneTimeItem.java
@@ -0,0 +1,88 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.billing;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import java.time.Instant;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * A one-time item represents a product that can be charged as a one-time line item, used for
+ * overage charges when custom pricing unit credits are exhausted.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class OneTimeItem extends StripeObject implements HasId {
+ /** Timestamp of when the object was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /**
+ * Description that customers will see in the invoice line item. Maximum length of 250 characters.
+ */
+ @SerializedName("display_name")
+ String displayName;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
+ * object exists in test mode.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * An internal key you can use to search for a particular one-time item. Maximum length of 200
+ * characters.
+ */
+ @SerializedName("lookup_key")
+ String lookupKey;
+
+ /**
+ * Set of key-value pairs that you can attach
+ * to an object. This can be useful for storing additional information about the object in a
+ * structured format.
+ */
+ @SerializedName("metadata")
+ Map metadata;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value of the
+ * object field.
+ *
+ * Equal to {@code v2.billing.one_time_item}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** Stripe Tax details. */
+ @SerializedName("tax_details")
+ TaxDetails taxDetails;
+
+ /**
+ * The unit to use when displaying prices for this one-time item. For example, set this field to
+ * "credit" for the display to show "(price) per credit". Maximum length of
+ * 100 characters.
+ */
+ @SerializedName("unit_label")
+ String unitLabel;
+
+ /** Stripe Tax details. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class TaxDetails extends StripeObject {
+ /** Product tax code (PTC). */
+ @SerializedName("tax_code")
+ String taxCode;
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/billing/RateCardCustomPricingUnitOverageRate.java b/src/main/java/com/stripe/model/v2/billing/RateCardCustomPricingUnitOverageRate.java
new file mode 100644
index 00000000000..f8a6c0cdacb
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/billing/RateCardCustomPricingUnitOverageRate.java
@@ -0,0 +1,80 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.billing;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import java.time.Instant;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * A rate card custom pricing unit overage rate defines the conversion rate from a custom pricing
+ * unit to fiat currency when credits are exhausted. This enables automatic overage charges at a
+ * configurable per-unit rate.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class RateCardCustomPricingUnitOverageRate extends StripeObject implements HasId {
+ /** Timestamp of when the object was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /** The ID of the custom pricing unit this overage rate applies to. */
+ @SerializedName("custom_pricing_unit")
+ String customPricingUnit;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
+ * object exists in test mode.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * Set of key-value pairs that you can attach
+ * to an object. This can be useful for storing additional information about the object in a
+ * structured format.
+ */
+ @SerializedName("metadata")
+ Map metadata;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value of the
+ * object field.
+ *
+ * Equal to {@code v2.billing.rate_card_custom_pricing_unit_overage_rate}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * A one-time item represents a product that can be charged as a one-time line item, used for
+ * overage charges when custom pricing unit credits are exhausted.
+ */
+ @SerializedName("one_time_item")
+ OneTimeItem oneTimeItem;
+
+ /** The ID of the Rate Card this overage rate belongs to. */
+ @SerializedName("rate_card")
+ String rateCard;
+
+ /** The ID of the Rate Card Version this overage rate was created on. */
+ @SerializedName("rate_card_version")
+ String rateCardVersion;
+
+ /**
+ * The per-unit amount to charge for overages, represented as a decimal string in minor currency
+ * units with at most 12 decimal places.
+ */
+ @SerializedName("unit_amount")
+ String unitAmount;
+}
diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
index ee9f1aa2b14..9d02bb966c1 100644
--- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
+++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
@@ -3946,6 +3946,10 @@ public static class ScheduleDetails {
@SerializedName("billing_schedules")
Object billingSchedules;
+ /** Object representing the subscription schedule's default settings. */
+ @SerializedName("default_settings")
+ DefaultSettings defaultSettings;
+
/**
* Behavior of the subscription schedule and underlying subscription when it ends. Possible
* values are {@code release} or {@code cancel} with the default being {@code release}. {@code
@@ -3988,6 +3992,7 @@ private ScheduleDetails(
BillingBehavior billingBehavior,
BillingMode billingMode,
Object billingSchedules,
+ DefaultSettings defaultSettings,
EndBehavior endBehavior,
Map extraParams,
List phases,
@@ -3997,6 +4002,7 @@ private ScheduleDetails(
this.billingBehavior = billingBehavior;
this.billingMode = billingMode;
this.billingSchedules = billingSchedules;
+ this.defaultSettings = defaultSettings;
this.endBehavior = endBehavior;
this.extraParams = extraParams;
this.phases = phases;
@@ -4017,6 +4023,8 @@ public static class Builder {
private Object billingSchedules;
+ private DefaultSettings defaultSettings;
+
private EndBehavior endBehavior;
private Map extraParams;
@@ -4034,6 +4042,7 @@ public InvoiceCreatePreviewParams.ScheduleDetails build() {
this.billingBehavior,
this.billingMode,
this.billingSchedules,
+ this.defaultSettings,
this.endBehavior,
this.extraParams,
this.phases,
@@ -4136,6 +4145,13 @@ public Builder setBillingSchedules(
return this;
}
+ /** Object representing the subscription schedule's default settings. */
+ public Builder setDefaultSettings(
+ InvoiceCreatePreviewParams.ScheduleDetails.DefaultSettings defaultSettings) {
+ this.defaultSettings = defaultSettings;
+ return this;
+ }
+
/**
* Behavior of the subscription schedule and underlying subscription when it ends. Possible
* values are {@code release} or {@code cancel} with the default being {@code release}. {@code
@@ -11035,6 +11051,95 @@ public enum Type implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DefaultSettings {
+ /**
+ * 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;
+
+ /** Configures how the subscription schedule handles billing for phase transitions. */
+ @SerializedName("phase_effective_at")
+ PhaseEffectiveAt phaseEffectiveAt;
+
+ private DefaultSettings(Map extraParams, PhaseEffectiveAt phaseEffectiveAt) {
+ this.extraParams = extraParams;
+ this.phaseEffectiveAt = phaseEffectiveAt;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private PhaseEffectiveAt phaseEffectiveAt;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public InvoiceCreatePreviewParams.ScheduleDetails.DefaultSettings build() {
+ return new InvoiceCreatePreviewParams.ScheduleDetails.DefaultSettings(
+ this.extraParams, this.phaseEffectiveAt);
+ }
+
+ /**
+ * 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 InvoiceCreatePreviewParams.ScheduleDetails.DefaultSettings#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 InvoiceCreatePreviewParams.ScheduleDetails.DefaultSettings#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Configures how the subscription schedule handles billing for phase transitions. */
+ public Builder setPhaseEffectiveAt(
+ InvoiceCreatePreviewParams.ScheduleDetails.DefaultSettings.PhaseEffectiveAt
+ phaseEffectiveAt) {
+ this.phaseEffectiveAt = phaseEffectiveAt;
+ return this;
+ }
+ }
+
+ public enum PhaseEffectiveAt implements ApiRequestParams.EnumParam {
+ @SerializedName("billing_period_start")
+ BILLING_PERIOD_START("billing_period_start"),
+
+ @SerializedName("phase_start")
+ PHASE_START("phase_start");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ PhaseEffectiveAt(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Phase {
diff --git a/src/main/java/com/stripe/param/QuoteUpdateParams.java b/src/main/java/com/stripe/param/QuoteUpdateParams.java
index 843147a2a82..7b38b277630 100644
--- a/src/main/java/com/stripe/param/QuoteUpdateParams.java
+++ b/src/main/java/com/stripe/param/QuoteUpdateParams.java
@@ -10533,7 +10533,7 @@ public static class SubscriptionDataOverride {
* when the quote is accepted.
*/
@SerializedName("billing_schedules")
- Object billingSchedules;
+ List billingSchedules;
/** The customer the Subscription Data override applies to. */
@SerializedName("customer")
@@ -10590,7 +10590,7 @@ private SubscriptionDataOverride(
AppliesTo appliesTo,
Object billOnAcceptance,
BillingBehavior billingBehavior,
- Object billingSchedules,
+ List billingSchedules,
Object customer,
Object description,
EndBehavior endBehavior,
@@ -10620,7 +10620,7 @@ public static class Builder {
private BillingBehavior billingBehavior;
- private Object billingSchedules;
+ private List billingSchedules;
private Object customer;
@@ -10689,15 +10689,12 @@ public Builder setBillingBehavior(
* call, and subsequent calls adds additional elements to the original list. See {@link
* QuoteUpdateParams.SubscriptionDataOverride#billingSchedules} for the field documentation.
*/
- @SuppressWarnings("unchecked")
public Builder addBillingSchedule(
QuoteUpdateParams.SubscriptionDataOverride.BillingSchedule element) {
- if (this.billingSchedules == null || this.billingSchedules instanceof EmptyParam) {
- this.billingSchedules =
- new ArrayList();
+ if (this.billingSchedules == null) {
+ this.billingSchedules = new ArrayList<>();
}
- ((List) this.billingSchedules)
- .add(element);
+ this.billingSchedules.add(element);
return this;
}
@@ -10707,34 +10704,12 @@ public Builder addBillingSchedule(
* {@link QuoteUpdateParams.SubscriptionDataOverride#billingSchedules} for the field
* documentation.
*/
- @SuppressWarnings("unchecked")
public Builder addAllBillingSchedule(
List elements) {
- if (this.billingSchedules == null || this.billingSchedules instanceof EmptyParam) {
- this.billingSchedules =
- new ArrayList();
+ if (this.billingSchedules == null) {
+ this.billingSchedules = new ArrayList<>();
}
- ((List) this.billingSchedules)
- .addAll(elements);
- return this;
- }
-
- /**
- * Billing schedules that will be applied to the subscription or subscription schedule created
- * when the quote is accepted.
- */
- public Builder setBillingSchedules(EmptyParam billingSchedules) {
- this.billingSchedules = billingSchedules;
- return this;
- }
-
- /**
- * Billing schedules that will be applied to the subscription or subscription schedule created
- * when the quote is accepted.
- */
- public Builder setBillingSchedules(
- List billingSchedules) {
- this.billingSchedules = billingSchedules;
+ this.billingSchedules.addAll(elements);
return this;
}
diff --git a/src/main/java/com/stripe/param/SubscriptionResumeParams.java b/src/main/java/com/stripe/param/SubscriptionResumeParams.java
index 67738afcad4..220ced3e88c 100644
--- a/src/main/java/com/stripe/param/SubscriptionResumeParams.java
+++ b/src/main/java/com/stripe/param/SubscriptionResumeParams.java
@@ -34,6 +34,14 @@ public class SubscriptionResumeParams extends ApiRequestParams {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /**
+ * Controls when the subscription transitions from {@code paused} to {@code active}. Determines
+ * how payment on the invoice affects the resumption process.The default is {@code
+ * pending_if_incomplete}.
+ */
+ @SerializedName("payment_behavior")
+ PaymentBehavior paymentBehavior;
+
/**
* Determines how to handle prorations resulting from
@@ -56,11 +64,13 @@ private SubscriptionResumeParams(
BillingCycleAnchor billingCycleAnchor,
List expand,
Map extraParams,
+ PaymentBehavior paymentBehavior,
ProrationBehavior prorationBehavior,
Long prorationDate) {
this.billingCycleAnchor = billingCycleAnchor;
this.expand = expand;
this.extraParams = extraParams;
+ this.paymentBehavior = paymentBehavior;
this.prorationBehavior = prorationBehavior;
this.prorationDate = prorationDate;
}
@@ -76,6 +86,8 @@ public static class Builder {
private Map extraParams;
+ private PaymentBehavior paymentBehavior;
+
private ProrationBehavior prorationBehavior;
private Long prorationDate;
@@ -86,6 +98,7 @@ public SubscriptionResumeParams build() {
this.billingCycleAnchor,
this.expand,
this.extraParams,
+ this.paymentBehavior,
this.prorationBehavior,
this.prorationDate);
}
@@ -153,6 +166,16 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /**
+ * Controls when the subscription transitions from {@code paused} to {@code active}. Determines
+ * how payment on the invoice affects the resumption process.The default is {@code
+ * pending_if_incomplete}.
+ */
+ public Builder setPaymentBehavior(SubscriptionResumeParams.PaymentBehavior paymentBehavior) {
+ this.paymentBehavior = paymentBehavior;
+ return this;
+ }
+
/**
* Determines how to handle prorations resulting from
@@ -192,6 +215,21 @@ public enum BillingCycleAnchor implements ApiRequestParams.EnumParam {
}
}
+ public enum PaymentBehavior implements ApiRequestParams.EnumParam {
+ @SerializedName("allow_incomplete")
+ ALLOW_INCOMPLETE("allow_incomplete"),
+
+ @SerializedName("pending_if_incomplete")
+ PENDING_IF_INCOMPLETE("pending_if_incomplete");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ PaymentBehavior(String value) {
+ this.value = value;
+ }
+ }
+
public enum ProrationBehavior implements ApiRequestParams.EnumParam {
@SerializedName("always_invoice")
ALWAYS_INVOICE("always_invoice"),
diff --git a/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java b/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java
index a3b44c9d03e..1be8e11f0fc 100644
--- a/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/billing/ActionServiceCreateParams.java
@@ -539,9 +539,9 @@ public Builder setValue(String value) {
@EqualsAndHashCode(callSuper = false)
public static class Monetary {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -557,8 +557,8 @@ public static class Monetary {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in the
+ * smallest currency unit.
*/
@SerializedName("value")
Long value;
@@ -587,9 +587,10 @@ public ActionServiceCreateParams.CreditGrant.Amount.Monetary build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -625,8 +626,9 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
public Builder setValue(Long value) {
this.value = value;
@@ -1352,9 +1354,9 @@ public Builder setValue(String value) {
@EqualsAndHashCode(callSuper = false)
public static class Monetary {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -1370,8 +1372,8 @@ public static class Monetary {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in the
+ * smallest currency unit.
*/
@SerializedName("value")
Long value;
@@ -1400,9 +1402,10 @@ public ActionServiceCreateParams.CreditGrantPerTenant.Amount.Monetary build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -1440,8 +1443,9 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
public Builder setValue(Long value) {
this.value = value;
diff --git a/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java b/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java
index 25a28798b85..a84e0e160aa 100644
--- a/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java
@@ -300,6 +300,10 @@ public Builder setType(IntentCreateParams.Action.Type type) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Apply {
+ /** When the apply action will take effect. Defaults to on_reserve if not specified. */
+ @SerializedName("effective_at")
+ EffectiveAt effectiveAt;
+
/**
* 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.
@@ -313,14 +317,26 @@ public static class Apply {
@SerializedName("invoice_discount_rule")
InvoiceDiscountRule invoiceDiscountRule;
+ /**
+ * Details for applying a spend modifier rule. Only present if type is spend_modifier_rule.
+ */
+ @SerializedName("spend_modifier_rule")
+ SpendModifierRule spendModifierRule;
+
/** Required. Type of the apply action details. */
@SerializedName("type")
Type type;
private Apply(
- Map extraParams, InvoiceDiscountRule invoiceDiscountRule, Type type) {
+ EffectiveAt effectiveAt,
+ Map extraParams,
+ InvoiceDiscountRule invoiceDiscountRule,
+ SpendModifierRule spendModifierRule,
+ Type type) {
+ this.effectiveAt = effectiveAt;
this.extraParams = extraParams;
this.invoiceDiscountRule = invoiceDiscountRule;
+ this.spendModifierRule = spendModifierRule;
this.type = type;
}
@@ -329,16 +345,30 @@ public static Builder builder() {
}
public static class Builder {
+ private EffectiveAt effectiveAt;
+
private Map extraParams;
private InvoiceDiscountRule invoiceDiscountRule;
+ private SpendModifierRule spendModifierRule;
+
private Type type;
/** Finalize and obtain parameter instance from this builder. */
public IntentCreateParams.Action.Apply build() {
return new IntentCreateParams.Action.Apply(
- this.extraParams, this.invoiceDiscountRule, this.type);
+ this.effectiveAt,
+ this.extraParams,
+ this.invoiceDiscountRule,
+ this.spendModifierRule,
+ this.type);
+ }
+
+ /** When the apply action will take effect. Defaults to on_reserve if not specified. */
+ public Builder setEffectiveAt(IntentCreateParams.Action.Apply.EffectiveAt effectiveAt) {
+ this.effectiveAt = effectiveAt;
+ return this;
}
/**
@@ -374,6 +404,15 @@ public Builder setInvoiceDiscountRule(
return this;
}
+ /**
+ * Details for applying a spend modifier rule. Only present if type is spend_modifier_rule.
+ */
+ public Builder setSpendModifierRule(
+ IntentCreateParams.Action.Apply.SpendModifierRule spendModifierRule) {
+ this.spendModifierRule = spendModifierRule;
+ return this;
+ }
+
/** Required. Type of the apply action details. */
public Builder setType(IntentCreateParams.Action.Apply.Type type) {
this.type = type;
@@ -381,6 +420,93 @@ public Builder setType(IntentCreateParams.Action.Apply.Type type) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class EffectiveAt {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. When the apply action will take effect. */
+ @SerializedName("type")
+ Type type;
+
+ private EffectiveAt(Map extraParams, Type type) {
+ this.extraParams = extraParams;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Type type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IntentCreateParams.Action.Apply.EffectiveAt build() {
+ return new IntentCreateParams.Action.Apply.EffectiveAt(this.extraParams, this.type);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link IntentCreateParams.Action.Apply.EffectiveAt#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 IntentCreateParams.Action.Apply.EffectiveAt#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Required. When the apply action will take effect. */
+ public Builder setType(IntentCreateParams.Action.Apply.EffectiveAt.Type type) {
+ this.type = type;
+ return this;
+ }
+ }
+
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("current_billing_period_end")
+ CURRENT_BILLING_PERIOD_END("current_billing_period_end"),
+
+ @SerializedName("on_reserve")
+ ON_RESERVE("on_reserve");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class InvoiceDiscountRule {
@@ -589,15 +715,349 @@ public Builder setMaximumApplications(
* Required. Percent that will be taken off of the amount. For example,
* percent_off of 50.0 will make $100 amount $50 instead.
*/
- public Builder setPercentOff(String percentOff) {
- this.percentOff = percentOff;
+ public Builder setPercentOff(String percentOff) {
+ this.percentOff = percentOff;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MaximumApplications {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName}
+ * value. Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. The type of maximum applications configuration. */
+ @SerializedName("type")
+ Type type;
+
+ private MaximumApplications(Map extraParams, Type type) {
+ this.extraParams = extraParams;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Type type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff
+ .MaximumApplications
+ build() {
+ return new IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff
+ .MaximumApplications(this.extraParams, this.type);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff.MaximumApplications#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
+ * IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff.MaximumApplications#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Required. The type of maximum applications configuration. */
+ public Builder setType(
+ IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff.MaximumApplications
+ .Type
+ type) {
+ this.type = type;
+ return this;
+ }
+ }
+
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("indefinite")
+ INDEFINITE("indefinite");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
+ public enum AppliesTo implements ApiRequestParams.EnumParam {
+ @SerializedName("cadence")
+ CADENCE("cadence");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ AppliesTo(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("percent_off")
+ PERCENT_OFF("percent_off");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SpendModifierRule {
+ /** Required. What the spend modifier applies to. */
+ @SerializedName("applies_to")
+ AppliesTo appliesTo;
+
+ /**
+ * 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;
+
+ /**
+ * Details for max billing period spend modifier. Only present if type is
+ * max_billing_period_spend.
+ */
+ @SerializedName("max_billing_period_spend")
+ MaxBillingPeriodSpend maxBillingPeriodSpend;
+
+ /** Required. Type of the spend modifier. */
+ @SerializedName("type")
+ Type type;
+
+ private SpendModifierRule(
+ AppliesTo appliesTo,
+ Map extraParams,
+ MaxBillingPeriodSpend maxBillingPeriodSpend,
+ Type type) {
+ this.appliesTo = appliesTo;
+ this.extraParams = extraParams;
+ this.maxBillingPeriodSpend = maxBillingPeriodSpend;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private AppliesTo appliesTo;
+
+ private Map extraParams;
+
+ private MaxBillingPeriodSpend maxBillingPeriodSpend;
+
+ private Type type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IntentCreateParams.Action.Apply.SpendModifierRule build() {
+ return new IntentCreateParams.Action.Apply.SpendModifierRule(
+ this.appliesTo, this.extraParams, this.maxBillingPeriodSpend, this.type);
+ }
+
+ /** Required. What the spend modifier applies to. */
+ public Builder setAppliesTo(
+ IntentCreateParams.Action.Apply.SpendModifierRule.AppliesTo appliesTo) {
+ this.appliesTo = appliesTo;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link IntentCreateParams.Action.Apply.SpendModifierRule#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 IntentCreateParams.Action.Apply.SpendModifierRule#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Details for max billing period spend modifier. Only present if type is
+ * max_billing_period_spend.
+ */
+ public Builder setMaxBillingPeriodSpend(
+ IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend
+ maxBillingPeriodSpend) {
+ this.maxBillingPeriodSpend = maxBillingPeriodSpend;
+ return this;
+ }
+
+ /** Required. Type of the spend modifier. */
+ public Builder setType(IntentCreateParams.Action.Apply.SpendModifierRule.Type type) {
+ this.type = type;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MaxBillingPeriodSpend {
+ /** Required. The maximum amount allowed for the billing period. */
+ @SerializedName("amount")
+ Amount amount;
+
+ /**
+ * Required. The configration for the overage rate for the custom pricing
+ * unit.
+ */
+ @SerializedName("custom_pricing_unit_overage_rate")
+ CustomPricingUnitOverageRate customPricingUnitOverageRate;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private MaxBillingPeriodSpend(
+ Amount amount,
+ CustomPricingUnitOverageRate customPricingUnitOverageRate,
+ Map extraParams) {
+ this.amount = amount;
+ this.customPricingUnitOverageRate = customPricingUnitOverageRate;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Amount amount;
+
+ private CustomPricingUnitOverageRate customPricingUnitOverageRate;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend build() {
+ return new IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend(
+ this.amount, this.customPricingUnitOverageRate, this.extraParams);
+ }
+
+ /** Required. The maximum amount allowed for the billing period. */
+ public Builder setAmount(
+ IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.Amount
+ amount) {
+ this.amount = amount;
+ return this;
+ }
+
+ /**
+ * Required. The configration for the overage rate for the custom
+ * pricing unit.
+ */
+ public Builder setCustomPricingUnitOverageRate(
+ IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend
+ .CustomPricingUnitOverageRate
+ customPricingUnitOverageRate) {
+ this.customPricingUnitOverageRate = customPricingUnitOverageRate;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend#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
+ * IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
return this;
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class MaximumApplications {
+ public static class Amount {
+ /** The custom pricing unit amount. */
+ @SerializedName("custom_pricing_unit")
+ CustomPricingUnit customPricingUnit;
+
/**
* 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}
@@ -608,11 +1068,13 @@ public static class MaximumApplications {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Required. The type of maximum applications configuration. */
+ /** Required. The type of the amount. */
@SerializedName("type")
Type type;
- private MaximumApplications(Map extraParams, Type type) {
+ private Amount(
+ CustomPricingUnit customPricingUnit, Map extraParams, Type type) {
+ this.customPricingUnit = customPricingUnit;
this.extraParams = extraParams;
this.type = type;
}
@@ -622,23 +1084,33 @@ public static Builder builder() {
}
public static class Builder {
+ private CustomPricingUnit customPricingUnit;
+
private Map extraParams;
private Type type;
/** Finalize and obtain parameter instance from this builder. */
- public IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff
- .MaximumApplications
+ public IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.Amount
build() {
- return new IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff
- .MaximumApplications(this.extraParams, this.type);
+ return new IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend
+ .Amount(this.customPricingUnit, this.extraParams, this.type);
+ }
+
+ /** The custom pricing unit amount. */
+ public Builder setCustomPricingUnit(
+ IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.Amount
+ .CustomPricingUnit
+ customPricingUnit) {
+ this.customPricingUnit = customPricingUnit;
+ return this;
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff.MaximumApplications#extraParams}
+ * IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.Amount#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -653,7 +1125,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the
* first `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff.MaximumApplications#extraParams}
+ * IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.Amount#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -664,9 +1136,9 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Required. The type of maximum applications configuration. */
+ /** Required. The type of the amount. */
public Builder setType(
- IntentCreateParams.Action.Apply.InvoiceDiscountRule.PercentOff.MaximumApplications
+ IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.Amount
.Type
type) {
this.type = type;
@@ -674,9 +1146,86 @@ public Builder setType(
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomPricingUnit {
+ /**
+ * Map of extra parameters for custom features not available in this client library.
+ * The content in this map is not serialized under this field's
+ * {@code @SerializedName} value. Instead, each key/value pair is serialized as if the
+ * key is a root-level field (serialized) name in this param object. Effectively, this
+ * map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. The value of the custom pricing unit. */
+ @SerializedName("value")
+ String value;
+
+ private CustomPricingUnit(Map extraParams, String value) {
+ this.extraParams = extraParams;
+ this.value = value;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private String value;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend
+ .Amount.CustomPricingUnit
+ build() {
+ return new IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend
+ .Amount.CustomPricingUnit(this.extraParams, this.value);
+ }
+
+ /**
+ * 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
+ * IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.Amount.CustomPricingUnit#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
+ * IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.Amount.CustomPricingUnit#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Required. The value of the custom pricing unit. */
+ public Builder setValue(String value) {
+ this.value = value;
+ return this;
+ }
+ }
+ }
+
public enum Type implements ApiRequestParams.EnumParam {
- @SerializedName("indefinite")
- INDEFINITE("indefinite");
+ @SerializedName("custom_pricing_unit")
+ CUSTOM_PRICING_UNIT("custom_pricing_unit");
@Getter(onMethod_ = {@Override})
private final String value;
@@ -686,6 +1235,83 @@ public enum Type implements ApiRequestParams.EnumParam {
}
}
}
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomPricingUnitOverageRate {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName}
+ * value. Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. ID of the custom pricing unit overage rate. */
+ @SerializedName("id")
+ String id;
+
+ private CustomPricingUnitOverageRate(Map extraParams, String id) {
+ this.extraParams = extraParams;
+ this.id = id;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private String id;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend
+ .CustomPricingUnitOverageRate
+ build() {
+ return new IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend
+ .CustomPricingUnitOverageRate(this.extraParams, this.id);
+ }
+
+ /**
+ * 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
+ * IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.CustomPricingUnitOverageRate#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
+ * IntentCreateParams.Action.Apply.SpendModifierRule.MaxBillingPeriodSpend.CustomPricingUnitOverageRate#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Required. ID of the custom pricing unit overage rate. */
+ public Builder setId(String id) {
+ this.id = id;
+ return this;
+ }
+ }
+ }
}
public enum AppliesTo implements ApiRequestParams.EnumParam {
@@ -701,8 +1327,8 @@ public enum AppliesTo implements ApiRequestParams.EnumParam {
}
public enum Type implements ApiRequestParams.EnumParam {
- @SerializedName("percent_off")
- PERCENT_OFF("percent_off");
+ @SerializedName("max_billing_period_spend")
+ MAX_BILLING_PERIOD_SPEND("max_billing_period_spend");
@Getter(onMethod_ = {@Override})
private final String value;
@@ -715,7 +1341,10 @@ public enum Type implements ApiRequestParams.EnumParam {
public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("invoice_discount_rule")
- INVOICE_DISCOUNT_RULE("invoice_discount_rule");
+ INVOICE_DISCOUNT_RULE("invoice_discount_rule"),
+
+ @SerializedName("spend_modifier_rule")
+ SPEND_MODIFIER_RULE("spend_modifier_rule");
@Getter(onMethod_ = {@Override})
private final String value;
@@ -2493,6 +3122,10 @@ public enum Type implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Remove {
+ /** When the remove action will take effect. Defaults to on_reserve if not specified. */
+ @SerializedName("effective_at")
+ EffectiveAt effectiveAt;
+
/**
* 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.
@@ -2506,13 +3139,24 @@ public static class Remove {
@SerializedName("invoice_discount_rule")
String invoiceDiscountRule;
+ /** The ID of the spend modifier rule to remove. */
+ @SerializedName("spend_modifier_rule")
+ String spendModifierRule;
+
/** Required. Type of the remove action. */
@SerializedName("type")
Type type;
- private Remove(Map extraParams, String invoiceDiscountRule, Type type) {
+ private Remove(
+ EffectiveAt effectiveAt,
+ Map extraParams,
+ String invoiceDiscountRule,
+ String spendModifierRule,
+ Type type) {
+ this.effectiveAt = effectiveAt;
this.extraParams = extraParams;
this.invoiceDiscountRule = invoiceDiscountRule;
+ this.spendModifierRule = spendModifierRule;
this.type = type;
}
@@ -2521,16 +3165,30 @@ public static Builder builder() {
}
public static class Builder {
+ private EffectiveAt effectiveAt;
+
private Map extraParams;
private String invoiceDiscountRule;
+ private String spendModifierRule;
+
private Type type;
/** Finalize and obtain parameter instance from this builder. */
public IntentCreateParams.Action.Remove build() {
return new IntentCreateParams.Action.Remove(
- this.extraParams, this.invoiceDiscountRule, this.type);
+ this.effectiveAt,
+ this.extraParams,
+ this.invoiceDiscountRule,
+ this.spendModifierRule,
+ this.type);
+ }
+
+ /** When the remove action will take effect. Defaults to on_reserve if not specified. */
+ public Builder setEffectiveAt(IntentCreateParams.Action.Remove.EffectiveAt effectiveAt) {
+ this.effectiveAt = effectiveAt;
+ return this;
}
/**
@@ -2567,6 +3225,12 @@ public Builder setInvoiceDiscountRule(String invoiceDiscountRule) {
return this;
}
+ /** The ID of the spend modifier rule to remove. */
+ public Builder setSpendModifierRule(String spendModifierRule) {
+ this.spendModifierRule = spendModifierRule;
+ return this;
+ }
+
/** Required. Type of the remove action. */
public Builder setType(IntentCreateParams.Action.Remove.Type type) {
this.type = type;
@@ -2574,9 +3238,99 @@ public Builder setType(IntentCreateParams.Action.Remove.Type type) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class EffectiveAt {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. When the remove action will take effect. */
+ @SerializedName("type")
+ Type type;
+
+ private EffectiveAt(Map extraParams, Type type) {
+ this.extraParams = extraParams;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Type type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IntentCreateParams.Action.Remove.EffectiveAt build() {
+ return new IntentCreateParams.Action.Remove.EffectiveAt(this.extraParams, this.type);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link IntentCreateParams.Action.Remove.EffectiveAt#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 IntentCreateParams.Action.Remove.EffectiveAt#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Required. When the remove action will take effect. */
+ public Builder setType(IntentCreateParams.Action.Remove.EffectiveAt.Type type) {
+ this.type = type;
+ return this;
+ }
+ }
+
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("current_billing_period_end")
+ CURRENT_BILLING_PERIOD_END("current_billing_period_end"),
+
+ @SerializedName("on_reserve")
+ ON_RESERVE("on_reserve");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
+ }
+ }
+
public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("invoice_discount_rule")
- INVOICE_DISCOUNT_RULE("invoice_discount_rule");
+ INVOICE_DISCOUNT_RULE("invoice_discount_rule"),
+
+ @SerializedName("spend_modifier_rule")
+ SPEND_MODIFIER_RULE("spend_modifier_rule");
@Getter(onMethod_ = {@Override})
private final String value;
diff --git a/src/main/java/com/stripe/param/v2/billing/OneTimeItemCreateParams.java b/src/main/java/com/stripe/param/v2/billing/OneTimeItemCreateParams.java
new file mode 100644
index 00000000000..fb8ad764f7c
--- /dev/null
+++ b/src/main/java/com/stripe/param/v2/billing/OneTimeItemCreateParams.java
@@ -0,0 +1,255 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.v2.billing;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.HashMap;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class OneTimeItemCreateParams extends ApiRequestParams {
+ /**
+ * Required. Description that customers will see in the invoice line item.
+ * Maximum length of 250 characters.
+ */
+ @SerializedName("display_name")
+ String displayName;
+
+ /**
+ * 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;
+
+ /**
+ * An internal key you can use to search for a particular one-time item. Must be unique among
+ * billable items. Maximum length of 200 characters.
+ */
+ @SerializedName("lookup_key")
+ String lookupKey;
+
+ /**
+ * Set of key-value pairs that you can attach
+ * to an object. This can be useful for storing additional information about the object in a
+ * structured format.
+ */
+ @SerializedName("metadata")
+ Map metadata;
+
+ /** Stripe Tax details. */
+ @SerializedName("tax_details")
+ TaxDetails taxDetails;
+
+ /**
+ * The unit to use when displaying prices for this one-time item. For example, set this field to
+ * "credit" for the display to show "(price) per credit". Maximum length of
+ * 100 characters.
+ */
+ @SerializedName("unit_label")
+ String unitLabel;
+
+ private OneTimeItemCreateParams(
+ String displayName,
+ Map extraParams,
+ String lookupKey,
+ Map metadata,
+ TaxDetails taxDetails,
+ String unitLabel) {
+ this.displayName = displayName;
+ this.extraParams = extraParams;
+ this.lookupKey = lookupKey;
+ this.metadata = metadata;
+ this.taxDetails = taxDetails;
+ this.unitLabel = unitLabel;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String displayName;
+
+ private Map extraParams;
+
+ private String lookupKey;
+
+ private Map metadata;
+
+ private TaxDetails taxDetails;
+
+ private String unitLabel;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public OneTimeItemCreateParams build() {
+ return new OneTimeItemCreateParams(
+ this.displayName,
+ this.extraParams,
+ this.lookupKey,
+ this.metadata,
+ this.taxDetails,
+ this.unitLabel);
+ }
+
+ /**
+ * Required. Description that customers will see in the invoice line item.
+ * Maximum length of 250 characters.
+ */
+ public Builder setDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * OneTimeItemCreateParams#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 OneTimeItemCreateParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * An internal key you can use to search for a particular one-time item. Must be unique among
+ * billable items. Maximum length of 200 characters.
+ */
+ public Builder setLookupKey(String lookupKey) {
+ this.lookupKey = lookupKey;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call,
+ * and subsequent calls add additional key/value pairs to the original map. See {@link
+ * OneTimeItemCreateParams#metadata} for the field documentation.
+ */
+ public Builder putMetadata(String key, String value) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `metadata` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link OneTimeItemCreateParams#metadata} for the field documentation.
+ */
+ public Builder putAllMetadata(Map map) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.putAll(map);
+ return this;
+ }
+
+ /** Stripe Tax details. */
+ public Builder setTaxDetails(OneTimeItemCreateParams.TaxDetails taxDetails) {
+ this.taxDetails = taxDetails;
+ return this;
+ }
+
+ /**
+ * The unit to use when displaying prices for this one-time item. For example, set this field to
+ * "credit" for the display to show "(price) per credit". Maximum length of
+ * 100 characters.
+ */
+ public Builder setUnitLabel(String unitLabel) {
+ this.unitLabel = unitLabel;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class TaxDetails {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. Product tax code (PTC). */
+ @SerializedName("tax_code")
+ String taxCode;
+
+ private TaxDetails(Map extraParams, String taxCode) {
+ this.extraParams = extraParams;
+ this.taxCode = taxCode;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private String taxCode;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public OneTimeItemCreateParams.TaxDetails build() {
+ return new OneTimeItemCreateParams.TaxDetails(this.extraParams, this.taxCode);
+ }
+
+ /**
+ * 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
+ * OneTimeItemCreateParams.TaxDetails#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 OneTimeItemCreateParams.TaxDetails#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Required. Product tax code (PTC). */
+ public Builder setTaxCode(String taxCode) {
+ this.taxCode = taxCode;
+ return this;
+ }
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/v2/billing/OneTimeItemListParams.java b/src/main/java/com/stripe/param/v2/billing/OneTimeItemListParams.java
new file mode 100644
index 00000000000..fcb7cb3b017
--- /dev/null
+++ b/src/main/java/com/stripe/param/v2/billing/OneTimeItemListParams.java
@@ -0,0 +1,114 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.v2.billing;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class OneTimeItemListParams extends ApiRequestParams {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Optionally set the maximum number of results per page. Defaults to 20. */
+ @SerializedName("limit")
+ Long limit;
+
+ /** Filter by lookup keys. You can specify up to 10 lookup keys. */
+ @SerializedName("lookup_keys")
+ List lookupKeys;
+
+ private OneTimeItemListParams(
+ Map extraParams, Long limit, List lookupKeys) {
+ this.extraParams = extraParams;
+ this.limit = limit;
+ this.lookupKeys = lookupKeys;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Long limit;
+
+ private List lookupKeys;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public OneTimeItemListParams build() {
+ return new OneTimeItemListParams(this.extraParams, this.limit, this.lookupKeys);
+ }
+
+ /**
+ * 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
+ * OneTimeItemListParams#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 OneTimeItemListParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Optionally set the maximum number of results per page. Defaults to 20. */
+ public Builder setLimit(Long limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ /**
+ * Add an element to `lookupKeys` list. A list is initialized for the first `add/addAll` call,
+ * and subsequent calls adds additional elements to the original list. See {@link
+ * OneTimeItemListParams#lookupKeys} for the field documentation.
+ */
+ public Builder addLookupKey(String element) {
+ if (this.lookupKeys == null) {
+ this.lookupKeys = new ArrayList<>();
+ }
+ this.lookupKeys.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `lookupKeys` list. A list is initialized for the first `add/addAll` call,
+ * and subsequent calls adds additional elements to the original list. See {@link
+ * OneTimeItemListParams#lookupKeys} for the field documentation.
+ */
+ public Builder addAllLookupKey(List elements) {
+ if (this.lookupKeys == null) {
+ this.lookupKeys = new ArrayList<>();
+ }
+ this.lookupKeys.addAll(elements);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/v2/billing/OneTimeItemUpdateParams.java b/src/main/java/com/stripe/param/v2/billing/OneTimeItemUpdateParams.java
new file mode 100644
index 00000000000..ab1e20f04bd
--- /dev/null
+++ b/src/main/java/com/stripe/param/v2/billing/OneTimeItemUpdateParams.java
@@ -0,0 +1,307 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.v2.billing;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.param.common.EmptyParam;
+import java.util.HashMap;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class OneTimeItemUpdateParams extends ApiRequestParams {
+ /**
+ * Description that customers will see in the invoice line item. Maximum length of 250 characters.
+ */
+ @SerializedName("display_name")
+ Object displayName;
+
+ /**
+ * 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;
+
+ /**
+ * An internal key you can use to search for a particular one-time item. Maximum length of 200
+ * characters. To remove the lookup_key from the object, set it to null in the request.
+ */
+ @SerializedName("lookup_key")
+ Object lookupKey;
+
+ /**
+ * Set of key-value pairs that you can attach
+ * to an object. This can be useful for storing additional information about the object in a
+ * structured format.
+ */
+ @SerializedName("metadata")
+ Map metadata;
+
+ /** Stripe Tax details. */
+ @SerializedName("tax_details")
+ TaxDetails taxDetails;
+
+ /**
+ * The unit to use when displaying prices for this one-time item. For example, set this field to
+ * "credit" for the display to show "(price) per credit". Maximum length of
+ * 100 characters.
+ */
+ @SerializedName("unit_label")
+ Object unitLabel;
+
+ private OneTimeItemUpdateParams(
+ Object displayName,
+ Map extraParams,
+ Object lookupKey,
+ Map metadata,
+ TaxDetails taxDetails,
+ Object unitLabel) {
+ this.displayName = displayName;
+ this.extraParams = extraParams;
+ this.lookupKey = lookupKey;
+ this.metadata = metadata;
+ this.taxDetails = taxDetails;
+ this.unitLabel = unitLabel;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Object displayName;
+
+ private Map extraParams;
+
+ private Object lookupKey;
+
+ private Map metadata;
+
+ private TaxDetails taxDetails;
+
+ private Object unitLabel;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public OneTimeItemUpdateParams build() {
+ return new OneTimeItemUpdateParams(
+ this.displayName,
+ this.extraParams,
+ this.lookupKey,
+ this.metadata,
+ this.taxDetails,
+ this.unitLabel);
+ }
+
+ /**
+ * Description that customers will see in the invoice line item. Maximum length of 250
+ * characters.
+ */
+ public Builder setDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Description that customers will see in the invoice line item. Maximum length of 250
+ * characters.
+ */
+ public Builder setDisplayName(EmptyParam displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * OneTimeItemUpdateParams#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 OneTimeItemUpdateParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * An internal key you can use to search for a particular one-time item. Maximum length of 200
+ * characters. To remove the lookup_key from the object, set it to null in the request.
+ */
+ public Builder setLookupKey(String lookupKey) {
+ this.lookupKey = lookupKey;
+ return this;
+ }
+
+ /**
+ * An internal key you can use to search for a particular one-time item. Maximum length of 200
+ * characters. To remove the lookup_key from the object, set it to null in the request.
+ */
+ public Builder setLookupKey(EmptyParam lookupKey) {
+ this.lookupKey = lookupKey;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call,
+ * and subsequent calls add additional key/value pairs to the original map. See {@link
+ * OneTimeItemUpdateParams#metadata} for the field documentation.
+ */
+ public Builder putMetadata(String key, String value) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call,
+ * and subsequent calls add additional key/value pairs to the original map. See {@link
+ * OneTimeItemUpdateParams#metadata} for the field documentation.
+ */
+ public Builder putMetadata(String key, EmptyParam value) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `metadata` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * Map values can only be one of the following types: `String`, `EmptyParam`. See {@link
+ * OneTimeItemUpdateParams#metadata} for the field documentation.
+ */
+ public Builder putAllMetadata(Map map) {
+ if (!map.values().stream().allMatch(v -> v instanceof String || v instanceof EmptyParam)) {
+ throw new IllegalArgumentException(
+ "All map values must one of the following types: String, EmptyParam");
+ }
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.putAll(map);
+ return this;
+ }
+
+ /** Stripe Tax details. */
+ public Builder setTaxDetails(OneTimeItemUpdateParams.TaxDetails taxDetails) {
+ this.taxDetails = taxDetails;
+ return this;
+ }
+
+ /**
+ * The unit to use when displaying prices for this one-time item. For example, set this field to
+ * "credit" for the display to show "(price) per credit". Maximum length of
+ * 100 characters.
+ */
+ public Builder setUnitLabel(String unitLabel) {
+ this.unitLabel = unitLabel;
+ return this;
+ }
+
+ /**
+ * The unit to use when displaying prices for this one-time item. For example, set this field to
+ * "credit" for the display to show "(price) per credit". Maximum length of
+ * 100 characters.
+ */
+ public Builder setUnitLabel(EmptyParam unitLabel) {
+ this.unitLabel = unitLabel;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class TaxDetails {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. Product tax code (PTC). */
+ @SerializedName("tax_code")
+ Object taxCode;
+
+ private TaxDetails(Map extraParams, Object taxCode) {
+ this.extraParams = extraParams;
+ this.taxCode = taxCode;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Object taxCode;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public OneTimeItemUpdateParams.TaxDetails build() {
+ return new OneTimeItemUpdateParams.TaxDetails(this.extraParams, this.taxCode);
+ }
+
+ /**
+ * 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
+ * OneTimeItemUpdateParams.TaxDetails#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 OneTimeItemUpdateParams.TaxDetails#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Required. Product tax code (PTC). */
+ public Builder setTaxCode(String taxCode) {
+ this.taxCode = taxCode;
+ return this;
+ }
+
+ /** Required. Product tax code (PTC). */
+ public Builder setTaxCode(EmptyParam taxCode) {
+ this.taxCode = taxCode;
+ return this;
+ }
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/v2/billing/cadences/SpendModifierRuleListParams.java b/src/main/java/com/stripe/param/v2/billing/cadences/SpendModifierRuleListParams.java
new file mode 100644
index 00000000000..94f9a3f1779
--- /dev/null
+++ b/src/main/java/com/stripe/param/v2/billing/cadences/SpendModifierRuleListParams.java
@@ -0,0 +1,93 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.v2.billing.cadences;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.time.Instant;
+import java.util.HashMap;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class SpendModifierRuleListParams extends ApiRequestParams {
+ /** Return only spend modifiers that are effective at the specified timestamp. */
+ @SerializedName("effective_at")
+ Instant effectiveAt;
+
+ /**
+ * 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;
+
+ /** Optionally set the maximum number of results per page. Defaults to 20. */
+ @SerializedName("limit")
+ Long limit;
+
+ private SpendModifierRuleListParams(
+ Instant effectiveAt, Map extraParams, Long limit) {
+ this.effectiveAt = effectiveAt;
+ this.extraParams = extraParams;
+ this.limit = limit;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Instant effectiveAt;
+
+ private Map extraParams;
+
+ private Long limit;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SpendModifierRuleListParams build() {
+ return new SpendModifierRuleListParams(this.effectiveAt, this.extraParams, this.limit);
+ }
+
+ /** Return only spend modifiers that are effective at the specified timestamp. */
+ public Builder setEffectiveAt(Instant effectiveAt) {
+ this.effectiveAt = effectiveAt;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * SpendModifierRuleListParams#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 SpendModifierRuleListParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Optionally set the maximum number of results per page. Defaults to 20. */
+ public Builder setLimit(Long limit) {
+ this.limit = limit;
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/v2/billing/ratecards/CustomPricingUnitOverageRateCreateParams.java b/src/main/java/com/stripe/param/v2/billing/ratecards/CustomPricingUnitOverageRateCreateParams.java
new file mode 100644
index 00000000000..89455bcc8cc
--- /dev/null
+++ b/src/main/java/com/stripe/param/v2/billing/ratecards/CustomPricingUnitOverageRateCreateParams.java
@@ -0,0 +1,159 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.v2.billing.ratecards;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.HashMap;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class CustomPricingUnitOverageRateCreateParams extends ApiRequestParams {
+ /** Required. The ID of the custom pricing unit this overage rate applies to. */
+ @SerializedName("custom_pricing_unit")
+ String customPricingUnit;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Set of key-value pairs that you can attach
+ * to an object. This can be useful for storing additional information about the object in a
+ * structured format.
+ */
+ @SerializedName("metadata")
+ Map metadata;
+
+ /** Required. The ID of the one-time item to use for overage line items. */
+ @SerializedName("one_time_item")
+ String oneTimeItem;
+
+ /**
+ * Required. The per-unit amount to charge for overages, represented as a decimal
+ * string in minor currency units with at most 12 decimal places.
+ */
+ @SerializedName("unit_amount")
+ String unitAmount;
+
+ private CustomPricingUnitOverageRateCreateParams(
+ String customPricingUnit,
+ Map extraParams,
+ Map metadata,
+ String oneTimeItem,
+ String unitAmount) {
+ this.customPricingUnit = customPricingUnit;
+ this.extraParams = extraParams;
+ this.metadata = metadata;
+ this.oneTimeItem = oneTimeItem;
+ this.unitAmount = unitAmount;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String customPricingUnit;
+
+ private Map extraParams;
+
+ private Map metadata;
+
+ private String oneTimeItem;
+
+ private String unitAmount;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public CustomPricingUnitOverageRateCreateParams build() {
+ return new CustomPricingUnitOverageRateCreateParams(
+ this.customPricingUnit,
+ this.extraParams,
+ this.metadata,
+ this.oneTimeItem,
+ this.unitAmount);
+ }
+
+ /**
+ * Required. The ID of the custom pricing unit this overage rate applies to.
+ */
+ public Builder setCustomPricingUnit(String customPricingUnit) {
+ this.customPricingUnit = customPricingUnit;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * CustomPricingUnitOverageRateCreateParams#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 CustomPricingUnitOverageRateCreateParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call,
+ * and subsequent calls add additional key/value pairs to the original map. See {@link
+ * CustomPricingUnitOverageRateCreateParams#metadata} for the field documentation.
+ */
+ public Builder putMetadata(String key, String value) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `metadata` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link CustomPricingUnitOverageRateCreateParams#metadata} for the field documentation.
+ */
+ public Builder putAllMetadata(Map map) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.putAll(map);
+ return this;
+ }
+
+ /** Required. The ID of the one-time item to use for overage line items. */
+ public Builder setOneTimeItem(String oneTimeItem) {
+ this.oneTimeItem = oneTimeItem;
+ return this;
+ }
+
+ /**
+ * Required. The per-unit amount to charge for overages, represented as a
+ * decimal string in minor currency units with at most 12 decimal places.
+ */
+ public Builder setUnitAmount(String unitAmount) {
+ this.unitAmount = unitAmount;
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/v2/billing/ratecards/CustomPricingUnitOverageRateListParams.java b/src/main/java/com/stripe/param/v2/billing/ratecards/CustomPricingUnitOverageRateListParams.java
new file mode 100644
index 00000000000..4025389803b
--- /dev/null
+++ b/src/main/java/com/stripe/param/v2/billing/ratecards/CustomPricingUnitOverageRateListParams.java
@@ -0,0 +1,95 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.v2.billing.ratecards;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.HashMap;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class CustomPricingUnitOverageRateListParams extends ApiRequestParams {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Optionally set the maximum number of results per page. Defaults to 20. */
+ @SerializedName("limit")
+ Long limit;
+
+ /** Optionally filter by a RateCard version. If not specified, defaults to the latest version. */
+ @SerializedName("rate_card_version")
+ String rateCardVersion;
+
+ private CustomPricingUnitOverageRateListParams(
+ Map extraParams, Long limit, String rateCardVersion) {
+ this.extraParams = extraParams;
+ this.limit = limit;
+ this.rateCardVersion = rateCardVersion;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Long limit;
+
+ private String rateCardVersion;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public CustomPricingUnitOverageRateListParams build() {
+ return new CustomPricingUnitOverageRateListParams(
+ this.extraParams, this.limit, this.rateCardVersion);
+ }
+
+ /**
+ * 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
+ * CustomPricingUnitOverageRateListParams#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 CustomPricingUnitOverageRateListParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Optionally set the maximum number of results per page. Defaults to 20. */
+ public Builder setLimit(Long limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ /**
+ * Optionally filter by a RateCard version. If not specified, defaults to the latest version.
+ */
+ public Builder setRateCardVersion(String rateCardVersion) {
+ this.rateCardVersion = rateCardVersion;
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java
index 76afa27f835..20bf6d7b96c 100644
--- a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java
@@ -18132,9 +18132,10 @@ public Builder setFiscalYearEnd(String fiscalYearEnd) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
@SerializedName("currency")
String currency;
@@ -18150,8 +18151,9 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
@SerializedName("value")
Long value;
@@ -18180,9 +18182,10 @@ public AccountCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount build()
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -18220,8 +18223,9 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
public Builder setValue(Long value) {
this.value = value;
@@ -20484,9 +20488,10 @@ public Builder putAllExtraParam(Map map) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
@SerializedName("currency")
String currency;
@@ -20502,8 +20507,9 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
@SerializedName("value")
Long value;
@@ -20533,9 +20539,10 @@ public static class Builder {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -20573,8 +20580,9 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
public Builder setValue(Long value) {
this.value = value;
diff --git a/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java b/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java
index 87b442c6dd8..9485d08657b 100644
--- a/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/core/AccountTokenCreateParams.java
@@ -3740,9 +3740,10 @@ public Builder setFiscalYearEnd(String fiscalYearEnd) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
@SerializedName("currency")
String currency;
@@ -3758,8 +3759,9 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
@SerializedName("value")
Long value;
@@ -3788,9 +3790,10 @@ public AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue.Amount bu
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -3828,8 +3831,9 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
public Builder setValue(Long value) {
this.value = value;
@@ -6106,9 +6110,10 @@ public Builder putAllExtraParam(Map map) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
@SerializedName("currency")
String currency;
@@ -6124,8 +6129,9 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
@SerializedName("value")
Long value;
@@ -6155,9 +6161,10 @@ public static class Builder {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -6195,8 +6202,9 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
public Builder setValue(Long value) {
this.value = value;
diff --git a/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java b/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java
index 0663ed4b35a..0f5f8646413 100644
--- a/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/v2/core/AccountUpdateParams.java
@@ -19297,9 +19297,10 @@ public Builder setFiscalYearEnd(EmptyParam fiscalYearEnd) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
@SerializedName("currency")
Object currency;
@@ -19315,8 +19316,9 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
@SerializedName("value")
Long value;
@@ -19345,9 +19347,10 @@ public AccountUpdateParams.Identity.BusinessDetails.AnnualRevenue.Amount build()
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -19355,9 +19358,10 @@ public Builder setCurrency(String currency) {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(EmptyParam currency) {
this.currency = currency;
@@ -19395,8 +19399,9 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
public Builder setValue(Long value) {
this.value = value;
@@ -21694,9 +21699,10 @@ public Builder putAllExtraParam(Map map) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
@SerializedName("currency")
Object currency;
@@ -21712,8 +21718,9 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
@SerializedName("value")
Long value;
@@ -21743,9 +21750,10 @@ public static class Builder {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -21753,9 +21761,10 @@ public Builder setCurrency(String currency) {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported
+ * currency.
*/
public Builder setCurrency(EmptyParam currency) {
this.currency = currency;
@@ -21793,8 +21802,9 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in
+ * the smallest currency
+ * unit.
*/
public Builder setValue(Long value) {
this.value = value;
diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java
index bd8b9db3ea9..712020d691f 100644
--- a/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/moneymanagement/CurrencyConversionCreateParams.java
@@ -197,9 +197,9 @@ public Builder putAllExtraParam(Map map) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -214,7 +214,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -244,9 +244,9 @@ public CurrencyConversionCreateParams.From.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -282,8 +282,8 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in the
+ * smallest currency unit.
*/
public Builder setValue(Long value) {
this.value = value;
@@ -378,9 +378,9 @@ public Builder putAllExtraParam(Map map) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -395,7 +395,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -425,9 +425,9 @@ public CurrencyConversionCreateParams.To.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -463,8 +463,8 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the smallest currency unit.
+ * Required. A non-negative integer representing how much to charge in the
+ * smallest currency unit.
*/
public Builder setValue(Long value) {
this.value = value;
diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferCreateParams.java
index 65544c4cbe0..15f5d5937f6 100644
--- a/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/moneymanagement/InboundTransferCreateParams.java
@@ -132,9 +132,9 @@ public Builder setTo(InboundTransferCreateParams.To to) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in lowercase.
+ * Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -149,7 +149,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -178,9 +178,9 @@ public InboundTransferCreateParams.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -214,7 +214,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
public Builder setValue(Long value) {
diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentCreateParams.java
index a68ed5d3101..5cac7cfec0d 100644
--- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentCreateParams.java
@@ -246,9 +246,9 @@ public Builder setTo(OutboundPaymentCreateParams.To to) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in lowercase.
+ * Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -263,7 +263,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -292,9 +292,9 @@ public OutboundPaymentCreateParams.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -328,7 +328,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
public Builder setValue(Long value) {
diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentQuoteCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentQuoteCreateParams.java
index 4df9e63e02c..775729fc241 100644
--- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentQuoteCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundPaymentQuoteCreateParams.java
@@ -130,9 +130,9 @@ public Builder setTo(OutboundPaymentQuoteCreateParams.To to) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in lowercase.
+ * Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -147,7 +147,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -177,9 +177,9 @@ public OutboundPaymentQuoteCreateParams.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -214,7 +214,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
public Builder setValue(Long value) {
diff --git a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferCreateParams.java b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferCreateParams.java
index 9539fbaf329..d62fa6e4232 100644
--- a/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/moneymanagement/OutboundTransferCreateParams.java
@@ -206,9 +206,9 @@ public Builder setTo(OutboundTransferCreateParams.To to) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in lowercase.
+ * Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -223,7 +223,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -252,9 +252,9 @@ public OutboundTransferCreateParams.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -288,7 +288,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
public Builder setValue(Long value) {
diff --git a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java
index d288c7ab866..33119e716fb 100644
--- a/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/payments/OffSessionPaymentCreateParams.java
@@ -337,9 +337,9 @@ public Builder setTransferData(OffSessionPaymentCreateParams.TransferData transf
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in lowercase.
+ * Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -354,7 +354,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -384,9 +384,9 @@ public OffSessionPaymentCreateParams.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -420,7 +420,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
public Builder setValue(Long value) {
diff --git a/src/main/java/com/stripe/param/v2/payments/SettlementAllocationIntentCreateParams.java b/src/main/java/com/stripe/param/v2/payments/SettlementAllocationIntentCreateParams.java
index db33535b888..0ae7e7e422f 100644
--- a/src/main/java/com/stripe/param/v2/payments/SettlementAllocationIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/payments/SettlementAllocationIntentCreateParams.java
@@ -189,9 +189,9 @@ public Builder setReference(String reference) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in lowercase.
+ * Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -206,7 +206,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -236,9 +236,9 @@ public SettlementAllocationIntentCreateParams.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -273,7 +273,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
public Builder setValue(Long value) {
diff --git a/src/main/java/com/stripe/param/v2/payments/SettlementAllocationIntentUpdateParams.java b/src/main/java/com/stripe/param/v2/payments/SettlementAllocationIntentUpdateParams.java
index 4f3eedb5599..8c4e36e300f 100644
--- a/src/main/java/com/stripe/param/v2/payments/SettlementAllocationIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/v2/payments/SettlementAllocationIntentUpdateParams.java
@@ -108,9 +108,9 @@ public Builder setReference(EmptyParam reference) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in lowercase.
+ * Must be a supported currency.
*/
@SerializedName("currency")
Object currency;
@@ -125,7 +125,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -155,9 +155,9 @@ public SettlementAllocationIntentUpdateParams.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -165,9 +165,9 @@ public Builder setCurrency(String currency) {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(EmptyParam currency) {
this.currency = currency;
@@ -202,7 +202,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
public Builder setValue(Long value) {
diff --git a/src/main/java/com/stripe/param/v2/payments/settlementallocationintents/SplitCreateParams.java b/src/main/java/com/stripe/param/v2/payments/settlementallocationintents/SplitCreateParams.java
index b39422a0562..aa73d91058e 100644
--- a/src/main/java/com/stripe/param/v2/payments/settlementallocationintents/SplitCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/payments/settlementallocationintents/SplitCreateParams.java
@@ -152,9 +152,9 @@ public Builder setType(SplitCreateParams.Type type) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in lowercase.
+ * Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -169,7 +169,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -198,9 +198,9 @@ public SplitCreateParams.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -234,7 +234,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
public Builder setValue(Long value) {
diff --git a/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java b/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java
index 496dbd0acf5..ec5e7780f91 100644
--- a/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java
+++ b/src/main/java/com/stripe/param/v2/testhelpers/FinancialAddressCreditParams.java
@@ -120,9 +120,9 @@ public Builder setStatementDescriptor(String statementDescriptor) {
@EqualsAndHashCode(callSuper = false)
public static class Amount {
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in lowercase.
+ * Must be a supported currency.
*/
@SerializedName("currency")
String currency;
@@ -137,7 +137,7 @@ public static class Amount {
Map extraParams;
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
@SerializedName("value")
@@ -166,9 +166,9 @@ public FinancialAddressCreditParams.Amount build() {
}
/**
- * Three-letter ISO currency
- * code, in lowercase. Must be a supported
- * currency.
+ * Required. Three-letter ISO currency code, in
+ * lowercase. Must be a supported currency.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
@@ -202,7 +202,7 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * A non-negative integer representing how much to charge in the Required. A non-negative integer representing how much to charge in the smallest currency unit.
*/
public Builder setValue(Long value) {
diff --git a/src/main/java/com/stripe/service/FrMealVouchersOnboardingService.java b/src/main/java/com/stripe/service/FrMealVouchersOnboardingService.java
index ba071f28ae6..a9deec51e85 100644
--- a/src/main/java/com/stripe/service/FrMealVouchersOnboardingService.java
+++ b/src/main/java/com/stripe/service/FrMealVouchersOnboardingService.java
@@ -22,21 +22,33 @@ public FrMealVouchersOnboardingService(StripeResponseGetter responseGetter) {
super(responseGetter);
}
- /** Lists French Meal Vouchers Onboarding objects. */
+ /**
+ * Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
+ * order, with the most recently created objects appearing first.
+ */
public StripeCollection list(FrMealVouchersOnboardingListParams params)
throws StripeException {
return list(params, (RequestOptions) null);
}
- /** Lists French Meal Vouchers Onboarding objects. */
+ /**
+ * Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
+ * order, with the most recently created objects appearing first.
+ */
public StripeCollection list(RequestOptions options)
throws StripeException {
return list((FrMealVouchersOnboardingListParams) null, options);
}
- /** Lists French Meal Vouchers Onboarding objects. */
+ /**
+ * Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
+ * order, with the most recently created objects appearing first.
+ */
public StripeCollection list() throws StripeException {
return list((FrMealVouchersOnboardingListParams) null, (RequestOptions) null);
}
- /** Lists French Meal Vouchers Onboarding objects. */
+ /**
+ * Lists {@code French Meal Vouchers Onboarding} objects. The objects are returned in sorted
+ * order, with the most recently created objects appearing first.
+ */
public StripeCollection list(
FrMealVouchersOnboardingListParams params, RequestOptions options) throws StripeException {
String path = "/v1/fr_meal_vouchers_onboardings";
@@ -51,16 +63,16 @@ public StripeCollection list(
request, new TypeToken>() {}.getType());
}
/**
- * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
- * status and starts the onboarding process.
+ * Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
+ * onboarding status and starts the onboarding process.
*/
public FrMealVouchersOnboarding create(FrMealVouchersOnboardingCreateParams params)
throws StripeException {
return create(params, (RequestOptions) null);
}
/**
- * Creates a French Meal Vouchers Onboarding object that represents a restaurant’s onboarding
- * status and starts the onboarding process.
+ * Creates a {@code French Meal Vouchers Onboarding} object that represents a restaurant’s
+ * onboarding status and starts the onboarding process.
*/
public FrMealVouchersOnboarding create(
FrMealVouchersOnboardingCreateParams params, RequestOptions options) throws StripeException {
@@ -74,21 +86,41 @@ public FrMealVouchersOnboarding create(
options);
return this.request(request, FrMealVouchersOnboarding.class);
}
- /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ /**
+ * Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
+ *
+ * Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
+ * previous request, and Stripe returns the corresponding onboarding information.
+ */
public FrMealVouchersOnboarding retrieve(String id, FrMealVouchersOnboardingRetrieveParams params)
throws StripeException {
return retrieve(id, params, (RequestOptions) null);
}
- /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ /**
+ * Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
+ *
+ *
Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
+ * previous request, and Stripe returns the corresponding onboarding information.
+ */
public FrMealVouchersOnboarding retrieve(String id, RequestOptions options)
throws StripeException {
return retrieve(id, (FrMealVouchersOnboardingRetrieveParams) null, options);
}
- /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ /**
+ * Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
+ *
+ *
Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
+ * previous request, and Stripe returns the corresponding onboarding information.
+ */
public FrMealVouchersOnboarding retrieve(String id) throws StripeException {
return retrieve(id, (FrMealVouchersOnboardingRetrieveParams) null, (RequestOptions) null);
}
- /** Retrieves the details of a French Meal Vouchers Onboarding object. */
+ /**
+ * Retrieves the details of a previously created {@code French Meal Vouchers Onboarding} object.
+ *
+ *
Supply the unique {@code French Meal Vouchers Onboarding} ID that was returned from your
+ * previous request, and Stripe returns the corresponding onboarding information.
+ */
public FrMealVouchersOnboarding retrieve(
String id, FrMealVouchersOnboardingRetrieveParams params, RequestOptions options)
throws StripeException {
@@ -102,12 +134,26 @@ public FrMealVouchersOnboarding retrieve(
options);
return this.request(request, FrMealVouchersOnboarding.class);
}
- /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ /**
+ * Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
+ * the values of the parameters passed. Any parameters not provided are left unchanged. After you
+ * update the object, the onboarding process automatically restarts.
+ *
+ *
You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
+ * postal_code} field requirement in {@code past_due}.
+ */
public FrMealVouchersOnboarding update(String id, FrMealVouchersOnboardingUpdateParams params)
throws StripeException {
return update(id, params, (RequestOptions) null);
}
- /** Updates the details of a restaurant’s French Meal Vouchers Onboarding object. */
+ /**
+ * Updates the details of a restaurant’s {@code French Meal Vouchers Onboarding} object by setting
+ * the values of the parameters passed. Any parameters not provided are left unchanged. After you
+ * update the object, the onboarding process automatically restarts.
+ *
+ *
You can only update {@code French Meal Vouchers Onboarding} objects with the {@code
+ * postal_code} field requirement in {@code past_due}.
+ */
public FrMealVouchersOnboarding update(
String id, FrMealVouchersOnboardingUpdateParams params, RequestOptions options)
throws StripeException {
diff --git a/src/main/java/com/stripe/service/v2/BillingService.java b/src/main/java/com/stripe/service/v2/BillingService.java
index 71bb7a2287a..ab9f1dbf960 100644
--- a/src/main/java/com/stripe/service/v2/BillingService.java
+++ b/src/main/java/com/stripe/service/v2/BillingService.java
@@ -62,6 +62,10 @@ public com.stripe.service.v2.billing.MeteredItemService meteredItems() {
return new com.stripe.service.v2.billing.MeteredItemService(this.getResponseGetter());
}
+ public com.stripe.service.v2.billing.OneTimeItemService oneTimeItems() {
+ return new com.stripe.service.v2.billing.OneTimeItemService(this.getResponseGetter());
+ }
+
public com.stripe.service.v2.billing.PricingPlanSubscriptionService pricingPlanSubscriptions() {
return new com.stripe.service.v2.billing.PricingPlanSubscriptionService(
this.getResponseGetter());
diff --git a/src/main/java/com/stripe/service/v2/billing/CadenceService.java b/src/main/java/com/stripe/service/v2/billing/CadenceService.java
index e2f2183c554..e56891fbd3a 100644
--- a/src/main/java/com/stripe/service/v2/billing/CadenceService.java
+++ b/src/main/java/com/stripe/service/v2/billing/CadenceService.java
@@ -139,4 +139,9 @@ public Cadence cancel(String id, CadenceCancelParams params, RequestOptions opti
options);
return this.request(request, Cadence.class);
}
+
+ public com.stripe.service.v2.billing.cadences.SpendModifierRuleService spendModifierRules() {
+ return new com.stripe.service.v2.billing.cadences.SpendModifierRuleService(
+ this.getResponseGetter());
+ }
}
diff --git a/src/main/java/com/stripe/service/v2/billing/OneTimeItemService.java b/src/main/java/com/stripe/service/v2/billing/OneTimeItemService.java
new file mode 100644
index 00000000000..868645bb25d
--- /dev/null
+++ b/src/main/java/com/stripe/service/v2/billing/OneTimeItemService.java
@@ -0,0 +1,102 @@
+// File generated from our OpenAPI spec
+package com.stripe.service.v2.billing;
+
+import com.google.gson.reflect.TypeToken;
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.StripeCollection;
+import com.stripe.model.v2.billing.OneTimeItem;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.ApiService;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.v2.billing.OneTimeItemCreateParams;
+import com.stripe.param.v2.billing.OneTimeItemListParams;
+import com.stripe.param.v2.billing.OneTimeItemUpdateParams;
+
+public final class OneTimeItemService extends ApiService {
+ public OneTimeItemService(StripeResponseGetter responseGetter) {
+ super(responseGetter);
+ }
+
+ /** List all One-Time Item objects in reverse chronological order of creation. */
+ public StripeCollection list(OneTimeItemListParams params) throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+ /** List all One-Time Item objects in reverse chronological order of creation. */
+ public StripeCollection list(RequestOptions options) throws StripeException {
+ return list((OneTimeItemListParams) null, options);
+ }
+ /** List all One-Time Item objects in reverse chronological order of creation. */
+ public StripeCollection list() throws StripeException {
+ return list((OneTimeItemListParams) null, (RequestOptions) null);
+ }
+ /** List all One-Time Item objects in reverse chronological order of creation. */
+ public StripeCollection list(OneTimeItemListParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v2/billing/one_time_items";
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, new TypeToken>() {}.getType());
+ }
+ /** Create a One-Time Item object. */
+ public OneTimeItem create(OneTimeItemCreateParams params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+ /** Create a One-Time Item object. */
+ public OneTimeItem create(OneTimeItemCreateParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v2/billing/one_time_items";
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, OneTimeItem.class);
+ }
+ /** Retrieve a One-Time Item object. */
+ public OneTimeItem retrieve(String id) throws StripeException {
+ return retrieve(id, (RequestOptions) null);
+ }
+ /** Retrieve a One-Time Item object. */
+ public OneTimeItem retrieve(String id, RequestOptions options) throws StripeException {
+ String path = String.format("/v2/billing/one_time_items/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options);
+ return this.request(request, OneTimeItem.class);
+ }
+ /** Update a One-Time Item object. */
+ public OneTimeItem update(String id, OneTimeItemUpdateParams params) throws StripeException {
+ return update(id, params, (RequestOptions) null);
+ }
+ /** Update a One-Time Item object. */
+ public OneTimeItem update(String id, RequestOptions options) throws StripeException {
+ return update(id, (OneTimeItemUpdateParams) null, options);
+ }
+ /** Update a One-Time Item object. */
+ public OneTimeItem update(String id) throws StripeException {
+ return update(id, (OneTimeItemUpdateParams) null, (RequestOptions) null);
+ }
+ /** Update a One-Time Item object. */
+ public OneTimeItem update(String id, OneTimeItemUpdateParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v2/billing/one_time_items/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, OneTimeItem.class);
+ }
+}
diff --git a/src/main/java/com/stripe/service/v2/billing/RateCardService.java b/src/main/java/com/stripe/service/v2/billing/RateCardService.java
index a5206df3395..13da3ce7fb6 100644
--- a/src/main/java/com/stripe/service/v2/billing/RateCardService.java
+++ b/src/main/java/com/stripe/service/v2/billing/RateCardService.java
@@ -100,6 +100,12 @@ public RateCard update(String id, RateCardUpdateParams params, RequestOptions op
return this.request(request, RateCard.class);
}
+ public com.stripe.service.v2.billing.ratecards.CustomPricingUnitOverageRateService
+ customPricingUnitOverageRates() {
+ return new com.stripe.service.v2.billing.ratecards.CustomPricingUnitOverageRateService(
+ this.getResponseGetter());
+ }
+
public com.stripe.service.v2.billing.ratecards.RateService rates() {
return new com.stripe.service.v2.billing.ratecards.RateService(this.getResponseGetter());
}
diff --git a/src/main/java/com/stripe/service/v2/billing/cadences/SpendModifierRuleService.java b/src/main/java/com/stripe/service/v2/billing/cadences/SpendModifierRuleService.java
new file mode 100644
index 00000000000..3160b279088
--- /dev/null
+++ b/src/main/java/com/stripe/service/v2/billing/cadences/SpendModifierRuleService.java
@@ -0,0 +1,68 @@
+// File generated from our OpenAPI spec
+package com.stripe.service.v2.billing.cadences;
+
+import com.google.gson.reflect.TypeToken;
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.StripeCollection;
+import com.stripe.model.v2.billing.CadenceSpendModifier;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.ApiService;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.v2.billing.cadences.SpendModifierRuleListParams;
+
+public final class SpendModifierRuleService extends ApiService {
+ public SpendModifierRuleService(StripeResponseGetter responseGetter) {
+ super(responseGetter);
+ }
+
+ /** List all Spend Modifiers associated with a Billing Cadence. */
+ public StripeCollection list(
+ String cadenceId, SpendModifierRuleListParams params) throws StripeException {
+ return list(cadenceId, params, (RequestOptions) null);
+ }
+ /** List all Spend Modifiers associated with a Billing Cadence. */
+ public StripeCollection list(String cadenceId, RequestOptions options)
+ throws StripeException {
+ return list(cadenceId, (SpendModifierRuleListParams) null, options);
+ }
+ /** List all Spend Modifiers associated with a Billing Cadence. */
+ public StripeCollection list(String cadenceId) throws StripeException {
+ return list(cadenceId, (SpendModifierRuleListParams) null, (RequestOptions) null);
+ }
+ /** List all Spend Modifiers associated with a Billing Cadence. */
+ public StripeCollection list(
+ String cadenceId, SpendModifierRuleListParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v2/billing/cadences/%s/spend_modifier_rules", ApiResource.urlEncodeId(cadenceId));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(
+ request, new TypeToken>() {}.getType());
+ }
+ /** Retrieve a Spend Modifier associated with a Billing Cadence. */
+ public CadenceSpendModifier retrieve(String cadenceId, String id) throws StripeException {
+ return retrieve(cadenceId, id, (RequestOptions) null);
+ }
+ /** Retrieve a Spend Modifier associated with a Billing Cadence. */
+ public CadenceSpendModifier retrieve(String cadenceId, String id, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v2/billing/cadences/%s/spend_modifier_rules/%s",
+ ApiResource.urlEncodeId(cadenceId), ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options);
+ return this.request(request, CadenceSpendModifier.class);
+ }
+}
diff --git a/src/main/java/com/stripe/service/v2/billing/ratecards/CustomPricingUnitOverageRateService.java b/src/main/java/com/stripe/service/v2/billing/ratecards/CustomPricingUnitOverageRateService.java
new file mode 100644
index 00000000000..2b591e36fb9
--- /dev/null
+++ b/src/main/java/com/stripe/service/v2/billing/ratecards/CustomPricingUnitOverageRateService.java
@@ -0,0 +1,111 @@
+// File generated from our OpenAPI spec
+package com.stripe.service.v2.billing.ratecards;
+
+import com.google.gson.reflect.TypeToken;
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.DeletedObject;
+import com.stripe.model.v2.StripeCollection;
+import com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.ApiService;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.v2.billing.ratecards.CustomPricingUnitOverageRateCreateParams;
+import com.stripe.param.v2.billing.ratecards.CustomPricingUnitOverageRateListParams;
+
+public final class CustomPricingUnitOverageRateService extends ApiService {
+ public CustomPricingUnitOverageRateService(StripeResponseGetter responseGetter) {
+ super(responseGetter);
+ }
+
+ /** List all Rate Card Custom Pricing Unit Overage Rates on a Rate Card. */
+ public StripeCollection list(
+ String rateCardId, CustomPricingUnitOverageRateListParams params) throws StripeException {
+ return list(rateCardId, params, (RequestOptions) null);
+ }
+ /** List all Rate Card Custom Pricing Unit Overage Rates on a Rate Card. */
+ public StripeCollection list(
+ String rateCardId, RequestOptions options) throws StripeException {
+ return list(rateCardId, (CustomPricingUnitOverageRateListParams) null, options);
+ }
+ /** List all Rate Card Custom Pricing Unit Overage Rates on a Rate Card. */
+ public StripeCollection list(String rateCardId)
+ throws StripeException {
+ return list(rateCardId, (CustomPricingUnitOverageRateListParams) null, (RequestOptions) null);
+ }
+ /** List all Rate Card Custom Pricing Unit Overage Rates on a Rate Card. */
+ public StripeCollection list(
+ String rateCardId, CustomPricingUnitOverageRateListParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v2/billing/rate_cards/%s/custom_pricing_unit_overage_rates",
+ ApiResource.urlEncodeId(rateCardId));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(
+ request,
+ new TypeToken>() {}.getType());
+ }
+ /** Create a Rate Card Custom Pricing Unit Overage Rate on a Rate Card. */
+ public RateCardCustomPricingUnitOverageRate create(
+ String rateCardId, CustomPricingUnitOverageRateCreateParams params) throws StripeException {
+ return create(rateCardId, params, (RequestOptions) null);
+ }
+ /** Create a Rate Card Custom Pricing Unit Overage Rate on a Rate Card. */
+ public RateCardCustomPricingUnitOverageRate create(
+ String rateCardId, CustomPricingUnitOverageRateCreateParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v2/billing/rate_cards/%s/custom_pricing_unit_overage_rates",
+ ApiResource.urlEncodeId(rateCardId));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, RateCardCustomPricingUnitOverageRate.class);
+ }
+ /** Delete a Rate Card Custom Pricing Unit Overage Rate from a Rate Card. */
+ public DeletedObject delete(String rateCardId, String id) throws StripeException {
+ return delete(rateCardId, id, (RequestOptions) null);
+ }
+ /** Delete a Rate Card Custom Pricing Unit Overage Rate from a Rate Card. */
+ public DeletedObject delete(String rateCardId, String id, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v2/billing/rate_cards/%s/custom_pricing_unit_overage_rates/%s",
+ ApiResource.urlEncodeId(rateCardId), ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.DELETE, path, null, options);
+ return this.request(request, DeletedObject.class);
+ }
+ /** Retrieve a Rate Card Custom Pricing Unit Overage Rate from a Rate Card. */
+ public RateCardCustomPricingUnitOverageRate retrieve(String rateCardId, String id)
+ throws StripeException {
+ return retrieve(rateCardId, id, (RequestOptions) null);
+ }
+ /** Retrieve a Rate Card Custom Pricing Unit Overage Rate from a Rate Card. */
+ public RateCardCustomPricingUnitOverageRate retrieve(
+ String rateCardId, String id, RequestOptions options) throws StripeException {
+ String path =
+ String.format(
+ "/v2/billing/rate_cards/%s/custom_pricing_unit_overage_rates/%s",
+ ApiResource.urlEncodeId(rateCardId), ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options);
+ return this.request(request, RateCardCustomPricingUnitOverageRate.class);
+ }
+}
diff --git a/src/test/java/com/stripe/functional/GeneratedExamples.java b/src/test/java/com/stripe/functional/GeneratedExamples.java
index c4179b1d45a..8ca155084e3 100644
--- a/src/test/java/com/stripe/functional/GeneratedExamples.java
+++ b/src/test/java/com/stripe/functional/GeneratedExamples.java
@@ -24723,6 +24723,58 @@ public void testV2BillingCadencePost3Services() throws StripeException {
null);
}
+ @Test
+ public void testV2BillingCadencesSpendModifierRuleGetServices() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/cadences/cadence_id_123/spend_modifier_rules",
+ null,
+ null,
+ new TypeToken<
+ com.stripe.model.v2.StripeCollection<
+ com.stripe.model.v2.billing.CadenceSpendModifier>>() {}.getType(),
+ "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence_spend_modifier\",\"type\":\"max_billing_period_spend\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.param.v2.billing.cadences.SpendModifierRuleListParams params =
+ com.stripe.param.v2.billing.cadences.SpendModifierRuleListParams.builder().build();
+
+ com.stripe.model.v2.StripeCollection
+ stripeCollection =
+ client.v2().billing().cadences().spendModifierRules().list("cadence_id_123", params);
+ assertNotNull(stripeCollection);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/cadences/cadence_id_123/spend_modifier_rules",
+ params.toMap(),
+ null);
+ }
+
+ @Test
+ public void testV2BillingCadencesSpendModifierRuleGet2Services() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/cadences/cadence_id_123/spend_modifier_rules/id_123",
+ null,
+ null,
+ com.stripe.model.v2.billing.CadenceSpendModifier.class,
+ "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence_spend_modifier\",\"type\":\"max_billing_period_spend\",\"livemode\":true}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.model.v2.billing.CadenceSpendModifier cadenceSpendModifier =
+ client.v2().billing().cadences().spendModifierRules().retrieve("cadence_id_123", "id_123");
+ assertNotNull(cadenceSpendModifier);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/cadences/cadence_id_123/spend_modifier_rules/id_123",
+ null,
+ null);
+ }
+
@Test
public void testV2BillingCollectionSettingGetServices() throws StripeException {
stubRequest(
@@ -25040,6 +25092,13 @@ public void testV2BillingIntentPostServices() throws StripeException {
.setType(com.stripe.param.v2.billing.IntentCreateParams.Action.Type.APPLY)
.setApply(
com.stripe.param.v2.billing.IntentCreateParams.Action.Apply.builder()
+ .setEffectiveAt(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .EffectiveAt.builder()
+ .setType(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .EffectiveAt.Type.CURRENT_BILLING_PERIOD_END)
+ .build())
.setType(
com.stripe.param.v2.billing.IntentCreateParams.Action.Apply.Type
.INVOICE_DISCOUNT_RULE)
@@ -25068,6 +25127,44 @@ public void testV2BillingIntentPostServices() throws StripeException {
.setPercentOff("percent_off")
.build())
.build())
+ .setSpendModifierRule(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .SpendModifierRule.builder()
+ .setAppliesTo(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .SpendModifierRule.AppliesTo.CADENCE)
+ .setType(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .SpendModifierRule.Type.MAX_BILLING_PERIOD_SPEND)
+ .setMaxBillingPeriodSpend(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .SpendModifierRule.MaxBillingPeriodSpend.builder()
+ .setAmount(
+ com.stripe.param.v2.billing.IntentCreateParams
+ .Action.Apply.SpendModifierRule
+ .MaxBillingPeriodSpend.Amount.builder()
+ .setType(
+ com.stripe.param.v2.billing
+ .IntentCreateParams.Action.Apply
+ .SpendModifierRule.MaxBillingPeriodSpend
+ .Amount.Type.CUSTOM_PRICING_UNIT)
+ .setCustomPricingUnit(
+ com.stripe.param.v2.billing
+ .IntentCreateParams.Action.Apply
+ .SpendModifierRule.MaxBillingPeriodSpend
+ .Amount.CustomPricingUnit.builder()
+ .setValue("value")
+ .build())
+ .build())
+ .setCustomPricingUnitOverageRate(
+ com.stripe.param.v2.billing.IntentCreateParams
+ .Action.Apply.SpendModifierRule
+ .MaxBillingPeriodSpend
+ .CustomPricingUnitOverageRate.builder()
+ .setId("obj_123")
+ .build())
+ .build())
+ .build())
.build())
.setDeactivate(
com.stripe.param.v2.billing.IntentCreateParams.Action.Deactivate.builder()
@@ -25205,10 +25302,18 @@ public void testV2BillingIntentPostServices() throws StripeException {
.build())
.setRemove(
com.stripe.param.v2.billing.IntentCreateParams.Action.Remove.builder()
+ .setEffectiveAt(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Remove
+ .EffectiveAt.builder()
+ .setType(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Remove
+ .EffectiveAt.Type.CURRENT_BILLING_PERIOD_END)
+ .build())
.setType(
com.stripe.param.v2.billing.IntentCreateParams.Action.Remove.Type
.INVOICE_DISCOUNT_RULE)
.setInvoiceDiscountRule("invoice_discount_rule")
+ .setSpendModifierRule("spend_modifier_rule")
.build())
.setSubscribe(
com.stripe.param.v2.billing.IntentCreateParams.Action.Subscribe.builder()
@@ -25980,6 +26085,111 @@ public void testV2BillingMeteredItemPost2Services() throws StripeException {
null);
}
+ @Test
+ public void testV2BillingOneTimeItemGetServices() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/one_time_items",
+ null,
+ null,
+ new TypeToken<
+ com.stripe.model.v2.StripeCollection<
+ com.stripe.model.v2.billing.OneTimeItem>>() {}.getType(),
+ "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.param.v2.billing.OneTimeItemListParams params =
+ com.stripe.param.v2.billing.OneTimeItemListParams.builder().build();
+
+ com.stripe.model.v2.StripeCollection stripeCollection =
+ client.v2().billing().oneTimeItems().list(params);
+ assertNotNull(stripeCollection);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/one_time_items",
+ params.toMap(),
+ null);
+ }
+
+ @Test
+ public void testV2BillingOneTimeItemPostServices() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ "/v2/billing/one_time_items",
+ null,
+ null,
+ com.stripe.model.v2.billing.OneTimeItem.class,
+ "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.param.v2.billing.OneTimeItemCreateParams params =
+ com.stripe.param.v2.billing.OneTimeItemCreateParams.builder()
+ .setDisplayName("display_name")
+ .build();
+
+ com.stripe.model.v2.billing.OneTimeItem oneTimeItem =
+ client.v2().billing().oneTimeItems().create(params);
+ assertNotNull(oneTimeItem);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ "/v2/billing/one_time_items",
+ params.toMap(),
+ null);
+ }
+
+ @Test
+ public void testV2BillingOneTimeItemGet2Services() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/one_time_items/id_123",
+ null,
+ null,
+ com.stripe.model.v2.billing.OneTimeItem.class,
+ "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.model.v2.billing.OneTimeItem oneTimeItem =
+ client.v2().billing().oneTimeItems().retrieve("id_123");
+ assertNotNull(oneTimeItem);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/one_time_items/id_123",
+ null,
+ null);
+ }
+
+ @Test
+ public void testV2BillingOneTimeItemPost2Services() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ "/v2/billing/one_time_items/id_123",
+ null,
+ null,
+ com.stripe.model.v2.billing.OneTimeItem.class,
+ "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.param.v2.billing.OneTimeItemUpdateParams params =
+ com.stripe.param.v2.billing.OneTimeItemUpdateParams.builder().build();
+
+ com.stripe.model.v2.billing.OneTimeItem oneTimeItem =
+ client.v2().billing().oneTimeItems().update("id_123", params);
+ assertNotNull(oneTimeItem);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ "/v2/billing/one_time_items/id_123",
+ params.toMap(),
+ null);
+ }
+
@Test
public void testV2BillingPricingPlanGetServices() throws StripeException {
stubRequest(
@@ -26584,6 +26794,139 @@ public void testV2BillingRateCardPost2Services() throws StripeException {
null);
}
+ @Test
+ public void testV2BillingRateCardsCustomPricingUnitOverageRateGetServices()
+ throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates",
+ null,
+ null,
+ new TypeToken<
+ com.stripe.model.v2.StripeCollection<
+ com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate>>() {}.getType(),
+ "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"one_time_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.param.v2.billing.ratecards.CustomPricingUnitOverageRateListParams params =
+ com.stripe.param.v2.billing.ratecards.CustomPricingUnitOverageRateListParams.builder()
+ .build();
+
+ com.stripe.model.v2.StripeCollection<
+ com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate>
+ stripeCollection =
+ client
+ .v2()
+ .billing()
+ .rateCards()
+ .customPricingUnitOverageRates()
+ .list("rate_card_id_123", params);
+ assertNotNull(stripeCollection);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates",
+ params.toMap(),
+ null);
+ }
+
+ @Test
+ public void testV2BillingRateCardsCustomPricingUnitOverageRatePostServices()
+ throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates",
+ null,
+ null,
+ com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate.class,
+ "{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"one_time_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\",\"livemode\":true}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.param.v2.billing.ratecards.CustomPricingUnitOverageRateCreateParams params =
+ com.stripe.param.v2.billing.ratecards.CustomPricingUnitOverageRateCreateParams.builder()
+ .setCustomPricingUnit("custom_pricing_unit")
+ .setOneTimeItem("one_time_item")
+ .setUnitAmount("unit_amount")
+ .build();
+
+ com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate
+ rateCardCustomPricingUnitOverageRate =
+ client
+ .v2()
+ .billing()
+ .rateCards()
+ .customPricingUnitOverageRates()
+ .create("rate_card_id_123", params);
+ assertNotNull(rateCardCustomPricingUnitOverageRate);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates",
+ params.toMap(),
+ null);
+ }
+
+ @Test
+ public void testV2BillingRateCardsCustomPricingUnitOverageRateDeleteServices()
+ throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.DELETE,
+ "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates/id_123",
+ null,
+ null,
+ com.stripe.model.v2.DeletedObject.class,
+ "{\"id\":\"abc_123\",\"object\":\"some.object.tag\"}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.model.v2.DeletedObject deletedObject =
+ client
+ .v2()
+ .billing()
+ .rateCards()
+ .customPricingUnitOverageRates()
+ .delete("rate_card_id_123", "id_123");
+ assertNotNull(deletedObject);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.DELETE,
+ "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates/id_123",
+ null,
+ null);
+ }
+
+ @Test
+ public void testV2BillingRateCardsCustomPricingUnitOverageRateGet2Services()
+ throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates/id_123",
+ null,
+ null,
+ com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate.class,
+ "{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"one_time_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\",\"livemode\":true}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate
+ rateCardCustomPricingUnitOverageRate =
+ client
+ .v2()
+ .billing()
+ .rateCards()
+ .customPricingUnitOverageRates()
+ .retrieve("rate_card_id_123", "id_123");
+ assertNotNull(rateCardCustomPricingUnitOverageRate);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates/id_123",
+ null,
+ null);
+ }
+
@Test
public void testV2BillingRateCardsRateGetServices() throws StripeException {
stubRequest(
@@ -28205,7 +28548,7 @@ public void testV2MoneyManagementAdjustmentGetServices() throws StripeException
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.Adjustment>>() {}.getType(),
- "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.AdjustmentListParams params =
@@ -28231,7 +28574,7 @@ public void testV2MoneyManagementAdjustmentGet2Services() throws StripeException
null,
null,
com.stripe.model.v2.moneymanagement.Adjustment.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.Adjustment adjustment =
@@ -28256,7 +28599,7 @@ public void testV2MoneyManagementCurrencyConversionGetServices() throws StripeEx
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.CurrencyConversion>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{}}}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.CurrencyConversionListParams params =
@@ -28282,7 +28625,7 @@ public void testV2MoneyManagementCurrencyConversionPostServices() throws StripeE
null,
null,
com.stripe.model.v2.moneymanagement.CurrencyConversion.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{}}}");
+ "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams params =
@@ -28330,7 +28673,7 @@ public void testV2MoneyManagementCurrencyConversionGet2Services() throws StripeE
null,
null,
com.stripe.model.v2.moneymanagement.CurrencyConversion.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{}}}");
+ "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.CurrencyConversion currencyConversion =
@@ -28355,7 +28698,7 @@ public void testV2MoneyManagementFinancialAccountGetServices() throws StripeExce
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.FinancialAccount>>() {}.getType(),
- "{\"data\":[{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAccountListParams params =
@@ -28381,7 +28724,7 @@ public void testV2MoneyManagementFinancialAccountPostServices() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAccount.class,
- "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
+ "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAccountCreateParams params =
@@ -28409,7 +28752,7 @@ public void testV2MoneyManagementFinancialAccountGet2Services() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAccount.class,
- "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
+ "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.FinancialAccount financialAccount =
@@ -28432,7 +28775,7 @@ public void testV2MoneyManagementFinancialAccountPost2Services() throws StripeEx
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAccount.class,
- "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
+ "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAccountUpdateParams params =
@@ -28458,7 +28801,7 @@ public void testV2MoneyManagementFinancialAccountPost3Services() throws StripeEx
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAccount.class,
- "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
+ "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAccountCloseParams params =
@@ -28571,7 +28914,7 @@ public void testV2MoneyManagementInboundTransferGetServices() throws StripeExcep
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.InboundTransfer>>() {}.getType(),
- "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.InboundTransferListParams params =
@@ -28597,7 +28940,7 @@ public void testV2MoneyManagementInboundTransferPostServices() throws StripeExce
null,
null,
com.stripe.model.v2.moneymanagement.InboundTransfer.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.InboundTransferCreateParams params =
@@ -28639,7 +28982,7 @@ public void testV2MoneyManagementInboundTransferGet2Services() throws StripeExce
null,
null,
com.stripe.model.v2.moneymanagement.InboundTransfer.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.InboundTransfer inboundTransfer =
@@ -28664,7 +29007,7 @@ public void testV2MoneyManagementOutboundPaymentGetServices() throws StripeExcep
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.OutboundPayment>>() {}.getType(),
- "{\"data\":[{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundPaymentListParams params =
@@ -28690,7 +29033,7 @@ public void testV2MoneyManagementOutboundPaymentPostServices() throws StripeExce
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPayment.class,
- "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams params =
@@ -28733,7 +29076,7 @@ public void testV2MoneyManagementOutboundPaymentGet2Services() throws StripeExce
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPayment.class,
- "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundPayment outboundPayment =
@@ -28756,7 +29099,7 @@ public void testV2MoneyManagementOutboundPaymentPost2Services() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPayment.class,
- "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundPayment outboundPayment =
@@ -28779,7 +29122,7 @@ public void testV2MoneyManagementOutboundPaymentQuotePostServices() throws Strip
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPaymentQuote.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundPaymentQuoteCreateParams params =
@@ -28823,7 +29166,7 @@ public void testV2MoneyManagementOutboundPaymentQuoteGetServices() throws Stripe
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPaymentQuote.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundPaymentQuote outboundPaymentQuote =
@@ -28974,7 +29317,7 @@ public void testV2MoneyManagementOutboundTransferGetServices() throws StripeExce
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.OutboundTransfer>>() {}.getType(),
- "{\"data\":[{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundTransferListParams params =
@@ -29000,7 +29343,7 @@ public void testV2MoneyManagementOutboundTransferPostServices() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.OutboundTransfer.class,
- "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundTransferCreateParams params =
@@ -29042,7 +29385,7 @@ public void testV2MoneyManagementOutboundTransferGet2Services() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.OutboundTransfer.class,
- "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundTransfer outboundTransfer =
@@ -29065,7 +29408,7 @@ public void testV2MoneyManagementOutboundTransferPost2Services() throws StripeEx
null,
null,
com.stripe.model.v2.moneymanagement.OutboundTransfer.class,
- "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundTransfer outboundTransfer =
@@ -29215,7 +29558,7 @@ public void testV2MoneyManagementReceivedCreditGetServices() throws StripeExcept
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.ReceivedCredit>>() {}.getType(),
- "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.ReceivedCreditListParams params =
@@ -29241,7 +29584,7 @@ public void testV2MoneyManagementReceivedCreditGet2Services() throws StripeExcep
null,
null,
com.stripe.model.v2.moneymanagement.ReceivedCredit.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.ReceivedCredit receivedCredit =
@@ -29266,7 +29609,7 @@ public void testV2MoneyManagementReceivedDebitGetServices() throws StripeExcepti
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.ReceivedDebit>>() {}.getType(),
- "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.ReceivedDebitListParams params =
@@ -29292,7 +29635,7 @@ public void testV2MoneyManagementReceivedDebitGet2Services() throws StripeExcept
null,
null,
com.stripe.model.v2.moneymanagement.ReceivedDebit.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.ReceivedDebit receivedDebit =
@@ -29391,7 +29734,7 @@ public void testV2MoneyManagementTransactionGetServices() throws StripeException
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.Transaction>>() {}.getType(),
- "{\"data\":[{\"amount\":{},\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"category\":\"issuing_dispute_provisional_credit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"issuing_dispute_provisional_credit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.TransactionListParams params =
@@ -29417,7 +29760,7 @@ public void testV2MoneyManagementTransactionGet2Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.moneymanagement.Transaction.class,
- "{\"amount\":{},\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"category\":\"issuing_dispute_provisional_credit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"issuing_dispute_provisional_credit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.Transaction transaction =
@@ -29442,7 +29785,7 @@ public void testV2MoneyManagementTransactionEntryGetServices() throws StripeExce
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.TransactionEntry>>() {}.getType(),
- "{\"data\":[{\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"issuing_dispute_provisional_credit_reversal\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"}},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"issuing_dispute_provisional_credit_reversal\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"}},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.TransactionEntryListParams params =
@@ -29468,7 +29811,7 @@ public void testV2MoneyManagementTransactionEntryGet2Services() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.TransactionEntry.class,
- "{\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"issuing_dispute_provisional_credit_reversal\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"}},\"livemode\":true}");
+ "{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"issuing_dispute_provisional_credit_reversal\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"}},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.TransactionEntry transactionEntry =
@@ -29493,7 +29836,7 @@ public void testV2PaymentsOffSessionPaymentGetServices() throws StripeException
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.payments.OffSessionPayment>>() {}.getType(),
- "{\"data\":[{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.OffSessionPaymentListParams params =
@@ -29519,7 +29862,7 @@ public void testV2PaymentsOffSessionPaymentPostServices() throws StripeException
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}");
+ "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.OffSessionPaymentCreateParams params =
@@ -29556,7 +29899,7 @@ public void testV2PaymentsOffSessionPaymentGet2Services() throws StripeException
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}");
+ "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.OffSessionPayment offSessionPayment =
@@ -29579,7 +29922,7 @@ public void testV2PaymentsOffSessionPaymentPost2Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}");
+ "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.OffSessionPayment offSessionPayment =
@@ -29602,7 +29945,7 @@ public void testV2PaymentsOffSessionPaymentPost3Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}");
+ "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.OffSessionPaymentCaptureParams params =
@@ -29632,7 +29975,7 @@ public void testV2PaymentsSettlementAllocationIntentGetServices() throws StripeE
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.payments.SettlementAllocationIntent>>() {}.getType(),
- "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.SettlementAllocationIntentListParams params =
@@ -29658,7 +30001,7 @@ public void testV2PaymentsSettlementAllocationIntentPostServices() throws Stripe
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.SettlementAllocationIntentCreateParams params =
@@ -29693,7 +30036,7 @@ public void testV2PaymentsSettlementAllocationIntentGet2Services() throws Stripe
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntent settlementAllocationIntent =
@@ -29716,7 +30059,7 @@ public void testV2PaymentsSettlementAllocationIntentPost2Services() throws Strip
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.SettlementAllocationIntentUpdateParams params =
@@ -29742,7 +30085,7 @@ public void testV2PaymentsSettlementAllocationIntentPost3Services() throws Strip
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntent settlementAllocationIntent =
@@ -29765,7 +30108,7 @@ public void testV2PaymentsSettlementAllocationIntentPost4Services() throws Strip
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
+ "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntent settlementAllocationIntent =
@@ -29790,7 +30133,7 @@ public void testV2PaymentsSettlementAllocationIntentsSplitGetServices() throws S
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.payments.SettlementAllocationIntentSplit>>() {}.getType(),
- "{\"data\":[{\"account\":\"account\",\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.settlementallocationintents.SplitListParams params =
@@ -29823,7 +30166,7 @@ public void testV2PaymentsSettlementAllocationIntentsSplitPostServices() throws
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntentSplit.class,
- "{\"account\":\"account\",\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}");
+ "{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.settlementallocationintents.SplitCreateParams params =
@@ -29865,7 +30208,7 @@ public void testV2PaymentsSettlementAllocationIntentsSplitGet2Services() throws
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntentSplit.class,
- "{\"account\":\"account\",\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}");
+ "{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit =
@@ -29893,7 +30236,7 @@ public void testV2PaymentsSettlementAllocationIntentsSplitPost2Services() throws
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntentSplit.class,
- "{\"account\":\"account\",\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}");
+ "{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit =
@@ -30191,7 +30534,7 @@ public void testV2TestHelpersFinancialAddressPost2Services() throws StripeExcept
null,
null,
com.stripe.model.v2.FinancialAddressGeneratedMicrodeposits.class,
- "{\"amounts\":[{}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}");
+ "{\"amounts\":[{\"value\":111972721,\"currency\":\"usd\"}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.FinancialAddressGeneratedMicrodeposits
@@ -30467,6 +30810,8 @@ public void testInsufficientFundsErrorServices() throws StripeException {
com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.builder()
.setAmount(
com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.Amount.builder()
+ .setValue(111972721L)
+ .setCurrency("usd")
.build())
.setFrom(
com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.From.builder()
@@ -30680,6 +31025,8 @@ public void testRecipientNotNotifiableErrorServices() throws StripeException {
com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.builder()
.setAmount(
com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.Amount.builder()
+ .setValue(111972721L)
+ .setCurrency("usd")
.build())
.setFrom(
com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams.From.builder()