lodgingData;
+ @SerializedName("money_services")
+ MoneyServices moneyServices;
+
/**
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
* rates.
@@ -4758,6 +4761,221 @@ public static class InnerTax extends StripeObject {
}
}
+ /**
+ * For more details about MoneyServices, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MoneyServices extends StripeObject {
+ @SerializedName("account_funding")
+ AccountFunding accountFunding;
+
+ /**
+ * The type of money services transaction.
+ *
+ * Equal to {@code account_funding}.
+ */
+ @SerializedName("transaction_type")
+ String transactionType;
+
+ /**
+ * For more details about AccountFunding, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AccountFunding extends StripeObject {
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ @SerializedName("beneficiary_account")
+ String beneficiaryAccount;
+
+ @SerializedName("beneficiary_details")
+ BeneficiaryDetails beneficiaryDetails;
+
+ /** ID of the Account representing the sender in this account funding transaction. */
+ @SerializedName("sender_account")
+ String senderAccount;
+
+ @SerializedName("sender_details")
+ SenderDetails senderDetails;
+
+ /**
+ * For more details about BeneficiaryDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BeneficiaryDetails extends StripeObject {
+ @SerializedName("address")
+ com.stripe.model.PaymentIntent.PaymentDetails.MoneyServices.AccountFunding
+ .BeneficiaryDetails.Address
+ address;
+
+ @SerializedName("date_of_birth")
+ DateOfBirth dateOfBirth;
+
+ /** Email address. */
+ @SerializedName("email")
+ String email;
+
+ /** Full name. */
+ @SerializedName("name")
+ String name;
+
+ /** Phone number. */
+ @SerializedName("phone")
+ String phone;
+
+ /**
+ * For more details about Address, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address extends StripeObject {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
+ /** Address line 1 (e.g., street, PO Box, or company name). */
+ @SerializedName("line1")
+ String line1;
+
+ /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ @SerializedName("line2")
+ String line2;
+
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /** State, county, province, or region. */
+ @SerializedName("state")
+ String state;
+ }
+
+ /**
+ * For more details about DateOfBirth, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DateOfBirth extends StripeObject {
+ /** Day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
+
+ /** Month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
+
+ /** Four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
+ }
+ }
+
+ /**
+ * For more details about SenderDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SenderDetails extends StripeObject {
+ @SerializedName("address")
+ com.stripe.model.PaymentIntent.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .Address
+ address;
+
+ @SerializedName("date_of_birth")
+ DateOfBirth dateOfBirth;
+
+ /** Email address. */
+ @SerializedName("email")
+ String email;
+
+ /** Full name. */
+ @SerializedName("name")
+ String name;
+
+ /** Phone number. */
+ @SerializedName("phone")
+ String phone;
+
+ /**
+ * For more details about Address, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address extends StripeObject {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
+ /** Address line 1 (e.g., street, PO Box, or company name). */
+ @SerializedName("line1")
+ String line1;
+
+ /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ @SerializedName("line2")
+ String line2;
+
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /** State, county, province, or region. */
+ @SerializedName("state")
+ String state;
+ }
+
+ /**
+ * For more details about DateOfBirth, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DateOfBirth extends StripeObject {
+ /** Day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
+
+ /** Month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
+
+ /** Four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
+ }
+ }
+ }
+ }
+
/**
* For more details about Subscription, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java
index f7a545be3ba..d72b1013794 100644
--- a/src/main/java/com/stripe/model/PaymentLink.java
+++ b/src/main/java/com/stripe/model/PaymentLink.java
@@ -72,6 +72,9 @@ public class PaymentLink extends ApiResource implements HasId, MetadataStoreAPI Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AutomaticSurcharge extends StripeObject {
+ /**
+ * Determines which amount serves as the basis for calculating the surcharge.
+ *
+ * One of {@code total_after_tax}, or {@code total_before_tax}.
+ */
+ @SerializedName("calculation_basis")
+ String calculationBasis;
+
+ /** Indicates whether automatic surcharge is enabled for the payment link. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /**
+ * The surcharge provider used for this payment link.
+ *
+ *
One of {@code interpayments}, or {@code yeeld}.
+ */
+ @SerializedName("provider")
+ String provider;
+
+ /**
+ * Specifies whether the surcharge is considered inclusive or exclusive of taxes.
+ *
+ *
One of {@code exclusive}, {@code inclusive}, or {@code unspecified}.
+ */
+ @SerializedName("tax_behavior")
+ String taxBehavior;
+ }
+
/**
* For more details about AutomaticTax, please refer to the API Reference.
@@ -1513,6 +1553,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(afterCompletion, responseGetter);
trySetResponseGetter(application, responseGetter);
+ trySetResponseGetter(automaticSurcharge, responseGetter);
trySetResponseGetter(automaticTax, responseGetter);
trySetResponseGetter(consentCollection, responseGetter);
trySetResponseGetter(customText, responseGetter);
diff --git a/src/main/java/com/stripe/model/Plan.java b/src/main/java/com/stripe/model/Plan.java
index 3cde57b3a36..3276b347c69 100644
--- a/src/main/java/com/stripe/model/Plan.java
+++ b/src/main/java/com/stripe/model/Plan.java
@@ -89,13 +89,6 @@ public class Plan extends ApiResource implements HasId, MetadataStore {
@SerializedName("deleted")
Boolean deleted;
- /**
- * A custom identifier for this price, such as a SKU number or product code, that can be used to
- * reference records from external systems.
- */
- @SerializedName("external_reference")
- String externalReference;
-
/** Unique identifier for the object. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java
index 0b5e5b5afe2..e984be9d629 100644
--- a/src/main/java/com/stripe/model/checkout/Session.java
+++ b/src/main/java/com/stripe/model/checkout/Session.java
@@ -97,6 +97,9 @@ public class Session extends ApiResource implements HasId, MetadataStoreAPI Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AutomaticSurcharge extends StripeObject {
+ /**
+ * Determines which amount serves as the basis for calculating the surcharge.
+ *
+ * One of {@code total_after_tax}, or {@code total_before_tax}.
+ */
+ @SerializedName("calculation_basis")
+ String calculationBasis;
+
+ /** Indicates whether automatic surcharge is enabled for the session. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /**
+ * The surcharge provider used for this session.
+ *
+ *
One of {@code interpayments}, or {@code yeeld}.
+ */
+ @SerializedName("provider")
+ String provider;
+
+ /**
+ * The status of the most recent surcharge calculation for this session.
+ *
+ *
One of {@code complete}, {@code failed}, or {@code requires_input}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Specifies whether the surcharge is considered inclusive or exclusive of taxes.
+ *
+ *
One of {@code exclusive}, {@code inclusive}, or {@code unspecified}.
+ */
+ @SerializedName("tax_behavior")
+ String taxBehavior;
+ }
+
/**
* For more details about AutomaticTax, please refer to the API Reference.
@@ -2554,6 +2605,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("billie")
Billie billie;
+ @SerializedName("bizum")
+ Bizum bizum;
+
@SerializedName("boleto")
Boleto boleto;
@@ -3081,6 +3135,27 @@ public static class Billie extends StripeObject {
String captureMethod;
}
+ /**
+ * For more details about Bizum, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Bizum extends StripeObject {
+ @SerializedName("mandate_options")
+ MandateOptions mandateOptions;
+
+ /**
+ * For more details about MandateOptions, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MandateOptions extends StripeObject {}
+ }
+
/**
* For more details about Boleto, please refer to the API
* Reference.
@@ -5008,6 +5083,27 @@ public void setShippingRateObject(ShippingRate expandableObject) {
}
}
+ /**
+ * For more details about SurchargeCost, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SurchargeCost extends StripeObject {
+ /** Total surcharge cost before taxes are applied. */
+ @SerializedName("amount_subtotal")
+ Long amountSubtotal;
+
+ /** Total tax amount applied due to surcharging. If no tax was applied, defaults to 0. */
+ @SerializedName("amount_tax")
+ Long amountTax;
+
+ /** Total surcharge cost after taxes are applied. */
+ @SerializedName("amount_total")
+ Long amountTotal;
+ }
+
/**
* For more details about TaxIdCollection, please refer to the API Reference.
@@ -5045,6 +5141,10 @@ public static class TotalDetails extends StripeObject {
@SerializedName("amount_shipping")
Long amountShipping;
+ /** The surcharge amount that was applied to the Checkout Session. */
+ @SerializedName("amount_surcharge")
+ Long amountSurcharge;
+
/** This is the sum of all the tax amounts. */
@SerializedName("amount_tax")
Long amountTax;
@@ -5172,6 +5272,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(adaptivePricing, responseGetter);
trySetResponseGetter(afterExpiration, responseGetter);
+ trySetResponseGetter(automaticSurcharge, responseGetter);
trySetResponseGetter(automaticTax, responseGetter);
trySetResponseGetter(brandingSettings, responseGetter);
trySetResponseGetter(collectedInformation, responseGetter);
@@ -5199,6 +5300,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(shippingAddressCollection, responseGetter);
trySetResponseGetter(shippingCost, responseGetter);
trySetResponseGetter(subscription, responseGetter);
+ trySetResponseGetter(surchargeCost, responseGetter);
trySetResponseGetter(taxIdCollection, responseGetter);
trySetResponseGetter(totalDetails, responseGetter);
trySetResponseGetter(walletOptions, responseGetter);
diff --git a/src/main/java/com/stripe/model/identity/VerificationReport.java b/src/main/java/com/stripe/model/identity/VerificationReport.java
index d1fba1ff96a..a7fa9c61588 100644
--- a/src/main/java/com/stripe/model/identity/VerificationReport.java
+++ b/src/main/java/com/stripe/model/identity/VerificationReport.java
@@ -15,6 +15,7 @@
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.identity.VerificationReportListParams;
import com.stripe.param.identity.VerificationReportRetrieveParams;
+import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import lombok.EqualsAndHashCode;
@@ -98,7 +99,7 @@ public class VerificationReport extends ApiResource implements HasId {
/**
* Type of report.
*
- *
One of {@code document}, {@code id_number}, or {@code verification_flow}.
+ *
One of {@code document}, {@code email}, {@code id_number}, or {@code verification_flow}.
*/
@SerializedName("type")
String type;
@@ -378,6 +379,10 @@ public static class IssuedDate extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Email extends StripeObject {
+ /** Additional email verification details. */
+ @SerializedName("details")
+ Details details;
+
/** Email to be verified. */
@SerializedName("email")
String email;
@@ -394,6 +399,30 @@ public static class Email extends StripeObject {
@SerializedName("status")
String status;
+ /** Additional email verification details. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Details extends StripeObject {
+ /**
+ * Number of days from the time when the email domain was first observed to the time of
+ * verification.
+ */
+ @SerializedName("days_since_domain_creation")
+ BigDecimal daysSinceDomainCreation;
+
+ /**
+ * Number of days from the time when the email address was first observed to the time of
+ * verification.
+ */
+ @SerializedName("days_since_ownership_started")
+ BigDecimal daysSinceOwnershipStarted;
+
+ /** Two-letter ISO 3166-1 alpha-2 country code of the email domain's country. */
+ @SerializedName("domain_country")
+ String domainCountry;
+ }
+
/**
* For more details about Errors, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/identity/VerificationSession.java b/src/main/java/com/stripe/model/identity/VerificationSession.java
index 78e04f1cb34..d0ea97af9a7 100644
--- a/src/main/java/com/stripe/model/identity/VerificationSession.java
+++ b/src/main/java/com/stripe/model/identity/VerificationSession.java
@@ -154,7 +154,7 @@ public class VerificationSession extends ApiResource
* The type of verification
* check to be performed.
*
- *
One of {@code document}, {@code id_number}, or {@code verification_flow}.
+ *
One of {@code document}, {@code email}, {@code id_number}, or {@code verification_flow}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java b/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java
index b74828b38dd..d727880abeb 100644
--- a/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java
+++ b/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java
@@ -2079,23 +2079,23 @@ public static class RiskDetails extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Insights extends StripeObject {
- /** Bot risk insight (score: Float, recommended_action). */
+ /** Bot risk insight. */
@SerializedName("bot")
Bot bot;
- /** Card issuer decline risk insight (score: Float, recommended_action). */
+ /** Card issuer decline risk insight. */
@SerializedName("card_issuer_decline")
CardIssuerDecline cardIssuerDecline;
- /** Card testing risk insight (score: Float, recommended_action). */
+ /** Card testing risk insight. */
@SerializedName("card_testing")
CardTesting cardTesting;
- /** Fraudulent dispute risk insight (score: Integer, recommended_action). */
+ /** Fraudulent dispute risk insight. */
@SerializedName("fraudulent_dispute")
FraudulentDispute fraudulentDispute;
- /** Stolen card risk insight (score: Integer, recommended_action). */
+ /** Stolen card risk insight. */
@SerializedName("stolen_card")
StolenCard stolenCard;
@@ -2108,7 +2108,7 @@ public static class Bot extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (float). */
+ /** Risk score for this insight. */
@SerializedName("score")
BigDecimal score;
}
@@ -2122,7 +2122,7 @@ public static class CardIssuerDecline extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (float). */
+ /** Risk score for this insight. */
@SerializedName("score")
BigDecimal score;
}
@@ -2136,7 +2136,7 @@ public static class CardTesting extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (float). */
+ /** Risk score for this insight. */
@SerializedName("score")
BigDecimal score;
}
@@ -2150,7 +2150,7 @@ public static class FraudulentDispute extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (integer). */
+ /** Risk score for this insight. */
@SerializedName("score")
Long score;
}
@@ -2164,7 +2164,7 @@ public static class StolenCard extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (integer). */
+ /** Risk score for this insight. */
@SerializedName("score")
Long score;
}
diff --git a/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java b/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java
index 3cc785ce2b7..45f3856b5f2 100644
--- a/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java
+++ b/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java
@@ -53,6 +53,13 @@ public class IssuedToken extends StripeObject implements HasId {
@SerializedName("livemode")
Boolean livemode;
+ /**
+ * If present, describes the action required to make this {@code SharedPaymentIssuedToken} usable
+ * for payments. Present when the token is in {@code requires_action} state.
+ */
+ @SerializedName("next_action")
+ NextAction nextAction;
+
/**
* String representing the object's type. Objects of the same type share the same value.
*
@@ -93,6 +100,13 @@ public class IssuedToken extends StripeObject implements HasId {
@SerializedName("shared_metadata")
Map sharedMetadata;
+ /**
+ * Status of this SharedPaymentIssuedToken, one of {@code active}, {@code requires_action}, or
+ * {@code deactivated}.
+ */
+ @SerializedName("status")
+ String status;
+
/** Usage details of the SharedPaymentIssuedToken. */
@SerializedName("usage_details")
UsageDetails usageDetails;
@@ -101,6 +115,47 @@ public class IssuedToken extends StripeObject implements HasId {
@SerializedName("usage_limits")
UsageLimits usageLimits;
+ /**
+ * For more details about NextAction, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class NextAction extends StripeObject {
+ /**
+ * Specifies the type of next action required. Determines which child attribute contains action
+ * details.
+ *
+ * Equal to {@code use_stripe_sdk}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /**
+ * Contains details for handling the next action using Stripe.js, iOS, or Android SDKs. Present
+ * when {@code next_action.type} is {@code use_stripe_sdk}.
+ */
+ @SerializedName("use_stripe_sdk")
+ UseStripeSdk useStripeSdk;
+
+ /**
+ * For more details about UseStripeSdk, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UseStripeSdk extends StripeObject {
+ /**
+ * A base64-encoded string used by Stripe.js and the iOS and Android client SDKs to handle the
+ * next action. Its content is subject to change.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
/**
* For more details about RiskDetails, please refer to the API Reference.
@@ -122,23 +177,23 @@ public static class RiskDetails extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Insights extends StripeObject {
- /** Bot risk insight (score: Float, recommended_action). */
+ /** Bot risk insight. */
@SerializedName("bot")
Bot bot;
- /** Card issuer decline risk insight (score: Float, recommended_action). */
+ /** Card issuer decline risk insight. */
@SerializedName("card_issuer_decline")
CardIssuerDecline cardIssuerDecline;
- /** Card testing risk insight (score: Float, recommended_action). */
+ /** Card testing risk insight. */
@SerializedName("card_testing")
CardTesting cardTesting;
- /** Fraudulent dispute risk insight (score: Integer, recommended_action). */
+ /** Fraudulent dispute risk insight. */
@SerializedName("fraudulent_dispute")
FraudulentDispute fraudulentDispute;
- /** Stolen card risk insight (score: Integer, recommended_action). */
+ /** Stolen card risk insight. */
@SerializedName("stolen_card")
StolenCard stolenCard;
@@ -151,7 +206,7 @@ public static class Bot extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (float). */
+ /** Risk score for this insight. */
@SerializedName("score")
BigDecimal score;
}
@@ -165,7 +220,7 @@ public static class CardIssuerDecline extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (float). */
+ /** Risk score for this insight. */
@SerializedName("score")
BigDecimal score;
}
@@ -179,7 +234,7 @@ public static class CardTesting extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (float). */
+ /** Risk score for this insight. */
@SerializedName("score")
BigDecimal score;
}
@@ -193,7 +248,7 @@ public static class FraudulentDispute extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (integer). */
+ /** Risk score for this insight. */
@SerializedName("score")
Long score;
}
@@ -207,7 +262,7 @@ public static class StolenCard extends StripeObject {
@SerializedName("recommended_action")
String recommendedAction;
- /** Risk score for this insight (integer). */
+ /** Risk score for this insight. */
@SerializedName("score")
Long score;
}
@@ -235,13 +290,6 @@ public static class SellerDetails extends StripeObject {
*/
@SerializedName("network_business_profile")
String networkBusinessProfile;
-
- /**
- * The unique and logical string that identifies the seller platform that this SharedToken is
- * being created for.
- */
- @SerializedName("network_id")
- String networkId;
}
/** Some details on how the SharedPaymentGrantedToken has been used so far. */
diff --git a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
index 4651ef61132..ddd46b20a0e 100644
--- a/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
@@ -88,6 +88,8 @@ public final class EventDataClassLookup {
classLookup.put("v2.core.connection_session", com.stripe.model.v2.core.ConnectionSession.class);
classLookup.put("v2.core.event", com.stripe.model.v2.core.Event.class);
classLookup.put("v2.core.event_destination", com.stripe.model.v2.core.EventDestination.class);
+ classLookup.put("v2.core.workflow", com.stripe.model.v2.core.Workflow.class);
+ classLookup.put("v2.core.workflow_run", com.stripe.model.v2.core.WorkflowRun.class);
classLookup.put(
"v2.core.vault.gb_bank_account", com.stripe.model.v2.core.vault.GbBankAccount.class);
diff --git a/src/main/java/com/stripe/model/v2/core/Workflow.java b/src/main/java/com/stripe/model/v2/core/Workflow.java
new file mode 100644
index 00000000000..64ac9d89a72
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/core/Workflow.java
@@ -0,0 +1,113 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.core;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import java.time.Instant;
+import java.util.List;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * A Stripe Workflow is a sequence of actions, like Stripe API calls, that are taken in response to
+ * an initiating trigger. A trigger can be a Stripe API event, or a manual invocation.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class Workflow extends StripeObject implements HasId {
+ /** When the Workflow was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /** Workflow description. */
+ @SerializedName("description")
+ String description;
+
+ /** The unique ID of the Workflow. */
+ @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;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value of the
+ * object field.
+ *
+ *
Equal to {@code v2.core.workflow}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * Whether this Workflow is active, inactive, or in some other state. Only active Workflows may be
+ * invoked.
+ *
+ *
One of {@code active}, {@code archived}, {@code draft}, or {@code inactive}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /** Under what conditions will this Workflow launch. */
+ @SerializedName("triggers")
+ List triggers;
+
+ /**
+ * For more details about Trigger, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Trigger extends StripeObject {
+ /** The Workflow can be launched when Stripe emits a certain event. */
+ @SerializedName("event_trigger")
+ EventTrigger eventTrigger;
+
+ /**
+ * The Workflow can be launched through a direct call, using either the Dashboard or the Stripe
+ * API.
+ */
+ @SerializedName("manual")
+ Manual manual;
+
+ /**
+ * Which type of trigger this is.
+ *
+ * One of {@code event_trigger}, or {@code manual}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** The Workflow can be launched when Stripe emits a certain event. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class EventTrigger extends StripeObject {
+ /** The Stripe event type that will trigger this Workflow. */
+ @SerializedName("type")
+ String type;
+ }
+
+ /**
+ * The Workflow can be launched through a direct call, using either the Dashboard or the Stripe
+ * API.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Manual extends StripeObject {
+ /** An unprocessed version of the trigger's input parameter schema. */
+ @SerializedName("raw_schema")
+ String rawSchema;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/core/WorkflowRun.java b/src/main/java/com/stripe/model/v2/core/WorkflowRun.java
new file mode 100644
index 00000000000..7328e345263
--- /dev/null
+++ b/src/main/java/com/stripe/model/v2/core/WorkflowRun.java
@@ -0,0 +1,195 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.v2.core;
+
+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;
+
+/** An execution of a Workflow in response to a triggering event. */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class WorkflowRun extends StripeObject implements HasId {
+ /** When the Workflow Run was created. */
+ @SerializedName("created")
+ Instant created;
+
+ /** The unique ID of the Workflow Run. */
+ @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;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value of the
+ * object field.
+ *
+ *
Equal to {@code v2.core.workflow_run}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * The current Workflow Run execution status.
+ *
+ *
One of {@code failed}, {@code started}, or {@code succeeded}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /** Details about the Workflow Run's status transitions. */
+ @SerializedName("status_details")
+ StatusDetails statusDetails;
+
+ /** Summary information about the Workflow Run's status transitions. */
+ @SerializedName("status_transitions")
+ StatusTransitions statusTransitions;
+
+ /** A record of the trigger that launched this Workflow Run. */
+ @SerializedName("trigger")
+ Trigger trigger;
+
+ /** The Workflow this Run belongs to. */
+ @SerializedName("workflow")
+ String workflow;
+
+ /** Details about the Workflow Run's status transitions. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetails extends StripeObject {
+ /** Details about the Workflow Run's transition into the FAILED state. */
+ @SerializedName("failed")
+ Failed failed;
+
+ /** Details about the Workflow Run's transition in to the STARTED state. */
+ @SerializedName("started")
+ Started started;
+
+ /** Details about the Workflow Run's transition into the SUCCEEDED state. */
+ @SerializedName("succeeded")
+ Succeeded succeeded;
+
+ /** Details about the Workflow Run's transition into the FAILED state. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Failed extends StripeObject {
+ /**
+ * If this Workflow Run failed during the processing of an action step, the step identifier.
+ */
+ @SerializedName("action")
+ String action;
+
+ /** Category of the failure result. */
+ @SerializedName("error_code")
+ String errorCode;
+
+ /** Optional details about the failure result. */
+ @SerializedName("error_message")
+ String errorMessage;
+ }
+
+ /** Details about the Workflow Run's transition in to the STARTED state. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Started extends StripeObject {}
+
+ /** Details about the Workflow Run's transition into the SUCCEEDED state. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Succeeded extends StripeObject {
+ /** Category of the success result. */
+ @SerializedName("status_code")
+ String statusCode;
+
+ /** Optional details about the success result. */
+ @SerializedName("status_message")
+ String statusMessage;
+ }
+ }
+
+ /** Summary information about the Workflow Run's status transitions. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusTransitions extends StripeObject {
+ /** When the Workflow Run failed. */
+ @SerializedName("failed_at")
+ Instant failedAt;
+
+ /** When the Workflow Run was started. */
+ @SerializedName("started_at")
+ Instant startedAt;
+
+ /** When the Workflow Run succeeded. */
+ @SerializedName("succeeded_at")
+ Instant succeededAt;
+ }
+
+ /** A record of the trigger that launched this Workflow Run. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Trigger extends StripeObject {
+ /** The Workflow Run was launched when Stripe emitted a certain event. */
+ @SerializedName("event_trigger")
+ EventTrigger eventTrigger;
+
+ /**
+ * The Workflow Run was launched through a direct call, using either the Dashboard or the Stripe
+ * API.
+ */
+ @SerializedName("manual")
+ Manual manual;
+
+ /**
+ * Which type of trigger this is.
+ *
+ *
One of {@code event_trigger}, or {@code manual}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** The Workflow Run was launched when Stripe emitted a certain event. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class EventTrigger extends StripeObject implements HasId {
+ /** The Stripe event that triggered this Run. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** The Stripe event type triggered this Run. */
+ @SerializedName("type")
+ String type;
+ }
+
+ /**
+ * The Workflow Run was launched through a direct call, using either the Dashboard or the Stripe
+ * API.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Manual extends StripeObject {
+ /** The input parameters used when launching the Run. */
+ @SerializedName("input_parameters")
+ Map inputParameters;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/BalanceSettingsUpdateParams.java b/src/main/java/com/stripe/param/BalanceSettingsUpdateParams.java
index ac0ee91cad5..1e686d66aab 100644
--- a/src/main/java/com/stripe/param/BalanceSettingsUpdateParams.java
+++ b/src/main/java/com/stripe/param/BalanceSettingsUpdateParams.java
@@ -143,6 +143,13 @@ public static class Payments {
@SerializedName("payouts")
Payouts payouts;
+ /**
+ * A hash of settlement currencies to update. Each key is an ISO 4217 currency code, and the
+ * value is either {@code enabled} or {@code disabled}.
+ */
+ @SerializedName("settlement_currencies")
+ Map settlementCurrencies;
+
/** Settings related to the account's balance settlement timing. */
@SerializedName("settlement_timing")
SettlementTiming settlementTiming;
@@ -151,10 +158,12 @@ private Payments(
Boolean debitNegativeBalances,
Map extraParams,
Payouts payouts,
+ Map settlementCurrencies,
SettlementTiming settlementTiming) {
this.debitNegativeBalances = debitNegativeBalances;
this.extraParams = extraParams;
this.payouts = payouts;
+ this.settlementCurrencies = settlementCurrencies;
this.settlementTiming = settlementTiming;
}
@@ -169,12 +178,19 @@ public static class Builder {
private Payouts payouts;
+ private Map
+ settlementCurrencies;
+
private SettlementTiming settlementTiming;
/** Finalize and obtain parameter instance from this builder. */
public BalanceSettingsUpdateParams.Payments build() {
return new BalanceSettingsUpdateParams.Payments(
- this.debitNegativeBalances, this.extraParams, this.payouts, this.settlementTiming);
+ this.debitNegativeBalances,
+ this.extraParams,
+ this.payouts,
+ this.settlementCurrencies,
+ this.settlementTiming);
}
/**
@@ -220,6 +236,36 @@ public Builder setPayouts(BalanceSettingsUpdateParams.Payments.Payouts payouts)
return this;
}
+ /**
+ * Add a key/value pair to `settlementCurrencies` 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 BalanceSettingsUpdateParams.Payments#settlementCurrencies} for the field
+ * documentation.
+ */
+ public Builder putSettlementCurrency(
+ String key, BalanceSettingsUpdateParams.Payments.SettlementCurrency value) {
+ if (this.settlementCurrencies == null) {
+ this.settlementCurrencies = new HashMap<>();
+ }
+ this.settlementCurrencies.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `settlementCurrencies` 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 BalanceSettingsUpdateParams.Payments#settlementCurrencies} for the
+ * field documentation.
+ */
+ public Builder putAllSettlementCurrency(
+ Map map) {
+ if (this.settlementCurrencies == null) {
+ this.settlementCurrencies = new HashMap<>();
+ }
+ this.settlementCurrencies.putAll(map);
+ return this;
+ }
+
/** Settings related to the account's balance settlement timing. */
public Builder setSettlementTiming(
BalanceSettingsUpdateParams.Payments.SettlementTiming settlementTiming) {
@@ -746,5 +792,20 @@ public Builder putAllExtraParam(Map map) {
}
}
}
+
+ public enum SettlementCurrency implements ApiRequestParams.EnumParam {
+ @SerializedName("disabled")
+ DISABLED("disabled"),
+
+ @SerializedName("enabled")
+ ENABLED("enabled");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SettlementCurrency(String value) {
+ this.value = value;
+ }
+ }
}
}
diff --git a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
index 06ffbbb9254..b545395ccd1 100644
--- a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
+++ b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
@@ -596,6 +596,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -718,6 +722,7 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
@@ -782,6 +787,7 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
@@ -907,6 +913,8 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
@@ -984,6 +992,7 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
@@ -1543,6 +1552,12 @@ public Builder setSepaDebit(
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
diff --git a/src/main/java/com/stripe/param/PaymentAttemptRecordReportAuthorizedParams.java b/src/main/java/com/stripe/param/PaymentAttemptRecordReportAuthorizedParams.java
new file mode 100644
index 00000000000..7f6e7ac5860
--- /dev/null
+++ b/src/main/java/com/stripe/param/PaymentAttemptRecordReportAuthorizedParams.java
@@ -0,0 +1,384 @@
+// File generated from our OpenAPI spec
+package com.stripe.param;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.param.common.EmptyParam;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class PaymentAttemptRecordReportAuthorizedParams extends ApiRequestParams {
+ /** When the reported payment was authorized. Measured in seconds since the Unix epoch. */
+ @SerializedName("authorized_at")
+ Long authorizedAt;
+
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Set of key-value pairs that you can attach
+ * to an object. This can be useful for storing additional information about the object in a
+ * structured format. Individual keys can be unset by posting an empty value to them. All keys can
+ * be unset by posting an empty value to {@code metadata}.
+ */
+ @SerializedName("metadata")
+ Object metadata;
+
+ /** Processor information for this payment. */
+ @SerializedName("processor_details")
+ ProcessorDetails processorDetails;
+
+ private PaymentAttemptRecordReportAuthorizedParams(
+ Long authorizedAt,
+ List expand,
+ Map extraParams,
+ Object metadata,
+ ProcessorDetails processorDetails) {
+ this.authorizedAt = authorizedAt;
+ this.expand = expand;
+ this.extraParams = extraParams;
+ this.metadata = metadata;
+ this.processorDetails = processorDetails;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long authorizedAt;
+
+ private List expand;
+
+ private Map extraParams;
+
+ private Object metadata;
+
+ private ProcessorDetails processorDetails;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentAttemptRecordReportAuthorizedParams build() {
+ return new PaymentAttemptRecordReportAuthorizedParams(
+ this.authorizedAt, this.expand, this.extraParams, this.metadata, this.processorDetails);
+ }
+
+ /** When the reported payment was authorized. Measured in seconds since the Unix epoch. */
+ public Builder setAuthorizedAt(Long authorizedAt) {
+ this.authorizedAt = authorizedAt;
+ return this;
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * PaymentAttemptRecordReportAuthorizedParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * PaymentAttemptRecordReportAuthorizedParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * PaymentAttemptRecordReportAuthorizedParams#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 PaymentAttemptRecordReportAuthorizedParams#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
+ * PaymentAttemptRecordReportAuthorizedParams#metadata} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder putMetadata(String key, String value) {
+ if (this.metadata == null || this.metadata instanceof EmptyParam) {
+ this.metadata = new HashMap();
+ }
+ ((Map) 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 PaymentAttemptRecordReportAuthorizedParams#metadata} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder putAllMetadata(Map map) {
+ if (this.metadata == null || this.metadata instanceof EmptyParam) {
+ this.metadata = new HashMap();
+ }
+ ((Map) this.metadata).putAll(map);
+ return this;
+ }
+
+ /**
+ * Set of key-value pairs that you can attach
+ * to an object. This can be useful for storing additional information about the object in a
+ * structured format. Individual keys can be unset by posting an empty value to them. All keys
+ * can be unset by posting an empty value to {@code metadata}.
+ */
+ public Builder setMetadata(EmptyParam metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Set of key-value pairs that you can attach
+ * to an object. This can be useful for storing additional information about the object in a
+ * structured format. Individual keys can be unset by posting an empty value to them. All keys
+ * can be unset by posting an empty value to {@code metadata}.
+ */
+ public Builder setMetadata(Map metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /** Processor information for this payment. */
+ public Builder setProcessorDetails(
+ PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails processorDetails) {
+ this.processorDetails = processorDetails;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ProcessorDetails {
+ /** Information about the custom processor used to make this payment. */
+ @SerializedName("custom")
+ Custom custom;
+
+ /**
+ * 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 the processor details. An additional hash is included
+ * on processor_details with a name matching this value. It contains additional information
+ * specific to the processor.
+ */
+ @SerializedName("type")
+ Type type;
+
+ private ProcessorDetails(Custom custom, Map extraParams, Type type) {
+ this.custom = custom;
+ this.extraParams = extraParams;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Custom custom;
+
+ private Map extraParams;
+
+ private Type type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails build() {
+ return new PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails(
+ this.custom, this.extraParams, this.type);
+ }
+
+ /** Information about the custom processor used to make this payment. */
+ public Builder setCustom(
+ PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails.Custom custom) {
+ this.custom = custom;
+ 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
+ * PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails#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 PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails#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 the processor details. An additional hash is
+ * included on processor_details with a name matching this value. It contains additional
+ * information specific to the processor.
+ */
+ public Builder setType(
+ PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails.Type type) {
+ this.type = type;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Custom {
+ /**
+ * 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. An opaque string for manual reconciliation of this payment, for
+ * example a check number or a payment processor ID.
+ */
+ @SerializedName("payment_reference")
+ String paymentReference;
+
+ private Custom(Map extraParams, String paymentReference) {
+ this.extraParams = extraParams;
+ this.paymentReference = paymentReference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private String paymentReference;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails.Custom build() {
+ return new PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails.Custom(
+ this.extraParams, this.paymentReference);
+ }
+
+ /**
+ * 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
+ * PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails.Custom#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
+ * PaymentAttemptRecordReportAuthorizedParams.ProcessorDetails.Custom#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. An opaque string for manual reconciliation of this payment,
+ * for example a check number or a payment processor ID.
+ */
+ public Builder setPaymentReference(String paymentReference) {
+ this.paymentReference = paymentReference;
+ return this;
+ }
+ }
+ }
+
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("custom")
+ CUSTOM("custom");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
index f31102800e6..c55bd9932a4 100644
--- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
@@ -186,10 +186,6 @@ public class PaymentIntentConfirmParams extends ApiRequestParams {
@SerializedName("setup_future_usage")
ApiRequestParams.EnumParam setupFutureUsage;
- /** ID of the SharedPaymentToken used to confirm this PaymentIntent. */
- @SerializedName("shared_payment_granted_token")
- String sharedPaymentGrantedToken;
-
/** Shipping information for this PaymentIntent. */
@SerializedName("shipping")
Object shipping;
@@ -225,7 +221,6 @@ private PaymentIntentConfirmParams(
Object receiptEmail,
String returnUrl,
ApiRequestParams.EnumParam setupFutureUsage,
- String sharedPaymentGrantedToken,
Object shipping,
Boolean useStripeSdk) {
this.allocatedFunds = allocatedFunds;
@@ -251,7 +246,6 @@ private PaymentIntentConfirmParams(
this.receiptEmail = receiptEmail;
this.returnUrl = returnUrl;
this.setupFutureUsage = setupFutureUsage;
- this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shipping = shipping;
this.useStripeSdk = useStripeSdk;
}
@@ -307,8 +301,6 @@ public static class Builder {
private ApiRequestParams.EnumParam setupFutureUsage;
- private String sharedPaymentGrantedToken;
-
private Object shipping;
private Boolean useStripeSdk;
@@ -339,7 +331,6 @@ public PaymentIntentConfirmParams build() {
this.receiptEmail,
this.returnUrl,
this.setupFutureUsage,
- this.sharedPaymentGrantedToken,
this.shipping,
this.useStripeSdk);
}
@@ -737,12 +728,6 @@ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) {
return this;
}
- /** ID of the SharedPaymentToken used to confirm this PaymentIntent. */
- public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
- this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
- return this;
- }
-
/** Shipping information for this PaymentIntent. */
public Builder setShipping(PaymentIntentConfirmParams.Shipping shipping) {
this.shipping = shipping;
@@ -16566,6 +16551,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -16688,6 +16677,7 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
@@ -16752,6 +16742,7 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
@@ -16877,6 +16868,8 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
@@ -16954,6 +16947,7 @@ public PaymentIntentConfirmParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
@@ -17509,6 +17503,12 @@ public Builder setSepaDebit(
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
index 8ed15015aed..4cf8fa40f03 100644
--- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
@@ -322,10 +322,6 @@ public class PaymentIntentCreateParams extends ApiRequestParams {
@SerializedName("setup_future_usage")
SetupFutureUsage setupFutureUsage;
- /** ID of the SharedPaymentToken used to confirm this PaymentIntent. */
- @SerializedName("shared_payment_granted_token")
- String sharedPaymentGrantedToken;
-
/** Shipping information for this PaymentIntent. */
@SerializedName("shipping")
Shipping shipping;
@@ -412,7 +408,6 @@ private PaymentIntentCreateParams(
String returnUrl,
SecretKeyConfirmation secretKeyConfirmation,
SetupFutureUsage setupFutureUsage,
- String sharedPaymentGrantedToken,
Shipping shipping,
String statementDescriptor,
String statementDescriptorSuffix,
@@ -455,7 +450,6 @@ private PaymentIntentCreateParams(
this.returnUrl = returnUrl;
this.secretKeyConfirmation = secretKeyConfirmation;
this.setupFutureUsage = setupFutureUsage;
- this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shipping = shipping;
this.statementDescriptor = statementDescriptor;
this.statementDescriptorSuffix = statementDescriptorSuffix;
@@ -541,8 +535,6 @@ public static class Builder {
private SetupFutureUsage setupFutureUsage;
- private String sharedPaymentGrantedToken;
-
private Shipping shipping;
private String statementDescriptor;
@@ -594,7 +586,6 @@ public PaymentIntentCreateParams build() {
this.returnUrl,
this.secretKeyConfirmation,
this.setupFutureUsage,
- this.sharedPaymentGrantedToken,
this.shipping,
this.statementDescriptor,
this.statementDescriptorSuffix,
@@ -1104,12 +1095,6 @@ public Builder setSetupFutureUsage(
return this;
}
- /** ID of the SharedPaymentToken used to confirm this PaymentIntent. */
- public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
- this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
- return this;
- }
-
/** Shipping information for this PaymentIntent. */
public Builder setShipping(PaymentIntentCreateParams.Shipping shipping) {
this.shipping = shipping;
@@ -17080,6 +17065,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -17202,6 +17191,7 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
@@ -17266,6 +17256,7 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
@@ -17391,6 +17382,8 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
@@ -17468,6 +17461,7 @@ public PaymentIntentCreateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
@@ -18016,6 +18010,12 @@ public Builder setSepaDebit(PaymentIntentCreateParams.PaymentMethodData.SepaDebi
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
index 9db3869243e..7bdc9e8caad 100644
--- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
@@ -18009,6 +18009,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ Object sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -18131,6 +18135,7 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ Object sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
@@ -18195,6 +18200,7 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
@@ -18320,6 +18326,8 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private Object sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
@@ -18397,6 +18405,7 @@ public PaymentIntentUpdateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
@@ -18945,6 +18954,18 @@ public Builder setSepaDebit(PaymentIntentUpdateParams.PaymentMethodData.SepaDebi
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(EmptyParam sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java
index 5f154e047aa..5ac601037ca 100644
--- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java
@@ -40,6 +40,10 @@ public class PaymentLinkCreateParams extends ApiRequestParams {
@SerializedName("application_fee_percent")
BigDecimal applicationFeePercent;
+ /** Configuration for automatic surcharge calculation. */
+ @SerializedName("automatic_surcharge")
+ AutomaticSurcharge automaticSurcharge;
+
/** Configuration for automatic tax collection. */
@SerializedName("automatic_tax")
AutomaticTax automaticTax;
@@ -237,6 +241,7 @@ private PaymentLinkCreateParams(
Boolean allowPromotionCodes,
Long applicationFeeAmount,
BigDecimal applicationFeePercent,
+ AutomaticSurcharge automaticSurcharge,
AutomaticTax automaticTax,
BillingAddressCollection billingAddressCollection,
ConsentCollection consentCollection,
@@ -269,6 +274,7 @@ private PaymentLinkCreateParams(
this.allowPromotionCodes = allowPromotionCodes;
this.applicationFeeAmount = applicationFeeAmount;
this.applicationFeePercent = applicationFeePercent;
+ this.automaticSurcharge = automaticSurcharge;
this.automaticTax = automaticTax;
this.billingAddressCollection = billingAddressCollection;
this.consentCollection = consentCollection;
@@ -312,6 +318,8 @@ public static class Builder {
private BigDecimal applicationFeePercent;
+ private AutomaticSurcharge automaticSurcharge;
+
private AutomaticTax automaticTax;
private BillingAddressCollection billingAddressCollection;
@@ -375,6 +383,7 @@ public PaymentLinkCreateParams build() {
this.allowPromotionCodes,
this.applicationFeeAmount,
this.applicationFeePercent,
+ this.automaticSurcharge,
this.automaticTax,
this.billingAddressCollection,
this.consentCollection,
@@ -438,6 +447,13 @@ public Builder setApplicationFeePercent(BigDecimal applicationFeePercent) {
return this;
}
+ /** Configuration for automatic surcharge calculation. */
+ public Builder setAutomaticSurcharge(
+ PaymentLinkCreateParams.AutomaticSurcharge automaticSurcharge) {
+ this.automaticSurcharge = automaticSurcharge;
+ return this;
+ }
+
/** Configuration for automatic tax collection. */
public Builder setAutomaticTax(PaymentLinkCreateParams.AutomaticTax automaticTax) {
this.automaticTax = automaticTax;
@@ -1097,6 +1113,148 @@ public enum Type implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AutomaticSurcharge {
+ /** Determines which amount serves as the basis for calculating the surcharge. */
+ @SerializedName("calculation_basis")
+ CalculationBasis calculationBasis;
+
+ /**
+ * Required. Set to {@code true} to calculate surcharge automatically using the
+ * customer's card details and location.
+ */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Specifies whether the surcharge is considered inclusive or exclusive of taxes. */
+ @SerializedName("tax_behavior")
+ TaxBehavior taxBehavior;
+
+ private AutomaticSurcharge(
+ CalculationBasis calculationBasis,
+ Boolean enabled,
+ Map extraParams,
+ TaxBehavior taxBehavior) {
+ this.calculationBasis = calculationBasis;
+ this.enabled = enabled;
+ this.extraParams = extraParams;
+ this.taxBehavior = taxBehavior;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private CalculationBasis calculationBasis;
+
+ private Boolean enabled;
+
+ private Map extraParams;
+
+ private TaxBehavior taxBehavior;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentLinkCreateParams.AutomaticSurcharge build() {
+ return new PaymentLinkCreateParams.AutomaticSurcharge(
+ this.calculationBasis, this.enabled, this.extraParams, this.taxBehavior);
+ }
+
+ /** Determines which amount serves as the basis for calculating the surcharge. */
+ public Builder setCalculationBasis(
+ PaymentLinkCreateParams.AutomaticSurcharge.CalculationBasis calculationBasis) {
+ this.calculationBasis = calculationBasis;
+ return this;
+ }
+
+ /**
+ * Required. Set to {@code true} to calculate surcharge automatically using
+ * the customer's card details and location.
+ */
+ public Builder setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * PaymentLinkCreateParams.AutomaticSurcharge#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 PaymentLinkCreateParams.AutomaticSurcharge#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Specifies whether the surcharge is considered inclusive or exclusive of taxes. */
+ public Builder setTaxBehavior(
+ PaymentLinkCreateParams.AutomaticSurcharge.TaxBehavior taxBehavior) {
+ this.taxBehavior = taxBehavior;
+ return this;
+ }
+ }
+
+ public enum CalculationBasis implements ApiRequestParams.EnumParam {
+ @SerializedName("total_after_tax")
+ TOTAL_AFTER_TAX("total_after_tax"),
+
+ @SerializedName("total_before_tax")
+ TOTAL_BEFORE_TAX("total_before_tax");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ CalculationBasis(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum TaxBehavior implements ApiRequestParams.EnumParam {
+ @SerializedName("exclusive")
+ EXCLUSIVE("exclusive"),
+
+ @SerializedName("inclusive")
+ INCLUSIVE("inclusive"),
+
+ @SerializedName("unspecified")
+ UNSPECIFIED("unspecified");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ TaxBehavior(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax {
diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
index 5a0c9f6b16e..2dcee68d346 100644
--- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
@@ -1025,6 +1025,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -1147,6 +1151,7 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
@@ -1211,6 +1216,7 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
@@ -1336,6 +1342,8 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
@@ -1413,6 +1421,7 @@ public SetupIntentConfirmParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
@@ -1961,6 +1970,12 @@ public Builder setSepaDebit(SetupIntentConfirmParams.PaymentMethodData.SepaDebit
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java
index 07003baad4b..6681d7d7f3d 100644
--- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java
@@ -1563,6 +1563,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -1685,6 +1689,7 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
@@ -1749,6 +1754,7 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
@@ -1874,6 +1880,8 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
@@ -1951,6 +1959,7 @@ public SetupIntentCreateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
@@ -2498,6 +2507,12 @@ public Builder setSepaDebit(SetupIntentCreateParams.PaymentMethodData.SepaDebit
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
index b5649a6fe49..9e4e45cec66 100644
--- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
@@ -932,6 +932,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ Object sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -1054,6 +1058,7 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ Object sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
@@ -1118,6 +1123,7 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
@@ -1243,6 +1249,8 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private Object sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
@@ -1320,6 +1328,7 @@ public SetupIntentUpdateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
@@ -1867,6 +1876,18 @@ public Builder setSepaDebit(SetupIntentUpdateParams.PaymentMethodData.SepaDebit
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(EmptyParam sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
index 20e1afc4937..70fefae0b96 100644
--- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
+++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
@@ -45,6 +45,10 @@ public class SessionCreateParams extends ApiRequestParams {
@SerializedName("approval_method")
ApprovalMethod approvalMethod;
+ /** Settings for automatic surcharge calculation for this session. */
+ @SerializedName("automatic_surcharge")
+ AutomaticSurcharge automaticSurcharge;
+
/**
* Settings for automatic tax lookup for this session and resulting payments, invoices, and
* subscriptions.
@@ -469,6 +473,7 @@ private SessionCreateParams(
AfterExpiration afterExpiration,
Boolean allowPromotionCodes,
ApprovalMethod approvalMethod,
+ AutomaticSurcharge automaticSurcharge,
AutomaticTax automaticTax,
BillingAddressCollection billingAddressCollection,
BrandingSettings brandingSettings,
@@ -523,6 +528,7 @@ private SessionCreateParams(
this.afterExpiration = afterExpiration;
this.allowPromotionCodes = allowPromotionCodes;
this.approvalMethod = approvalMethod;
+ this.automaticSurcharge = automaticSurcharge;
this.automaticTax = automaticTax;
this.billingAddressCollection = billingAddressCollection;
this.brandingSettings = brandingSettings;
@@ -588,6 +594,8 @@ public static class Builder {
private ApprovalMethod approvalMethod;
+ private AutomaticSurcharge automaticSurcharge;
+
private AutomaticTax automaticTax;
private BillingAddressCollection billingAddressCollection;
@@ -695,6 +703,7 @@ public SessionCreateParams build() {
this.afterExpiration,
this.allowPromotionCodes,
this.approvalMethod,
+ this.automaticSurcharge,
this.automaticTax,
this.billingAddressCollection,
this.brandingSettings,
@@ -785,6 +794,13 @@ public Builder setApprovalMethod(SessionCreateParams.ApprovalMethod approvalMeth
return this;
}
+ /** Settings for automatic surcharge calculation for this session. */
+ public Builder setAutomaticSurcharge(
+ SessionCreateParams.AutomaticSurcharge automaticSurcharge) {
+ this.automaticSurcharge = automaticSurcharge;
+ return this;
+ }
+
/**
* Settings for automatic tax lookup for this session and resulting payments, invoices, and
* subscriptions.
@@ -1722,6 +1738,147 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AutomaticSurcharge {
+ /** Determines which amount serves as the basis for calculating the surcharge. */
+ @SerializedName("calculation_basis")
+ CalculationBasis calculationBasis;
+
+ /**
+ * Required. Set to {@code true} to calculate surcharge automatically using the
+ * customer's card details and location.
+ */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Specifies whether the surcharge is considered inclusive or exclusive of taxes. */
+ @SerializedName("tax_behavior")
+ TaxBehavior taxBehavior;
+
+ private AutomaticSurcharge(
+ CalculationBasis calculationBasis,
+ Boolean enabled,
+ Map extraParams,
+ TaxBehavior taxBehavior) {
+ this.calculationBasis = calculationBasis;
+ this.enabled = enabled;
+ this.extraParams = extraParams;
+ this.taxBehavior = taxBehavior;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private CalculationBasis calculationBasis;
+
+ private Boolean enabled;
+
+ private Map extraParams;
+
+ private TaxBehavior taxBehavior;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SessionCreateParams.AutomaticSurcharge build() {
+ return new SessionCreateParams.AutomaticSurcharge(
+ this.calculationBasis, this.enabled, this.extraParams, this.taxBehavior);
+ }
+
+ /** Determines which amount serves as the basis for calculating the surcharge. */
+ public Builder setCalculationBasis(
+ SessionCreateParams.AutomaticSurcharge.CalculationBasis calculationBasis) {
+ this.calculationBasis = calculationBasis;
+ return this;
+ }
+
+ /**
+ * Required. Set to {@code true} to calculate surcharge automatically using
+ * the customer's card details and location.
+ */
+ public Builder setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * SessionCreateParams.AutomaticSurcharge#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link SessionCreateParams.AutomaticSurcharge#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Specifies whether the surcharge is considered inclusive or exclusive of taxes. */
+ public Builder setTaxBehavior(
+ SessionCreateParams.AutomaticSurcharge.TaxBehavior taxBehavior) {
+ this.taxBehavior = taxBehavior;
+ return this;
+ }
+ }
+
+ public enum CalculationBasis implements ApiRequestParams.EnumParam {
+ @SerializedName("total_after_tax")
+ TOTAL_AFTER_TAX("total_after_tax"),
+
+ @SerializedName("total_before_tax")
+ TOTAL_BEFORE_TAX("total_before_tax");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ CalculationBasis(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum TaxBehavior implements ApiRequestParams.EnumParam {
+ @SerializedName("exclusive")
+ EXCLUSIVE("exclusive"),
+
+ @SerializedName("inclusive")
+ INCLUSIVE("inclusive"),
+
+ @SerializedName("unspecified")
+ UNSPECIFIED("unspecified");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ TaxBehavior(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax {
@@ -8403,6 +8560,10 @@ public static class PaymentMethodOptions {
@SerializedName("billie")
Billie billie;
+ /** contains details about the Bizum payment method options. */
+ @SerializedName("bizum")
+ Bizum bizum;
+
/** contains details about the Boleto payment method options. */
@SerializedName("boleto")
Boleto boleto;
@@ -8571,6 +8732,7 @@ private PaymentMethodOptions(
BacsDebit bacsDebit,
Bancontact bancontact,
Billie billie,
+ Bizum bizum,
Boleto boleto,
Card card,
Cashapp cashapp,
@@ -8619,6 +8781,7 @@ private PaymentMethodOptions(
this.bacsDebit = bacsDebit;
this.bancontact = bancontact;
this.billie = billie;
+ this.bizum = bizum;
this.boleto = boleto;
this.card = card;
this.cashapp = cashapp;
@@ -8684,6 +8847,8 @@ public static class Builder {
private Billie billie;
+ private Bizum bizum;
+
private Boleto boleto;
private Card card;
@@ -8773,6 +8938,7 @@ public SessionCreateParams.PaymentMethodOptions build() {
this.bacsDebit,
this.bancontact,
this.billie,
+ this.bizum,
this.boleto,
this.card,
this.cashapp,
@@ -8878,6 +9044,12 @@ public Builder setBillie(SessionCreateParams.PaymentMethodOptions.Billie billie)
return this;
}
+ /** contains details about the Bizum payment method options. */
+ public Builder setBizum(SessionCreateParams.PaymentMethodOptions.Bizum bizum) {
+ this.bizum = bizum;
+ return this;
+ }
+
/** contains details about the Boleto payment method options. */
public Builder setBoleto(SessionCreateParams.PaymentMethodOptions.Boleto boleto) {
this.boleto = boleto;
@@ -10899,6 +11071,141 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Bizum {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Additional fields for mandate creation. */
+ @SerializedName("mandate_options")
+ MandateOptions mandateOptions;
+
+ private Bizum(Map extraParams, MandateOptions mandateOptions) {
+ this.extraParams = extraParams;
+ this.mandateOptions = mandateOptions;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private MandateOptions mandateOptions;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SessionCreateParams.PaymentMethodOptions.Bizum build() {
+ return new SessionCreateParams.PaymentMethodOptions.Bizum(
+ this.extraParams, this.mandateOptions);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link SessionCreateParams.PaymentMethodOptions.Bizum#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link SessionCreateParams.PaymentMethodOptions.Bizum#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Additional fields for mandate creation. */
+ public Builder setMandateOptions(
+ SessionCreateParams.PaymentMethodOptions.Bizum.MandateOptions mandateOptions) {
+ this.mandateOptions = mandateOptions;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MandateOptions {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private MandateOptions(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SessionCreateParams.PaymentMethodOptions.Bizum.MandateOptions build() {
+ return new SessionCreateParams.PaymentMethodOptions.Bizum.MandateOptions(
+ this.extraParams);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * SessionCreateParams.PaymentMethodOptions.Bizum.MandateOptions#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * SessionCreateParams.PaymentMethodOptions.Bizum.MandateOptions#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Boleto {
diff --git a/src/main/java/com/stripe/param/identity/VerificationReportListParams.java b/src/main/java/com/stripe/param/identity/VerificationReportListParams.java
index 3b63f09e4ac..48ab5ec73b1 100644
--- a/src/main/java/com/stripe/param/identity/VerificationReportListParams.java
+++ b/src/main/java/com/stripe/param/identity/VerificationReportListParams.java
@@ -379,6 +379,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("document")
DOCUMENT("document"),
+ @SerializedName("email")
+ EMAIL("email"),
+
@SerializedName("id_number")
ID_NUMBER("id_number");
diff --git a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java
index 8840bb767d9..96a48a71d33 100644
--- a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java
+++ b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java
@@ -21,6 +21,10 @@ public class VerificationSessionCreateParams extends ApiRequestParams {
@SerializedName("client_reference_id")
String clientReferenceId;
+ /** Confirm and submit the provided details for verification. */
+ @SerializedName("confirm")
+ Boolean confirm;
+
/** Specifies which fields in the response should be expanded. */
@SerializedName("expand")
List expand;
@@ -84,6 +88,7 @@ public class VerificationSessionCreateParams extends ApiRequestParams {
private VerificationSessionCreateParams(
String clientReferenceId,
+ Boolean confirm,
List expand,
Map extraParams,
Map metadata,
@@ -96,6 +101,7 @@ private VerificationSessionCreateParams(
Type type,
String verificationFlow) {
this.clientReferenceId = clientReferenceId;
+ this.confirm = confirm;
this.expand = expand;
this.extraParams = extraParams;
this.metadata = metadata;
@@ -116,6 +122,8 @@ public static Builder builder() {
public static class Builder {
private String clientReferenceId;
+ private Boolean confirm;
+
private List expand;
private Map extraParams;
@@ -142,6 +150,7 @@ public static class Builder {
public VerificationSessionCreateParams build() {
return new VerificationSessionCreateParams(
this.clientReferenceId,
+ this.confirm,
this.expand,
this.extraParams,
this.metadata,
@@ -164,6 +173,12 @@ public Builder setClientReferenceId(String clientReferenceId) {
return this;
}
+ /** Confirm and submit the provided details for verification. */
+ public Builder setConfirm(Boolean confirm) {
+ this.confirm = confirm;
+ return this;
+ }
+
/**
* Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
* subsequent calls adds additional elements to the original list. See {@link
@@ -760,6 +775,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("document")
DOCUMENT("document"),
+ @SerializedName("email")
+ EMAIL("email"),
+
@SerializedName("id_number")
ID_NUMBER("id_number");
diff --git a/src/main/java/com/stripe/param/identity/VerificationSessionUpdateParams.java b/src/main/java/com/stripe/param/identity/VerificationSessionUpdateParams.java
index 7566d74d641..f636a0c496f 100644
--- a/src/main/java/com/stripe/param/identity/VerificationSessionUpdateParams.java
+++ b/src/main/java/com/stripe/param/identity/VerificationSessionUpdateParams.java
@@ -14,6 +14,10 @@
@Getter
@EqualsAndHashCode(callSuper = false)
public class VerificationSessionUpdateParams extends ApiRequestParams {
+ /** Confirm and submit the provided details for verification. */
+ @SerializedName("confirm")
+ Boolean confirm;
+
/** Specifies which fields in the response should be expanded. */
@SerializedName("expand")
List expand;
@@ -52,12 +56,14 @@ public class VerificationSessionUpdateParams extends ApiRequestParams {
Type type;
private VerificationSessionUpdateParams(
+ Boolean confirm,
List expand,
Map extraParams,
Map metadata,
Options options,
ProvidedDetails providedDetails,
Type type) {
+ this.confirm = confirm;
this.expand = expand;
this.extraParams = extraParams;
this.metadata = metadata;
@@ -71,6 +77,8 @@ public static Builder builder() {
}
public static class Builder {
+ private Boolean confirm;
+
private List expand;
private Map extraParams;
@@ -86,6 +94,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public VerificationSessionUpdateParams build() {
return new VerificationSessionUpdateParams(
+ this.confirm,
this.expand,
this.extraParams,
this.metadata,
@@ -94,6 +103,12 @@ public VerificationSessionUpdateParams build() {
this.type);
}
+ /** Confirm and submit the provided details for verification. */
+ public Builder setConfirm(Boolean confirm) {
+ this.confirm = confirm;
+ return this;
+ }
+
/**
* Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
* subsequent calls adds additional elements to the original list. See {@link
@@ -572,6 +587,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("document")
DOCUMENT("document"),
+ @SerializedName("email")
+ EMAIL("email"),
+
@SerializedName("id_number")
ID_NUMBER("id_number");
diff --git a/src/main/java/com/stripe/param/v2/core/WorkflowInvokeParams.java b/src/main/java/com/stripe/param/v2/core/WorkflowInvokeParams.java
new file mode 100644
index 00000000000..f2be64aced2
--- /dev/null
+++ b/src/main/java/com/stripe/param/v2/core/WorkflowInvokeParams.java
@@ -0,0 +1,99 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.v2.core;
+
+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 WorkflowInvokeParams 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;
+
+ /** Required. Parameters used to invoke the Workflow Run. */
+ @SerializedName("input_parameters")
+ Map inputParameters;
+
+ private WorkflowInvokeParams(
+ Map extraParams, Map inputParameters) {
+ this.extraParams = extraParams;
+ this.inputParameters = inputParameters;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Map inputParameters;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public WorkflowInvokeParams build() {
+ return new WorkflowInvokeParams(this.extraParams, this.inputParameters);
+ }
+
+ /**
+ * 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
+ * WorkflowInvokeParams#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 WorkflowInvokeParams#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 `inputParameters` 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 WorkflowInvokeParams#inputParameters} for the field documentation.
+ */
+ public Builder putInputParameter(String key, Object value) {
+ if (this.inputParameters == null) {
+ this.inputParameters = new HashMap<>();
+ }
+ this.inputParameters.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `inputParameters` 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 WorkflowInvokeParams#inputParameters} for the field documentation.
+ */
+ public Builder putAllInputParameter(Map map) {
+ if (this.inputParameters == null) {
+ this.inputParameters = new HashMap<>();
+ }
+ this.inputParameters.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/v2/core/WorkflowListParams.java b/src/main/java/com/stripe/param/v2/core/WorkflowListParams.java
new file mode 100644
index 00000000000..7942cfd5a08
--- /dev/null
+++ b/src/main/java/com/stripe/param/v2/core/WorkflowListParams.java
@@ -0,0 +1,138 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.v2.core;
+
+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 WorkflowListParams 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;
+
+ /** Restrict page size to no more than this number. */
+ @SerializedName("limit")
+ Long limit;
+
+ /**
+ * Required. When retrieving Workflows, include only those with the specified
+ * status values. If not specified, all Workflows in active and inactive status are returned.
+ */
+ @SerializedName("status")
+ List status;
+
+ private WorkflowListParams(
+ Map extraParams, Long limit, List status) {
+ this.extraParams = extraParams;
+ this.limit = limit;
+ this.status = status;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Long limit;
+
+ private List status;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public WorkflowListParams build() {
+ return new WorkflowListParams(this.extraParams, this.limit, this.status);
+ }
+
+ /**
+ * 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
+ * WorkflowListParams#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 WorkflowListParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Restrict page size to no more than this number. */
+ public Builder setLimit(Long limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ /**
+ * Add an element to `status` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * WorkflowListParams#status} for the field documentation.
+ */
+ public Builder addStatus(WorkflowListParams.Status element) {
+ if (this.status == null) {
+ this.status = new ArrayList<>();
+ }
+ this.status.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `status` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * WorkflowListParams#status} for the field documentation.
+ */
+ public Builder addAllStatus(List elements) {
+ if (this.status == null) {
+ this.status = new ArrayList<>();
+ }
+ this.status.addAll(elements);
+ return this;
+ }
+ }
+
+ public enum Status implements ApiRequestParams.EnumParam {
+ @SerializedName("active")
+ ACTIVE("active"),
+
+ @SerializedName("archived")
+ ARCHIVED("archived"),
+
+ @SerializedName("draft")
+ DRAFT("draft"),
+
+ @SerializedName("inactive")
+ INACTIVE("inactive");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Status(String value) {
+ this.value = value;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/v2/core/WorkflowRunListParams.java b/src/main/java/com/stripe/param/v2/core/WorkflowRunListParams.java
new file mode 100644
index 00000000000..73580945141
--- /dev/null
+++ b/src/main/java/com/stripe/param/v2/core/WorkflowRunListParams.java
@@ -0,0 +1,174 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.v2.core;
+
+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 WorkflowRunListParams 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;
+
+ /** Restrict page size to no more than this number. */
+ @SerializedName("limit")
+ Long limit;
+
+ /**
+ * Required. When retrieving Workflow Runs, include only those with the specified
+ * status values. If not specified, all Runs are returned.
+ */
+ @SerializedName("status")
+ List status;
+
+ /**
+ * Required. When retrieving Workflow Runs, include only those associated with
+ * the Workflows specified. If not specified, all Runs are returned.
+ */
+ @SerializedName("workflow")
+ List workflow;
+
+ private WorkflowRunListParams(
+ Map extraParams,
+ Long limit,
+ List status,
+ List workflow) {
+ this.extraParams = extraParams;
+ this.limit = limit;
+ this.status = status;
+ this.workflow = workflow;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Long limit;
+
+ private List status;
+
+ private List workflow;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public WorkflowRunListParams build() {
+ return new WorkflowRunListParams(this.extraParams, this.limit, this.status, this.workflow);
+ }
+
+ /**
+ * 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
+ * WorkflowRunListParams#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 WorkflowRunListParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Restrict page size to no more than this number. */
+ public Builder setLimit(Long limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ /**
+ * Add an element to `status` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * WorkflowRunListParams#status} for the field documentation.
+ */
+ public Builder addStatus(WorkflowRunListParams.Status element) {
+ if (this.status == null) {
+ this.status = new ArrayList<>();
+ }
+ this.status.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `status` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * WorkflowRunListParams#status} for the field documentation.
+ */
+ public Builder addAllStatus(List elements) {
+ if (this.status == null) {
+ this.status = new ArrayList<>();
+ }
+ this.status.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add an element to `workflow` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * WorkflowRunListParams#workflow} for the field documentation.
+ */
+ public Builder addWorkflow(String element) {
+ if (this.workflow == null) {
+ this.workflow = new ArrayList<>();
+ }
+ this.workflow.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `workflow` list. A list is initialized for the first `add/addAll` call,
+ * and subsequent calls adds additional elements to the original list. See {@link
+ * WorkflowRunListParams#workflow} for the field documentation.
+ */
+ public Builder addAllWorkflow(List elements) {
+ if (this.workflow == null) {
+ this.workflow = new ArrayList<>();
+ }
+ this.workflow.addAll(elements);
+ return this;
+ }
+ }
+
+ public enum Status implements ApiRequestParams.EnumParam {
+ @SerializedName("failed")
+ FAILED("failed"),
+
+ @SerializedName("started")
+ STARTED("started"),
+
+ @SerializedName("succeeded")
+ SUCCEEDED("succeeded");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Status(String value) {
+ this.value = value;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/service/PaymentAttemptRecordService.java b/src/main/java/com/stripe/service/PaymentAttemptRecordService.java
index 76832f66a9d..8b2e70e6c5b 100644
--- a/src/main/java/com/stripe/service/PaymentAttemptRecordService.java
+++ b/src/main/java/com/stripe/service/PaymentAttemptRecordService.java
@@ -14,6 +14,7 @@
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.PaymentAttemptRecordListParams;
import com.stripe.param.PaymentAttemptRecordReportAuthenticatedParams;
+import com.stripe.param.PaymentAttemptRecordReportAuthorizedParams;
import com.stripe.param.PaymentAttemptRecordReportCanceledParams;
import com.stripe.param.PaymentAttemptRecordReportFailedParams;
import com.stripe.param.PaymentAttemptRecordReportGuaranteedParams;
@@ -111,6 +112,44 @@ public PaymentAttemptRecord reportAuthenticated(
options);
return this.request(request, PaymentAttemptRecord.class);
}
+ /** Report that the specified Payment Attempt Record was authorized. */
+ public PaymentAttemptRecord reportAuthorized(
+ String paymentAttemptRecord, PaymentAttemptRecordReportAuthorizedParams params)
+ throws StripeException {
+ return reportAuthorized(paymentAttemptRecord, params, (RequestOptions) null);
+ }
+ /** Report that the specified Payment Attempt Record was authorized. */
+ public PaymentAttemptRecord reportAuthorized(String paymentAttemptRecord, RequestOptions options)
+ throws StripeException {
+ return reportAuthorized(
+ paymentAttemptRecord, (PaymentAttemptRecordReportAuthorizedParams) null, options);
+ }
+ /** Report that the specified Payment Attempt Record was authorized. */
+ public PaymentAttemptRecord reportAuthorized(String paymentAttemptRecord) throws StripeException {
+ return reportAuthorized(
+ paymentAttemptRecord,
+ (PaymentAttemptRecordReportAuthorizedParams) null,
+ (RequestOptions) null);
+ }
+ /** Report that the specified Payment Attempt Record was authorized. */
+ public PaymentAttemptRecord reportAuthorized(
+ String paymentAttemptRecord,
+ PaymentAttemptRecordReportAuthorizedParams params,
+ RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/payment_attempt_records/%s/report_authorized",
+ ApiResource.urlEncodeId(paymentAttemptRecord));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, PaymentAttemptRecord.class);
+ }
/** Report that the specified Payment Attempt Record was canceled. */
public PaymentAttemptRecord reportCanceled(
String paymentAttemptRecord, PaymentAttemptRecordReportCanceledParams params)
diff --git a/src/main/java/com/stripe/service/v2/CoreService.java b/src/main/java/com/stripe/service/v2/CoreService.java
index c9b3483b610..f85171feb5e 100644
--- a/src/main/java/com/stripe/service/v2/CoreService.java
+++ b/src/main/java/com/stripe/service/v2/CoreService.java
@@ -48,4 +48,12 @@ public com.stripe.service.v2.core.EventService events() {
public com.stripe.service.v2.core.VaultService vault() {
return new com.stripe.service.v2.core.VaultService(this.getResponseGetter());
}
+
+ public com.stripe.service.v2.core.WorkflowRunService workflowRuns() {
+ return new com.stripe.service.v2.core.WorkflowRunService(this.getResponseGetter());
+ }
+
+ public com.stripe.service.v2.core.WorkflowService workflows() {
+ return new com.stripe.service.v2.core.WorkflowService(this.getResponseGetter());
+ }
}
diff --git a/src/main/java/com/stripe/service/v2/core/WorkflowRunService.java b/src/main/java/com/stripe/service/v2/core/WorkflowRunService.java
new file mode 100644
index 00000000000..424d714dced
--- /dev/null
+++ b/src/main/java/com/stripe/service/v2/core/WorkflowRunService.java
@@ -0,0 +1,50 @@
+// File generated from our OpenAPI spec
+package com.stripe.service.v2.core;
+
+import com.google.gson.reflect.TypeToken;
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.StripeCollection;
+import com.stripe.model.v2.core.WorkflowRun;
+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.core.WorkflowRunListParams;
+
+public final class WorkflowRunService extends ApiService {
+ public WorkflowRunService(StripeResponseGetter responseGetter) {
+ super(responseGetter);
+ }
+
+ /** List all Workflow Runs. */
+ public StripeCollection list(WorkflowRunListParams params) throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+ /** List all Workflow Runs. */
+ public StripeCollection list(WorkflowRunListParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v2/core/workflow_runs";
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, new TypeToken>() {}.getType());
+ }
+ /** Retrieves the details of a Workflow Run by ID. */
+ public WorkflowRun retrieve(String id) throws StripeException {
+ return retrieve(id, (RequestOptions) null);
+ }
+ /** Retrieves the details of a Workflow Run by ID. */
+ public WorkflowRun retrieve(String id, RequestOptions options) throws StripeException {
+ String path = String.format("/v2/core/workflow_runs/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options);
+ return this.request(request, WorkflowRun.class);
+ }
+}
diff --git a/src/main/java/com/stripe/service/v2/core/WorkflowService.java b/src/main/java/com/stripe/service/v2/core/WorkflowService.java
new file mode 100644
index 00000000000..b6ff580a336
--- /dev/null
+++ b/src/main/java/com/stripe/service/v2/core/WorkflowService.java
@@ -0,0 +1,69 @@
+// File generated from our OpenAPI spec
+package com.stripe.service.v2.core;
+
+import com.google.gson.reflect.TypeToken;
+import com.stripe.exception.StripeException;
+import com.stripe.model.v2.StripeCollection;
+import com.stripe.model.v2.core.Workflow;
+import com.stripe.model.v2.core.WorkflowRun;
+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.core.WorkflowInvokeParams;
+import com.stripe.param.v2.core.WorkflowListParams;
+
+public final class WorkflowService extends ApiService {
+ public WorkflowService(StripeResponseGetter responseGetter) {
+ super(responseGetter);
+ }
+
+ /** List all Workflows. */
+ public StripeCollection list(WorkflowListParams params) throws StripeException {
+ return list(params, (RequestOptions) null);
+ }
+ /** List all Workflows. */
+ public StripeCollection list(WorkflowListParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v2/core/workflows";
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, new TypeToken>() {}.getType());
+ }
+ /** Retrieves the details of a Workflow by ID. */
+ public Workflow retrieve(String id) throws StripeException {
+ return retrieve(id, (RequestOptions) null);
+ }
+ /** Retrieves the details of a Workflow by ID. */
+ public Workflow retrieve(String id, RequestOptions options) throws StripeException {
+ String path = String.format("/v2/core/workflows/%s", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, null, options);
+ return this.request(request, Workflow.class);
+ }
+ /** Invokes an on-demand Workflow with parameters, to launch a new Workflow Run. */
+ public WorkflowRun invoke(String id, WorkflowInvokeParams params) throws StripeException {
+ return invoke(id, params, (RequestOptions) null);
+ }
+ /** Invokes an on-demand Workflow with parameters, to launch a new Workflow Run. */
+ public WorkflowRun invoke(String id, WorkflowInvokeParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v2/core/workflows/%s/invoke", ApiResource.urlEncodeId(id));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, WorkflowRun.class);
+ }
+}
diff --git a/src/test/java/com/stripe/functional/GeneratedExamples.java b/src/test/java/com/stripe/functional/GeneratedExamples.java
index a88fb3f366e..fcb8c7e33ac 100644
--- a/src/test/java/com/stripe/functional/GeneratedExamples.java
+++ b/src/test/java/com/stripe/functional/GeneratedExamples.java
@@ -3211,7 +3211,7 @@ public void testCoreEventsGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.Event.class,
- "{\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"reason\":{\"type\":\"request\",\"request\":{\"client\":{\"type\":\"api_key\",\"api_key\":{\"id\":\"obj_123\"},\"dashboard_user\":{\"email\":\"email\",\"ip_address\":\"ip_address\",\"machine_identifier\":\"machine_identifier\"},\"stripe_action\":{}},\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\"}");
+ "{\"object\":\"v2.core.event\",\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"reason\":{\"request\":{\"client\":{\"api_key\":{\"id\":\"obj_123\"},\"dashboard_user\":{\"email\":\"email\",\"ip_address\":\"ip_address\",\"machine_identifier\":\"machine_identifier\"},\"stripe_action\":{},\"type\":\"api_key\"},\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"},\"type\":\"request\"},\"type\":\"type\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.EventRetrieveParams params =
@@ -24393,7 +24393,7 @@ public void testV2BillingBillSettingGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.BillSetting>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.bill_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.BillSettingListParams params =
@@ -24419,7 +24419,7 @@ public void testV2BillingBillSettingPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.BillSetting.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.bill_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.BillSettingCreateParams params =
@@ -24445,7 +24445,7 @@ public void testV2BillingBillSettingGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.BillSetting.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.bill_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.BillSetting billSetting =
@@ -24468,7 +24468,7 @@ public void testV2BillingBillSettingPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.BillSetting.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.bill_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.BillSettingUpdateParams params =
@@ -24496,7 +24496,7 @@ public void testV2BillingBillSettingsVersionGetServices() throws StripeException
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.BillSettingVersion>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.bill_setting_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.bill_setting_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.billsettings.VersionListParams params =
@@ -24523,7 +24523,7 @@ public void testV2BillingBillSettingsVersionGet2Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.billing.BillSettingVersion.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.bill_setting_version\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.bill_setting_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.BillSettingVersion billSettingVersion =
@@ -24548,7 +24548,7 @@ public void testV2BillingCadenceGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.Cadence>>() {}.getType(),
- "{\"data\":[{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CadenceListParams params =
@@ -24574,15 +24574,13 @@ public void testV2BillingCadencePostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Cadence.class,
- "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CadenceCreateParams params =
com.stripe.param.v2.billing.CadenceCreateParams.builder()
.setBillingCycle(
com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.builder()
- .setIntervalCount(797691627L)
- .setType(com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Type.WEEK)
.setDay(
com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Day.builder()
.setTime(
@@ -24593,6 +24591,7 @@ public void testV2BillingCadencePostServices() throws StripeException {
.setSecond(906279820L)
.build())
.build())
+ .setIntervalCount(797691627L)
.setMonth(
com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Month.builder()
.setDayOfMonth(1361669285L)
@@ -24605,6 +24604,7 @@ public void testV2BillingCadencePostServices() throws StripeException {
.setSecond(906279820L)
.build())
.build())
+ .setType(com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Type.WEEK)
.setWeek(
com.stripe.param.v2.billing.CadenceCreateParams.BillingCycle.Week.builder()
.setDayOfWeek(43636807L)
@@ -24654,7 +24654,7 @@ public void testV2BillingCadenceGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Cadence.class,
- "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CadenceRetrieveParams params =
@@ -24680,7 +24680,7 @@ public void testV2BillingCadencePost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Cadence.class,
- "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CadenceUpdateParams params =
@@ -24706,7 +24706,7 @@ public void testV2BillingCadencePost3Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Cadence.class,
- "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CadenceCancelParams params =
@@ -24734,7 +24734,7 @@ public void testV2BillingCadencesSpendModifierRuleGetServices() throws StripeExc
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}");
+ "{\"data\":[{\"object\":\"v2.billing.cadence_spend_modifier\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"max_billing_period_spend\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.cadences.SpendModifierRuleListParams params =
@@ -24761,7 +24761,7 @@ public void testV2BillingCadencesSpendModifierRuleGet2Services() throws StripeEx
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}");
+ "{\"object\":\"v2.billing.cadence_spend_modifier\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"max_billing_period_spend\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.CadenceSpendModifier cadenceSpendModifier =
@@ -24786,7 +24786,7 @@ public void testV2BillingCollectionSettingGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.CollectionSetting>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.collection_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CollectionSettingListParams params =
@@ -24812,7 +24812,7 @@ public void testV2BillingCollectionSettingPostServices() throws StripeException
null,
null,
com.stripe.model.v2.billing.CollectionSetting.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.collection_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CollectionSettingCreateParams params =
@@ -24838,7 +24838,7 @@ public void testV2BillingCollectionSettingGet2Services() throws StripeException
null,
null,
com.stripe.model.v2.billing.CollectionSetting.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.collection_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.CollectionSetting collectionSetting =
@@ -24861,7 +24861,7 @@ public void testV2BillingCollectionSettingPost2Services() throws StripeException
null,
null,
com.stripe.model.v2.billing.CollectionSetting.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.collection_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CollectionSettingUpdateParams params =
@@ -24889,7 +24889,7 @@ public void testV2BillingCollectionSettingsVersionGetServices() throws StripeExc
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.CollectionSettingVersion>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.collection_setting_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.collection_setting_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.collectionsettings.VersionListParams params =
@@ -24921,7 +24921,7 @@ public void testV2BillingCollectionSettingsVersionGet2Services() throws StripeEx
null,
null,
com.stripe.model.v2.billing.CollectionSettingVersion.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.collection_setting_version\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.collection_setting_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.CollectionSettingVersion collectionSettingVersion =
@@ -24951,7 +24951,7 @@ public void testV2BillingCustomPricingUnitGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.CustomPricingUnit>>() {}.getType(),
- "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.custom_pricing_unit\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CustomPricingUnitListParams params =
@@ -24977,7 +24977,7 @@ public void testV2BillingCustomPricingUnitPostServices() throws StripeException
null,
null,
com.stripe.model.v2.billing.CustomPricingUnit.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.custom_pricing_unit\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CustomPricingUnitCreateParams params =
@@ -25005,7 +25005,7 @@ public void testV2BillingCustomPricingUnitGet2Services() throws StripeException
null,
null,
com.stripe.model.v2.billing.CustomPricingUnit.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.custom_pricing_unit\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.CustomPricingUnit customPricingUnit =
@@ -25028,7 +25028,7 @@ public void testV2BillingCustomPricingUnitPost2Services() throws StripeException
null,
null,
com.stripe.model.v2.billing.CustomPricingUnit.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.custom_pricing_unit\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.CustomPricingUnitUpdateParams params =
@@ -25056,7 +25056,7 @@ public void testV2BillingIntentGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.Intent>>() {}.getType(),
- "{\"data\":[{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.IntentListParams params =
@@ -25082,27 +25082,15 @@ public void testV2BillingIntentPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Intent.class,
- "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.IntentCreateParams params =
com.stripe.param.v2.billing.IntentCreateParams.builder()
.addAction(
com.stripe.param.v2.billing.IntentCreateParams.Action.builder()
- .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()
- .setTimestamp(Instant.parse("1970-01-01T15:18:46.294Z"))
- .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
- .DISCOUNT)
.setDiscount(
com.stripe.param.v2.billing.IntentCreateParams.Action.Apply.Discount
.builder()
@@ -25112,15 +25100,20 @@ public void testV2BillingIntentPostServices() throws StripeException {
com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
.Discount.Type.COUPON)
.build())
+ .setEffectiveAt(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .EffectiveAt.builder()
+ .setTimestamp(Instant.parse("1970-01-01T15:18:46.294Z"))
+ .setType(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .EffectiveAt.Type.CURRENT_BILLING_PERIOD_END)
+ .build())
.setInvoiceDiscountRule(
com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
.InvoiceDiscountRule.builder()
.setAppliesTo(
com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
.InvoiceDiscountRule.AppliesTo.CADENCE)
- .setType(
- com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
- .InvoiceDiscountRule.Type.PERCENT_OFF)
.setPercentOff(
com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
.InvoiceDiscountRule.PercentOff.builder()
@@ -25136,6 +25129,9 @@ public void testV2BillingIntentPostServices() throws StripeException {
.build())
.setPercentOff(new BigDecimal("991934883.3333334"))
.build())
+ .setType(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .InvoiceDiscountRule.Type.PERCENT_OFF)
.build())
.setSpendModifierRule(
com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
@@ -25143,9 +25139,6 @@ public void testV2BillingIntentPostServices() throws StripeException {
.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()
@@ -25153,11 +25146,6 @@ public void testV2BillingIntentPostServices() throws StripeException {
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
@@ -25166,6 +25154,11 @@ public void testV2BillingIntentPostServices() throws StripeException {
.setId("obj_123")
.setValue("value")
.build())
+ .setType(
+ com.stripe.param.v2.billing
+ .IntentCreateParams.Action.Apply
+ .SpendModifierRule.MaxBillingPeriodSpend
+ .Amount.Type.CUSTOM_PRICING_UNIT)
.build())
.setCustomPricingUnitOverageRate(
com.stripe.param.v2.billing.IntentCreateParams
@@ -25175,7 +25168,13 @@ public void testV2BillingIntentPostServices() throws StripeException {
.setId("obj_123")
.build())
.build())
+ .setType(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply
+ .SpendModifierRule.Type.MAX_BILLING_PERIOD_SPEND)
.build())
+ .setType(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Apply.Type
+ .DISCOUNT)
.build())
.setDeactivate(
com.stripe.param.v2.billing.IntentCreateParams.Action.Deactivate.builder()
@@ -25210,12 +25209,6 @@ public void testV2BillingIntentPostServices() throws StripeException {
.Action.Deactivate
.PricingPlanSubscriptionDetails.Overrides
.PartialPeriodBehavior.builder()
- .setType(
- com.stripe.param.v2.billing
- .IntentCreateParams.Action.Deactivate
- .PricingPlanSubscriptionDetails
- .Overrides.PartialPeriodBehavior.Type
- .LICENSE_FEE)
.setLicenseFee(
com.stripe.param.v2.billing
.IntentCreateParams.Action.Deactivate
@@ -25232,6 +25225,12 @@ public void testV2BillingIntentPostServices() throws StripeException {
.CreditProrationBehavior
.PRORATED)
.build())
+ .setType(
+ com.stripe.param.v2.billing
+ .IntentCreateParams.Action.Deactivate
+ .PricingPlanSubscriptionDetails
+ .Overrides.PartialPeriodBehavior.Type
+ .LICENSE_FEE)
.build())
.build())
.setPricingPlanSubscription("pricing_plan_subscription")
@@ -25260,9 +25259,9 @@ public void testV2BillingIntentPostServices() throws StripeException {
com.stripe.param.v2.billing.IntentCreateParams.Action.Modify
.PricingPlanSubscriptionDetails.ComponentConfiguration
.builder()
- .setQuantity(1285004149L)
.setLookupKey("lookup_key")
.setPricingPlanComponent("pricing_plan_component")
+ .setQuantity(1285004149L)
.build())
.setNewPricingPlan("new_pricing_plan")
.setNewPricingPlanVersion("new_pricing_plan_version")
@@ -25273,12 +25272,6 @@ public void testV2BillingIntentPostServices() throws StripeException {
com.stripe.param.v2.billing.IntentCreateParams
.Action.Modify.PricingPlanSubscriptionDetails
.Overrides.PartialPeriodBehavior.builder()
- .setType(
- com.stripe.param.v2.billing
- .IntentCreateParams.Action.Modify
- .PricingPlanSubscriptionDetails
- .Overrides.PartialPeriodBehavior.Type
- .LICENSE_FEE)
.setLicenseFee(
com.stripe.param.v2.billing
.IntentCreateParams.Action.Modify
@@ -25318,6 +25311,12 @@ public void testV2BillingIntentPostServices() throws StripeException {
.RecurringCreditGrant
.CreateBehavior.NONE)
.build())
+ .setType(
+ com.stripe.param.v2.billing
+ .IntentCreateParams.Action.Modify
+ .PricingPlanSubscriptionDetails
+ .Overrides.PartialPeriodBehavior.Type
+ .LICENSE_FEE)
.build())
.build())
.setPricingPlanSubscription("pricing_plan_subscription")
@@ -25335,11 +25334,11 @@ public void testV2BillingIntentPostServices() throws StripeException {
com.stripe.param.v2.billing.IntentCreateParams.Action.Remove
.EffectiveAt.Type.CURRENT_BILLING_PERIOD_END)
.build())
+ .setInvoiceDiscountRule("invoice_discount_rule")
+ .setSpendModifierRule("spend_modifier_rule")
.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()
@@ -25355,9 +25354,6 @@ public void testV2BillingIntentPostServices() throws StripeException {
.Subscribe.EffectiveAt.Type
.CURRENT_BILLING_PERIOD_START)
.build())
- .setType(
- com.stripe.param.v2.billing.IntentCreateParams.Action.Subscribe.Type
- .PRICING_PLAN_SUBSCRIPTION_DETAILS)
.setPricingPlanSubscriptionDetails(
com.stripe.param.v2.billing.IntentCreateParams.Action.Subscribe
.PricingPlanSubscriptionDetails.builder()
@@ -25365,9 +25361,9 @@ public void testV2BillingIntentPostServices() throws StripeException {
com.stripe.param.v2.billing.IntentCreateParams.Action
.Subscribe.PricingPlanSubscriptionDetails
.ComponentConfiguration.builder()
- .setQuantity(1285004149L)
.setLookupKey("lookup_key")
.setPricingPlanComponent("pricing_plan_component")
+ .setQuantity(1285004149L)
.build())
.putMetadata("key", "metadata")
.setOverrides(
@@ -25378,12 +25374,6 @@ public void testV2BillingIntentPostServices() throws StripeException {
com.stripe.param.v2.billing.IntentCreateParams
.Action.Subscribe.PricingPlanSubscriptionDetails
.Overrides.PartialPeriodBehavior.builder()
- .setType(
- com.stripe.param.v2.billing
- .IntentCreateParams.Action.Subscribe
- .PricingPlanSubscriptionDetails
- .Overrides.PartialPeriodBehavior.Type
- .LICENSE_FEE)
.setLicenseFee(
com.stripe.param.v2.billing
.IntentCreateParams.Action.Subscribe
@@ -25414,11 +25404,20 @@ public void testV2BillingIntentPostServices() throws StripeException {
.RecurringCreditGrant
.CreateBehavior.NONE)
.build())
+ .setType(
+ com.stripe.param.v2.billing
+ .IntentCreateParams.Action.Subscribe
+ .PricingPlanSubscriptionDetails
+ .Overrides.PartialPeriodBehavior.Type
+ .LICENSE_FEE)
.build())
.build())
.setPricingPlan("pricing_plan")
.setPricingPlanVersion("pricing_plan_version")
.build())
+ .setType(
+ com.stripe.param.v2.billing.IntentCreateParams.Action.Subscribe.Type
+ .PRICING_PLAN_SUBSCRIPTION_DETAILS)
.setV1SubscriptionDetails(
com.stripe.param.v2.billing.IntentCreateParams.Action.Subscribe
.V1SubscriptionDetails.builder()
@@ -25433,6 +25432,7 @@ public void testV2BillingIntentPostServices() throws StripeException {
.putMetadata("key", "metadata")
.build())
.build())
+ .setType(com.stripe.param.v2.billing.IntentCreateParams.Action.Type.APPLY)
.build())
.setCurrency("usd")
.build();
@@ -25456,7 +25456,7 @@ public void testV2BillingIntentGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Intent.class,
- "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.Intent intent = client.v2().billing().intents().retrieve("id_123");
@@ -25474,7 +25474,7 @@ public void testV2BillingIntentPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Intent.class,
- "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.Intent intent = client.v2().billing().intents().cancel("id_123");
@@ -25496,7 +25496,7 @@ public void testV2BillingIntentPost3Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Intent.class,
- "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.IntentCommitParams params =
@@ -25522,7 +25522,7 @@ public void testV2BillingIntentPost4Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Intent.class,
- "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.Intent intent =
@@ -25545,7 +25545,7 @@ public void testV2BillingIntentPost5Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Intent.class,
- "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.Intent intent = client.v2().billing().intents().reserve("id_123");
@@ -25569,7 +25569,7 @@ public void testV2BillingIntentsActionGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.IntentAction>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent_action\",\"type\":\"apply\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.intent_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"apply\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.intents.ActionListParams params =
@@ -25595,7 +25595,7 @@ public void testV2BillingIntentsActionGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.IntentAction.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent_action\",\"type\":\"apply\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.intent_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"apply\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.IntentAction intentAction =
@@ -25620,7 +25620,7 @@ public void testV2BillingLicenseFeeGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.LicenseFee>>() {}.getType(),
- "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.LicenseFeeListParams params =
@@ -25648,7 +25648,7 @@ public void testV2BillingLicenseFeePostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.LicenseFee.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}");
+ "{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.LicenseFeeCreateParams params =
@@ -25683,7 +25683,7 @@ public void testV2BillingLicenseFeeGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.LicenseFee.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}");
+ "{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.LicenseFee licenseFee =
@@ -25706,7 +25706,7 @@ public void testV2BillingLicenseFeePost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.LicenseFee.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}");
+ "{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.LicenseFeeUpdateParams params =
@@ -25734,7 +25734,7 @@ public void testV2BillingLicenseFeesVersionGetServices() throws StripeException
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.LicenseFeeVersion>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"object\":\"v2.billing.license_fee_version\",\"tiers\":[{}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.license_fee_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"livemode\":true,\"tiers\":[{}]}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.licensefees.VersionListParams params =
@@ -25761,7 +25761,7 @@ public void testV2BillingLicenseFeesVersionGet2Services() throws StripeException
null,
null,
com.stripe.model.v2.billing.LicenseFeeVersion.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"object\":\"v2.billing.license_fee_version\",\"tiers\":[{}],\"livemode\":true}");
+ "{\"object\":\"v2.billing.license_fee_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"livemode\":true,\"tiers\":[{}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.LicenseFeeVersion licenseFeeVersion =
@@ -25786,7 +25786,7 @@ public void testV2BillingLicensedItemGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.LicensedItem>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.LicensedItemListParams params =
@@ -25812,7 +25812,7 @@ public void testV2BillingLicensedItemPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.LicensedItem.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.LicensedItemCreateParams params =
@@ -25840,7 +25840,7 @@ public void testV2BillingLicensedItemGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.LicensedItem.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.LicensedItem licensedItem =
@@ -25863,7 +25863,7 @@ public void testV2BillingLicensedItemPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.LicensedItem.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.LicensedItemUpdateParams params =
@@ -25889,7 +25889,7 @@ public void testV2BillingMeterEventPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.MeterEvent.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"identifier\":\"identifier\",\"object\":\"v2.billing.meter_event\",\"payload\":{\"key\":\"payload\"},\"timestamp\":\"1970-01-01T15:18:46.294Z\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.meter_event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"identifier\":\"identifier\",\"livemode\":true,\"payload\":{\"key\":\"payload\"},\"timestamp\":\"1970-01-01T15:18:46.294Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.MeterEventCreateParams params =
@@ -25918,7 +25918,7 @@ public void testV2BillingMeterEventAdjustmentPostServices() throws StripeExcepti
null,
null,
com.stripe.model.v2.billing.MeterEventAdjustment.class,
- "{\"cancel\":{\"identifier\":\"identifier\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_adjustment\",\"status\":\"complete\",\"type\":\"cancel\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.meter_event_adjustment\",\"cancel\":{\"identifier\":\"identifier\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"complete\",\"type\":\"cancel\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.MeterEventAdjustmentCreateParams params =
@@ -25951,7 +25951,7 @@ public void testV2BillingMeterEventSessionPostServices() throws StripeException
null,
null,
com.stripe.model.v2.billing.MeterEventSession.class,
- "{\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.meter_event_session\",\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.MeterEventSession meterEventSession =
@@ -26008,7 +26008,7 @@ public void testV2BillingMeteredItemGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.MeteredItem>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.MeteredItemListParams params =
@@ -26034,7 +26034,7 @@ public void testV2BillingMeteredItemPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.MeteredItem.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.MeteredItemCreateParams params =
@@ -26063,7 +26063,7 @@ public void testV2BillingMeteredItemGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.MeteredItem.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.MeteredItem meteredItem =
@@ -26086,7 +26086,7 @@ public void testV2BillingMeteredItemPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.MeteredItem.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.MeteredItemUpdateParams params =
@@ -26114,7 +26114,7 @@ public void testV2BillingOneTimeItemGetServices() throws StripeException {
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}");
+ "{\"data\":[{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.OneTimeItemListParams params =
@@ -26140,7 +26140,7 @@ public void testV2BillingOneTimeItemPostServices() throws StripeException {
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}");
+ "{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.OneTimeItemCreateParams params =
@@ -26168,7 +26168,7 @@ public void testV2BillingOneTimeItemGet2Services() throws StripeException {
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}");
+ "{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.OneTimeItem oneTimeItem =
@@ -26191,7 +26191,7 @@ public void testV2BillingOneTimeItemPost2Services() throws StripeException {
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}");
+ "{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.OneTimeItemUpdateParams params =
@@ -26219,7 +26219,7 @@ public void testV2BillingPricingPlanGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.PricingPlan>>() {}.getType(),
- "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.PricingPlanListParams params =
@@ -26245,7 +26245,7 @@ public void testV2BillingPricingPlanPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.PricingPlan.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.PricingPlanCreateParams params =
@@ -26276,7 +26276,7 @@ public void testV2BillingPricingPlanGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.PricingPlan.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.PricingPlan pricingPlan =
@@ -26299,7 +26299,7 @@ public void testV2BillingPricingPlanPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.PricingPlan.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.PricingPlanUpdateParams params =
@@ -26327,7 +26327,7 @@ public void testV2BillingPricingPlansComponentGetServices() throws StripeExcepti
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.PricingPlanComponent>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.pricing_plan_component\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.pricingplans.ComponentListParams params =
@@ -26354,7 +26354,7 @@ public void testV2BillingPricingPlansComponentPostServices() throws StripeExcept
null,
null,
com.stripe.model.v2.billing.PricingPlanComponent.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan_component\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.pricingplans.ComponentCreateParams params =
@@ -26406,7 +26406,7 @@ public void testV2BillingPricingPlansComponentGet2Services() throws StripeExcept
null,
null,
com.stripe.model.v2.billing.PricingPlanComponent.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan_component\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.PricingPlanComponent pricingPlanComponent =
@@ -26429,7 +26429,7 @@ public void testV2BillingPricingPlansComponentPost2Services() throws StripeExcep
null,
null,
com.stripe.model.v2.billing.PricingPlanComponent.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan_component\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.pricingplans.ComponentUpdateParams params =
@@ -26462,7 +26462,7 @@ public void testV2BillingPricingPlansVersionGetServices() throws StripeException
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.PricingPlanVersion>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_version\",\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.pricing_plan_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.pricingplans.VersionListParams params =
@@ -26489,7 +26489,7 @@ public void testV2BillingPricingPlansVersionGet2Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.billing.PricingPlanVersion.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_version\",\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.PricingPlanVersion pricingPlanVersion =
@@ -26514,7 +26514,7 @@ public void testV2BillingPricingPlanSubscriptionGetServices() throws StripeExcep
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.PricingPlanSubscription>>() {}.getType(),
- "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.pricing_plan_subscription\",\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.PricingPlanSubscriptionListParams params =
@@ -26540,7 +26540,7 @@ public void testV2BillingPricingPlanSubscriptionGet2Services() throws StripeExce
null,
null,
com.stripe.model.v2.billing.PricingPlanSubscription.class,
- "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan_subscription\",\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.PricingPlanSubscriptionRetrieveParams params =
@@ -26566,7 +26566,7 @@ public void testV2BillingPricingPlanSubscriptionPostServices() throws StripeExce
null,
null,
com.stripe.model.v2.billing.PricingPlanSubscription.class,
- "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan_subscription\",\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.PricingPlanSubscriptionUpdateParams params =
@@ -26592,7 +26592,7 @@ public void testV2BillingPricingPlanSubscriptionPost2Services() throws StripeExc
null,
null,
com.stripe.model.v2.billing.PricingPlanSubscription.class,
- "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}");
+ "{\"object\":\"v2.billing.pricing_plan_subscription\",\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.PricingPlanSubscriptionRemoveDiscountsParams params =
@@ -26620,7 +26620,7 @@ public void testV2BillingProfileGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.Profile>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.profile\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"active\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ProfileListParams params =
@@ -26646,7 +26646,7 @@ public void testV2BillingProfilePostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Profile.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.profile\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ProfileCreateParams params =
@@ -26671,7 +26671,7 @@ public void testV2BillingProfileGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Profile.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.profile\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.Profile profile =
@@ -26690,7 +26690,7 @@ public void testV2BillingProfilePost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.Profile.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.profile\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ProfileUpdateParams params =
@@ -26718,7 +26718,7 @@ public void testV2BillingRateCardGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.RateCard>>() {}.getType(),
- "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.RateCardListParams params =
@@ -26744,7 +26744,7 @@ public void testV2BillingRateCardPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCard.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.RateCardCreateParams params =
@@ -26777,7 +26777,7 @@ public void testV2BillingRateCardGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCard.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.RateCard rateCard =
@@ -26800,7 +26800,7 @@ public void testV2BillingRateCardPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCard.class,
- "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.RateCardUpdateParams params =
@@ -26826,7 +26826,7 @@ public void testV2BillingRateCardPost3Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCardVersion.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_version\",\"rate_card_id\":\"rate_card_id\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card_id\":\"rate_card_id\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.RateCardModifyRatesParams params =
@@ -26901,7 +26901,7 @@ public void testV2BillingRateCardsCustomPricingUnitOverageRateGetServices()
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}");
+ "{\"data\":[{\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"livemode\":true,\"one_time_item\":{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ratecards.CustomPricingUnitOverageRateListParams params =
@@ -26936,7 +26936,7 @@ public void testV2BillingRateCardsCustomPricingUnitOverageRatePostServices()
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}");
+ "{\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"livemode\":true,\"one_time_item\":{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ratecards.CustomPricingUnitOverageRateCreateParams params =
@@ -27002,7 +27002,7 @@ public void testV2BillingRateCardsCustomPricingUnitOverageRateGet2Services()
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}");
+ "{\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"livemode\":true,\"one_time_item\":{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate
@@ -27033,7 +27033,7 @@ public void testV2BillingRateCardsRateGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.RateCardRate>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.rate_card_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metered_item\":{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}]}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ratecards.RateListParams params =
@@ -27060,7 +27060,7 @@ public void testV2BillingRateCardsRatePostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCardRate.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}],\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metered_item\":{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ratecards.RateCreateParams params =
@@ -27111,7 +27111,7 @@ public void testV2BillingRateCardsRateGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCardRate.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}],\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metered_item\":{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.RateCardRate rateCardRate =
@@ -27136,7 +27136,7 @@ public void testV2BillingRateCardsVersionGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.RateCardVersion>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_version\",\"rate_card_id\":\"rate_card_id\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.rate_card_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card_id\":\"rate_card_id\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ratecards.VersionListParams params =
@@ -27163,7 +27163,7 @@ public void testV2BillingRateCardsVersionGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.RateCardVersion.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_version\",\"rate_card_id\":\"rate_card_id\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card_id\":\"rate_card_id\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.RateCardVersion rateCardVersion =
@@ -27188,7 +27188,7 @@ public void testV2BillingRateCardSubscriptionGetServices() throws StripeExceptio
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.billing.RateCardSubscription>>() {}.getType(),
- "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.RateCardSubscriptionListParams params =
@@ -27214,7 +27214,7 @@ public void testV2BillingRateCardSubscriptionPostServices() throws StripeExcepti
null,
null,
com.stripe.model.v2.billing.RateCardSubscription.class,
- "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.RateCardSubscriptionCreateParams params =
@@ -27243,7 +27243,7 @@ public void testV2BillingRateCardSubscriptionGet2Services() throws StripeExcepti
null,
null,
com.stripe.model.v2.billing.RateCardSubscription.class,
- "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.RateCardSubscription rateCardSubscription =
@@ -27266,7 +27266,7 @@ public void testV2BillingRateCardSubscriptionPost2Services() throws StripeExcept
null,
null,
com.stripe.model.v2.billing.RateCardSubscription.class,
- "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.RateCardSubscriptionUpdateParams params =
@@ -27292,7 +27292,7 @@ public void testV2BillingRateCardSubscriptionPost3Services() throws StripeExcept
null,
null,
com.stripe.model.v2.billing.RateCardSubscription.class,
- "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.RateCardSubscription rateCardSubscription =
@@ -27315,7 +27315,7 @@ public void testV2BillingServiceActionPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.ServiceAction.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.service_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ActionServiceCreateParams params =
@@ -27346,7 +27346,7 @@ public void testV2BillingServiceActionGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.billing.ServiceAction.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.service_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.billing.ServiceAction serviceAction =
@@ -27369,7 +27369,7 @@ public void testV2BillingServiceActionPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.billing.ServiceAction.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true}");
+ "{\"object\":\"v2.billing.service_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.billing.ActionServiceUpdateParams params =
@@ -27396,7 +27396,7 @@ public void testV2CoreAccountGetServices() throws StripeException {
null,
new TypeToken<
com.stripe.model.v2.StripeCollection>() {}.getType(),
- "{\"data\":[{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.AccountListParams params =
@@ -27418,7 +27418,7 @@ public void testV2CoreAccountPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.Account.class,
- "{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}");
+ "{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.AccountCreateParams params =
@@ -27439,7 +27439,7 @@ public void testV2CoreAccountGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.Account.class,
- "{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}");
+ "{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.AccountRetrieveParams params =
@@ -27465,7 +27465,7 @@ public void testV2CoreAccountPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.Account.class,
- "{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}");
+ "{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.AccountUpdateParams params =
@@ -27491,7 +27491,7 @@ public void testV2CoreAccountPost3Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.Account.class,
- "{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}");
+ "{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.AccountCloseParams params =
@@ -27519,7 +27519,7 @@ public void testV2CoreAccountsPersonGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.core.AccountPerson>>() {}.getType(),
- "{\"data\":[{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.core.account_person\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"updated\":\"1970-01-03T17:07:10.277Z\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.accounts.PersonListParams params =
@@ -27545,7 +27545,7 @@ public void testV2CoreAccountsPersonPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.AccountPerson.class,
- "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}");
+ "{\"object\":\"v2.core.account_person\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"updated\":\"1970-01-03T17:07:10.277Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.accounts.PersonCreateParams params =
@@ -27594,7 +27594,7 @@ public void testV2CoreAccountsPersonGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.AccountPerson.class,
- "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}");
+ "{\"object\":\"v2.core.account_person\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"updated\":\"1970-01-03T17:07:10.277Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.AccountPerson accountPerson =
@@ -27617,7 +27617,7 @@ public void testV2CoreAccountsPersonPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.AccountPerson.class,
- "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}");
+ "{\"object\":\"v2.core.account_person\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"updated\":\"1970-01-03T17:07:10.277Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.accounts.PersonUpdateParams params =
@@ -27643,7 +27643,7 @@ public void testV2CoreAccountsPersonTokenPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.AccountPersonToken.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_person_token\",\"used\":true}");
+ "{\"object\":\"v2.core.account_person_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"used\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.accounts.PersonTokenCreateParams params =
@@ -27669,7 +27669,7 @@ public void testV2CoreAccountsPersonTokenGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.AccountPersonToken.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_person_token\",\"used\":true}");
+ "{\"object\":\"v2.core.account_person_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"used\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.AccountPersonToken accountPersonToken =
@@ -27692,7 +27692,7 @@ public void testV2CoreAccountEvaluationPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.AccountEvaluation.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"evaluations_triggered\":[\"fraudulent_website\"],\"id\":\"obj_123\",\"object\":\"v2.core.account_evaluation\",\"livemode\":true}");
+ "{\"object\":\"v2.core.account_evaluation\",\"created\":\"1970-01-12T21:42:34.472Z\",\"evaluations_triggered\":[\"fraudulent_website\"],\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.AccountEvaluationCreateParams params =
@@ -27721,7 +27721,7 @@ public void testV2CoreAccountLinkPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.AccountLink.class,
- "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"object\":\"v2.core.account_link\",\"url\":\"url\",\"use_case\":{\"type\":\"recipient_onboarding\"},\"livemode\":true}");
+ "{\"object\":\"v2.core.account_link\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true,\"url\":\"url\",\"use_case\":{\"type\":\"recipient_onboarding\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.AccountLinkCreateParams params =
@@ -27729,9 +27729,6 @@ public void testV2CoreAccountLinkPostServices() throws StripeException {
.setAccount("account")
.setUseCase(
com.stripe.param.v2.core.AccountLinkCreateParams.UseCase.builder()
- .setType(
- com.stripe.param.v2.core.AccountLinkCreateParams.UseCase.Type
- .RECIPIENT_ONBOARDING)
.setAccountOnboarding(
com.stripe.param.v2.core.AccountLinkCreateParams.UseCase.AccountOnboarding
.builder()
@@ -27815,6 +27812,9 @@ public void testV2CoreAccountLinkPostServices() throws StripeException {
.setRefreshUrl("refresh_url")
.setReturnUrl("return_url")
.build())
+ .setType(
+ com.stripe.param.v2.core.AccountLinkCreateParams.UseCase.Type
+ .RECIPIENT_ONBOARDING)
.build())
.build();
@@ -27838,7 +27838,7 @@ public void testV2CoreAccountTokenPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.AccountToken.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_token\",\"used\":true}");
+ "{\"object\":\"v2.core.account_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"used\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.AccountTokenCreateParams params =
@@ -27864,7 +27864,7 @@ public void testV2CoreAccountTokenGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.AccountToken.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_token\",\"used\":true}");
+ "{\"object\":\"v2.core.account_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"used\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.AccountToken accountToken =
@@ -27887,7 +27887,7 @@ public void testV2CoreBatchJobPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.BatchJob.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.core.batch_job\",\"skip_validation\":true,\"status\":\"batch_failed\",\"livemode\":true}");
+ "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.BatchJobCreateParams params =
@@ -27923,7 +27923,7 @@ public void testV2CoreBatchJobGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.BatchJob.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.core.batch_job\",\"skip_validation\":true,\"status\":\"batch_failed\",\"livemode\":true}");
+ "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.BatchJob batchJob = client.v2().core().batchJobs().retrieve("id_123");
@@ -27941,7 +27941,7 @@ public void testV2CoreBatchJobPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.BatchJob.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.core.batch_job\",\"skip_validation\":true,\"status\":\"batch_failed\",\"livemode\":true}");
+ "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.BatchJob batchJob = client.v2().core().batchJobs().cancel("id_123");
@@ -27963,7 +27963,7 @@ public void testV2CoreClaimableSandboxPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.ClaimableSandbox.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.claimable_sandbox\",\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\",\"livemode\":true}");
+ "{\"object\":\"v2.core.claimable_sandbox\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.ClaimableSandboxCreateParams params =
@@ -27997,7 +27997,7 @@ public void testV2CoreClaimableSandboxGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.ClaimableSandbox.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.claimable_sandbox\",\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\",\"livemode\":true}");
+ "{\"object\":\"v2.core.claimable_sandbox\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.ClaimableSandbox claimableSandbox =
@@ -28020,7 +28020,7 @@ public void testV2CoreConnectionSessionPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.ConnectionSession.class,
- "{\"account\":\"account\",\"client_secret\":\"client_secret\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.connection_session\",\"livemode\":true}");
+ "{\"object\":\"v2.core.connection_session\",\"account\":\"account\",\"client_secret\":\"client_secret\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.ConnectionSessionCreateParams params =
@@ -28048,7 +28048,7 @@ public void testV2CoreConnectionSessionGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.ConnectionSession.class,
- "{\"account\":\"account\",\"client_secret\":\"client_secret\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.connection_session\",\"livemode\":true}");
+ "{\"object\":\"v2.core.connection_session\",\"account\":\"account\",\"client_secret\":\"client_secret\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.ConnectionSession connectionSession =
@@ -28072,7 +28072,7 @@ public void testV2CoreEventGetServices() throws StripeException {
null,
new TypeToken<
com.stripe.model.v2.StripeCollection>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.core.event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"type\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.EventListParams params =
@@ -28094,7 +28094,7 @@ public void testV2CoreEventGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.Event.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}");
+ "{\"object\":\"v2.core.event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"type\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.EventRetrieveParams params =
@@ -28121,7 +28121,7 @@ public void testV2CoreEventDestinationGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.core.EventDestination>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.EventDestinationListParams params =
@@ -28147,7 +28147,7 @@ public void testV2CoreEventDestinationPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.EventDestination.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}");
+ "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.EventDestinationCreateParams params =
@@ -28202,7 +28202,7 @@ public void testV2CoreEventDestinationGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.EventDestination.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}");
+ "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.EventDestinationRetrieveParams params =
@@ -28228,7 +28228,7 @@ public void testV2CoreEventDestinationPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.EventDestination.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}");
+ "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.EventDestinationUpdateParams params =
@@ -28254,7 +28254,7 @@ public void testV2CoreEventDestinationPost3Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.EventDestination.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}");
+ "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.EventDestination eventDestination =
@@ -28277,7 +28277,7 @@ public void testV2CoreEventDestinationPost4Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.EventDestination.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}");
+ "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.EventDestination eventDestination =
@@ -28300,7 +28300,7 @@ public void testV2CoreEventDestinationPost5Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.Event.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}");
+ "{\"object\":\"v2.core.event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"type\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.Event event = client.v2().core().eventDestinations().ping("id_123");
@@ -28324,7 +28324,7 @@ public void testV2CoreVaultGbBankAccountGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.core.vault.GbBankAccount>>() {}.getType(),
- "{\"data\":[{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.vault.GbBankAccountListParams params =
@@ -28350,7 +28350,7 @@ public void testV2CoreVaultGbBankAccountPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.GbBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.vault.GbBankAccountCreateParams params =
@@ -28378,7 +28378,7 @@ public void testV2CoreVaultGbBankAccountGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.GbBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.vault.GbBankAccount gbBankAccount =
@@ -28401,7 +28401,7 @@ public void testV2CoreVaultGbBankAccountPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.GbBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.vault.GbBankAccount gbBankAccount =
@@ -28424,7 +28424,7 @@ public void testV2CoreVaultGbBankAccountPost3Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.GbBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.vault.GbBankAccount gbBankAccount =
@@ -28447,7 +28447,7 @@ public void testV2CoreVaultGbBankAccountPost4Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.GbBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.vault.GbBankAccountInitiateConfirmationOfPayeeParams params =
@@ -28476,7 +28476,7 @@ public void testV2CoreVaultUsBankAccountGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.core.vault.UsBankAccount>>() {}.getType(),
- "{\"data\":[{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.vault.UsBankAccountListParams params =
@@ -28502,7 +28502,7 @@ public void testV2CoreVaultUsBankAccountPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.UsBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.vault.UsBankAccountCreateParams params =
@@ -28531,7 +28531,7 @@ public void testV2CoreVaultUsBankAccountGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.UsBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.vault.UsBankAccount usBankAccount =
@@ -28554,7 +28554,7 @@ public void testV2CoreVaultUsBankAccountPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.UsBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.vault.UsBankAccountUpdateParams params =
@@ -28580,7 +28580,7 @@ public void testV2CoreVaultUsBankAccountPost3Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.UsBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.vault.UsBankAccount usBankAccount =
@@ -28603,7 +28603,7 @@ public void testV2CoreVaultUsBankAccountPost4Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.UsBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.core.vault.UsBankAccountConfirmMicrodepositsParams params =
@@ -28629,7 +28629,7 @@ public void testV2CoreVaultUsBankAccountPost5Services() throws StripeException {
null,
null,
com.stripe.model.v2.core.vault.UsBankAccount.class,
- "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}");
+ "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.core.vault.UsBankAccount usBankAccount =
@@ -28643,6 +28643,146 @@ public void testV2CoreVaultUsBankAccountPost5Services() throws StripeException {
null);
}
+ @Test
+ public void testV2CoreWorkflowGetServices() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/core/workflows",
+ null,
+ null,
+ new TypeToken<
+ com.stripe.model.v2.StripeCollection>() {}.getType(),
+ "{\"data\":[{\"object\":\"v2.core.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"triggers\":[{\"type\":\"event_trigger\"}]}],\"next_page_url\":null,\"previous_page_url\":null}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.param.v2.core.WorkflowListParams params =
+ com.stripe.param.v2.core.WorkflowListParams.builder()
+ .addStatus(com.stripe.param.v2.core.WorkflowListParams.Status.DRAFT)
+ .build();
+
+ com.stripe.model.v2.StripeCollection stripeCollection =
+ client.v2().core().workflows().list(params);
+ assertNotNull(stripeCollection);
+ verifyRequest(
+ BaseAddress.API, ApiResource.RequestMethod.GET, "/v2/core/workflows", params.toMap(), null);
+ }
+
+ @Test
+ public void testV2CoreWorkflowGet2Services() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/core/workflows/id_123",
+ null,
+ null,
+ com.stripe.model.v2.core.Workflow.class,
+ "{\"object\":\"v2.core.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"triggers\":[{\"type\":\"event_trigger\"}]}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.model.v2.core.Workflow workflow = client.v2().core().workflows().retrieve("id_123");
+ assertNotNull(workflow);
+ verifyRequest(
+ BaseAddress.API, ApiResource.RequestMethod.GET, "/v2/core/workflows/id_123", null, null);
+ }
+
+ @Test
+ public void testV2CoreWorkflowPostServices() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ "/v2/core/workflows/id_123/invoke",
+ null,
+ null,
+ com.stripe.model.v2.core.WorkflowRun.class,
+ "{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.param.v2.core.WorkflowInvokeParams params =
+ com.stripe.param.v2.core.WorkflowInvokeParams.builder()
+ .putInputParameter("int_key", new BigDecimal(123))
+ .putInputParameter("string_key", "value")
+ .putInputParameter("boolean_key", true)
+ .putInputParameter(
+ "object_key",
+ new HashMap() {
+ {
+ put("object_int_key", new BigDecimal(123));
+ put("object_string_key", "value");
+ put("object_boolean_key", true);
+ }
+ })
+ .putInputParameter(
+ "array_key",
+ new ArrayList<>(
+ Arrays.asList(new BigDecimal(1), new BigDecimal(2), new BigDecimal(3))))
+ .build();
+
+ com.stripe.model.v2.core.WorkflowRun workflowRun =
+ client.v2().core().workflows().invoke("id_123", params);
+ assertNotNull(workflowRun);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ "/v2/core/workflows/id_123/invoke",
+ params.toMap(),
+ null);
+ }
+
+ @Test
+ public void testV2CoreWorkflowRunGetServices() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/core/workflow_runs",
+ null,
+ null,
+ new TypeToken<
+ com.stripe.model.v2.StripeCollection<
+ com.stripe.model.v2.core.WorkflowRun>>() {}.getType(),
+ "{\"data\":[{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}],\"next_page_url\":null,\"previous_page_url\":null}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.param.v2.core.WorkflowRunListParams params =
+ com.stripe.param.v2.core.WorkflowRunListParams.builder()
+ .addStatus(com.stripe.param.v2.core.WorkflowRunListParams.Status.FAILED)
+ .addWorkflow("workflow")
+ .build();
+
+ com.stripe.model.v2.StripeCollection stripeCollection =
+ client.v2().core().workflowRuns().list(params);
+ assertNotNull(stripeCollection);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/core/workflow_runs",
+ params.toMap(),
+ null);
+ }
+
+ @Test
+ public void testV2CoreWorkflowRunGet2Services() throws StripeException {
+ stubRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/core/workflow_runs/id_123",
+ null,
+ null,
+ com.stripe.model.v2.core.WorkflowRun.class,
+ "{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}");
+ StripeClient client = new StripeClient(networkSpy);
+
+ com.stripe.model.v2.core.WorkflowRun workflowRun =
+ client.v2().core().workflowRuns().retrieve("id_123");
+ assertNotNull(workflowRun);
+ verifyRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ "/v2/core/workflow_runs/id_123",
+ null,
+ null);
+ }
+
@Test
public void testV2DataReportingQueryRunPostServices() throws StripeException {
stubRequest(
@@ -28652,7 +28792,7 @@ public void testV2DataReportingQueryRunPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.data.reporting.QueryRun.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.data.reporting.query_run\",\"status_details\":{\"key\":{}},\"sql\":\"sql\",\"status\":\"failed\",\"livemode\":true}");
+ "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.data.reporting.QueryRunCreateParams params =
@@ -28678,7 +28818,7 @@ public void testV2DataReportingQueryRunGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.data.reporting.QueryRun.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.data.reporting.query_run\",\"status_details\":{\"key\":{}},\"sql\":\"sql\",\"status\":\"failed\",\"livemode\":true}");
+ "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.data.reporting.QueryRun queryRun =
@@ -28702,7 +28842,7 @@ public void testV2IamApiKeyGetServices() throws StripeException {
null,
new TypeToken<
com.stripe.model.v2.StripeCollection>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.iam.ApiKeyListParams params =
@@ -28724,7 +28864,7 @@ public void testV2IamApiKeyPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.iam.ApiKey.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}");
+ "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.iam.ApiKeyCreateParams params =
@@ -28747,7 +28887,7 @@ public void testV2IamApiKeyGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.iam.ApiKey.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}");
+ "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.iam.ApiKey apiKey = client.v2().iam().apiKeys().retrieve("id_123");
@@ -28765,7 +28905,7 @@ public void testV2IamApiKeyPost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.iam.ApiKey.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}");
+ "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.iam.ApiKeyUpdateParams params =
@@ -28790,7 +28930,7 @@ public void testV2IamApiKeyPost3Services() throws StripeException {
null,
null,
com.stripe.model.v2.iam.ApiKey.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}");
+ "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.iam.ApiKey apiKey = client.v2().iam().apiKeys().expire("id_123");
@@ -28812,7 +28952,7 @@ public void testV2IamApiKeyPost4Services() throws StripeException {
null,
null,
com.stripe.model.v2.iam.ApiKey.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}");
+ "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.iam.ApiKeyRotateParams params =
@@ -28839,7 +28979,7 @@ public void testV2MoneyManagementAdjustmentGetServices() throws StripeException
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.Adjustment>>() {}.getType(),
- "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\":[{\"object\":\"v2.money_management.adjustment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.AdjustmentListParams params =
@@ -28865,7 +29005,7 @@ public void testV2MoneyManagementAdjustmentGet2Services() throws StripeException
null,
null,
com.stripe.model.v2.moneymanagement.Adjustment.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.adjustment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.Adjustment adjustment =
@@ -28890,7 +29030,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\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.CurrencyConversionListParams params =
@@ -28916,7 +29056,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\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}");
+ "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.CurrencyConversionCreateParams params =
@@ -28954,7 +29094,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\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}");
+ "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.CurrencyConversion currencyConversion =
@@ -28979,7 +29119,7 @@ public void testV2MoneyManagementFinancialAccountGetServices() throws StripeExce
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.FinancialAccount>>() {}.getType(),
- "{\"data\":[{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"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\":[{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAccountListParams params =
@@ -29005,7 +29145,7 @@ public void testV2MoneyManagementFinancialAccountPostServices() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAccount.class,
- "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAccountCreateParams params =
@@ -29033,7 +29173,7 @@ public void testV2MoneyManagementFinancialAccountGet2Services() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAccount.class,
- "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAccountRetrieveParams params =
@@ -29059,7 +29199,7 @@ public void testV2MoneyManagementFinancialAccountPost2Services() throws StripeEx
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAccount.class,
- "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAccountUpdateParams params =
@@ -29085,7 +29225,7 @@ public void testV2MoneyManagementFinancialAccountPost3Services() throws StripeEx
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAccount.class,
- "{\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAccountCloseParams params =
@@ -29113,7 +29253,7 @@ public void testV2MoneyManagementFinancialAddressGetServices() throws StripeExce
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.FinancialAddress>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAddressListParams params =
@@ -29139,7 +29279,7 @@ public void testV2MoneyManagementFinancialAddressPostServices() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAddress.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAddressCreateParams params =
@@ -29170,7 +29310,7 @@ public void testV2MoneyManagementFinancialAddressGet2Services() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.FinancialAddress.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.FinancialAddressRetrieveParams params =
@@ -29198,7 +29338,7 @@ public void testV2MoneyManagementInboundTransferGetServices() throws StripeExcep
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.InboundTransfer>>() {}.getType(),
- "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"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\":[{\"object\":\"v2.money_management.inbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"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\"}]}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.InboundTransferListParams params =
@@ -29224,7 +29364,7 @@ public void testV2MoneyManagementInboundTransferPostServices() throws StripeExce
null,
null,
com.stripe.model.v2.moneymanagement.InboundTransfer.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"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}");
+ "{\"object\":\"v2.money_management.inbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"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\"}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.InboundTransferCreateParams params =
@@ -29262,7 +29402,7 @@ public void testV2MoneyManagementInboundTransferGet2Services() throws StripeExce
null,
null,
com.stripe.model.v2.moneymanagement.InboundTransfer.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"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}");
+ "{\"object\":\"v2.money_management.inbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"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\"}]}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.InboundTransfer inboundTransfer =
@@ -29287,7 +29427,7 @@ public void testV2MoneyManagementOutboundPaymentGetServices() throws StripeExcep
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.OutboundPayment>>() {}.getType(),
- "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"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\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"livemode\":true,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundPaymentListParams params =
@@ -29313,7 +29453,7 @@ public void testV2MoneyManagementOutboundPaymentPostServices() throws StripeExce
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPayment.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"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\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"livemode\":true,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundPaymentCreateParams params =
@@ -29352,7 +29492,7 @@ public void testV2MoneyManagementOutboundPaymentGet2Services() throws StripeExce
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPayment.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"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\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"livemode\":true,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundPayment outboundPayment =
@@ -29375,7 +29515,7 @@ public void testV2MoneyManagementOutboundPaymentPost2Services() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPayment.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"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\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"livemode\":true,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundPayment outboundPayment =
@@ -29398,7 +29538,7 @@ public void testV2MoneyManagementOutboundPaymentQuotePostServices() throws Strip
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPaymentQuote.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"next_day_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"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\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_payment_quote\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"next_day_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"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\",\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundPaymentQuoteCreateParams params =
@@ -29437,7 +29577,7 @@ public void testV2MoneyManagementOutboundPaymentQuoteGetServices() throws Stripe
null,
null,
com.stripe.model.v2.moneymanagement.OutboundPaymentQuote.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"next_day_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"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\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_payment_quote\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"next_day_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"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\",\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundPaymentQuote outboundPaymentQuote =
@@ -29462,7 +29602,7 @@ public void testV2MoneyManagementOutboundSetupIntentGetServices() throws StripeE
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.OutboundSetupIntent>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundSetupIntentListParams params =
@@ -29488,7 +29628,7 @@ public void testV2MoneyManagementOutboundSetupIntentPostServices() throws Stripe
null,
null,
com.stripe.model.v2.moneymanagement.OutboundSetupIntent.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundSetupIntentCreateParams params =
@@ -29514,7 +29654,7 @@ public void testV2MoneyManagementOutboundSetupIntentGet2Services() throws Stripe
null,
null,
com.stripe.model.v2.moneymanagement.OutboundSetupIntent.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundSetupIntent outboundSetupIntent =
@@ -29537,7 +29677,7 @@ public void testV2MoneyManagementOutboundSetupIntentPost2Services() throws Strip
null,
null,
com.stripe.model.v2.moneymanagement.OutboundSetupIntent.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundSetupIntentUpdateParams params =
@@ -29563,7 +29703,7 @@ public void testV2MoneyManagementOutboundSetupIntentPost3Services() throws Strip
null,
null,
com.stripe.model.v2.moneymanagement.OutboundSetupIntent.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundSetupIntent outboundSetupIntent =
@@ -29588,7 +29728,7 @@ public void testV2MoneyManagementOutboundTransferGetServices() throws StripeExce
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.OutboundTransfer>>() {}.getType(),
- "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"livemode\":true,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundTransferListParams params =
@@ -29614,7 +29754,7 @@ public void testV2MoneyManagementOutboundTransferPostServices() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.OutboundTransfer.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"livemode\":true,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.OutboundTransferCreateParams params =
@@ -29652,7 +29792,7 @@ public void testV2MoneyManagementOutboundTransferGet2Services() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.OutboundTransfer.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"livemode\":true,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundTransfer outboundTransfer =
@@ -29675,7 +29815,7 @@ public void testV2MoneyManagementOutboundTransferPost2Services() throws StripeEx
null,
null,
com.stripe.model.v2.moneymanagement.OutboundTransfer.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"livemode\":true,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.OutboundTransfer outboundTransfer =
@@ -29700,7 +29840,7 @@ public void testV2MoneyManagementPayoutMethodGetServices() throws StripeExceptio
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.PayoutMethod>>() {}.getType(),
- "{\"data\":[{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.PayoutMethodListParams params =
@@ -29726,7 +29866,7 @@ public void testV2MoneyManagementPayoutMethodGet2Services() throws StripeExcepti
null,
null,
com.stripe.model.v2.moneymanagement.PayoutMethod.class,
- "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.PayoutMethod payoutMethod =
@@ -29749,7 +29889,7 @@ public void testV2MoneyManagementPayoutMethodPostServices() throws StripeExcepti
null,
null,
com.stripe.model.v2.moneymanagement.PayoutMethod.class,
- "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.PayoutMethod payoutMethod =
@@ -29772,7 +29912,7 @@ public void testV2MoneyManagementPayoutMethodPost2Services() throws StripeExcept
null,
null,
com.stripe.model.v2.moneymanagement.PayoutMethod.class,
- "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.PayoutMethod payoutMethod =
@@ -29796,7 +29936,7 @@ public void testV2MoneyManagementPayoutMethodsBankAccountSpecGetServices()
null,
null,
com.stripe.model.v2.moneymanagement.PayoutMethodsBankAccountSpec.class,
- "{\"countries\":{\"key\":{\"fields\":[{\"local_name\":\"local_name\",\"local_name_human\":{\"content\":\"content\",\"localization_key\":\"localization_key\"},\"max_length\":1111390753,\"min_length\":711577229,\"placeholder\":\"placeholder\",\"stripe_name\":\"stripe_name\",\"validation_regex\":\"validation_regex\"}]}},\"object\":\"v2.money_management.payout_methods_bank_account_spec\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.payout_methods_bank_account_spec\",\"countries\":{\"key\":{\"fields\":[{\"local_name\":\"local_name\",\"local_name_human\":{\"content\":\"content\",\"localization_key\":\"localization_key\"},\"max_length\":1111390753,\"min_length\":711577229,\"placeholder\":\"placeholder\",\"stripe_name\":\"stripe_name\",\"validation_regex\":\"validation_regex\"}]}},\"livemode\":true}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.PayoutMethodsBankAccountSpecRetrieveParams params =
@@ -29825,7 +29965,7 @@ public void testV2MoneyManagementReceivedCreditGetServices() throws StripeExcept
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.ReceivedCredit>>() {}.getType(),
- "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\":[{\"object\":\"v2.money_management.received_credit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"returned\",\"type\":\"balance_transfer\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.ReceivedCreditListParams params =
@@ -29851,7 +29991,7 @@ public void testV2MoneyManagementReceivedCreditGet2Services() throws StripeExcep
null,
null,
com.stripe.model.v2.moneymanagement.ReceivedCredit.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.money_management.received_credit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"returned\",\"type\":\"balance_transfer\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.ReceivedCredit receivedCredit =
@@ -29876,7 +30016,7 @@ public void testV2MoneyManagementReceivedDebitGetServices() throws StripeExcepti
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.ReceivedDebit>>() {}.getType(),
- "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\":[{\"object\":\"v2.money_management.received_debit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"canceled\",\"type\":\"balance_transfer\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.ReceivedDebitListParams params =
@@ -29902,7 +30042,7 @@ public void testV2MoneyManagementReceivedDebitGet2Services() throws StripeExcept
null,
null,
com.stripe.model.v2.moneymanagement.ReceivedDebit.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.money_management.received_debit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"canceled\",\"type\":\"balance_transfer\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.ReceivedDebit receivedDebit =
@@ -29925,7 +30065,7 @@ public void testV2MoneyManagementRecipientVerificationPostServices() throws Stri
null,
null,
com.stripe.model.v2.moneymanagement.RecipientVerification.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"object\":\"v2.money_management.recipient_verification\",\"status\":\"acknowledged\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.recipient_verification\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"status\":\"acknowledged\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.RecipientVerificationCreateParams params =
@@ -29953,7 +30093,7 @@ public void testV2MoneyManagementRecipientVerificationGetServices() throws Strip
null,
null,
com.stripe.model.v2.moneymanagement.RecipientVerification.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"object\":\"v2.money_management.recipient_verification\",\"status\":\"acknowledged\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.recipient_verification\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"status\":\"acknowledged\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.RecipientVerification recipientVerification =
@@ -29976,7 +30116,7 @@ public void testV2MoneyManagementRecipientVerificationPost2Services() throws Str
null,
null,
com.stripe.model.v2.moneymanagement.RecipientVerification.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"object\":\"v2.money_management.recipient_verification\",\"status\":\"acknowledged\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.recipient_verification\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"status\":\"acknowledged\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.RecipientVerification recipientVerification =
@@ -30001,7 +30141,7 @@ public void testV2MoneyManagementTransactionGetServices() throws StripeException
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.Transaction>>() {}.getType(),
- "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.TransactionListParams params =
@@ -30027,7 +30167,7 @@ public void testV2MoneyManagementTransactionGet2Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.moneymanagement.Transaction.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.Transaction transaction =
@@ -30052,7 +30192,7 @@ public void testV2MoneyManagementTransactionEntryGetServices() throws StripeExce
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.moneymanagement.TransactionEntry>>() {}.getType(),
- "{\"data\":[{\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"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\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"}}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.moneymanagement.TransactionEntryListParams params =
@@ -30078,7 +30218,7 @@ public void testV2MoneyManagementTransactionEntryGet2Services() throws StripeExc
null,
null,
com.stripe.model.v2.moneymanagement.TransactionEntry.class,
- "{\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"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\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}");
+ "{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.moneymanagement.TransactionEntry transactionEntry =
@@ -30103,7 +30243,7 @@ public void testV2PaymentsOffSessionPaymentGetServices() throws StripeException
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.payments.OffSessionPayment>>() {}.getType(),
- "{\"data\":[{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.OffSessionPaymentListParams params =
@@ -30129,7 +30269,7 @@ public void testV2PaymentsOffSessionPaymentPostServices() throws StripeException
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}");
+ "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.OffSessionPaymentCreateParams params =
@@ -30161,7 +30301,7 @@ public void testV2PaymentsOffSessionPaymentGet2Services() throws StripeException
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}");
+ "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.OffSessionPayment offSessionPayment =
@@ -30184,7 +30324,7 @@ public void testV2PaymentsOffSessionPaymentPost2Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}");
+ "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.OffSessionPayment offSessionPayment =
@@ -30207,7 +30347,7 @@ public void testV2PaymentsOffSessionPaymentPost3Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}");
+ "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.OffSessionPaymentCaptureParams params =
@@ -30235,7 +30375,7 @@ public void testV2PaymentsOffSessionPaymentPost4Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}");
+ "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.OffSessionPayment offSessionPayment =
@@ -30258,7 +30398,7 @@ public void testV2PaymentsOffSessionPaymentPost5Services() throws StripeExceptio
null,
null,
com.stripe.model.v2.payments.OffSessionPayment.class,
- "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}");
+ "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.OffSessionPayment offSessionPayment =
@@ -30283,7 +30423,7 @@ public void testV2PaymentsSettlementAllocationIntentGetServices() throws StripeE
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.payments.SettlementAllocationIntent>>() {}.getType(),
- "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\":[{\"object\":\"v2.payments.settlement_allocation_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.SettlementAllocationIntentListParams params =
@@ -30309,7 +30449,7 @@ public void testV2PaymentsSettlementAllocationIntentPostServices() throws Stripe
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.payments.settlement_allocation_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.SettlementAllocationIntentCreateParams params =
@@ -30340,7 +30480,7 @@ public void testV2PaymentsSettlementAllocationIntentGet2Services() throws Stripe
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.payments.settlement_allocation_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntent settlementAllocationIntent =
@@ -30363,7 +30503,7 @@ public void testV2PaymentsSettlementAllocationIntentPost2Services() throws Strip
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.payments.settlement_allocation_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.SettlementAllocationIntentUpdateParams params =
@@ -30389,7 +30529,7 @@ public void testV2PaymentsSettlementAllocationIntentPost3Services() throws Strip
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.payments.settlement_allocation_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntent settlementAllocationIntent =
@@ -30412,7 +30552,7 @@ public void testV2PaymentsSettlementAllocationIntentPost4Services() throws Strip
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntent.class,
- "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.payments.settlement_allocation_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntent settlementAllocationIntent =
@@ -30437,7 +30577,7 @@ public void testV2PaymentsSettlementAllocationIntentsSplitGetServices() throws S
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.payments.SettlementAllocationIntentSplit>>() {}.getType(),
- "{\"data\":[{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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\":[{\"object\":\"v2.payments.settlement_allocation_intent_split\",\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.settlementallocationintents.SplitListParams params =
@@ -30470,7 +30610,7 @@ public void testV2PaymentsSettlementAllocationIntentsSplitPostServices() throws
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntentSplit.class,
- "{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.payments.settlement_allocation_intent_split\",\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.payments.settlementallocationintents.SplitCreateParams params =
@@ -30507,7 +30647,7 @@ public void testV2PaymentsSettlementAllocationIntentsSplitGet2Services() throws
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntentSplit.class,
- "{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.payments.settlement_allocation_intent_split\",\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit =
@@ -30535,7 +30675,7 @@ public void testV2PaymentsSettlementAllocationIntentsSplitPost2Services() throws
null,
null,
com.stripe.model.v2.payments.SettlementAllocationIntentSplit.class,
- "{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"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}");
+ "{\"object\":\"v2.payments.settlement_allocation_intent_split\",\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit =
@@ -30563,7 +30703,7 @@ public void testV2ReportingReportGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.reporting.Report.class,
- "{\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.reporting.report\",\"parameters\":{\"key\":{\"description\":\"description\",\"required\":true,\"type\":\"string\"}},\"livemode\":true}");
+ "{\"object\":\"v2.reporting.report\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"parameters\":{\"key\":{\"description\":\"description\",\"required\":true,\"type\":\"string\"}}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.reporting.Report report =
@@ -30582,7 +30722,7 @@ public void testV2ReportingReportRunPostServices() throws StripeException {
null,
null,
com.stripe.model.v2.reporting.ReportRun.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.reporting.report_run\",\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"status\":\"failed\",\"status_details\":{\"key\":{}},\"livemode\":true}");
+ "{\"object\":\"v2.reporting.report_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"status\":\"failed\",\"status_details\":{\"key\":{}}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.reporting.ReportRunCreateParams params =
@@ -30626,7 +30766,7 @@ public void testV2ReportingReportRunGetServices() throws StripeException {
null,
null,
com.stripe.model.v2.reporting.ReportRun.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.reporting.report_run\",\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"status\":\"failed\",\"status_details\":{\"key\":{}},\"livemode\":true}");
+ "{\"object\":\"v2.reporting.report_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"status\":\"failed\",\"status_details\":{\"key\":{}}}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.reporting.ReportRun reportRun =
@@ -30651,7 +30791,7 @@ public void testV2TaxManualRuleGetServices() throws StripeException {
new TypeToken<
com.stripe.model.v2.StripeCollection<
com.stripe.model.v2.tax.ManualRule>>() {}.getType(),
- "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}],\"next_page_url\":null,\"previous_page_url\":null}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.tax.ManualRuleListParams params =
@@ -30677,7 +30817,7 @@ public void testV2TaxManualRulePostServices() throws StripeException {
null,
null,
com.stripe.model.v2.tax.ManualRule.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.tax.ManualRuleCreateParams params =
@@ -30717,7 +30857,7 @@ public void testV2TaxManualRuleGet2Services() throws StripeException {
null,
null,
com.stripe.model.v2.tax.ManualRule.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.tax.ManualRule manualRule =
@@ -30736,7 +30876,7 @@ public void testV2TaxManualRulePost2Services() throws StripeException {
null,
null,
com.stripe.model.v2.tax.ManualRule.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.tax.ManualRuleUpdateParams params =
@@ -30777,7 +30917,7 @@ public void testV2TaxManualRulePost3Services() throws StripeException {
null,
null,
com.stripe.model.v2.tax.ManualRule.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}");
+ "{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.tax.ManualRule manualRule =
@@ -30800,7 +30940,7 @@ public void testV2TestHelpersFinancialAddressPostServices() throws StripeExcepti
null,
null,
com.stripe.model.v2.FinancialAddressCreditSimulation.class,
- "{\"object\":\"financial_address_credit_simulation\",\"status\":\"status\",\"livemode\":true}");
+ "{\"object\":\"financial_address_credit_simulation\",\"livemode\":true,\"status\":\"status\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.testhelpers.FinancialAddressCreditParams params =
@@ -30829,7 +30969,7 @@ public void testV2TestHelpersFinancialAddressPost2Services() throws StripeExcept
null,
null,
com.stripe.model.v2.FinancialAddressGeneratedMicrodeposits.class,
- "{\"amounts\":[{\"currency\":\"USD\",\"value\":1}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}");
+ "{\"object\":\"financial_address_generated_microdeposits\",\"amounts\":[{\"currency\":\"USD\",\"value\":1}],\"livemode\":true,\"status\":\"accepted\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.model.v2.FinancialAddressGeneratedMicrodeposits
@@ -30853,7 +30993,7 @@ public void testV2TestHelpersMoneyManagementPostServices() throws StripeExceptio
null,
null,
com.stripe.model.v2.moneymanagement.RecipientVerification.class,
- "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"object\":\"v2.money_management.recipient_verification\",\"status\":\"acknowledged\",\"livemode\":true}");
+ "{\"object\":\"v2.money_management.recipient_verification\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"status\":\"acknowledged\"}");
StripeClient client = new StripeClient(networkSpy);
com.stripe.param.v2.testhelpers.MoneyManagementRecipientVerificationsParams params =