diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index b7a4b42e31e..f5f04d71b05 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-49b1e23eef1a5004ed00987c41d5ec8447a19e27
\ No newline at end of file
+2feaeea9e3c2b01dd5b7e4092d8364af4bf1e740
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 4c2310759e9..466b261db46 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2189
\ No newline at end of file
+v2190
\ No newline at end of file
diff --git a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.java
index 56a8f7d3136..526e20763eb 100644
--- a/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.java
+++ b/src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.java
@@ -23,9 +23,11 @@ public static final class EventData {
* Open Enum. The capability which had its status updated.
*
*
One of {@code commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
- * commercial.cross_river_bank.charge_card}, {@code commercial.cross_river_bank.spend_card},
- * {@code commercial.lead.prepaid_card}, {@code commercial.stripe.charge_card}, or {@code
- * commercial.stripe.prepaid_card}.
+ * commercial.cross_river_bank.charge_card}, {@code commercial.cross_river_bank.prepaid_card},
+ * {@code commercial.cross_river_bank.spend_card}, {@code commercial.fifth_third.charge_card},
+ * {@code commercial.lead.prepaid_card}, {@code commercial.stripe.charge_card}, {@code
+ * commercial.stripe.prepaid_card}, {@code consumer.celtic.revolving_credit_card}, {@code
+ * consumer.cross_river_bank.prepaid_card}, or {@code consumer.lead.prepaid_card}.
*/
@SerializedName("updated_capability")
String updatedCapability;
diff --git a/src/main/java/com/stripe/model/BalanceTransaction.java b/src/main/java/com/stripe/model/BalanceTransaction.java
index 13729aef1d4..680e512266a 100644
--- a/src/main/java/com/stripe/model/BalanceTransaction.java
+++ b/src/main/java/com/stripe/model/BalanceTransaction.java
@@ -43,8 +43,8 @@ public class BalanceTransaction extends ApiResource implements HasId {
/**
* The balance that this transaction impacts.
*
- *
One of {@code issuing}, {@code payments}, {@code refund_and_dispute_prefunding}, {@code
- * risk_reserved}, or {@code transit}.
+ *
One of {@code fee_credits}, {@code issuing}, {@code payments}, {@code
+ * refund_and_dispute_prefunding}, {@code risk_reserved}, or {@code transit}.
*/
@SerializedName("balance_type")
String balanceType;
diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java
index f5960a8e47b..0e5ce2f3852 100644
--- a/src/main/java/com/stripe/model/Dispute.java
+++ b/src/main/java/com/stripe/model/Dispute.java
@@ -38,6 +38,14 @@ public class Dispute extends ApiResource
@SerializedName("amount")
Long amount;
+ /**
+ * The amount you want to contest, in the dispute's currency. Setting this to less than the full
+ * dispute amount means accepting the loss on the remaining amount. If not specified, the entire
+ * disputed amount is contested.
+ */
+ @SerializedName("amount_to_counter")
+ Long amountToCounter;
+
/**
* List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your
* Stripe account as a result of this dispute.
diff --git a/src/main/java/com/stripe/model/EventDataClassLookup.java b/src/main/java/com/stripe/model/EventDataClassLookup.java
index c9e3ac98d0c..1c9f829a554 100644
--- a/src/main/java/com/stripe/model/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/EventDataClassLookup.java
@@ -226,6 +226,9 @@ public final class EventDataClassLookup {
classLookup.put("radar.account_evaluation", com.stripe.model.radar.AccountEvaluation.class);
classLookup.put("radar.early_fraud_warning", com.stripe.model.radar.EarlyFraudWarning.class);
+ classLookup.put(
+ "radar.issuing_authorization_evaluation",
+ com.stripe.model.radar.IssuingAuthorizationEvaluation.class);
classLookup.put("radar.payment_evaluation", com.stripe.model.radar.PaymentEvaluation.class);
classLookup.put("radar.value_list", com.stripe.model.radar.ValueList.class);
classLookup.put("radar.value_list_item", com.stripe.model.radar.ValueListItem.class);
diff --git a/src/main/java/com/stripe/model/InvoiceItem.java b/src/main/java/com/stripe/model/InvoiceItem.java
index 07d637d87e4..48a0846804f 100644
--- a/src/main/java/com/stripe/model/InvoiceItem.java
+++ b/src/main/java/com/stripe/model/InvoiceItem.java
@@ -92,6 +92,13 @@ public class InvoiceItem extends ApiResource implements HasId, MetadataStore> discounts;
+ /**
+ * Array of field names that can't be modified. Attempting to update a frozen field returns an
+ * error.
+ */
+ @SerializedName("frozen_fields")
+ List frozenFields;
+
/** Unique identifier for the object. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
diff --git a/src/main/java/com/stripe/model/radar/IssuingAuthorizationEvaluation.java b/src/main/java/com/stripe/model/radar/IssuingAuthorizationEvaluation.java
new file mode 100644
index 00000000000..0464af5bbb1
--- /dev/null
+++ b/src/main/java/com/stripe/model/radar/IssuingAuthorizationEvaluation.java
@@ -0,0 +1,384 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.radar;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.radar.IssuingAuthorizationEvaluationCreateParams;
+import java.math.BigDecimal;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * Authorization Evaluations represent fraud risk assessments for Issuing card authorizations. They
+ * include fraud risk signals and contextual details about the authorization.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class IssuingAuthorizationEvaluation extends ApiResource implements HasId {
+ /** Details about the authorization transaction. */
+ @SerializedName("authorization_details")
+ AuthorizationDetails authorizationDetails;
+
+ /** Details about the card used in the authorization. */
+ @SerializedName("card_details")
+ CardDetails cardDetails;
+
+ /** Details about the cardholder. */
+ @SerializedName("cardholder_details")
+ CardholderDetails cardholderDetails;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * If the object exists in live mode, the value is {@code true}. If the object exists in test
+ * mode, the value is {@code false}.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /** Details about the merchant where the authorization occurred. */
+ @SerializedName("merchant_details")
+ MerchantDetails merchantDetails;
+
+ /**
+ * Set of key-value pairs that you can attach to an object. This can be useful for storing
+ * additional information about the object in a structured format.
+ */
+ @SerializedName("metadata")
+ Map metadata;
+
+ /** Details about the card network processing. */
+ @SerializedName("network_details")
+ NetworkDetails networkDetails;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value.
+ *
+ * Equal to {@code radar.issuing_authorization_evaluation}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** Collection of fraud risk signals for this authorization evaluation. */
+ @SerializedName("signals")
+ Signals signals;
+
+ /** Details about the token, if a tokenized payment method was used. */
+ @SerializedName("token_details")
+ TokenDetails tokenDetails;
+
+ /** Details about verification checks performed. */
+ @SerializedName("verification_details")
+ VerificationDetails verificationDetails;
+
+ /** Request a fraud risk assessment from Stripe for an Issuing card authorization. */
+ public static IssuingAuthorizationEvaluation create(Map params)
+ throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /** Request a fraud risk assessment from Stripe for an Issuing card authorization. */
+ public static IssuingAuthorizationEvaluation create(
+ Map params, RequestOptions options) throws StripeException {
+ String path = "/v1/radar/issuing_authorization_evaluations";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getGlobalResponseGetter().request(request, IssuingAuthorizationEvaluation.class);
+ }
+
+ /** Request a fraud risk assessment from Stripe for an Issuing card authorization. */
+ public static IssuingAuthorizationEvaluation create(
+ IssuingAuthorizationEvaluationCreateParams params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /** Request a fraud risk assessment from Stripe for an Issuing card authorization. */
+ public static IssuingAuthorizationEvaluation create(
+ IssuingAuthorizationEvaluationCreateParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/radar/issuing_authorization_evaluations";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, IssuingAuthorizationEvaluation.class);
+ }
+
+ /** Details about the authorization transaction. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AuthorizationDetails extends StripeObject {
+ /** The authorization amount in the smallest currency unit. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * The method used for authorization.
+ *
+ * One of {@code chip}, {@code contactless}, {@code keyed_in}, {@code online}, or {@code
+ * swipe}.
+ */
+ @SerializedName("authorization_method")
+ String authorizationMethod;
+
+ /** Three-letter ISO currency code in lowercase. */
+ @SerializedName("currency")
+ String currency;
+
+ /**
+ * The card entry mode.
+ *
+ *
One of {@code contactless}, {@code contactless_magstripe}, {@code credential_on_file},
+ * {@code integrated_circuit_card}, {@code magstripe}, {@code magstripe_no_cvv}, {@code manual},
+ * {@code other}, or {@code unknown}.
+ */
+ @SerializedName("entry_mode")
+ String entryMode;
+
+ /** The raw code for the card entry mode. */
+ @SerializedName("entry_mode_raw_code")
+ String entryModeRawCode;
+
+ /** The time when the authorization was initiated. */
+ @SerializedName("initiated_at")
+ Long initiatedAt;
+
+ /**
+ * The point of sale condition.
+ *
+ *
One of {@code account_verification}, {@code card_not_present}, {@code card_present},
+ * {@code e_commerce}, {@code key_entered_pos}, {@code missing}, {@code moto}, {@code other},
+ * {@code pin_entered}, or {@code recurring}.
+ */
+ @SerializedName("point_of_sale_condition")
+ String pointOfSaleCondition;
+
+ /** The raw code for the point of sale condition. */
+ @SerializedName("point_of_sale_condition_raw_code")
+ String pointOfSaleConditionRawCode;
+
+ /** External reference for the authorization. */
+ @SerializedName("reference")
+ String reference;
+ }
+
+ /** Details about the card used in the authorization. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CardDetails extends StripeObject {
+ /** The Bank Identification Number (BIN) of the card. */
+ @SerializedName("bin")
+ String bin;
+
+ /** The country code associated with the card BIN. */
+ @SerializedName("bin_country")
+ String binCountry;
+
+ /**
+ * The type of card (physical or virtual).
+ *
+ *
One of {@code physical}, or {@code virtual}.
+ */
+ @SerializedName("card_type")
+ String cardType;
+
+ /** The time when the card was created. */
+ @SerializedName("created_at")
+ Long createdAt;
+
+ /** The last 4 digits of the card number. */
+ @SerializedName("last4")
+ String last4;
+
+ /** External reference for the card. */
+ @SerializedName("reference")
+ String reference;
+ }
+
+ /** Details about the cardholder. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CardholderDetails extends StripeObject {
+ /** The time when the cardholder was created. */
+ @SerializedName("created_at")
+ Long createdAt;
+
+ /** External reference for the cardholder. */
+ @SerializedName("reference")
+ String reference;
+ }
+
+ /** Details about the merchant where the authorization occurred. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MerchantDetails extends StripeObject {
+ /** The merchant category code (MCC). */
+ @SerializedName("category_code")
+ String categoryCode;
+
+ /** The merchant country code. */
+ @SerializedName("country")
+ String country;
+
+ /** The merchant name. */
+ @SerializedName("name")
+ String name;
+
+ /** The merchant identifier from the card network. */
+ @SerializedName("network_id")
+ String networkId;
+
+ /** The terminal identifier. */
+ @SerializedName("terminal_id")
+ String terminalId;
+ }
+
+ /** Details about the card network processing. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class NetworkDetails extends StripeObject {
+ /** The acquiring institution identifier. */
+ @SerializedName("acquiring_institution_id")
+ String acquiringInstitutionId;
+
+ /**
+ * The card network that processed the authorization.
+ *
+ *
One of {@code cirrus}, {@code interlink}, {@code maestro}, {@code mastercard}, {@code
+ * other}, {@code plus}, or {@code visa}.
+ */
+ @SerializedName("routed_network")
+ String routedNetwork;
+ }
+
+ /** Collection of fraud risk signals for this authorization evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Signals extends StripeObject {
+ /** A fraud risk signal with status, error, and data fields. */
+ @SerializedName("fraud_risk")
+ FraudRisk fraudRisk;
+
+ /** A fraud risk signal with status, error, and data fields. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FraudRisk extends StripeObject {
+ /** Signal evaluation data, including score and level. */
+ @SerializedName("data")
+ Data data;
+
+ /** Details of an error that prevented reporting this signal. */
+ @SerializedName("error")
+ Map error;
+
+ /**
+ * The status of this signal.
+ *
+ * One of {@code error}, or {@code success}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /** The signal's data payload, available upon a successful signal evaluation. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Data extends StripeObject {
+ /** The time when this signal was evaluated. */
+ @SerializedName("evaluated_at")
+ Long evaluatedAt;
+
+ /**
+ * Risk level, based on the score.
+ *
+ *
One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
+ * not_assessed}, or {@code unknown}.
+ */
+ @SerializedName("level")
+ String level;
+
+ /**
+ * Fraud risk score for this evaluation. Score in the range [0,100], formatted as a 2
+ * decimal float, with higher scores indicating a higher likelihood of fraud.
+ */
+ @SerializedName("score")
+ BigDecimal score;
+ }
+ }
+ }
+
+ /** Details about the token, if a tokenized payment method was used. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class TokenDetails extends StripeObject {
+ /** The time when the token was created. */
+ @SerializedName("created_at")
+ Long createdAt;
+
+ /** External reference for the token. */
+ @SerializedName("reference")
+ String reference;
+
+ /**
+ * The wallet provider, if applicable.
+ *
+ *
One of {@code apple_pay}, {@code google_pay}, or {@code samsung_pay}.
+ */
+ @SerializedName("wallet")
+ String wallet;
+ }
+
+ /** Details about verification checks performed. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class VerificationDetails extends StripeObject {
+ /**
+ * The result of the 3D Secure verification.
+ *
+ *
One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
+ * failed}, or {@code required}.
+ */
+ @SerializedName("three_d_secure_result")
+ String threeDSecureResult;
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(authorizationDetails, responseGetter);
+ trySetResponseGetter(cardDetails, responseGetter);
+ trySetResponseGetter(cardholderDetails, responseGetter);
+ trySetResponseGetter(merchantDetails, responseGetter);
+ trySetResponseGetter(networkDetails, responseGetter);
+ trySetResponseGetter(signals, responseGetter);
+ trySetResponseGetter(tokenDetails, responseGetter);
+ trySetResponseGetter(verificationDetails, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/v2/billing/IntentAction.java b/src/main/java/com/stripe/model/v2/billing/IntentAction.java
index 43689e0361c..b45198b52e4 100644
--- a/src/main/java/com/stripe/model/v2/billing/IntentAction.java
+++ b/src/main/java/com/stripe/model/v2/billing/IntentAction.java
@@ -108,7 +108,8 @@ public static class EffectiveAt extends StripeObject {
/**
* When the apply action will take effect.
*
- *
One of {@code current_billing_period_end}, or {@code on_reserve}.
+ *
One of {@code current_billing_period_end}, {@code next_billing_period_start}, or {@code
+ * on_reserve}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java
index 2c34352cc30..150007c9f63 100644
--- a/src/main/java/com/stripe/model/v2/core/Account.java
+++ b/src/main/java/com/stripe/model/v2/core/Account.java
@@ -193,6 +193,10 @@ public static class Capabilities extends StripeObject {
@SerializedName("commercial")
Commercial commercial;
+ /** Can create cards for consumer issuing use cases. */
+ @SerializedName("consumer")
+ Consumer consumer;
+
/** Can create cards for commercial issuing use cases. */
@Getter
@Setter
@@ -206,6 +210,10 @@ public static class Commercial extends StripeObject {
@SerializedName("cross_river_bank")
CrossRiverBank crossRiverBank;
+ /** Can create commercial issuing cards with Fifth Third as a BIN sponsor. */
+ @SerializedName("fifth_third")
+ FifthThird fifthThird;
+
/** Can create commercial issuing cards with Lead as a BIN sponsor. */
@SerializedName("lead")
Lead lead;
@@ -345,6 +353,10 @@ public static class CrossRiverBank extends StripeObject {
@SerializedName("charge_card")
ChargeCard chargeCard;
+ /** Can create commercial issuing prepaid cards with Cross River Bank as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
/** Can create commercial issuing spend cards with Cross River Bank as BIN sponsor. */
@SerializedName("spend_card")
SpendCard spendCard;
@@ -403,6 +415,60 @@ public static class StatusDetail extends StripeObject {
}
}
+ /** Can create commercial issuing prepaid cards with Cross River Bank as BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard extends StripeObject {
+ /**
+ * The status of the Capability.
+ *
+ *
One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Additional details about the capability's status. This value is empty when {@code
+ * status} is {@code active}.
+ */
+ @SerializedName("status_details")
+ List<
+ Account.Configuration.CardCreator.Capabilities.Commercial.CrossRiverBank
+ .PrepaidCard.StatusDetail>
+ statusDetails;
+
+ /**
+ * For more details about StatusDetail, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetail extends StripeObject {
+ /**
+ * Machine-readable code explaining the reason for the Capability to be in its
+ * current status.
+ *
+ *
One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ *
One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
+
/** Can create commercial issuing spend cards with Cross River Bank as BIN sponsor. */
@Getter
@Setter
@@ -458,6 +524,70 @@ public static class StatusDetail extends StripeObject {
}
}
+ /** Can create commercial issuing cards with Fifth Third as a BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FifthThird extends StripeObject {
+ /** Can create commercial issuing charge cards with Fifth Third Bank as BIN sponsor. */
+ @SerializedName("charge_card")
+ ChargeCard chargeCard;
+
+ /** Can create commercial issuing charge cards with Fifth Third Bank as BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ChargeCard extends StripeObject {
+ /**
+ * The status of the Capability.
+ *
+ *
One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Additional details about the capability's status. This value is empty when {@code
+ * status} is {@code active}.
+ */
+ @SerializedName("status_details")
+ List<
+ Account.Configuration.CardCreator.Capabilities.Commercial.FifthThird
+ .ChargeCard.StatusDetail>
+ statusDetails;
+
+ /**
+ * For more details about StatusDetail, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetail extends StripeObject {
+ /**
+ * Machine-readable code explaining the reason for the Capability to be in its
+ * current status.
+ *
+ *
One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ *
One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
+ }
+
/** Can create commercial issuing cards with Lead as a BIN sponsor. */
@Getter
@Setter
@@ -650,87 +780,297 @@ public static class StatusDetail extends StripeObject {
}
}
}
- }
- }
- /** The Customer Configuration allows the Account to be used in inbound payment flows. */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class Customer extends StripeObject {
- /**
- * Indicates whether the customer configuration is active. You can deactivate or reactivate
- * the customer configuration by updating this property. Deactivating the configuration by
- * setting this value to false will unrequest all capabilities within the configuration. It
- * will not delete any of the configuration's other properties.
- */
- @SerializedName("applied")
- Boolean applied;
+ /** Can create cards for consumer issuing use cases. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Consumer extends StripeObject {
+ /** Can create consumer issuing cards with Celtic as BIN sponsor. */
+ @SerializedName("celtic")
+ Celtic celtic;
- /**
- * Settings for automatic indirect tax calculation on the customer's invoices, subscriptions,
- * Checkout Sessions, and Payment Links. Available when automatic tax calculation is available
- * for the customer account's location.
- */
- @SerializedName("automatic_indirect_tax")
- AutomaticIndirectTax automaticIndirectTax;
+ /** Can create consumer issuing cards with Cross River Bank as BIN sponsor. */
+ @SerializedName("cross_river_bank")
+ CrossRiverBank crossRiverBank;
- /** Default Billing settings for the customer account, used in Invoices and Subscriptions. */
- @SerializedName("billing")
- Billing billing;
+ /** Can create consumer issuing cards with Lead as BIN sponsor. */
+ @SerializedName("lead")
+ Lead lead;
- /** Capabilities that have been requested on the Customer Configuration. */
- @SerializedName("capabilities")
- Capabilities capabilities;
+ /** Can create consumer issuing cards with Celtic as BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Celtic extends StripeObject {
+ /** Can create consumer issuing charge cards with Celtic as BIN sponsor. */
+ @SerializedName("revolving_credit_card")
+ RevolvingCreditCard revolvingCreditCard;
- /** The customer's shipping information. Appears on invoices emailed to this customer. */
- @SerializedName("shipping")
- Shipping shipping;
+ /** Can create consumer issuing charge cards with Celtic as BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RevolvingCreditCard extends StripeObject {
+ /**
+ * The status of the Capability.
+ *
+ *
One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
- /**
- * ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and
- * when the Customer Configuration is first set on an Account.
- */
- @SerializedName("test_clock")
- String testClock;
+ /**
+ * Additional details about the capability's status. This value is empty when {@code
+ * status} is {@code active}.
+ */
+ @SerializedName("status_details")
+ List<
+ Account.Configuration.CardCreator.Capabilities.Consumer.Celtic
+ .RevolvingCreditCard.StatusDetail>
+ statusDetails;
- /**
- * Settings for automatic indirect tax calculation on the customer's invoices, subscriptions,
- * Checkout Sessions, and Payment Links. Available when automatic tax calculation is available
- * for the customer account's location.
- */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class AutomaticIndirectTax extends StripeObject {
- /**
- * The customer account's tax exemption status: {@code none}, {@code exempt}, or {@code
- * reverse}. When {@code reverse}, invoice and receipt PDFs include "Reverse
- * charge".
- *
- *
One of {@code exempt}, {@code none}, or {@code reverse}.
- */
- @SerializedName("exempt")
- String exempt;
+ /**
+ * For more details about StatusDetail, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetail extends StripeObject {
+ /**
+ * Machine-readable code explaining the reason for the Capability to be in its
+ * current status.
+ *
+ *
One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
- /**
- * A recent IP address of the customer used for tax reporting and tax location inference.
- */
- @SerializedName("ip_address")
- String ipAddress;
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ *
One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
+ }
- /**
- * The customer account's identified tax location, derived from {@code location_source}.
- * Only rendered if the {@code automatic_indirect_tax} feature is requested and {@code
- * active}.
- */
- @SerializedName("location")
- Location location;
+ /** Can create consumer issuing cards with Cross River Bank as BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CrossRiverBank extends StripeObject {
+ /** Can create consumer issuing prepaid cards with Cross River Bank as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
- /**
- * Data source used to identify the customer account's tax location. Defaults to {@code
- * identity_address}. Used for automatic indirect tax calculation.
- *
+ /** Can create consumer issuing prepaid cards with Cross River Bank as BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard extends StripeObject {
+ /**
+ * The status of the Capability.
+ *
+ *
One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Additional details about the capability's status. This value is empty when {@code
+ * status} is {@code active}.
+ */
+ @SerializedName("status_details")
+ List<
+ Account.Configuration.CardCreator.Capabilities.Consumer.CrossRiverBank
+ .PrepaidCard.StatusDetail>
+ statusDetails;
+
+ /**
+ * For more details about StatusDetail, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetail extends StripeObject {
+ /**
+ * Machine-readable code explaining the reason for the Capability to be in its
+ * current status.
+ *
+ *
One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ *
One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
+ }
+
+ /** Can create consumer issuing cards with Lead as BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead extends StripeObject {
+ /** Can create consumer issuing prepaid cards with Lead as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ /** Can create consumer issuing prepaid cards with Lead as BIN sponsor. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard extends StripeObject {
+ /**
+ * The status of the Capability.
+ *
+ *
One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Additional details about the capability's status. This value is empty when {@code
+ * status} is {@code active}.
+ */
+ @SerializedName("status_details")
+ List<
+ Account.Configuration.CardCreator.Capabilities.Consumer.Lead.PrepaidCard
+ .StatusDetail>
+ statusDetails;
+
+ /**
+ * For more details about StatusDetail, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetail extends StripeObject {
+ /**
+ * Machine-readable code explaining the reason for the Capability to be in its
+ * current status.
+ *
+ *
One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ *
One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /** The Customer Configuration allows the Account to be used in inbound payment flows. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Customer extends StripeObject {
+ /**
+ * Indicates whether the customer configuration is active. You can deactivate or reactivate
+ * the customer configuration by updating this property. Deactivating the configuration by
+ * setting this value to false will unrequest all capabilities within the configuration. It
+ * will not delete any of the configuration's other properties.
+ */
+ @SerializedName("applied")
+ Boolean applied;
+
+ /**
+ * Settings for automatic indirect tax calculation on the customer's invoices, subscriptions,
+ * Checkout Sessions, and Payment Links. Available when automatic tax calculation is available
+ * for the customer account's location.
+ */
+ @SerializedName("automatic_indirect_tax")
+ AutomaticIndirectTax automaticIndirectTax;
+
+ /** Default Billing settings for the customer account, used in Invoices and Subscriptions. */
+ @SerializedName("billing")
+ Billing billing;
+
+ /** Capabilities that have been requested on the Customer Configuration. */
+ @SerializedName("capabilities")
+ Capabilities capabilities;
+
+ /** The customer's shipping information. Appears on invoices emailed to this customer. */
+ @SerializedName("shipping")
+ Shipping shipping;
+
+ /**
+ * ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and
+ * when the Customer Configuration is first set on an Account.
+ */
+ @SerializedName("test_clock")
+ String testClock;
+
+ /**
+ * Settings for automatic indirect tax calculation on the customer's invoices, subscriptions,
+ * Checkout Sessions, and Payment Links. Available when automatic tax calculation is available
+ * for the customer account's location.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AutomaticIndirectTax extends StripeObject {
+ /**
+ * The customer account's tax exemption status: {@code none}, {@code exempt}, or {@code
+ * reverse}. When {@code reverse}, invoice and receipt PDFs include "Reverse
+ * charge".
+ *
+ *
One of {@code exempt}, {@code none}, or {@code reverse}.
+ */
+ @SerializedName("exempt")
+ String exempt;
+
+ /**
+ * A recent IP address of the customer used for tax reporting and tax location inference.
+ */
+ @SerializedName("ip_address")
+ String ipAddress;
+
+ /**
+ * The customer account's identified tax location, derived from {@code location_source}.
+ * Only rendered if the {@code automatic_indirect_tax} feature is requested and {@code
+ * active}.
+ */
+ @SerializedName("location")
+ Location location;
+
+ /**
+ * Data source used to identify the customer account's tax location. Defaults to {@code
+ * identity_address}. Used for automatic indirect tax calculation.
+ *
*
One of {@code identity_address}, {@code ip_address}, {@code payment_method}, or {@code
* shipping_address}.
*/
@@ -5738,9 +6078,12 @@ public static class RestrictsCapability extends StripeObject {
* cartes_bancaires_payments}, {@code cashapp_payments}, {@code
* commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
* commercial.cross_river_bank.charge_card}, {@code
- * commercial.cross_river_bank.spend_card}, {@code commercial.lead.prepaid_card}, {@code
- * commercial.stripe.charge_card}, {@code commercial.stripe.prepaid_card}, {@code
- * consumer.holds_currencies.usd}, {@code crypto}, {@code eps_payments}, {@code
+ * commercial.cross_river_bank.prepaid_card}, {@code
+ * commercial.cross_river_bank.spend_card}, {@code commercial.fifth_third.charge_card},
+ * {@code commercial.lead.prepaid_card}, {@code commercial.stripe.charge_card}, {@code
+ * commercial.stripe.prepaid_card}, {@code consumer.celtic.revolving_credit_card}, {@code
+ * consumer.cross_river_bank.prepaid_card}, {@code consumer.holds_currencies.usd}, {@code
+ * consumer.lead.prepaid_card}, {@code crypto}, {@code eps_payments}, {@code
* financial_addresses.bank_accounts}, {@code fpx_payments}, {@code
* gb_bank_transfer_payments}, {@code grabpay_payments}, {@code holds_currencies.eur},
* {@code holds_currencies.gbp}, {@code holds_currencies.usd}, {@code ideal_payments},
@@ -6114,6 +6457,10 @@ public static class CardCreator extends StripeObject {
@SerializedName("commercial")
Commercial commercial;
+ /** Terms of service acceptances to create cards for consumer issuing use cases. */
+ @SerializedName("consumer")
+ Consumer consumer;
+
/** Terms of service acceptances to create cards for commercial issuing use cases. */
@Getter
@Setter
@@ -6136,6 +6483,13 @@ public static class Commercial extends StripeObject {
@SerializedName("cross_river_bank")
CrossRiverBank crossRiverBank;
+ /**
+ * Terms of service acceptances for commercial issuing cards with Fifth Third as BIN
+ * sponsor.
+ */
+ @SerializedName("fifth_third")
+ FifthThird fifthThird;
+
/** Terms of service acceptances for Stripe commercial card Global issuing. */
@SerializedName("global_account_holder")
GlobalAccountHolder globalAccountHolder;
@@ -6492,6 +6846,13 @@ public static class CrossRiverBank extends StripeObject {
@SerializedName("charge_card")
ChargeCard chargeCard;
+ /**
+ * Terms of service acceptances for commercial issuing prepaid cards with Cross River
+ * Bank as BIN sponsor.
+ */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
/**
* Terms of service acceptances for commercial issuing spend cards with Cross River
* Bank as BIN sponsor.
@@ -6670,30 +7031,30 @@ public static class Platform extends StripeObject {
}
/**
- * Terms of service acceptances for commercial issuing spend cards with Cross River
+ * Terms of service acceptances for commercial issuing prepaid cards with Cross River
* Bank as BIN sponsor.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class SpendCard extends StripeObject {
+ public static class PrepaidCard extends StripeObject {
/**
- * Bank terms of service acceptance for commercial issuing spend cards with Cross
- * River Bank as BIN sponsor.
+ * Bank terms of service acceptance for commercial Global issuing prepaid cards with
+ * Cross River Bank as BIN sponsor.
*/
@SerializedName("bank_terms")
BankTerms bankTerms;
/**
- * Financial disclosures terms of service acceptance for commercial issuing spend
- * cards with Cross River Bank as BIN sponsor.
+ * Platform terms of service acceptance for commercial Global issuing prepaid cards
+ * with Cross River Bank as BIN sponsor.
*/
- @SerializedName("financing_disclosures")
- FinancingDisclosures financingDisclosures;
+ @SerializedName("platform")
+ Platform platform;
/**
- * Bank terms of service acceptance for commercial issuing spend cards with Cross
- * River Bank as BIN sponsor.
+ * Bank terms of service acceptance for commercial Global issuing prepaid cards with
+ * Cross River Bank as BIN sponsor.
*/
@Getter
@Setter
@@ -6727,13 +7088,13 @@ public static class BankTerms extends StripeObject {
}
/**
- * Financial disclosures terms of service acceptance for commercial issuing spend
- * cards with Cross River Bank as BIN sponsor.
+ * Platform terms of service acceptance for commercial Global issuing prepaid cards
+ * with Cross River Bank as BIN sponsor.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class FinancingDisclosures extends StripeObject {
+ public static class Platform extends StripeObject {
/**
* The time when the Account's representative accepted the terms of service.
* Represented as a RFC 3339 date & time UTC value in millisecond precision,
@@ -6761,27 +7122,213 @@ public static class FinancingDisclosures extends StripeObject {
String userAgent;
}
}
- }
- /** Terms of service acceptances for Stripe commercial card Global issuing. */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class GlobalAccountHolder extends StripeObject {
/**
- * The time when the Account's representative accepted the terms of service.
- * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
- * example: 2022-09-18T13:22:18.123Z.
+ * Terms of service acceptances for commercial issuing spend cards with Cross River
+ * Bank as BIN sponsor.
*/
- @SerializedName("date")
- java.time.Instant date;
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SpendCard extends StripeObject {
+ /**
+ * Bank terms of service acceptance for commercial issuing spend cards with Cross
+ * River Bank as BIN sponsor.
+ */
+ @SerializedName("bank_terms")
+ BankTerms bankTerms;
- /**
- * The IP address from which the Account's representative accepted the terms of
- * service.
- */
- @SerializedName("ip")
- String ip;
+ /**
+ * Financial disclosures terms of service acceptance for commercial issuing spend
+ * cards with Cross River Bank as BIN sponsor.
+ */
+ @SerializedName("financing_disclosures")
+ FinancingDisclosures financingDisclosures;
+
+ /**
+ * Bank terms of service acceptance for commercial issuing spend cards with Cross
+ * River Bank as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BankTerms extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Financial disclosures terms of service acceptance for commercial issuing spend
+ * cards with Cross River Bank as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FinancingDisclosures extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+ }
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Fifth Third as BIN
+ * sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FifthThird extends StripeObject {
+ /**
+ * Bank terms of service acceptance for commercial issuing charge cards with Fifth
+ * Third as BIN sponsor.
+ */
+ @SerializedName("bank_terms")
+ BankTerms bankTerms;
+
+ /**
+ * Platform terms of service acceptance for commercial issuing charge cards with Fifth
+ * Third as BIN sponsor.
+ */
+ @SerializedName("platform")
+ Platform platform;
+
+ /**
+ * Bank terms of service acceptance for commercial issuing charge cards with Fifth
+ * Third as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BankTerms extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Platform terms of service acceptance for commercial issuing charge cards with Fifth
+ * Third as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Platform extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+ }
+
+ /** Terms of service acceptances for Stripe commercial card Global issuing. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class GlobalAccountHolder extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
/** The URL to the service agreement the Account's representative accepted. */
@SerializedName("url")
@@ -6945,6 +7492,638 @@ public static class Platform extends StripeObject {
}
}
}
+
+ /** Terms of service acceptances to create cards for consumer issuing use cases. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Consumer extends StripeObject {
+ /** Terms of service acceptances for Stripe commercial card issuing. */
+ @SerializedName("account_holder")
+ AccountHolder accountHolder;
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
+ */
+ @SerializedName("celtic")
+ Celtic celtic;
+
+ /**
+ * Terms of service acceptances for consumer issuing cards with Cross River Bank as BIN
+ * sponsor.
+ */
+ @SerializedName("cross_river_bank")
+ CrossRiverBank crossRiverBank;
+
+ /** Terms of service acceptances for Stripe commercial card Global issuing. */
+ @SerializedName("global_account_holder")
+ GlobalAccountHolder globalAccountHolder;
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
+ */
+ @SerializedName("lead")
+ Lead lead;
+
+ /** Terms of service acceptances for Stripe commercial card issuing. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AccountHolder extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted the
+ * terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Celtic extends StripeObject {
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as
+ * BIN sponsor.
+ */
+ @SerializedName("apple_pay")
+ ApplePay applePay;
+
+ /**
+ * Terms of service acceptances for commercial issuing revolving credit cards with
+ * Celtic as BIN sponsor.
+ */
+ @SerializedName("revolving_credit_card")
+ RevolvingCreditCard revolvingCreditCard;
+
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as
+ * BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ApplePay extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing revolving credit cards with
+ * Celtic as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RevolvingCreditCard extends StripeObject {
+ /**
+ * Bank terms of service acceptance for commercial issuing spend cards with Celtic
+ * as BIN sponsor.
+ */
+ @SerializedName("bank_terms")
+ BankTerms bankTerms;
+
+ /**
+ * Financial disclosures terms of service acceptance for commercial issuing spend
+ * cards with Celtic as BIN sponsor.
+ */
+ @SerializedName("financing_disclosures")
+ FinancingDisclosures financingDisclosures;
+
+ /**
+ * Platform terms of service acceptance for commercial issuing spend cards with
+ * Celtic as BIN sponsor.
+ */
+ @SerializedName("platform")
+ Platform platform;
+
+ /**
+ * Bank terms of service acceptance for commercial issuing spend cards with Celtic
+ * as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BankTerms extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Financial disclosures terms of service acceptance for commercial issuing spend
+ * cards with Celtic as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FinancingDisclosures extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Platform terms of service acceptance for commercial issuing spend cards with
+ * Celtic as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Platform extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+ }
+ }
+
+ /**
+ * Terms of service acceptances for consumer issuing cards with Cross River Bank as BIN
+ * sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CrossRiverBank extends StripeObject {
+ /**
+ * Terms of service acceptances for consumer issuing prepaid cards with Cross River
+ * Bank as BIN sponsor.
+ */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ /**
+ * Terms of service acceptances for consumer issuing prepaid cards with Cross River
+ * Bank as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard extends StripeObject {
+ /**
+ * Bank terms of service acceptance for consumer issuing prepaid cards with Cross
+ * River Bank as BIN sponsor.
+ */
+ @SerializedName("bank_terms")
+ BankTerms bankTerms;
+
+ /**
+ * Financial disclosures terms of service acceptance for consumer issuing prepaid
+ * cards with Cross River Bank as BIN sponsor.
+ */
+ @SerializedName("financing_disclosures")
+ FinancingDisclosures financingDisclosures;
+
+ /**
+ * Platform terms of service acceptance for consumer issuing prepaid cards with
+ * Cross River Bank as BIN sponsor.
+ */
+ @SerializedName("platform")
+ Platform platform;
+
+ /**
+ * Bank terms of service acceptance for consumer issuing prepaid cards with Cross
+ * River Bank as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BankTerms extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Financial disclosures terms of service acceptance for consumer issuing prepaid
+ * cards with Cross River Bank as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FinancingDisclosures extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Platform terms of service acceptance for consumer issuing prepaid cards with
+ * Cross River Bank as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Platform extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+ }
+ }
+
+ /** Terms of service acceptances for Stripe commercial card Global issuing. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class GlobalAccountHolder extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted the
+ * terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead extends StripeObject {
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Lead as
+ * BIN sponsor.
+ */
+ @SerializedName("apple_pay")
+ ApplePay applePay;
+
+ /**
+ * Terms of service acceptances for commercial issuing revolving credit cards with
+ * Lead as BIN sponsor.
+ */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ /**
+ * Terms of service acceptances for commercial issuing Apple Pay cards with Lead as
+ * BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ApplePay extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision, for
+ * example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Terms of service acceptances for commercial issuing revolving credit cards with
+ * Lead as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard extends StripeObject {
+ /**
+ * Bank terms of service acceptance for consumer issuing prepaid cards with Lead as
+ * BIN sponsor.
+ */
+ @SerializedName("bank_terms")
+ BankTerms bankTerms;
+
+ /**
+ * Financial disclosures terms of service acceptance for consumer issuing prepaid
+ * cards with Lead as BIN sponsor.
+ */
+ @SerializedName("financing_disclosures")
+ FinancingDisclosures financingDisclosures;
+
+ /**
+ * Platform terms of service acceptance for consumer issuing prepaid cards with Lead
+ * as BIN sponsor.
+ */
+ @SerializedName("platform")
+ Platform platform;
+
+ /**
+ * Bank terms of service acceptance for consumer issuing prepaid cards with Lead as
+ * BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BankTerms extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Financial disclosures terms of service acceptance for consumer issuing prepaid
+ * cards with Lead as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FinancingDisclosures extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
+ /**
+ * Platform terms of service acceptance for consumer issuing prepaid cards with Lead
+ * as BIN sponsor.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Platform extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service.
+ * Represented as a RFC 3339 date & time UTC value in millisecond precision,
+ * for example: 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ java.time.Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of
+ * service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /** The URL to the service agreement the Account's representative accepted. */
+ @SerializedName("url")
+ String url;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted
+ * the terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+ }
+ }
+ }
}
/** Details on the Account's acceptance of Crypto-storer-specific terms of service. */
@@ -8630,9 +9809,12 @@ public static class RestrictsCapability extends StripeObject {
* cartes_bancaires_payments}, {@code cashapp_payments}, {@code
* commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
* commercial.cross_river_bank.charge_card}, {@code
- * commercial.cross_river_bank.spend_card}, {@code commercial.lead.prepaid_card}, {@code
- * commercial.stripe.charge_card}, {@code commercial.stripe.prepaid_card}, {@code
- * consumer.holds_currencies.usd}, {@code crypto}, {@code eps_payments}, {@code
+ * commercial.cross_river_bank.prepaid_card}, {@code
+ * commercial.cross_river_bank.spend_card}, {@code commercial.fifth_third.charge_card},
+ * {@code commercial.lead.prepaid_card}, {@code commercial.stripe.charge_card}, {@code
+ * commercial.stripe.prepaid_card}, {@code consumer.celtic.revolving_credit_card}, {@code
+ * consumer.cross_river_bank.prepaid_card}, {@code consumer.holds_currencies.usd}, {@code
+ * consumer.lead.prepaid_card}, {@code crypto}, {@code eps_payments}, {@code
* financial_addresses.bank_accounts}, {@code fpx_payments}, {@code
* gb_bank_transfer_payments}, {@code grabpay_payments}, {@code holds_currencies.eur},
* {@code holds_currencies.gbp}, {@code holds_currencies.usd}, {@code ideal_payments},
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java
index 83a2e9d5e63..d4dbbe217ed 100644
--- a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionConfirmParams.java
@@ -14,8 +14,8 @@
@EqualsAndHashCode(callSuper = false)
public class RequestedSessionConfirmParams extends ApiRequestParams {
/** Affiliate attribution data associated with this requested session. */
- @SerializedName("affiliate_attributions")
- List affiliateAttributions;
+ @SerializedName("affiliate_attribution")
+ AffiliateAttribution affiliateAttribution;
/** Specifies which fields in the response should be expanded. */
@SerializedName("expand")
@@ -43,13 +43,13 @@ public class RequestedSessionConfirmParams extends ApiRequestParams {
RiskDetails riskDetails;
private RequestedSessionConfirmParams(
- List affiliateAttributions,
+ AffiliateAttribution affiliateAttribution,
List expand,
Map extraParams,
String paymentMethod,
PaymentMethodData paymentMethodData,
RiskDetails riskDetails) {
- this.affiliateAttributions = affiliateAttributions;
+ this.affiliateAttribution = affiliateAttribution;
this.expand = expand;
this.extraParams = extraParams;
this.paymentMethod = paymentMethod;
@@ -62,7 +62,7 @@ public static Builder builder() {
}
public static class Builder {
- private List affiliateAttributions;
+ private AffiliateAttribution affiliateAttribution;
private List expand;
@@ -77,7 +77,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public RequestedSessionConfirmParams build() {
return new RequestedSessionConfirmParams(
- this.affiliateAttributions,
+ this.affiliateAttribution,
this.expand,
this.extraParams,
this.paymentMethod,
@@ -85,31 +85,10 @@ public RequestedSessionConfirmParams build() {
this.riskDetails);
}
- /**
- * Add an element to `affiliateAttributions` list. A list is initialized for the first
- * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
- * {@link RequestedSessionConfirmParams#affiliateAttributions} for the field documentation.
- */
- public Builder addAffiliateAttribution(
- RequestedSessionConfirmParams.AffiliateAttribution element) {
- if (this.affiliateAttributions == null) {
- this.affiliateAttributions = new ArrayList<>();
- }
- this.affiliateAttributions.add(element);
- return this;
- }
-
- /**
- * Add all elements to `affiliateAttributions` list. A list is initialized for the first
- * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
- * {@link RequestedSessionConfirmParams#affiliateAttributions} for the field documentation.
- */
- public Builder addAllAffiliateAttribution(
- List elements) {
- if (this.affiliateAttributions == null) {
- this.affiliateAttributions = new ArrayList<>();
- }
- this.affiliateAttributions.addAll(elements);
+ /** Affiliate attribution data associated with this requested session. */
+ public Builder setAffiliateAttribution(
+ RequestedSessionConfirmParams.AffiliateAttribution affiliateAttribution) {
+ this.affiliateAttribution = affiliateAttribution;
return this;
}
diff --git a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java
index 4b92f7bbfd6..359e6d847ec 100644
--- a/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java
+++ b/src/main/java/com/stripe/param/delegatedcheckout/RequestedSessionCreateParams.java
@@ -14,8 +14,8 @@
@EqualsAndHashCode(callSuper = false)
public class RequestedSessionCreateParams extends ApiRequestParams {
/** Affiliate attribution data associated with this requested session. */
- @SerializedName("affiliate_attributions")
- List affiliateAttributions;
+ @SerializedName("affiliate_attribution")
+ AffiliateAttribution affiliateAttribution;
/** Required. The currency for this requested session. */
@SerializedName("currency")
@@ -71,7 +71,7 @@ public class RequestedSessionCreateParams extends ApiRequestParams {
Map sharedMetadata;
private RequestedSessionCreateParams(
- List affiliateAttributions,
+ AffiliateAttribution affiliateAttribution,
String currency,
String customer,
List expand,
@@ -84,7 +84,7 @@ private RequestedSessionCreateParams(
SellerDetails sellerDetails,
SetupFutureUsage setupFutureUsage,
Map sharedMetadata) {
- this.affiliateAttributions = affiliateAttributions;
+ this.affiliateAttribution = affiliateAttribution;
this.currency = currency;
this.customer = customer;
this.expand = expand;
@@ -104,7 +104,7 @@ public static Builder builder() {
}
public static class Builder {
- private List affiliateAttributions;
+ private AffiliateAttribution affiliateAttribution;
private String currency;
@@ -133,7 +133,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public RequestedSessionCreateParams build() {
return new RequestedSessionCreateParams(
- this.affiliateAttributions,
+ this.affiliateAttribution,
this.currency,
this.customer,
this.expand,
@@ -148,31 +148,10 @@ public RequestedSessionCreateParams build() {
this.sharedMetadata);
}
- /**
- * Add an element to `affiliateAttributions` list. A list is initialized for the first
- * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
- * {@link RequestedSessionCreateParams#affiliateAttributions} for the field documentation.
- */
- public Builder addAffiliateAttribution(
- RequestedSessionCreateParams.AffiliateAttribution element) {
- if (this.affiliateAttributions == null) {
- this.affiliateAttributions = new ArrayList<>();
- }
- this.affiliateAttributions.add(element);
- return this;
- }
-
- /**
- * Add all elements to `affiliateAttributions` list. A list is initialized for the first
- * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
- * {@link RequestedSessionCreateParams#affiliateAttributions} for the field documentation.
- */
- public Builder addAllAffiliateAttribution(
- List elements) {
- if (this.affiliateAttributions == null) {
- this.affiliateAttributions = new ArrayList<>();
- }
- this.affiliateAttributions.addAll(elements);
+ /** Affiliate attribution data associated with this requested session. */
+ public Builder setAffiliateAttribution(
+ RequestedSessionCreateParams.AffiliateAttribution affiliateAttribution) {
+ this.affiliateAttribution = affiliateAttribution;
return this;
}
diff --git a/src/main/java/com/stripe/param/radar/IssuingAuthorizationEvaluationCreateParams.java b/src/main/java/com/stripe/param/radar/IssuingAuthorizationEvaluationCreateParams.java
new file mode 100644
index 00000000000..9865f2d923e
--- /dev/null
+++ b/src/main/java/com/stripe/param/radar/IssuingAuthorizationEvaluationCreateParams.java
@@ -0,0 +1,1282 @@
+// File generated from our OpenAPI spec
+package com.stripe.param.radar;
+
+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 IssuingAuthorizationEvaluationCreateParams extends ApiRequestParams {
+ /** Required. Details about the authorization. */
+ @SerializedName("authorization_details")
+ AuthorizationDetails authorizationDetails;
+
+ /** Required. Details about the card used in the authorization. */
+ @SerializedName("card_details")
+ CardDetails cardDetails;
+
+ /** Details about the cardholder. */
+ @SerializedName("cardholder_details")
+ CardholderDetails cardholderDetails;
+
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. Details about the merchant where the authorization occurred. */
+ @SerializedName("merchant_details")
+ MerchantDetails merchantDetails;
+
+ /**
+ * 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")
+ Map metadata;
+
+ /** Details about the card network processing. */
+ @SerializedName("network_details")
+ NetworkDetails networkDetails;
+
+ /** Details about the token, if a tokenized payment method was used. */
+ @SerializedName("token_details")
+ TokenDetails tokenDetails;
+
+ /** Details about verification checks performed. */
+ @SerializedName("verification_details")
+ VerificationDetails verificationDetails;
+
+ private IssuingAuthorizationEvaluationCreateParams(
+ AuthorizationDetails authorizationDetails,
+ CardDetails cardDetails,
+ CardholderDetails cardholderDetails,
+ List expand,
+ Map extraParams,
+ MerchantDetails merchantDetails,
+ Map metadata,
+ NetworkDetails networkDetails,
+ TokenDetails tokenDetails,
+ VerificationDetails verificationDetails) {
+ this.authorizationDetails = authorizationDetails;
+ this.cardDetails = cardDetails;
+ this.cardholderDetails = cardholderDetails;
+ this.expand = expand;
+ this.extraParams = extraParams;
+ this.merchantDetails = merchantDetails;
+ this.metadata = metadata;
+ this.networkDetails = networkDetails;
+ this.tokenDetails = tokenDetails;
+ this.verificationDetails = verificationDetails;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private AuthorizationDetails authorizationDetails;
+
+ private CardDetails cardDetails;
+
+ private CardholderDetails cardholderDetails;
+
+ private List expand;
+
+ private Map extraParams;
+
+ private MerchantDetails merchantDetails;
+
+ private Map metadata;
+
+ private NetworkDetails networkDetails;
+
+ private TokenDetails tokenDetails;
+
+ private VerificationDetails verificationDetails;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IssuingAuthorizationEvaluationCreateParams build() {
+ return new IssuingAuthorizationEvaluationCreateParams(
+ this.authorizationDetails,
+ this.cardDetails,
+ this.cardholderDetails,
+ this.expand,
+ this.extraParams,
+ this.merchantDetails,
+ this.metadata,
+ this.networkDetails,
+ this.tokenDetails,
+ this.verificationDetails);
+ }
+
+ /** Required. Details about the authorization. */
+ public Builder setAuthorizationDetails(
+ IssuingAuthorizationEvaluationCreateParams.AuthorizationDetails authorizationDetails) {
+ this.authorizationDetails = authorizationDetails;
+ return this;
+ }
+
+ /** Required. Details about the card used in the authorization. */
+ public Builder setCardDetails(
+ IssuingAuthorizationEvaluationCreateParams.CardDetails cardDetails) {
+ this.cardDetails = cardDetails;
+ return this;
+ }
+
+ /** Details about the cardholder. */
+ public Builder setCardholderDetails(
+ IssuingAuthorizationEvaluationCreateParams.CardholderDetails cardholderDetails) {
+ this.cardholderDetails = cardholderDetails;
+ 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
+ * IssuingAuthorizationEvaluationCreateParams#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
+ * IssuingAuthorizationEvaluationCreateParams#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
+ * IssuingAuthorizationEvaluationCreateParams#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 IssuingAuthorizationEvaluationCreateParams#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. Details about the merchant where the authorization occurred. */
+ public Builder setMerchantDetails(
+ IssuingAuthorizationEvaluationCreateParams.MerchantDetails merchantDetails) {
+ this.merchantDetails = merchantDetails;
+ 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
+ * IssuingAuthorizationEvaluationCreateParams#metadata} for the field documentation.
+ */
+ public Builder putMetadata(String key, String value) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `metadata` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link IssuingAuthorizationEvaluationCreateParams#metadata} for the field documentation.
+ */
+ public Builder putAllMetadata(Map map) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
+ }
+ this.metadata.putAll(map);
+ return this;
+ }
+
+ /** Details about the card network processing. */
+ public Builder setNetworkDetails(
+ IssuingAuthorizationEvaluationCreateParams.NetworkDetails networkDetails) {
+ this.networkDetails = networkDetails;
+ return this;
+ }
+
+ /** Details about the token, if a tokenized payment method was used. */
+ public Builder setTokenDetails(
+ IssuingAuthorizationEvaluationCreateParams.TokenDetails tokenDetails) {
+ this.tokenDetails = tokenDetails;
+ return this;
+ }
+
+ /** Details about verification checks performed. */
+ public Builder setVerificationDetails(
+ IssuingAuthorizationEvaluationCreateParams.VerificationDetails verificationDetails) {
+ this.verificationDetails = verificationDetails;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AuthorizationDetails {
+ /** Required. The authorization amount in the smallest currency unit. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** The method used for authorization. */
+ @SerializedName("authorization_method")
+ AuthorizationMethod authorizationMethod;
+
+ /** Required. Three-letter ISO currency code in lowercase. */
+ @SerializedName("currency")
+ String currency;
+
+ /** The card entry mode. */
+ @SerializedName("entry_mode")
+ EntryMode entryMode;
+
+ /** The raw code for the card entry mode. */
+ @SerializedName("entry_mode_raw_code")
+ String entryModeRawCode;
+
+ /**
+ * 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 time when the authorization was initiated (Unix timestamp).
+ */
+ @SerializedName("initiated_at")
+ Long initiatedAt;
+
+ /** The point of sale condition. */
+ @SerializedName("point_of_sale_condition")
+ PointOfSaleCondition pointOfSaleCondition;
+
+ /** The raw code for the point of sale condition. */
+ @SerializedName("point_of_sale_condition_raw_code")
+ String pointOfSaleConditionRawCode;
+
+ /** Required. External reference for the authorization. */
+ @SerializedName("reference")
+ String reference;
+
+ private AuthorizationDetails(
+ Long amount,
+ AuthorizationMethod authorizationMethod,
+ String currency,
+ EntryMode entryMode,
+ String entryModeRawCode,
+ Map extraParams,
+ Long initiatedAt,
+ PointOfSaleCondition pointOfSaleCondition,
+ String pointOfSaleConditionRawCode,
+ String reference) {
+ this.amount = amount;
+ this.authorizationMethod = authorizationMethod;
+ this.currency = currency;
+ this.entryMode = entryMode;
+ this.entryModeRawCode = entryModeRawCode;
+ this.extraParams = extraParams;
+ this.initiatedAt = initiatedAt;
+ this.pointOfSaleCondition = pointOfSaleCondition;
+ this.pointOfSaleConditionRawCode = pointOfSaleConditionRawCode;
+ this.reference = reference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long amount;
+
+ private AuthorizationMethod authorizationMethod;
+
+ private String currency;
+
+ private EntryMode entryMode;
+
+ private String entryModeRawCode;
+
+ private Map extraParams;
+
+ private Long initiatedAt;
+
+ private PointOfSaleCondition pointOfSaleCondition;
+
+ private String pointOfSaleConditionRawCode;
+
+ private String reference;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IssuingAuthorizationEvaluationCreateParams.AuthorizationDetails build() {
+ return new IssuingAuthorizationEvaluationCreateParams.AuthorizationDetails(
+ this.amount,
+ this.authorizationMethod,
+ this.currency,
+ this.entryMode,
+ this.entryModeRawCode,
+ this.extraParams,
+ this.initiatedAt,
+ this.pointOfSaleCondition,
+ this.pointOfSaleConditionRawCode,
+ this.reference);
+ }
+
+ /** Required. The authorization amount in the smallest currency unit. */
+ public Builder setAmount(Long amount) {
+ this.amount = amount;
+ return this;
+ }
+
+ /** The method used for authorization. */
+ public Builder setAuthorizationMethod(
+ IssuingAuthorizationEvaluationCreateParams.AuthorizationDetails.AuthorizationMethod
+ authorizationMethod) {
+ this.authorizationMethod = authorizationMethod;
+ return this;
+ }
+
+ /** Required. Three-letter ISO currency code in lowercase. */
+ public Builder setCurrency(String currency) {
+ this.currency = currency;
+ return this;
+ }
+
+ /** The card entry mode. */
+ public Builder setEntryMode(
+ IssuingAuthorizationEvaluationCreateParams.AuthorizationDetails.EntryMode entryMode) {
+ this.entryMode = entryMode;
+ return this;
+ }
+
+ /** The raw code for the card entry mode. */
+ public Builder setEntryModeRawCode(String entryModeRawCode) {
+ this.entryModeRawCode = entryModeRawCode;
+ 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
+ * IssuingAuthorizationEvaluationCreateParams.AuthorizationDetails#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 IssuingAuthorizationEvaluationCreateParams.AuthorizationDetails#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 time when the authorization was initiated (Unix timestamp).
+ */
+ public Builder setInitiatedAt(Long initiatedAt) {
+ this.initiatedAt = initiatedAt;
+ return this;
+ }
+
+ /** The point of sale condition. */
+ public Builder setPointOfSaleCondition(
+ IssuingAuthorizationEvaluationCreateParams.AuthorizationDetails.PointOfSaleCondition
+ pointOfSaleCondition) {
+ this.pointOfSaleCondition = pointOfSaleCondition;
+ return this;
+ }
+
+ /** The raw code for the point of sale condition. */
+ public Builder setPointOfSaleConditionRawCode(String pointOfSaleConditionRawCode) {
+ this.pointOfSaleConditionRawCode = pointOfSaleConditionRawCode;
+ return this;
+ }
+
+ /** Required. External reference for the authorization. */
+ public Builder setReference(String reference) {
+ this.reference = reference;
+ return this;
+ }
+ }
+
+ public enum AuthorizationMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("chip")
+ CHIP("chip"),
+
+ @SerializedName("contactless")
+ CONTACTLESS("contactless"),
+
+ @SerializedName("keyed_in")
+ KEYED_IN("keyed_in"),
+
+ @SerializedName("online")
+ ONLINE("online"),
+
+ @SerializedName("swipe")
+ SWIPE("swipe");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ AuthorizationMethod(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum EntryMode implements ApiRequestParams.EnumParam {
+ @SerializedName("contactless")
+ CONTACTLESS("contactless"),
+
+ @SerializedName("contactless_magstripe")
+ CONTACTLESS_MAGSTRIPE("contactless_magstripe"),
+
+ @SerializedName("credential_on_file")
+ CREDENTIAL_ON_FILE("credential_on_file"),
+
+ @SerializedName("integrated_circuit_card")
+ INTEGRATED_CIRCUIT_CARD("integrated_circuit_card"),
+
+ @SerializedName("magstripe")
+ MAGSTRIPE("magstripe"),
+
+ @SerializedName("magstripe_no_cvv")
+ MAGSTRIPE_NO_CVV("magstripe_no_cvv"),
+
+ @SerializedName("manual")
+ MANUAL("manual"),
+
+ @SerializedName("other")
+ OTHER("other"),
+
+ @SerializedName("unknown")
+ UNKNOWN("unknown");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ EntryMode(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum PointOfSaleCondition implements ApiRequestParams.EnumParam {
+ @SerializedName("account_verification")
+ ACCOUNT_VERIFICATION("account_verification"),
+
+ @SerializedName("card_not_present")
+ CARD_NOT_PRESENT("card_not_present"),
+
+ @SerializedName("card_present")
+ CARD_PRESENT("card_present"),
+
+ @SerializedName("e_commerce")
+ E_COMMERCE("e_commerce"),
+
+ @SerializedName("key_entered_pos")
+ KEY_ENTERED_POS("key_entered_pos"),
+
+ @SerializedName("missing")
+ MISSING("missing"),
+
+ @SerializedName("moto")
+ MOTO("moto"),
+
+ @SerializedName("other")
+ OTHER("other"),
+
+ @SerializedName("pin_entered")
+ PIN_ENTERED("pin_entered"),
+
+ @SerializedName("recurring")
+ RECURRING("recurring");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ PointOfSaleCondition(String value) {
+ this.value = value;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CardDetails {
+ /** Required. Bank Identification Number (BIN) of the card. */
+ @SerializedName("bin")
+ String bin;
+
+ /** Two-letter ISO country code of the card's issuing bank. */
+ @SerializedName("bin_country")
+ String binCountry;
+
+ /** Required. The type of card (physical or virtual). */
+ @SerializedName("card_type")
+ CardType cardType;
+
+ /** Required. The time when the card was created (Unix timestamp). */
+ @SerializedName("created_at")
+ Long createdAt;
+
+ /**
+ * 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;
+
+ /** Last 4 digits of the card number. */
+ @SerializedName("last4")
+ String last4;
+
+ /** Required. External reference for the card. */
+ @SerializedName("reference")
+ String reference;
+
+ private CardDetails(
+ String bin,
+ String binCountry,
+ CardType cardType,
+ Long createdAt,
+ Map extraParams,
+ String last4,
+ String reference) {
+ this.bin = bin;
+ this.binCountry = binCountry;
+ this.cardType = cardType;
+ this.createdAt = createdAt;
+ this.extraParams = extraParams;
+ this.last4 = last4;
+ this.reference = reference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String bin;
+
+ private String binCountry;
+
+ private CardType cardType;
+
+ private Long createdAt;
+
+ private Map extraParams;
+
+ private String last4;
+
+ private String reference;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IssuingAuthorizationEvaluationCreateParams.CardDetails build() {
+ return new IssuingAuthorizationEvaluationCreateParams.CardDetails(
+ this.bin,
+ this.binCountry,
+ this.cardType,
+ this.createdAt,
+ this.extraParams,
+ this.last4,
+ this.reference);
+ }
+
+ /** Required. Bank Identification Number (BIN) of the card. */
+ public Builder setBin(String bin) {
+ this.bin = bin;
+ return this;
+ }
+
+ /** Two-letter ISO country code of the card's issuing bank. */
+ public Builder setBinCountry(String binCountry) {
+ this.binCountry = binCountry;
+ return this;
+ }
+
+ /** Required. The type of card (physical or virtual). */
+ public Builder setCardType(
+ IssuingAuthorizationEvaluationCreateParams.CardDetails.CardType cardType) {
+ this.cardType = cardType;
+ return this;
+ }
+
+ /** Required. The time when the card was created (Unix timestamp). */
+ public Builder setCreatedAt(Long createdAt) {
+ this.createdAt = createdAt;
+ 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
+ * IssuingAuthorizationEvaluationCreateParams.CardDetails#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 IssuingAuthorizationEvaluationCreateParams.CardDetails#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Last 4 digits of the card number. */
+ public Builder setLast4(String last4) {
+ this.last4 = last4;
+ return this;
+ }
+
+ /** Required. External reference for the card. */
+ public Builder setReference(String reference) {
+ this.reference = reference;
+ return this;
+ }
+ }
+
+ public enum CardType implements ApiRequestParams.EnumParam {
+ @SerializedName("physical")
+ PHYSICAL("physical"),
+
+ @SerializedName("virtual")
+ VIRTUAL("virtual");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ CardType(String value) {
+ this.value = value;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CardholderDetails {
+ /** The time when the cardholder was created (Unix timestamp). */
+ @SerializedName("created_at")
+ Long createdAt;
+
+ /**
+ * 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;
+
+ /** External reference for the cardholder. */
+ @SerializedName("reference")
+ String reference;
+
+ private CardholderDetails(Long createdAt, Map extraParams, String reference) {
+ this.createdAt = createdAt;
+ this.extraParams = extraParams;
+ this.reference = reference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long createdAt;
+
+ private Map extraParams;
+
+ private String reference;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IssuingAuthorizationEvaluationCreateParams.CardholderDetails build() {
+ return new IssuingAuthorizationEvaluationCreateParams.CardholderDetails(
+ this.createdAt, this.extraParams, this.reference);
+ }
+
+ /** The time when the cardholder was created (Unix timestamp). */
+ public Builder setCreatedAt(Long createdAt) {
+ this.createdAt = createdAt;
+ 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
+ * IssuingAuthorizationEvaluationCreateParams.CardholderDetails#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 IssuingAuthorizationEvaluationCreateParams.CardholderDetails#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** External reference for the cardholder. */
+ public Builder setReference(String reference) {
+ this.reference = reference;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MerchantDetails {
+ /** Required. Merchant Category Code (MCC). */
+ @SerializedName("category_code")
+ String categoryCode;
+
+ /** Two-letter ISO country code of the merchant. */
+ @SerializedName("country")
+ String country;
+
+ /**
+ * 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. Name of the merchant. */
+ @SerializedName("name")
+ String name;
+
+ /** Required. Network merchant identifier. */
+ @SerializedName("network_id")
+ String networkId;
+
+ /** Terminal identifier. */
+ @SerializedName("terminal_id")
+ String terminalId;
+
+ private MerchantDetails(
+ String categoryCode,
+ String country,
+ Map extraParams,
+ String name,
+ String networkId,
+ String terminalId) {
+ this.categoryCode = categoryCode;
+ this.country = country;
+ this.extraParams = extraParams;
+ this.name = name;
+ this.networkId = networkId;
+ this.terminalId = terminalId;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String categoryCode;
+
+ private String country;
+
+ private Map extraParams;
+
+ private String name;
+
+ private String networkId;
+
+ private String terminalId;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IssuingAuthorizationEvaluationCreateParams.MerchantDetails build() {
+ return new IssuingAuthorizationEvaluationCreateParams.MerchantDetails(
+ this.categoryCode,
+ this.country,
+ this.extraParams,
+ this.name,
+ this.networkId,
+ this.terminalId);
+ }
+
+ /** Required. Merchant Category Code (MCC). */
+ public Builder setCategoryCode(String categoryCode) {
+ this.categoryCode = categoryCode;
+ return this;
+ }
+
+ /** Two-letter ISO country code of the merchant. */
+ public Builder setCountry(String country) {
+ this.country = country;
+ 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
+ * IssuingAuthorizationEvaluationCreateParams.MerchantDetails#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 IssuingAuthorizationEvaluationCreateParams.MerchantDetails#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. Name of the merchant. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /** Required. Network merchant identifier. */
+ public Builder setNetworkId(String networkId) {
+ this.networkId = networkId;
+ return this;
+ }
+
+ /** Terminal identifier. */
+ public Builder setTerminalId(String terminalId) {
+ this.terminalId = terminalId;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class NetworkDetails {
+ /** The acquiring institution identifier. */
+ @SerializedName("acquiring_institution_id")
+ String acquiringInstitutionId;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The card network that routed the authorization. */
+ @SerializedName("routed_network")
+ RoutedNetwork routedNetwork;
+
+ private NetworkDetails(
+ String acquiringInstitutionId,
+ Map extraParams,
+ RoutedNetwork routedNetwork) {
+ this.acquiringInstitutionId = acquiringInstitutionId;
+ this.extraParams = extraParams;
+ this.routedNetwork = routedNetwork;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String acquiringInstitutionId;
+
+ private Map extraParams;
+
+ private RoutedNetwork routedNetwork;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IssuingAuthorizationEvaluationCreateParams.NetworkDetails build() {
+ return new IssuingAuthorizationEvaluationCreateParams.NetworkDetails(
+ this.acquiringInstitutionId, this.extraParams, this.routedNetwork);
+ }
+
+ /** The acquiring institution identifier. */
+ public Builder setAcquiringInstitutionId(String acquiringInstitutionId) {
+ this.acquiringInstitutionId = acquiringInstitutionId;
+ 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
+ * IssuingAuthorizationEvaluationCreateParams.NetworkDetails#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 IssuingAuthorizationEvaluationCreateParams.NetworkDetails#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The card network that routed the authorization. */
+ public Builder setRoutedNetwork(
+ IssuingAuthorizationEvaluationCreateParams.NetworkDetails.RoutedNetwork routedNetwork) {
+ this.routedNetwork = routedNetwork;
+ return this;
+ }
+ }
+
+ public enum RoutedNetwork implements ApiRequestParams.EnumParam {
+ @SerializedName("cirrus")
+ CIRRUS("cirrus"),
+
+ @SerializedName("interlink")
+ INTERLINK("interlink"),
+
+ @SerializedName("maestro")
+ MAESTRO("maestro"),
+
+ @SerializedName("mastercard")
+ MASTERCARD("mastercard"),
+
+ @SerializedName("other")
+ OTHER("other"),
+
+ @SerializedName("plus")
+ PLUS("plus"),
+
+ @SerializedName("visa")
+ VISA("visa");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ RoutedNetwork(String value) {
+ this.value = value;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class TokenDetails {
+ /** The time when the token was created (Unix timestamp). */
+ @SerializedName("created_at")
+ Long createdAt;
+
+ /**
+ * 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;
+
+ /** External reference for the token. */
+ @SerializedName("reference")
+ String reference;
+
+ /** The wallet provider for the tokenized payment method. */
+ @SerializedName("wallet")
+ Wallet wallet;
+
+ private TokenDetails(
+ Long createdAt, Map extraParams, String reference, Wallet wallet) {
+ this.createdAt = createdAt;
+ this.extraParams = extraParams;
+ this.reference = reference;
+ this.wallet = wallet;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long createdAt;
+
+ private Map extraParams;
+
+ private String reference;
+
+ private Wallet wallet;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IssuingAuthorizationEvaluationCreateParams.TokenDetails build() {
+ return new IssuingAuthorizationEvaluationCreateParams.TokenDetails(
+ this.createdAt, this.extraParams, this.reference, this.wallet);
+ }
+
+ /** The time when the token was created (Unix timestamp). */
+ public Builder setCreatedAt(Long createdAt) {
+ this.createdAt = createdAt;
+ 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
+ * IssuingAuthorizationEvaluationCreateParams.TokenDetails#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 IssuingAuthorizationEvaluationCreateParams.TokenDetails#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** External reference for the token. */
+ public Builder setReference(String reference) {
+ this.reference = reference;
+ return this;
+ }
+
+ /** The wallet provider for the tokenized payment method. */
+ public Builder setWallet(
+ IssuingAuthorizationEvaluationCreateParams.TokenDetails.Wallet wallet) {
+ this.wallet = wallet;
+ return this;
+ }
+ }
+
+ public enum Wallet implements ApiRequestParams.EnumParam {
+ @SerializedName("apple_pay")
+ APPLE_PAY("apple_pay"),
+
+ @SerializedName("google_pay")
+ GOOGLE_PAY("google_pay"),
+
+ @SerializedName("samsung_pay")
+ SAMSUNG_PAY("samsung_pay");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Wallet(String value) {
+ this.value = value;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class VerificationDetails {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The result of 3D Secure verification. */
+ @SerializedName("three_d_secure_result")
+ ThreeDSecureResult threeDSecureResult;
+
+ private VerificationDetails(
+ Map extraParams, ThreeDSecureResult threeDSecureResult) {
+ this.extraParams = extraParams;
+ this.threeDSecureResult = threeDSecureResult;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private ThreeDSecureResult threeDSecureResult;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public IssuingAuthorizationEvaluationCreateParams.VerificationDetails build() {
+ return new IssuingAuthorizationEvaluationCreateParams.VerificationDetails(
+ this.extraParams, this.threeDSecureResult);
+ }
+
+ /**
+ * 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
+ * IssuingAuthorizationEvaluationCreateParams.VerificationDetails#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 IssuingAuthorizationEvaluationCreateParams.VerificationDetails#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The result of 3D Secure verification. */
+ public Builder setThreeDSecureResult(
+ IssuingAuthorizationEvaluationCreateParams.VerificationDetails.ThreeDSecureResult
+ threeDSecureResult) {
+ this.threeDSecureResult = threeDSecureResult;
+ return this;
+ }
+ }
+
+ public enum ThreeDSecureResult implements ApiRequestParams.EnumParam {
+ @SerializedName("attempt_acknowledged")
+ ATTEMPT_ACKNOWLEDGED("attempt_acknowledged"),
+
+ @SerializedName("authenticated")
+ AUTHENTICATED("authenticated"),
+
+ @SerializedName("exempted")
+ EXEMPTED("exempted"),
+
+ @SerializedName("failed")
+ FAILED("failed"),
+
+ @SerializedName("required")
+ REQUIRED("required");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ ThreeDSecureResult(String value) {
+ this.value = value;
+ }
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java b/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java
index 259926e2b9c..975bc82827e 100644
--- a/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/billing/IntentCreateParams.java
@@ -495,6 +495,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("current_billing_period_end")
CURRENT_BILLING_PERIOD_END("current_billing_period_end"),
+ @SerializedName("next_billing_period_start")
+ NEXT_BILLING_PERIOD_START("next_billing_period_start"),
+
@SerializedName("on_reserve")
ON_RESERVE("on_reserve");
diff --git a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java
index b974c16382b..698cbe234e6 100644
--- a/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/v2/core/AccountCreateParams.java
@@ -521,6 +521,10 @@ public static class Capabilities {
@SerializedName("commercial")
Commercial commercial;
+ /** Can create cards for consumer issuing use cases. */
+ @SerializedName("consumer")
+ Consumer consumer;
+
/**
* 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.
@@ -531,8 +535,10 @@ public static class Capabilities {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Capabilities(Commercial commercial, Map extraParams) {
+ private Capabilities(
+ Commercial commercial, Consumer consumer, Map extraParams) {
this.commercial = commercial;
+ this.consumer = consumer;
this.extraParams = extraParams;
}
@@ -543,12 +549,14 @@ public static Builder builder() {
public static class Builder {
private Commercial commercial;
+ private Consumer consumer;
+
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
public AccountCreateParams.Configuration.CardCreator.Capabilities build() {
return new AccountCreateParams.Configuration.CardCreator.Capabilities(
- this.commercial, this.extraParams);
+ this.commercial, this.consumer, this.extraParams);
}
/** Can create cards for commercial issuing use cases. */
@@ -558,6 +566,13 @@ public Builder setCommercial(
return this;
}
+ /** Can create cards for consumer issuing use cases. */
+ public Builder setConsumer(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer consumer) {
+ this.consumer = consumer;
+ 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
@@ -608,6 +623,10 @@ public static class Commercial {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** Can create commercial issuing cards with Fifth Third as BIN sponsor. */
+ @SerializedName("fifth_third")
+ FifthThird fifthThird;
+
/** Can create commercial issuing cards with Stripe as BIN sponsor. */
@SerializedName("lead")
Lead lead;
@@ -620,11 +639,13 @@ private Commercial(
Celtic celtic,
CrossRiverBank crossRiverBank,
Map extraParams,
+ FifthThird fifthThird,
Lead lead,
Stripe stripe) {
this.celtic = celtic;
this.crossRiverBank = crossRiverBank;
this.extraParams = extraParams;
+ this.fifthThird = fifthThird;
this.lead = lead;
this.stripe = stripe;
}
@@ -640,6 +661,8 @@ public static class Builder {
private Map extraParams;
+ private FifthThird fifthThird;
+
private Lead lead;
private Stripe stripe;
@@ -647,7 +670,12 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial build() {
return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial(
- this.celtic, this.crossRiverBank, this.extraParams, this.lead, this.stripe);
+ this.celtic,
+ this.crossRiverBank,
+ this.extraParams,
+ this.fifthThird,
+ this.lead,
+ this.stripe);
}
/** Can create commercial issuing cards with Celtic as BIN sponsor. */
@@ -696,6 +724,14 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /** Can create commercial issuing cards with Fifth Third as BIN sponsor. */
+ public Builder setFifthThird(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.FifthThird
+ fifthThird) {
+ this.fifthThird = fifthThird;
+ return this;
+ }
+
/** Can create commercial issuing cards with Stripe as BIN sponsor. */
public Builder setLead(
AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead lead) {
@@ -991,14 +1027,22 @@ public static class CrossRiverBank {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** Can create commercial issuing prepaid cards with Cross River Bank as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
/** Can create commercial issuing spend cards with Cross River Bank as BIN sponsor. */
@SerializedName("spend_card")
SpendCard spendCard;
private CrossRiverBank(
- ChargeCard chargeCard, Map extraParams, SpendCard spendCard) {
+ ChargeCard chargeCard,
+ Map extraParams,
+ PrepaidCard prepaidCard,
+ SpendCard spendCard) {
this.chargeCard = chargeCard;
this.extraParams = extraParams;
+ this.prepaidCard = prepaidCard;
this.spendCard = spendCard;
}
@@ -1011,6 +1055,8 @@ public static class Builder {
private Map extraParams;
+ private PrepaidCard prepaidCard;
+
private SpendCard spendCard;
/** Finalize and obtain parameter instance from this builder. */
@@ -1018,7 +1064,8 @@ public static class Builder {
.CrossRiverBank
build() {
return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
- .CrossRiverBank(this.chargeCard, this.extraParams, this.spendCard);
+ .CrossRiverBank(
+ this.chargeCard, this.extraParams, this.prepaidCard, this.spendCard);
}
/**
@@ -1062,6 +1109,17 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /**
+ * Can create commercial issuing prepaid cards with Cross River Bank as BIN sponsor.
+ */
+ public Builder setPrepaidCard(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .CrossRiverBank.PrepaidCard
+ prepaidCard) {
+ this.prepaidCard = prepaidCard;
+ return this;
+ }
+
/** Can create commercial issuing spend cards with Cross River Bank as BIN sponsor. */
public Builder setSpendCard(
AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
@@ -1157,7 +1215,7 @@ public Builder setRequested(Boolean requested) {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class SpendCard {
+ public static class PrepaidCard {
/**
* 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
@@ -1175,7 +1233,7 @@ public static class SpendCard {
@SerializedName("requested")
Boolean requested;
- private SpendCard(Map extraParams, Boolean requested) {
+ private PrepaidCard(Map extraParams, Boolean requested) {
this.extraParams = extraParams;
this.requested = requested;
}
@@ -1191,17 +1249,17 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
- .CrossRiverBank.SpendCard
+ .CrossRiverBank.PrepaidCard
build() {
return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
- .CrossRiverBank.SpendCard(this.extraParams, this.requested);
+ .CrossRiverBank.PrepaidCard(this.extraParams, this.requested);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.CrossRiverBank.SpendCard#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.CrossRiverBank.PrepaidCard#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -1216,7 +1274,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the
* first `put/putAll` call, and subsequent calls add additional key/value pairs to
* the original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.CrossRiverBank.SpendCard#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.CrossRiverBank.PrepaidCard#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -1237,89 +1295,10 @@ public Builder setRequested(Boolean requested) {
}
}
}
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Lead {
- /**
- * 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;
-
- /** Can create commercial issuing prepaid cards with Lead as BIN sponsor. */
- @SerializedName("prepaid_card")
- PrepaidCard prepaidCard;
-
- private Lead(Map extraParams, PrepaidCard prepaidCard) {
- this.extraParams = extraParams;
- this.prepaidCard = prepaidCard;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private PrepaidCard prepaidCard;
-
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
- build() {
- return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
- .Lead(this.extraParams, this.prepaidCard);
- }
-
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead#extraParams}
- * for the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the
- * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Can create commercial issuing prepaid cards with Lead as BIN sponsor. */
- public Builder setPrepaidCard(
- AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
- .PrepaidCard
- prepaidCard) {
- this.prepaidCard = prepaidCard;
- return this;
- }
- }
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class PrepaidCard {
+ public static class SpendCard {
/**
* 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
@@ -1337,7 +1316,7 @@ public static class PrepaidCard {
@SerializedName("requested")
Boolean requested;
- private PrepaidCard(Map extraParams, Boolean requested) {
+ private SpendCard(Map extraParams, Boolean requested) {
this.extraParams = extraParams;
this.requested = requested;
}
@@ -1352,18 +1331,18 @@ public static class Builder {
private Boolean requested;
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
- .PrepaidCard
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .CrossRiverBank.SpendCard
build() {
return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
- .Lead.PrepaidCard(this.extraParams, this.requested);
+ .CrossRiverBank.SpendCard(this.extraParams, this.requested);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead.PrepaidCard#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.CrossRiverBank.SpendCard#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -1378,7 +1357,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the
* first `put/putAll` call, and subsequent calls add additional key/value pairs to
* the original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead.PrepaidCard#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.CrossRiverBank.SpendCard#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -1403,8 +1382,8 @@ public Builder setRequested(Boolean requested) {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Stripe {
- /** Can create commercial issuing charge cards with Stripe as BIN sponsor. */
+ public static class FifthThird {
+ /** Can create commercial issuing charge cards with Fifth Third as BIN sponsor. */
@SerializedName("charge_card")
ChargeCard chargeCard;
@@ -1418,15 +1397,9 @@ public static class Stripe {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Can create commercial issuing prepaid cards with Stripe as BIN sponsor. */
- @SerializedName("prepaid_card")
- PrepaidCard prepaidCard;
-
- private Stripe(
- ChargeCard chargeCard, Map extraParams, PrepaidCard prepaidCard) {
+ private FifthThird(ChargeCard chargeCard, Map extraParams) {
this.chargeCard = chargeCard;
this.extraParams = extraParams;
- this.prepaidCard = prepaidCard;
}
public static Builder builder() {
@@ -1438,18 +1411,17 @@ public static class Builder {
private Map extraParams;
- private PrepaidCard prepaidCard;
-
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .FifthThird
build() {
return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
- .Stripe(this.chargeCard, this.extraParams, this.prepaidCard);
+ .FifthThird(this.chargeCard, this.extraParams);
}
- /** Can create commercial issuing charge cards with Stripe as BIN sponsor. */
+ /** Can create commercial issuing charge cards with Fifth Third as BIN sponsor. */
public Builder setChargeCard(
- AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.FifthThird
.ChargeCard
chargeCard) {
this.chargeCard = chargeCard;
@@ -1460,7 +1432,7 @@ public Builder setChargeCard(
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.FifthThird#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -1475,7 +1447,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the
* first `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.FifthThird#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -1485,15 +1457,6 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
-
- /** Can create commercial issuing prepaid cards with Stripe as BIN sponsor. */
- public Builder setPrepaidCard(
- AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
- .PrepaidCard
- prepaidCard) {
- this.prepaidCard = prepaidCard;
- return this;
- }
}
@Getter
@@ -1531,18 +1494,18 @@ public static class Builder {
private Boolean requested;
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
- .ChargeCard
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .FifthThird.ChargeCard
build() {
return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
- .Stripe.ChargeCard(this.extraParams, this.requested);
+ .FifthThird.ChargeCard(this.extraParams, this.requested);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe.ChargeCard#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.FifthThird.ChargeCard#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -1557,7 +1520,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the
* first `put/putAll` call, and subsequent calls add additional key/value pairs to
* the original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe.ChargeCard#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.FifthThird.ChargeCard#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -1578,6 +1541,85 @@ public Builder setRequested(Boolean requested) {
}
}
}
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead {
+ /**
+ * 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;
+
+ /** Can create commercial issuing prepaid cards with Lead as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
+
+ private Lead(Map extraParams, PrepaidCard prepaidCard) {
+ this.extraParams = extraParams;
+ this.prepaidCard = prepaidCard;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private PrepaidCard prepaidCard;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .Lead(this.extraParams, this.prepaidCard);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead#extraParams}
+ * for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Can create commercial issuing prepaid cards with Lead as BIN sponsor. */
+ public Builder setPrepaidCard(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
+ .PrepaidCard
+ prepaidCard) {
+ this.prepaidCard = prepaidCard;
+ return this;
+ }
+ }
@Getter
@EqualsAndHashCode(callSuper = false)
@@ -1614,18 +1656,18 @@ public static class Builder {
private Boolean requested;
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead
.PrepaidCard
build() {
return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
- .Stripe.PrepaidCard(this.extraParams, this.requested);
+ .Lead.PrepaidCard(this.extraParams, this.requested);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe.PrepaidCard#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead.PrepaidCard#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -1640,7 +1682,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the
* first `put/putAll` call, and subsequent calls add additional key/value pairs to
* the original map. See {@link
- * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe.PrepaidCard#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Lead.PrepaidCard#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -1662,520 +1704,337 @@ public Builder setRequested(Boolean requested) {
}
}
}
- }
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Customer {
- /**
- * Automatic indirect tax settings to be used when automatic tax calculation is enabled on the
- * customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if
- * automatic tax calculation is possible given the current customer location information.
- */
- @SerializedName("automatic_indirect_tax")
- AutomaticIndirectTax automaticIndirectTax;
-
- /**
- * Billing settings - default settings used for this customer in Billing flows such as
- * Invoices and Subscriptions.
- */
- @SerializedName("billing")
- Billing billing;
- /** Capabilities that have been requested on the Customer Configuration. */
- @SerializedName("capabilities")
- Capabilities capabilities;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Stripe {
+ /** Can create commercial issuing charge cards with Stripe as BIN sponsor. */
+ @SerializedName("charge_card")
+ ChargeCard chargeCard;
- /**
- * 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;
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName}
+ * value. Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- /** The customer's shipping information. Appears on invoices emailed to this customer. */
- @SerializedName("shipping")
- Shipping shipping;
+ /** Can create commercial issuing prepaid cards with Stripe as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
- /**
- * ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and
- * when the Customer Configuration is first set on an Account.
- */
- @SerializedName("test_clock")
- String testClock;
+ private Stripe(
+ ChargeCard chargeCard, Map extraParams, PrepaidCard prepaidCard) {
+ this.chargeCard = chargeCard;
+ this.extraParams = extraParams;
+ this.prepaidCard = prepaidCard;
+ }
- private Customer(
- AutomaticIndirectTax automaticIndirectTax,
- Billing billing,
- Capabilities capabilities,
- Map extraParams,
- Shipping shipping,
- String testClock) {
- this.automaticIndirectTax = automaticIndirectTax;
- this.billing = billing;
- this.capabilities = capabilities;
- this.extraParams = extraParams;
- this.shipping = shipping;
- this.testClock = testClock;
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- public static Builder builder() {
- return new Builder();
- }
+ public static class Builder {
+ private ChargeCard chargeCard;
- public static class Builder {
- private AutomaticIndirectTax automaticIndirectTax;
+ private Map extraParams;
- private Billing billing;
+ private PrepaidCard prepaidCard;
- private Capabilities capabilities;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .Stripe(this.chargeCard, this.extraParams, this.prepaidCard);
+ }
- private Map extraParams;
+ /** Can create commercial issuing charge cards with Stripe as BIN sponsor. */
+ public Builder setChargeCard(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
+ .ChargeCard
+ chargeCard) {
+ this.chargeCard = chargeCard;
+ return this;
+ }
- private Shipping shipping;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe#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;
+ }
- private String testClock;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer build() {
- return new AccountCreateParams.Configuration.Customer(
- this.automaticIndirectTax,
- this.billing,
- this.capabilities,
- this.extraParams,
- this.shipping,
- this.testClock);
- }
+ /** Can create commercial issuing prepaid cards with Stripe as BIN sponsor. */
+ public Builder setPrepaidCard(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
+ .PrepaidCard
+ prepaidCard) {
+ this.prepaidCard = prepaidCard;
+ return this;
+ }
+ }
- /**
- * Automatic indirect tax settings to be used when automatic tax calculation is enabled on
- * the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if
- * automatic tax calculation is possible given the current customer location information.
- */
- public Builder setAutomaticIndirectTax(
- AccountCreateParams.Configuration.Customer.AutomaticIndirectTax automaticIndirectTax) {
- this.automaticIndirectTax = automaticIndirectTax;
- return this;
- }
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ChargeCard {
+ /**
+ * 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;
- /**
- * Billing settings - default settings used for this customer in Billing flows such as
- * Invoices and Subscriptions.
- */
- public Builder setBilling(AccountCreateParams.Configuration.Customer.Billing billing) {
- this.billing = billing;
- return this;
- }
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ @SerializedName("requested")
+ Boolean requested;
- /** Capabilities that have been requested on the Customer Configuration. */
- public Builder setCapabilities(
- AccountCreateParams.Configuration.Customer.Capabilities capabilities) {
- this.capabilities = capabilities;
- return this;
- }
+ private ChargeCard(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Customer#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;
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Customer#extraParams} for the field
- * documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
+ public static class Builder {
+ private Map extraParams;
- /** The customer's shipping information. Appears on invoices emailed to this customer. */
- public Builder setShipping(AccountCreateParams.Configuration.Customer.Shipping shipping) {
- this.shipping = shipping;
- return this;
- }
+ private Boolean requested;
- /**
- * ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and
- * when the Customer Configuration is first set on an Account.
- */
- public Builder setTestClock(String testClock) {
- this.testClock = testClock;
- return this;
- }
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
+ .ChargeCard
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .Stripe.ChargeCard(this.extraParams, this.requested);
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class AutomaticIndirectTax {
- /**
- * Describes the customer's tax exemption status, which is {@code none}, {@code exempt}, or
- * {@code reverse}. When set to reverse, invoice and receipt PDFs include the following
- * text: “Reverse charge”.
- */
- @SerializedName("exempt")
- Exempt exempt;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe.ChargeCard#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;
+ }
- /**
- * 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;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to
+ * the original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe.ChargeCard#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- /**
- * A recent IP address of the customer used for tax reporting and tax location inference.
- */
- @SerializedName("ip_address")
- String ipAddress;
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
- /**
- * The data source used to identify the customer's tax location - defaults to {@code
- * identity_address}. Will only be used for automatic tax calculation on the customer's
- * Invoices and Subscriptions. This behavior is now deprecated for new users.
- */
- @SerializedName("location_source")
- LocationSource locationSource;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard {
+ /**
+ * 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 AutomaticIndirectTax(
- Exempt exempt,
- Map extraParams,
- String ipAddress,
- LocationSource locationSource) {
- this.exempt = exempt;
- this.extraParams = extraParams;
- this.ipAddress = ipAddress;
- this.locationSource = locationSource;
- }
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ @SerializedName("requested")
+ Boolean requested;
- public static Builder builder() {
- return new Builder();
- }
+ private PrepaidCard(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
- public static class Builder {
- private Exempt exempt;
+ public static Builder builder() {
+ return new Builder();
+ }
- private Map extraParams;
+ public static class Builder {
+ private Map extraParams;
- private String ipAddress;
+ private Boolean requested;
- private LocationSource locationSource;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe
+ .PrepaidCard
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial
+ .Stripe.PrepaidCard(this.extraParams, this.requested);
+ }
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer.AutomaticIndirectTax build() {
- return new AccountCreateParams.Configuration.Customer.AutomaticIndirectTax(
- this.exempt, this.extraParams, this.ipAddress, this.locationSource);
- }
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe.PrepaidCard#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;
+ }
- /**
- * Describes the customer's tax exemption status, which is {@code none}, {@code exempt},
- * or {@code reverse}. When set to reverse, invoice and receipt PDFs include the following
- * text: “Reverse charge”.
- */
- public Builder setExempt(
- AccountCreateParams.Configuration.Customer.AutomaticIndirectTax.Exempt exempt) {
- this.exempt = exempt;
- return this;
- }
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to
+ * the original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Commercial.Stripe.PrepaidCard#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 `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link
- * AccountCreateParams.Configuration.Customer.AutomaticIndirectTax#extraParams} for the
- * field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
}
- this.extraParams.put(key, value);
- return this;
}
+ }
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link
- * AccountCreateParams.Configuration.Customer.AutomaticIndirectTax#extraParams} for the
- * field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Consumer {
+ /** Can create consumer issuing cards with Celtic as BIN sponsor. */
+ @SerializedName("celtic")
+ Celtic celtic;
+
+ /** Can create consumer issuing cards with Cross River Bank as BIN sponsor. */
+ @SerializedName("cross_river_bank")
+ CrossRiverBank crossRiverBank;
/**
- * A recent IP address of the customer used for tax reporting and tax location inference.
+ * 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.
*/
- public Builder setIpAddress(String ipAddress) {
- this.ipAddress = ipAddress;
- return this;
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Can create consumer issuing cards with Lead as BIN sponsor. */
+ @SerializedName("lead")
+ Lead lead;
+
+ private Consumer(
+ Celtic celtic,
+ CrossRiverBank crossRiverBank,
+ Map extraParams,
+ Lead lead) {
+ this.celtic = celtic;
+ this.crossRiverBank = crossRiverBank;
+ this.extraParams = extraParams;
+ this.lead = lead;
}
- /**
- * The data source used to identify the customer's tax location - defaults to {@code
- * identity_address}. Will only be used for automatic tax calculation on the customer's
- * Invoices and Subscriptions. This behavior is now deprecated for new users.
- */
- public Builder setLocationSource(
- AccountCreateParams.Configuration.Customer.AutomaticIndirectTax.LocationSource
- locationSource) {
- this.locationSource = locationSource;
- return this;
+ public static Builder builder() {
+ return new Builder();
}
- }
- public enum Exempt implements ApiRequestParams.EnumParam {
- @SerializedName("exempt")
- EXEMPT("exempt"),
+ public static class Builder {
+ private Celtic celtic;
- @SerializedName("none")
- NONE("none"),
+ private CrossRiverBank crossRiverBank;
- @SerializedName("reverse")
- REVERSE("reverse");
+ private Map extraParams;
- @Getter(onMethod_ = {@Override})
- private final String value;
-
- Exempt(String value) {
- this.value = value;
- }
- }
-
- public enum LocationSource implements ApiRequestParams.EnumParam {
- @SerializedName("identity_address")
- IDENTITY_ADDRESS("identity_address"),
-
- @SerializedName("ip_address")
- IP_ADDRESS("ip_address"),
-
- @SerializedName("payment_method")
- PAYMENT_METHOD("payment_method"),
-
- @SerializedName("shipping_address")
- SHIPPING_ADDRESS("shipping_address");
-
- @Getter(onMethod_ = {@Override})
- private final String value;
-
- LocationSource(String value) {
- this.value = value;
- }
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Billing {
- /**
- * 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;
-
- /** Default invoice settings for the customer account. */
- @SerializedName("invoice")
- Invoice invoice;
-
- private Billing(Map extraParams, Invoice invoice) {
- this.extraParams = extraParams;
- this.invoice = invoice;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Invoice invoice;
-
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer.Billing build() {
- return new AccountCreateParams.Configuration.Customer.Billing(
- this.extraParams, this.invoice);
- }
-
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Customer.Billing#extraParams} for the
- * field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Customer.Billing#extraParams} for the
- * field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Default invoice settings for the customer account. */
- public Builder setInvoice(
- AccountCreateParams.Configuration.Customer.Billing.Invoice invoice) {
- this.invoice = invoice;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Invoice {
- /**
- * The list of up to 4 default custom fields to be displayed on invoices for this
- * customer.
- */
- @SerializedName("custom_fields")
- List customFields;
-
- /**
- * 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;
-
- /** Default invoice footer. */
- @SerializedName("footer")
- String footer;
-
- /** Sequence number to use on the customer account's next invoice. Defaults to 1. */
- @SerializedName("next_sequence")
- Long nextSequence;
-
- /**
- * Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or
- * numbers.
- */
- @SerializedName("prefix")
- String prefix;
-
- /** Default invoice PDF rendering options. */
- @SerializedName("rendering")
- Rendering rendering;
-
- private Invoice(
- List
- customFields,
- Map extraParams,
- String footer,
- Long nextSequence,
- String prefix,
- Rendering rendering) {
- this.customFields = customFields;
- this.extraParams = extraParams;
- this.footer = footer;
- this.nextSequence = nextSequence;
- this.prefix = prefix;
- this.rendering = rendering;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private List
- customFields;
-
- private Map extraParams;
-
- private String footer;
-
- private Long nextSequence;
-
- private String prefix;
-
- private Rendering rendering;
+ private Lead lead;
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer.Billing.Invoice build() {
- return new AccountCreateParams.Configuration.Customer.Billing.Invoice(
- this.customFields,
- this.extraParams,
- this.footer,
- this.nextSequence,
- this.prefix,
- this.rendering);
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer(
+ this.celtic, this.crossRiverBank, this.extraParams, this.lead);
}
- /**
- * Add an element to `customFields` list. A list is initialized for the first
- * `add/addAll` call, and subsequent calls adds additional elements to the original
- * list. See {@link
- * AccountCreateParams.Configuration.Customer.Billing.Invoice#customFields} for the
- * field documentation.
- */
- public Builder addCustomField(
- AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField element) {
- if (this.customFields == null) {
- this.customFields = new ArrayList<>();
- }
- this.customFields.add(element);
+ /** Can create consumer issuing cards with Celtic as BIN sponsor. */
+ public Builder setCeltic(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Celtic celtic) {
+ this.celtic = celtic;
return this;
}
- /**
- * Add all elements to `customFields` list. A list is initialized for the first
- * `add/addAll` call, and subsequent calls adds additional elements to the original
- * list. See {@link
- * AccountCreateParams.Configuration.Customer.Billing.Invoice#customFields} for the
- * field documentation.
- */
- public Builder addAllCustomField(
- List
- elements) {
- if (this.customFields == null) {
- this.customFields = new ArrayList<>();
- }
- this.customFields.addAll(elements);
+ /** Can create consumer issuing cards with Cross River Bank as BIN sponsor. */
+ public Builder setCrossRiverBank(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.CrossRiverBank
+ crossRiverBank) {
+ this.crossRiverBank = crossRiverBank;
return this;
}
@@ -2183,8 +2042,8 @@ public Builder addAllCustomField(
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.Customer.Billing.Invoice#extraParams} for the field
- * documentation.
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer#extraParams} for
+ * the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -2198,8 +2057,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.Customer.Billing.Invoice#extraParams} for the field
- * documentation.
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer#extraParams} for
+ * the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -2209,38 +2068,17 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Default invoice footer. */
- public Builder setFooter(String footer) {
- this.footer = footer;
- return this;
- }
-
- /** Sequence number to use on the customer account's next invoice. Defaults to 1. */
- public Builder setNextSequence(Long nextSequence) {
- this.nextSequence = nextSequence;
- return this;
- }
-
- /**
- * Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or
- * numbers.
- */
- public Builder setPrefix(String prefix) {
- this.prefix = prefix;
- return this;
- }
-
- /** Default invoice PDF rendering options. */
- public Builder setRendering(
- AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering rendering) {
- this.rendering = rendering;
+ /** Can create consumer issuing cards with Lead as BIN sponsor. */
+ public Builder setLead(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Lead lead) {
+ this.lead = lead;
return this;
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class CustomField {
+ public static class Celtic {
/**
* 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}
@@ -2251,24 +2089,14 @@ public static class CustomField {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Required. The name of the custom field. This may be up to 40
- * characters.
- */
- @SerializedName("name")
- String name;
+ /** Can create consumer issuing charge cards with Celtic as BIN sponsor. */
+ @SerializedName("revolving_credit_card")
+ RevolvingCreditCard revolvingCreditCard;
- /**
- * Required. The value of the custom field. This may be up to 140
- * characters. When updating, pass an empty string to remove previously-defined values.
- */
- @SerializedName("value")
- String value;
-
- private CustomField(Map extraParams, String name, String value) {
+ private Celtic(
+ Map extraParams, RevolvingCreditCard revolvingCreditCard) {
this.extraParams = extraParams;
- this.name = name;
- this.value = value;
+ this.revolvingCreditCard = revolvingCreditCard;
}
public static Builder builder() {
@@ -2278,22 +2106,20 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
- private String name;
-
- private String value;
+ private RevolvingCreditCard revolvingCreditCard;
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Celtic
build() {
- return new AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField(
- this.extraParams, this.name, this.value);
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer
+ .Celtic(this.extraParams, this.revolvingCreditCard);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Celtic#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -2308,7 +2134,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the
* first `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Celtic#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -2319,38 +2145,103 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Required. The name of the custom field. This may be up to 40
- * characters.
- */
- public Builder setName(String name) {
- this.name = name;
+ /** Can create consumer issuing charge cards with Celtic as BIN sponsor. */
+ public Builder setRevolvingCreditCard(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Celtic
+ .RevolvingCreditCard
+ revolvingCreditCard) {
+ this.revolvingCreditCard = revolvingCreditCard;
return this;
}
+ }
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RevolvingCreditCard {
/**
- * Required. The value of the custom field. This may be up to 140
- * characters. When updating, pass an empty string to remove previously-defined
- * values.
+ * 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.
*/
- public Builder setValue(String value) {
- this.value = value;
- return this;
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private RevolvingCreditCard(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Celtic
+ .RevolvingCreditCard
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer
+ .Celtic.RevolvingCreditCard(this.extraParams, this.requested);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Celtic.RevolvingCreditCard#extraParams}
+ * for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to
+ * the original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Celtic.RevolvingCreditCard#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. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
}
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Rendering {
- /**
- * Indicates whether displayed line item prices and amounts on invoice PDFs include
- * inclusive tax amounts. Must be either {@code include_inclusive_tax} or {@code
- * exclude_tax}.
- */
- @SerializedName("amount_tax_display")
- AmountTaxDisplay amountTaxDisplay;
-
+ public static class CrossRiverBank {
/**
* 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}
@@ -2361,17 +2252,13 @@ public static class Rendering {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** ID of the invoice rendering template to use for future invoices. */
- @SerializedName("template")
- String template;
+ /** Can create consumer issuing prepaid cards with Cross River Bank as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
- private Rendering(
- AmountTaxDisplay amountTaxDisplay,
- Map extraParams,
- String template) {
- this.amountTaxDisplay = amountTaxDisplay;
+ private CrossRiverBank(Map extraParams, PrepaidCard prepaidCard) {
this.extraParams = extraParams;
- this.template = template;
+ this.prepaidCard = prepaidCard;
}
public static Builder builder() {
@@ -2379,36 +2266,23 @@ public static Builder builder() {
}
public static class Builder {
- private AmountTaxDisplay amountTaxDisplay;
-
private Map extraParams;
- private String template;
+ private PrepaidCard prepaidCard;
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering build() {
- return new AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering(
- this.amountTaxDisplay, this.extraParams, this.template);
- }
-
- /**
- * Indicates whether displayed line item prices and amounts on invoice PDFs include
- * inclusive tax amounts. Must be either {@code include_inclusive_tax} or {@code
- * exclude_tax}.
- */
- public Builder setAmountTaxDisplay(
- AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering
- .AmountTaxDisplay
- amountTaxDisplay) {
- this.amountTaxDisplay = amountTaxDisplay;
- return this;
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer
+ .CrossRiverBank
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer
+ .CrossRiverBank(this.extraParams, this.prepaidCard);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.CrossRiverBank#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -2423,7 +2297,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the
* first `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering#extraParams}
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.CrossRiverBank#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -2434,619 +2308,381 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** ID of the invoice rendering template to use for future invoices. */
- public Builder setTemplate(String template) {
- this.template = template;
+ /** Can create consumer issuing prepaid cards with Cross River Bank as BIN sponsor. */
+ public Builder setPrepaidCard(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.CrossRiverBank
+ .PrepaidCard
+ prepaidCard) {
+ this.prepaidCard = prepaidCard;
return this;
}
}
- public enum AmountTaxDisplay implements ApiRequestParams.EnumParam {
- @SerializedName("exclude_tax")
- EXCLUDE_TAX("exclude_tax"),
-
- @SerializedName("include_inclusive_tax")
- INCLUDE_INCLUSIVE_TAX("include_inclusive_tax");
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard {
+ /**
+ * 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;
- @Getter(onMethod_ = {@Override})
- private final String value;
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ @SerializedName("requested")
+ Boolean requested;
- AmountTaxDisplay(String value) {
- this.value = value;
+ private PrepaidCard(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
}
- }
- }
- }
- }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Capabilities {
- /**
- * Generates requirements for enabling automatic indirect tax calculation on this customer's
- * invoices or subscriptions. Recommended to request this capability if planning to enable
- * automatic tax calculation on this customer's invoices or subscriptions.
- */
- @SerializedName("automatic_indirect_tax")
- AutomaticIndirectTax automaticIndirectTax;
+ public static Builder builder() {
+ return new Builder();
+ }
- /**
- * 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;
+ public static class Builder {
+ private Map extraParams;
- private Capabilities(
- AutomaticIndirectTax automaticIndirectTax, Map extraParams) {
- this.automaticIndirectTax = automaticIndirectTax;
- this.extraParams = extraParams;
- }
+ private Boolean requested;
- public static Builder builder() {
- return new Builder();
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer
+ .CrossRiverBank.PrepaidCard
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer
+ .CrossRiverBank.PrepaidCard(this.extraParams, this.requested);
+ }
- public static class Builder {
- private AutomaticIndirectTax automaticIndirectTax;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.CrossRiverBank.PrepaidCard#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;
+ }
- private Map extraParams;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to
+ * the original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.CrossRiverBank.PrepaidCard#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer.Capabilities build() {
- return new AccountCreateParams.Configuration.Customer.Capabilities(
- this.automaticIndirectTax, this.extraParams);
- }
-
- /**
- * Generates requirements for enabling automatic indirect tax calculation on this
- * customer's invoices or subscriptions. Recommended to request this capability if
- * planning to enable automatic tax calculation on this customer's invoices or
- * subscriptions.
- */
- public Builder setAutomaticIndirectTax(
- AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax
- automaticIndirectTax) {
- this.automaticIndirectTax = automaticIndirectTax;
- return this;
- }
-
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Customer.Capabilities#extraParams}
- * for the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Customer.Capabilities#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
}
- this.extraParams.putAll(map);
- return this;
}
- }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class AutomaticIndirectTax {
- /**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field
- * (serialized) name in this param object. Effectively, this map is flattened to its
- * parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Lead {
+ /**
+ * 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. To request a new Capability for an account, pass true. There
- * can be a delay before the requested Capability becomes active.
- */
- @SerializedName("requested")
- Boolean requested;
+ /** Can create consumer issuing prepaid cards with Lead as BIN sponsor. */
+ @SerializedName("prepaid_card")
+ PrepaidCard prepaidCard;
- private AutomaticIndirectTax(Map extraParams, Boolean requested) {
- this.extraParams = extraParams;
- this.requested = requested;
- }
+ private Lead(Map extraParams, PrepaidCard prepaidCard) {
+ this.extraParams = extraParams;
+ this.prepaidCard = prepaidCard;
+ }
- public static Builder builder() {
- return new Builder();
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- public static class Builder {
- private Map extraParams;
+ public static class Builder {
+ private Map extraParams;
- private Boolean requested;
+ private PrepaidCard prepaidCard;
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax
- build() {
- return new AccountCreateParams.Configuration.Customer.Capabilities
- .AutomaticIndirectTax(this.extraParams, this.requested);
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Lead
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Lead(
+ this.extraParams, this.prepaidCard);
+ }
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax#extraParams}
- * for the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Lead#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;
}
- this.extraParams.put(key, value);
- return this;
- }
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Lead#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
}
- this.extraParams.putAll(map);
- return this;
- }
- /**
- * Required. To request a new Capability for an account, pass true.
- * There can be a delay before the requested Capability becomes active.
- */
- public Builder setRequested(Boolean requested) {
- this.requested = requested;
- return this;
+ /** Can create consumer issuing prepaid cards with Lead as BIN sponsor. */
+ public Builder setPrepaidCard(
+ AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Lead
+ .PrepaidCard
+ prepaidCard) {
+ this.prepaidCard = prepaidCard;
+ return this;
+ }
}
- }
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Shipping {
- /** Customer shipping address. */
- @SerializedName("address")
- Address address;
-
- /**
- * 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;
-
- /** Customer name. */
- @SerializedName("name")
- String name;
- /** Customer phone (including extension). */
- @SerializedName("phone")
- String phone;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrepaidCard {
+ /**
+ * 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 Shipping(
- Address address, Map extraParams, String name, String phone) {
- this.address = address;
- this.extraParams = extraParams;
- this.name = name;
- this.phone = phone;
- }
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ @SerializedName("requested")
+ Boolean requested;
- public static Builder builder() {
- return new Builder();
- }
+ private PrepaidCard(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
- public static class Builder {
- private Address address;
+ public static Builder builder() {
+ return new Builder();
+ }
- private Map extraParams;
+ public static class Builder {
+ private Map extraParams;
- private String name;
+ private Boolean requested;
- private String phone;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Lead
+ .PrepaidCard
+ build() {
+ return new AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer
+ .Lead.PrepaidCard(this.extraParams, this.requested);
+ }
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer.Shipping build() {
- return new AccountCreateParams.Configuration.Customer.Shipping(
- this.address, this.extraParams, this.name, this.phone);
- }
-
- /** Customer shipping address. */
- public Builder setAddress(
- AccountCreateParams.Configuration.Customer.Shipping.Address address) {
- this.address = address;
- return this;
- }
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Lead.PrepaidCard#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 a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Customer.Shipping#extraParams} for
- * the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to
+ * the original map. See {@link
+ * AccountCreateParams.Configuration.CardCreator.Capabilities.Consumer.Lead.PrepaidCard#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 all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Customer.Shipping#extraParams} for
- * the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
}
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Customer name. */
- public Builder setName(String name) {
- this.name = name;
- return this;
- }
-
- /** Customer phone (including extension). */
- public Builder setPhone(String phone) {
- this.phone = phone;
- return this;
}
}
+ }
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Address {
- /** City, district, suburb, town, or village. */
- @SerializedName("city")
- String city;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Customer {
+ /**
+ * Automatic indirect tax settings to be used when automatic tax calculation is enabled on the
+ * customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if
+ * automatic tax calculation is possible given the current customer location information.
+ */
+ @SerializedName("automatic_indirect_tax")
+ AutomaticIndirectTax automaticIndirectTax;
- /**
- * Two-letter country code (ISO
- * 3166-1 alpha-2).
- */
- @SerializedName("country")
- String country;
+ /**
+ * Billing settings - default settings used for this customer in Billing flows such as
+ * Invoices and Subscriptions.
+ */
+ @SerializedName("billing")
+ Billing billing;
- /**
- * 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;
+ /** Capabilities that have been requested on the Customer Configuration. */
+ @SerializedName("capabilities")
+ Capabilities capabilities;
- /** Address line 1 (e.g., street, PO Box, or company name). */
- @SerializedName("line1")
- String line1;
+ /**
+ * 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;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
- @SerializedName("line2")
- String line2;
+ /** The customer's shipping information. Appears on invoices emailed to this customer. */
+ @SerializedName("shipping")
+ Shipping shipping;
- /** ZIP or postal code. */
- @SerializedName("postal_code")
- String postalCode;
+ /**
+ * ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and
+ * when the Customer Configuration is first set on an Account.
+ */
+ @SerializedName("test_clock")
+ String testClock;
- /** State, county, province, or region. */
- @SerializedName("state")
- String state;
+ private Customer(
+ AutomaticIndirectTax automaticIndirectTax,
+ Billing billing,
+ Capabilities capabilities,
+ Map extraParams,
+ Shipping shipping,
+ String testClock) {
+ this.automaticIndirectTax = automaticIndirectTax;
+ this.billing = billing;
+ this.capabilities = capabilities;
+ this.extraParams = extraParams;
+ this.shipping = shipping;
+ this.testClock = testClock;
+ }
- private Address(
- String city,
- String country,
- Map extraParams,
- String line1,
- String line2,
- String postalCode,
- String state) {
- this.city = city;
- this.country = country;
- this.extraParams = extraParams;
- this.line1 = line1;
- this.line2 = line2;
- this.postalCode = postalCode;
- this.state = state;
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- public static Builder builder() {
- return new Builder();
- }
+ public static class Builder {
+ private AutomaticIndirectTax automaticIndirectTax;
- public static class Builder {
- private String city;
+ private Billing billing;
- private String country;
+ private Capabilities capabilities;
- private Map extraParams;
+ private Map extraParams;
- private String line1;
+ private Shipping shipping;
- private String line2;
+ private String testClock;
- private String postalCode;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.Customer build() {
+ return new AccountCreateParams.Configuration.Customer(
+ this.automaticIndirectTax,
+ this.billing,
+ this.capabilities,
+ this.extraParams,
+ this.shipping,
+ this.testClock);
+ }
- private String state;
+ /**
+ * Automatic indirect tax settings to be used when automatic tax calculation is enabled on
+ * the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if
+ * automatic tax calculation is possible given the current customer location information.
+ */
+ public Builder setAutomaticIndirectTax(
+ AccountCreateParams.Configuration.Customer.AutomaticIndirectTax automaticIndirectTax) {
+ this.automaticIndirectTax = automaticIndirectTax;
+ return this;
+ }
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Customer.Shipping.Address build() {
- return new AccountCreateParams.Configuration.Customer.Shipping.Address(
- this.city,
- this.country,
- this.extraParams,
- this.line1,
- this.line2,
- this.postalCode,
- this.state);
- }
+ /**
+ * Billing settings - default settings used for this customer in Billing flows such as
+ * Invoices and Subscriptions.
+ */
+ public Builder setBilling(AccountCreateParams.Configuration.Customer.Billing billing) {
+ this.billing = billing;
+ return this;
+ }
- /** City, district, suburb, town, or village. */
- public Builder setCity(String city) {
- this.city = city;
- return this;
- }
-
- /**
- * Two-letter country code (ISO 3166-1 alpha-2).
- */
- public Builder setCountry(String country) {
- this.country = country;
- return this;
- }
-
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Customer.Shipping.Address#extraParams} for the
- * field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Customer.Shipping.Address#extraParams} for the
- * field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Address line 1 (e.g., street, PO Box, or company name). */
- public Builder setLine1(String line1) {
- this.line1 = line1;
- return this;
- }
-
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
- public Builder setLine2(String line2) {
- this.line2 = line2;
- return this;
- }
-
- /** ZIP or postal code. */
- public Builder setPostalCode(String postalCode) {
- this.postalCode = postalCode;
- return this;
- }
-
- /** State, county, province, or region. */
- public Builder setState(String state) {
- this.state = state;
- return this;
- }
- }
- }
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Merchant {
- /** Settings used for Bacs debit payments. */
- @SerializedName("bacs_debit_payments")
- BacsDebitPayments bacsDebitPayments;
-
- /**
- * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and
- * other products.
- */
- @SerializedName("branding")
- Branding branding;
-
- /** Capabilities to request on the Merchant Configuration. */
- @SerializedName("capabilities")
- Capabilities capabilities;
-
- /** Card payments settings. */
- @SerializedName("card_payments")
- CardPayments cardPayments;
-
- /**
- * 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;
-
- /** Settings specific to Konbini payments on the account. */
- @SerializedName("konbini_payments")
- KonbiniPayments konbiniPayments;
-
- /**
- * The Merchant Category Code (MCC) for the Merchant Configuration. MCCs classify businesses
- * based on the goods or services they provide.
- */
- @SerializedName("mcc")
- String mcc;
-
- /** Settings for the default text that appears on statements for language variations. */
- @SerializedName("script_statement_descriptor")
- ScriptStatementDescriptor scriptStatementDescriptor;
-
- /** Settings used for Smart Disputes. */
- @SerializedName("smart_disputes")
- SmartDisputes smartDisputes;
-
- /** Statement descriptor. */
- @SerializedName("statement_descriptor")
- StatementDescriptor statementDescriptor;
-
- /** Publicly available contact information for sending support issues to. */
- @SerializedName("support")
- Support support;
-
- private Merchant(
- BacsDebitPayments bacsDebitPayments,
- Branding branding,
- Capabilities capabilities,
- CardPayments cardPayments,
- Map extraParams,
- KonbiniPayments konbiniPayments,
- String mcc,
- ScriptStatementDescriptor scriptStatementDescriptor,
- SmartDisputes smartDisputes,
- StatementDescriptor statementDescriptor,
- Support support) {
- this.bacsDebitPayments = bacsDebitPayments;
- this.branding = branding;
- this.capabilities = capabilities;
- this.cardPayments = cardPayments;
- this.extraParams = extraParams;
- this.konbiniPayments = konbiniPayments;
- this.mcc = mcc;
- this.scriptStatementDescriptor = scriptStatementDescriptor;
- this.smartDisputes = smartDisputes;
- this.statementDescriptor = statementDescriptor;
- this.support = support;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private BacsDebitPayments bacsDebitPayments;
-
- private Branding branding;
-
- private Capabilities capabilities;
-
- private CardPayments cardPayments;
-
- private Map extraParams;
-
- private KonbiniPayments konbiniPayments;
-
- private String mcc;
-
- private ScriptStatementDescriptor scriptStatementDescriptor;
-
- private SmartDisputes smartDisputes;
-
- private StatementDescriptor statementDescriptor;
-
- private Support support;
-
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Merchant build() {
- return new AccountCreateParams.Configuration.Merchant(
- this.bacsDebitPayments,
- this.branding,
- this.capabilities,
- this.cardPayments,
- this.extraParams,
- this.konbiniPayments,
- this.mcc,
- this.scriptStatementDescriptor,
- this.smartDisputes,
- this.statementDescriptor,
- this.support);
- }
-
- /** Settings used for Bacs debit payments. */
- public Builder setBacsDebitPayments(
- AccountCreateParams.Configuration.Merchant.BacsDebitPayments bacsDebitPayments) {
- this.bacsDebitPayments = bacsDebitPayments;
- return this;
- }
-
- /**
- * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and
- * other products.
- */
- public Builder setBranding(AccountCreateParams.Configuration.Merchant.Branding branding) {
- this.branding = branding;
- return this;
- }
-
- /** Capabilities to request on the Merchant Configuration. */
- public Builder setCapabilities(
- AccountCreateParams.Configuration.Merchant.Capabilities capabilities) {
- this.capabilities = capabilities;
- return this;
- }
-
- /** Card payments settings. */
- public Builder setCardPayments(
- AccountCreateParams.Configuration.Merchant.CardPayments cardPayments) {
- this.cardPayments = cardPayments;
- return this;
- }
+ /** Capabilities that have been requested on the Customer Configuration. */
+ public Builder setCapabilities(
+ AccountCreateParams.Configuration.Customer.Capabilities capabilities) {
+ this.capabilities = capabilities;
+ return this;
+ }
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Merchant#extraParams} for the field
+ * map. See {@link AccountCreateParams.Configuration.Customer#extraParams} for the field
* documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -3060,7 +2696,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Merchant#extraParams} for the field
+ * map. See {@link AccountCreateParams.Configuration.Customer#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -3071,57 +2707,32 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Settings specific to Konbini payments on the account. */
- public Builder setKonbiniPayments(
- AccountCreateParams.Configuration.Merchant.KonbiniPayments konbiniPayments) {
- this.konbiniPayments = konbiniPayments;
+ /** The customer's shipping information. Appears on invoices emailed to this customer. */
+ public Builder setShipping(AccountCreateParams.Configuration.Customer.Shipping shipping) {
+ this.shipping = shipping;
return this;
}
/**
- * The Merchant Category Code (MCC) for the Merchant Configuration. MCCs classify businesses
- * based on the goods or services they provide.
+ * ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and
+ * when the Customer Configuration is first set on an Account.
*/
- public Builder setMcc(String mcc) {
- this.mcc = mcc;
+ public Builder setTestClock(String testClock) {
+ this.testClock = testClock;
return this;
}
+ }
- /** Settings for the default text that appears on statements for language variations. */
- public Builder setScriptStatementDescriptor(
- AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor
- scriptStatementDescriptor) {
- this.scriptStatementDescriptor = scriptStatementDescriptor;
- return this;
- }
-
- /** Settings used for Smart Disputes. */
- public Builder setSmartDisputes(
- AccountCreateParams.Configuration.Merchant.SmartDisputes smartDisputes) {
- this.smartDisputes = smartDisputes;
- return this;
- }
-
- /** Statement descriptor. */
- public Builder setStatementDescriptor(
- AccountCreateParams.Configuration.Merchant.StatementDescriptor statementDescriptor) {
- this.statementDescriptor = statementDescriptor;
- return this;
- }
-
- /** Publicly available contact information for sending support issues to. */
- public Builder setSupport(AccountCreateParams.Configuration.Merchant.Support support) {
- this.support = support;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class BacsDebitPayments {
- /** Display name for Bacs Direct Debit payments. */
- @SerializedName("display_name")
- String displayName;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AutomaticIndirectTax {
+ /**
+ * Describes the customer's tax exemption status, which is {@code none}, {@code exempt}, or
+ * {@code reverse}. When set to reverse, invoice and receipt PDFs include the following
+ * text: “Reverse charge”.
+ */
+ @SerializedName("exempt")
+ Exempt exempt;
/**
* Map of extra parameters for custom features not available in this client library. The
@@ -3133,9 +2744,29 @@ public static class BacsDebitPayments {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private BacsDebitPayments(String displayName, Map extraParams) {
- this.displayName = displayName;
+ /**
+ * A recent IP address of the customer used for tax reporting and tax location inference.
+ */
+ @SerializedName("ip_address")
+ String ipAddress;
+
+ /**
+ * The data source used to identify the customer's tax location - defaults to {@code
+ * identity_address}. Will only be used for automatic tax calculation on the customer's
+ * Invoices and Subscriptions. This behavior is now deprecated for new users.
+ */
+ @SerializedName("location_source")
+ LocationSource locationSource;
+
+ private AutomaticIndirectTax(
+ Exempt exempt,
+ Map extraParams,
+ String ipAddress,
+ LocationSource locationSource) {
+ this.exempt = exempt;
this.extraParams = extraParams;
+ this.ipAddress = ipAddress;
+ this.locationSource = locationSource;
}
public static Builder builder() {
@@ -3143,19 +2774,28 @@ public static Builder builder() {
}
public static class Builder {
- private String displayName;
+ private Exempt exempt;
private Map extraParams;
+ private String ipAddress;
+
+ private LocationSource locationSource;
+
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Merchant.BacsDebitPayments build() {
- return new AccountCreateParams.Configuration.Merchant.BacsDebitPayments(
- this.displayName, this.extraParams);
+ public AccountCreateParams.Configuration.Customer.AutomaticIndirectTax build() {
+ return new AccountCreateParams.Configuration.Customer.AutomaticIndirectTax(
+ this.exempt, this.extraParams, this.ipAddress, this.locationSource);
}
- /** Display name for Bacs Direct Debit payments. */
- public Builder setDisplayName(String displayName) {
- this.displayName = displayName;
+ /**
+ * Describes the customer's tax exemption status, which is {@code none}, {@code exempt},
+ * or {@code reverse}. When set to reverse, invoice and receipt PDFs include the following
+ * text: “Reverse charge”.
+ */
+ public Builder setExempt(
+ AccountCreateParams.Configuration.Customer.AutomaticIndirectTax.Exempt exempt) {
+ this.exempt = exempt;
return this;
}
@@ -3163,8 +2803,8 @@ public Builder setDisplayName(String displayName) {
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * AccountCreateParams.Configuration.Merchant.BacsDebitPayments#extraParams} for the field
- * documentation.
+ * AccountCreateParams.Configuration.Customer.AutomaticIndirectTax#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -3178,8 +2818,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * AccountCreateParams.Configuration.Merchant.BacsDebitPayments#extraParams} for the field
- * documentation.
+ * AccountCreateParams.Configuration.Customer.AutomaticIndirectTax#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -3188,12 +2828,71 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * A recent IP address of the customer used for tax reporting and tax location inference.
+ */
+ public Builder setIpAddress(String ipAddress) {
+ this.ipAddress = ipAddress;
+ return this;
+ }
+
+ /**
+ * The data source used to identify the customer's tax location - defaults to {@code
+ * identity_address}. Will only be used for automatic tax calculation on the customer's
+ * Invoices and Subscriptions. This behavior is now deprecated for new users.
+ */
+ public Builder setLocationSource(
+ AccountCreateParams.Configuration.Customer.AutomaticIndirectTax.LocationSource
+ locationSource) {
+ this.locationSource = locationSource;
+ return this;
+ }
+ }
+
+ public enum Exempt implements ApiRequestParams.EnumParam {
+ @SerializedName("exempt")
+ EXEMPT("exempt"),
+
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("reverse")
+ REVERSE("reverse");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Exempt(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum LocationSource implements ApiRequestParams.EnumParam {
+ @SerializedName("identity_address")
+ IDENTITY_ADDRESS("identity_address"),
+
+ @SerializedName("ip_address")
+ IP_ADDRESS("ip_address"),
+
+ @SerializedName("payment_method")
+ PAYMENT_METHOD("payment_method"),
+
+ @SerializedName("shipping_address")
+ SHIPPING_ADDRESS("shipping_address");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ LocationSource(String value) {
+ this.value = value;
+ }
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Branding {
+ public static class Billing {
/**
* 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.
@@ -3204,40 +2903,13 @@ public static class Branding {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * ID of a file upload:
- * An icon for the merchant. Must be square and at least 128px x 128px.
- */
- @SerializedName("icon")
- String icon;
-
- /**
- * ID of a file upload:
- * A logo for the merchant that will be used in Checkout instead of the icon and without the
- * merchant's name next to it if provided. Must be at least 128px x 128px.
- */
- @SerializedName("logo")
- String logo;
-
- /** A CSS hex color value representing the primary branding color for the merchant. */
- @SerializedName("primary_color")
- String primaryColor;
-
- /** A CSS hex color value representing the secondary branding color for the merchant. */
- @SerializedName("secondary_color")
- String secondaryColor;
+ /** Default invoice settings for the customer account. */
+ @SerializedName("invoice")
+ Invoice invoice;
- private Branding(
- Map extraParams,
- String icon,
- String logo,
- String primaryColor,
- String secondaryColor) {
+ private Billing(Map extraParams, Invoice invoice) {
this.extraParams = extraParams;
- this.icon = icon;
- this.logo = logo;
- this.primaryColor = primaryColor;
- this.secondaryColor = secondaryColor;
+ this.invoice = invoice;
}
public static Builder builder() {
@@ -3247,25 +2919,19 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
- private String icon;
-
- private String logo;
-
- private String primaryColor;
-
- private String secondaryColor;
+ private Invoice invoice;
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Merchant.Branding build() {
- return new AccountCreateParams.Configuration.Merchant.Branding(
- this.extraParams, this.icon, this.logo, this.primaryColor, this.secondaryColor);
+ public AccountCreateParams.Configuration.Customer.Billing build() {
+ return new AccountCreateParams.Configuration.Customer.Billing(
+ this.extraParams, this.invoice);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Merchant.Branding#extraParams} for
- * the field documentation.
+ * map. See {@link AccountCreateParams.Configuration.Customer.Billing#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -3278,8 +2944,8 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Merchant.Branding#extraParams} for
- * the field documentation.
+ * map. See {@link AccountCreateParams.Configuration.Customer.Billing#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -3289,319 +2955,436 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * ID of a file
- * upload: An icon for the merchant. Must be square and at least 128px x 128px.
- */
- public Builder setIcon(String icon) {
- this.icon = icon;
+ /** Default invoice settings for the customer account. */
+ public Builder setInvoice(
+ AccountCreateParams.Configuration.Customer.Billing.Invoice invoice) {
+ this.invoice = invoice;
return this;
}
+ }
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Invoice {
/**
- * ID of a file
- * upload: A logo for the merchant that will be used in Checkout instead of the icon
- * and without the merchant's name next to it if provided. Must be at least 128px x 128px.
+ * The list of up to 4 default custom fields to be displayed on invoices for this
+ * customer.
*/
- public Builder setLogo(String logo) {
- this.logo = logo;
- return this;
- }
+ @SerializedName("custom_fields")
+ List customFields;
- /** A CSS hex color value representing the primary branding color for the merchant. */
- public Builder setPrimaryColor(String primaryColor) {
- this.primaryColor = primaryColor;
- return this;
- }
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- /** A CSS hex color value representing the secondary branding color for the merchant. */
- public Builder setSecondaryColor(String secondaryColor) {
- this.secondaryColor = secondaryColor;
- return this;
- }
- }
- }
+ /** Default invoice footer. */
+ @SerializedName("footer")
+ String footer;
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Capabilities {
- /** Allow the merchant to process ACH debit payments. */
- @SerializedName("ach_debit_payments")
- AchDebitPayments achDebitPayments;
+ /** Sequence number to use on the customer account's next invoice. Defaults to 1. */
+ @SerializedName("next_sequence")
+ Long nextSequence;
- /** Allow the merchant to process ACSS debit payments. */
- @SerializedName("acss_debit_payments")
- AcssDebitPayments acssDebitPayments;
+ /**
+ * Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or
+ * numbers.
+ */
+ @SerializedName("prefix")
+ String prefix;
- /** Allow the merchant to process Affirm payments. */
- @SerializedName("affirm_payments")
- AffirmPayments affirmPayments;
+ /** Default invoice PDF rendering options. */
+ @SerializedName("rendering")
+ Rendering rendering;
- /** Allow the merchant to process Afterpay/Clearpay payments. */
- @SerializedName("afterpay_clearpay_payments")
- AfterpayClearpayPayments afterpayClearpayPayments;
+ private Invoice(
+ List
+ customFields,
+ Map extraParams,
+ String footer,
+ Long nextSequence,
+ String prefix,
+ Rendering rendering) {
+ this.customFields = customFields;
+ this.extraParams = extraParams;
+ this.footer = footer;
+ this.nextSequence = nextSequence;
+ this.prefix = prefix;
+ this.rendering = rendering;
+ }
- /** Allow the merchant to process Alma payments. */
- @SerializedName("alma_payments")
- AlmaPayments almaPayments;
+ public static Builder builder() {
+ return new Builder();
+ }
- /** Allow the merchant to process Amazon Pay payments. */
- @SerializedName("amazon_pay_payments")
- AmazonPayPayments amazonPayPayments;
+ public static class Builder {
+ private List
+ customFields;
- /** Allow the merchant to process Australian BECS Direct Debit payments. */
- @SerializedName("au_becs_debit_payments")
- AuBecsDebitPayments auBecsDebitPayments;
+ private Map extraParams;
- /** Allow the merchant to process BACS Direct Debit payments. */
- @SerializedName("bacs_debit_payments")
- BacsDebitPayments bacsDebitPayments;
+ private String footer;
- /** Allow the merchant to process Bancontact payments. */
- @SerializedName("bancontact_payments")
- BancontactPayments bancontactPayments;
+ private Long nextSequence;
- /** Allow the merchant to process BLIK payments. */
- @SerializedName("blik_payments")
- BlikPayments blikPayments;
+ private String prefix;
- /** Allow the merchant to process Boleto payments. */
- @SerializedName("boleto_payments")
- BoletoPayments boletoPayments;
+ private Rendering rendering;
- /** Allow the merchant to collect card payments. */
- @SerializedName("card_payments")
- CardPayments cardPayments;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.Customer.Billing.Invoice build() {
+ return new AccountCreateParams.Configuration.Customer.Billing.Invoice(
+ this.customFields,
+ this.extraParams,
+ this.footer,
+ this.nextSequence,
+ this.prefix,
+ this.rendering);
+ }
- /** Allow the merchant to process Cartes Bancaires payments. */
- @SerializedName("cartes_bancaires_payments")
- CartesBancairesPayments cartesBancairesPayments;
+ /**
+ * Add an element to `customFields` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original
+ * list. See {@link
+ * AccountCreateParams.Configuration.Customer.Billing.Invoice#customFields} for the
+ * field documentation.
+ */
+ public Builder addCustomField(
+ AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField element) {
+ if (this.customFields == null) {
+ this.customFields = new ArrayList<>();
+ }
+ this.customFields.add(element);
+ return this;
+ }
- /** Allow the merchant to process Cash App payments. */
- @SerializedName("cashapp_payments")
- CashappPayments cashappPayments;
+ /**
+ * Add all elements to `customFields` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original
+ * list. See {@link
+ * AccountCreateParams.Configuration.Customer.Billing.Invoice#customFields} for the
+ * field documentation.
+ */
+ public Builder addAllCustomField(
+ List
+ elements) {
+ if (this.customFields == null) {
+ this.customFields = new ArrayList<>();
+ }
+ this.customFields.addAll(elements);
+ return this;
+ }
- /** Allow the merchant to process EPS payments. */
- @SerializedName("eps_payments")
- EpsPayments epsPayments;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.Customer.Billing.Invoice#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;
+ }
- /**
- * 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;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.Customer.Billing.Invoice#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- /** Allow the merchant to process FPX payments. */
- @SerializedName("fpx_payments")
- FpxPayments fpxPayments;
+ /** Default invoice footer. */
+ public Builder setFooter(String footer) {
+ this.footer = footer;
+ return this;
+ }
- /** Allow the merchant to process UK bank transfer payments. */
- @SerializedName("gb_bank_transfer_payments")
- GbBankTransferPayments gbBankTransferPayments;
+ /** Sequence number to use on the customer account's next invoice. Defaults to 1. */
+ public Builder setNextSequence(Long nextSequence) {
+ this.nextSequence = nextSequence;
+ return this;
+ }
- /** Allow the merchant to process GrabPay payments. */
- @SerializedName("grabpay_payments")
- GrabpayPayments grabpayPayments;
+ /**
+ * Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or
+ * numbers.
+ */
+ public Builder setPrefix(String prefix) {
+ this.prefix = prefix;
+ return this;
+ }
- /** Allow the merchant to process iDEAL payments. */
- @SerializedName("ideal_payments")
- IdealPayments idealPayments;
+ /** Default invoice PDF rendering options. */
+ public Builder setRendering(
+ AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering rendering) {
+ this.rendering = rendering;
+ return this;
+ }
+ }
- /** Allow the merchant to process JCB card payments. */
- @SerializedName("jcb_payments")
- JcbPayments jcbPayments;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomField {
+ /**
+ * 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;
- /** Allow the merchant to process Japanese bank transfer payments. */
- @SerializedName("jp_bank_transfer_payments")
- JpBankTransferPayments jpBankTransferPayments;
+ /**
+ * Required. The name of the custom field. This may be up to 40
+ * characters.
+ */
+ @SerializedName("name")
+ String name;
- /** Allow the merchant to process Kakao Pay payments. */
- @SerializedName("kakao_pay_payments")
- KakaoPayPayments kakaoPayPayments;
+ /**
+ * Required. The value of the custom field. This may be up to 140
+ * characters. When updating, pass an empty string to remove previously-defined values.
+ */
+ @SerializedName("value")
+ String value;
- /** Allow the merchant to process Klarna payments. */
- @SerializedName("klarna_payments")
- KlarnaPayments klarnaPayments;
+ private CustomField(Map extraParams, String name, String value) {
+ this.extraParams = extraParams;
+ this.name = name;
+ this.value = value;
+ }
- /** Allow the merchant to process Konbini convenience store payments. */
- @SerializedName("konbini_payments")
- KonbiniPayments konbiniPayments;
+ public static Builder builder() {
+ return new Builder();
+ }
- /** Allow the merchant to process Korean card payments. */
- @SerializedName("kr_card_payments")
- KrCardPayments krCardPayments;
+ public static class Builder {
+ private Map extraParams;
- /** Allow the merchant to process Link payments. */
- @SerializedName("link_payments")
- LinkPayments linkPayments;
+ private String name;
- /** Allow the merchant to process MobilePay payments. */
- @SerializedName("mobilepay_payments")
- MobilepayPayments mobilepayPayments;
+ private String value;
- /** Allow the merchant to process Multibanco payments. */
- @SerializedName("multibanco_payments")
- MultibancoPayments multibancoPayments;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField
+ build() {
+ return new AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField(
+ this.extraParams, this.name, this.value);
+ }
- /** Allow the merchant to process Mexican bank transfer payments. */
- @SerializedName("mx_bank_transfer_payments")
- MxBankTransferPayments mxBankTransferPayments;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField#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;
+ }
- /** Allow the merchant to process Naver Pay payments. */
- @SerializedName("naver_pay_payments")
- NaverPayPayments naverPayPayments;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- /** Allow the merchant to process OXXO payments. */
- @SerializedName("oxxo_payments")
- OxxoPayments oxxoPayments;
+ /**
+ * Required. The name of the custom field. This may be up to 40
+ * characters.
+ */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
- /** Allow the merchant to process Przelewy24 (P24) payments. */
- @SerializedName("p24_payments")
- P24Payments p24Payments;
+ /**
+ * Required. The value of the custom field. This may be up to 140
+ * characters. When updating, pass an empty string to remove previously-defined
+ * values.
+ */
+ public Builder setValue(String value) {
+ this.value = value;
+ return this;
+ }
+ }
+ }
- /** Allow the merchant to process Pay by Bank payments. */
- @SerializedName("pay_by_bank_payments")
- PayByBankPayments payByBankPayments;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Rendering {
+ /**
+ * Indicates whether displayed line item prices and amounts on invoice PDFs include
+ * inclusive tax amounts. Must be either {@code include_inclusive_tax} or {@code
+ * exclude_tax}.
+ */
+ @SerializedName("amount_tax_display")
+ AmountTaxDisplay amountTaxDisplay;
- /** Allow the merchant to process PAYCO payments. */
- @SerializedName("payco_payments")
- PaycoPayments paycoPayments;
+ /**
+ * 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;
- /** Allow the merchant to process PayNow payments. */
- @SerializedName("paynow_payments")
- PaynowPayments paynowPayments;
+ /** ID of the invoice rendering template to use for future invoices. */
+ @SerializedName("template")
+ String template;
- /** Allow the merchant to process PromptPay payments. */
- @SerializedName("promptpay_payments")
- PromptpayPayments promptpayPayments;
+ private Rendering(
+ AmountTaxDisplay amountTaxDisplay,
+ Map extraParams,
+ String template) {
+ this.amountTaxDisplay = amountTaxDisplay;
+ this.extraParams = extraParams;
+ this.template = template;
+ }
- /** Allow the merchant to process Revolut Pay payments. */
- @SerializedName("revolut_pay_payments")
- RevolutPayPayments revolutPayPayments;
+ public static Builder builder() {
+ return new Builder();
+ }
- /** Allow the merchant to process Samsung Pay payments. */
- @SerializedName("samsung_pay_payments")
- SamsungPayPayments samsungPayPayments;
+ public static class Builder {
+ private AmountTaxDisplay amountTaxDisplay;
- /** Allow the merchant to process SEPA bank transfer payments. */
- @SerializedName("sepa_bank_transfer_payments")
- SepaBankTransferPayments sepaBankTransferPayments;
+ private Map extraParams;
- /** Allow the merchant to process SEPA Direct Debit payments. */
- @SerializedName("sepa_debit_payments")
- SepaDebitPayments sepaDebitPayments;
+ private String template;
- /** Allow the merchant to process Swish payments. */
- @SerializedName("swish_payments")
- SwishPayments swishPayments;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering build() {
+ return new AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering(
+ this.amountTaxDisplay, this.extraParams, this.template);
+ }
- /** Allow the merchant to process TWINT payments. */
- @SerializedName("twint_payments")
- TwintPayments twintPayments;
+ /**
+ * Indicates whether displayed line item prices and amounts on invoice PDFs include
+ * inclusive tax amounts. Must be either {@code include_inclusive_tax} or {@code
+ * exclude_tax}.
+ */
+ public Builder setAmountTaxDisplay(
+ AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering
+ .AmountTaxDisplay
+ amountTaxDisplay) {
+ this.amountTaxDisplay = amountTaxDisplay;
+ return this;
+ }
- /** Allow the merchant to process US bank transfer payments. */
- @SerializedName("us_bank_transfer_payments")
- UsBankTransferPayments usBankTransferPayments;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering#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;
+ }
- /** Allow the merchant to process Zip payments. */
- @SerializedName("zip_payments")
- ZipPayments zipPayments;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** ID of the invoice rendering template to use for future invoices. */
+ public Builder setTemplate(String template) {
+ this.template = template;
+ return this;
+ }
+ }
+
+ public enum AmountTaxDisplay implements ApiRequestParams.EnumParam {
+ @SerializedName("exclude_tax")
+ EXCLUDE_TAX("exclude_tax"),
+
+ @SerializedName("include_inclusive_tax")
+ INCLUDE_INCLUSIVE_TAX("include_inclusive_tax");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ AmountTaxDisplay(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Capabilities {
+ /**
+ * Generates requirements for enabling automatic indirect tax calculation on this customer's
+ * invoices or subscriptions. Recommended to request this capability if planning to enable
+ * automatic tax calculation on this customer's invoices or subscriptions.
+ */
+ @SerializedName("automatic_indirect_tax")
+ AutomaticIndirectTax automaticIndirectTax;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
private Capabilities(
- AchDebitPayments achDebitPayments,
- AcssDebitPayments acssDebitPayments,
- AffirmPayments affirmPayments,
- AfterpayClearpayPayments afterpayClearpayPayments,
- AlmaPayments almaPayments,
- AmazonPayPayments amazonPayPayments,
- AuBecsDebitPayments auBecsDebitPayments,
- BacsDebitPayments bacsDebitPayments,
- BancontactPayments bancontactPayments,
- BlikPayments blikPayments,
- BoletoPayments boletoPayments,
- CardPayments cardPayments,
- CartesBancairesPayments cartesBancairesPayments,
- CashappPayments cashappPayments,
- EpsPayments epsPayments,
- Map extraParams,
- FpxPayments fpxPayments,
- GbBankTransferPayments gbBankTransferPayments,
- GrabpayPayments grabpayPayments,
- IdealPayments idealPayments,
- JcbPayments jcbPayments,
- JpBankTransferPayments jpBankTransferPayments,
- KakaoPayPayments kakaoPayPayments,
- KlarnaPayments klarnaPayments,
- KonbiniPayments konbiniPayments,
- KrCardPayments krCardPayments,
- LinkPayments linkPayments,
- MobilepayPayments mobilepayPayments,
- MultibancoPayments multibancoPayments,
- MxBankTransferPayments mxBankTransferPayments,
- NaverPayPayments naverPayPayments,
- OxxoPayments oxxoPayments,
- P24Payments p24Payments,
- PayByBankPayments payByBankPayments,
- PaycoPayments paycoPayments,
- PaynowPayments paynowPayments,
- PromptpayPayments promptpayPayments,
- RevolutPayPayments revolutPayPayments,
- SamsungPayPayments samsungPayPayments,
- SepaBankTransferPayments sepaBankTransferPayments,
- SepaDebitPayments sepaDebitPayments,
- SwishPayments swishPayments,
- TwintPayments twintPayments,
- UsBankTransferPayments usBankTransferPayments,
- ZipPayments zipPayments) {
- this.achDebitPayments = achDebitPayments;
- this.acssDebitPayments = acssDebitPayments;
- this.affirmPayments = affirmPayments;
- this.afterpayClearpayPayments = afterpayClearpayPayments;
- this.almaPayments = almaPayments;
- this.amazonPayPayments = amazonPayPayments;
- this.auBecsDebitPayments = auBecsDebitPayments;
- this.bacsDebitPayments = bacsDebitPayments;
- this.bancontactPayments = bancontactPayments;
- this.blikPayments = blikPayments;
- this.boletoPayments = boletoPayments;
- this.cardPayments = cardPayments;
- this.cartesBancairesPayments = cartesBancairesPayments;
- this.cashappPayments = cashappPayments;
- this.epsPayments = epsPayments;
+ AutomaticIndirectTax automaticIndirectTax, Map extraParams) {
+ this.automaticIndirectTax = automaticIndirectTax;
this.extraParams = extraParams;
- this.fpxPayments = fpxPayments;
- this.gbBankTransferPayments = gbBankTransferPayments;
- this.grabpayPayments = grabpayPayments;
- this.idealPayments = idealPayments;
- this.jcbPayments = jcbPayments;
- this.jpBankTransferPayments = jpBankTransferPayments;
- this.kakaoPayPayments = kakaoPayPayments;
- this.klarnaPayments = klarnaPayments;
- this.konbiniPayments = konbiniPayments;
- this.krCardPayments = krCardPayments;
- this.linkPayments = linkPayments;
- this.mobilepayPayments = mobilepayPayments;
- this.multibancoPayments = multibancoPayments;
- this.mxBankTransferPayments = mxBankTransferPayments;
- this.naverPayPayments = naverPayPayments;
- this.oxxoPayments = oxxoPayments;
- this.p24Payments = p24Payments;
- this.payByBankPayments = payByBankPayments;
- this.paycoPayments = paycoPayments;
- this.paynowPayments = paynowPayments;
- this.promptpayPayments = promptpayPayments;
- this.revolutPayPayments = revolutPayPayments;
- this.samsungPayPayments = samsungPayPayments;
- this.sepaBankTransferPayments = sepaBankTransferPayments;
- this.sepaDebitPayments = sepaDebitPayments;
- this.swishPayments = swishPayments;
- this.twintPayments = twintPayments;
- this.usBankTransferPayments = usBankTransferPayments;
- this.zipPayments = zipPayments;
}
public static Builder builder() {
@@ -3609,267 +3392,205 @@ public static Builder builder() {
}
public static class Builder {
- private AchDebitPayments achDebitPayments;
-
- private AcssDebitPayments acssDebitPayments;
+ private AutomaticIndirectTax automaticIndirectTax;
- private AffirmPayments affirmPayments;
+ private Map extraParams;
- private AfterpayClearpayPayments afterpayClearpayPayments;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.Customer.Capabilities build() {
+ return new AccountCreateParams.Configuration.Customer.Capabilities(
+ this.automaticIndirectTax, this.extraParams);
+ }
- private AlmaPayments almaPayments;
+ /**
+ * Generates requirements for enabling automatic indirect tax calculation on this
+ * customer's invoices or subscriptions. Recommended to request this capability if
+ * planning to enable automatic tax calculation on this customer's invoices or
+ * subscriptions.
+ */
+ public Builder setAutomaticIndirectTax(
+ AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax
+ automaticIndirectTax) {
+ this.automaticIndirectTax = automaticIndirectTax;
+ return this;
+ }
- private AmazonPayPayments amazonPayPayments;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Configuration.Customer.Capabilities#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;
+ }
- private AuBecsDebitPayments auBecsDebitPayments;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Configuration.Customer.Capabilities#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
- private BacsDebitPayments bacsDebitPayments;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AutomaticIndirectTax {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- private BancontactPayments bancontactPayments;
+ /**
+ * Required. To request a new Capability for an account, pass true. There
+ * can be a delay before the requested Capability becomes active.
+ */
+ @SerializedName("requested")
+ Boolean requested;
- private BlikPayments blikPayments;
+ private AutomaticIndirectTax(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
- private BoletoPayments boletoPayments;
+ public static Builder builder() {
+ return new Builder();
+ }
- private CardPayments cardPayments;
+ public static class Builder {
+ private Map extraParams;
- private CartesBancairesPayments cartesBancairesPayments;
+ private Boolean requested;
- private CashappPayments cashappPayments;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax
+ build() {
+ return new AccountCreateParams.Configuration.Customer.Capabilities
+ .AutomaticIndirectTax(this.extraParams, this.requested);
+ }
- private EpsPayments epsPayments;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax#extraParams}
+ * for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
- private Map extraParams;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- private FpxPayments fpxPayments;
+ /**
+ * Required. To request a new Capability for an account, pass true.
+ * There can be a delay before the requested Capability becomes active.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+ }
- private GbBankTransferPayments gbBankTransferPayments;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Shipping {
+ /** Customer shipping address. */
+ @SerializedName("address")
+ Address address;
- private GrabpayPayments grabpayPayments;
+ /**
+ * 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 IdealPayments idealPayments;
+ /** Customer name. */
+ @SerializedName("name")
+ String name;
- private JcbPayments jcbPayments;
+ /** Customer phone (including extension). */
+ @SerializedName("phone")
+ String phone;
- private JpBankTransferPayments jpBankTransferPayments;
+ private Shipping(
+ Address address, Map extraParams, String name, String phone) {
+ this.address = address;
+ this.extraParams = extraParams;
+ this.name = name;
+ this.phone = phone;
+ }
- private KakaoPayPayments kakaoPayPayments;
+ public static Builder builder() {
+ return new Builder();
+ }
- private KlarnaPayments klarnaPayments;
+ public static class Builder {
+ private Address address;
- private KonbiniPayments konbiniPayments;
+ private Map extraParams;
- private KrCardPayments krCardPayments;
+ private String name;
- private LinkPayments linkPayments;
+ private String phone;
- private MobilepayPayments mobilepayPayments;
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Configuration.Customer.Shipping build() {
+ return new AccountCreateParams.Configuration.Customer.Shipping(
+ this.address, this.extraParams, this.name, this.phone);
+ }
- private MultibancoPayments multibancoPayments;
-
- private MxBankTransferPayments mxBankTransferPayments;
-
- private NaverPayPayments naverPayPayments;
-
- private OxxoPayments oxxoPayments;
-
- private P24Payments p24Payments;
-
- private PayByBankPayments payByBankPayments;
-
- private PaycoPayments paycoPayments;
-
- private PaynowPayments paynowPayments;
-
- private PromptpayPayments promptpayPayments;
-
- private RevolutPayPayments revolutPayPayments;
-
- private SamsungPayPayments samsungPayPayments;
-
- private SepaBankTransferPayments sepaBankTransferPayments;
-
- private SepaDebitPayments sepaDebitPayments;
-
- private SwishPayments swishPayments;
-
- private TwintPayments twintPayments;
-
- private UsBankTransferPayments usBankTransferPayments;
-
- private ZipPayments zipPayments;
-
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Merchant.Capabilities build() {
- return new AccountCreateParams.Configuration.Merchant.Capabilities(
- this.achDebitPayments,
- this.acssDebitPayments,
- this.affirmPayments,
- this.afterpayClearpayPayments,
- this.almaPayments,
- this.amazonPayPayments,
- this.auBecsDebitPayments,
- this.bacsDebitPayments,
- this.bancontactPayments,
- this.blikPayments,
- this.boletoPayments,
- this.cardPayments,
- this.cartesBancairesPayments,
- this.cashappPayments,
- this.epsPayments,
- this.extraParams,
- this.fpxPayments,
- this.gbBankTransferPayments,
- this.grabpayPayments,
- this.idealPayments,
- this.jcbPayments,
- this.jpBankTransferPayments,
- this.kakaoPayPayments,
- this.klarnaPayments,
- this.konbiniPayments,
- this.krCardPayments,
- this.linkPayments,
- this.mobilepayPayments,
- this.multibancoPayments,
- this.mxBankTransferPayments,
- this.naverPayPayments,
- this.oxxoPayments,
- this.p24Payments,
- this.payByBankPayments,
- this.paycoPayments,
- this.paynowPayments,
- this.promptpayPayments,
- this.revolutPayPayments,
- this.samsungPayPayments,
- this.sepaBankTransferPayments,
- this.sepaDebitPayments,
- this.swishPayments,
- this.twintPayments,
- this.usBankTransferPayments,
- this.zipPayments);
- }
-
- /** Allow the merchant to process ACH debit payments. */
- public Builder setAchDebitPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments
- achDebitPayments) {
- this.achDebitPayments = achDebitPayments;
- return this;
- }
-
- /** Allow the merchant to process ACSS debit payments. */
- public Builder setAcssDebitPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments
- acssDebitPayments) {
- this.acssDebitPayments = acssDebitPayments;
- return this;
- }
-
- /** Allow the merchant to process Affirm payments. */
- public Builder setAffirmPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments
- affirmPayments) {
- this.affirmPayments = affirmPayments;
- return this;
- }
-
- /** Allow the merchant to process Afterpay/Clearpay payments. */
- public Builder setAfterpayClearpayPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments
- afterpayClearpayPayments) {
- this.afterpayClearpayPayments = afterpayClearpayPayments;
- return this;
- }
-
- /** Allow the merchant to process Alma payments. */
- public Builder setAlmaPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments almaPayments) {
- this.almaPayments = almaPayments;
- return this;
- }
-
- /** Allow the merchant to process Amazon Pay payments. */
- public Builder setAmazonPayPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments
- amazonPayPayments) {
- this.amazonPayPayments = amazonPayPayments;
- return this;
- }
-
- /** Allow the merchant to process Australian BECS Direct Debit payments. */
- public Builder setAuBecsDebitPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments
- auBecsDebitPayments) {
- this.auBecsDebitPayments = auBecsDebitPayments;
- return this;
- }
-
- /** Allow the merchant to process BACS Direct Debit payments. */
- public Builder setBacsDebitPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments
- bacsDebitPayments) {
- this.bacsDebitPayments = bacsDebitPayments;
- return this;
- }
-
- /** Allow the merchant to process Bancontact payments. */
- public Builder setBancontactPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments
- bancontactPayments) {
- this.bancontactPayments = bancontactPayments;
- return this;
- }
-
- /** Allow the merchant to process BLIK payments. */
- public Builder setBlikPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments blikPayments) {
- this.blikPayments = blikPayments;
- return this;
- }
-
- /** Allow the merchant to process Boleto payments. */
- public Builder setBoletoPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments
- boletoPayments) {
- this.boletoPayments = boletoPayments;
- return this;
- }
-
- /** Allow the merchant to collect card payments. */
- public Builder setCardPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments cardPayments) {
- this.cardPayments = cardPayments;
- return this;
- }
-
- /** Allow the merchant to process Cartes Bancaires payments. */
- public Builder setCartesBancairesPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments
- cartesBancairesPayments) {
- this.cartesBancairesPayments = cartesBancairesPayments;
- return this;
- }
-
- /** Allow the merchant to process Cash App payments. */
- public Builder setCashappPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments
- cashappPayments) {
- this.cashappPayments = cashappPayments;
- return this;
- }
-
- /** Allow the merchant to process EPS payments. */
- public Builder setEpsPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments epsPayments) {
- this.epsPayments = epsPayments;
+ /** Customer shipping address. */
+ public Builder setAddress(
+ AccountCreateParams.Configuration.Customer.Shipping.Address address) {
+ this.address = address;
return this;
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Merchant.Capabilities#extraParams}
- * for the field documentation.
+ * map. See {@link AccountCreateParams.Configuration.Customer.Shipping#extraParams} for
+ * the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -3882,8 +3603,8 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link AccountCreateParams.Configuration.Merchant.Capabilities#extraParams}
- * for the field documentation.
+ * map. See {@link AccountCreateParams.Configuration.Customer.Shipping#extraParams} for
+ * the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -3893,232 +3614,33 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Allow the merchant to process FPX payments. */
- public Builder setFpxPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments fpxPayments) {
- this.fpxPayments = fpxPayments;
+ /** Customer name. */
+ public Builder setName(String name) {
+ this.name = name;
return this;
}
- /** Allow the merchant to process UK bank transfer payments. */
- public Builder setGbBankTransferPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments
- gbBankTransferPayments) {
- this.gbBankTransferPayments = gbBankTransferPayments;
+ /** Customer phone (including extension). */
+ public Builder setPhone(String phone) {
+ this.phone = phone;
return this;
}
+ }
- /** Allow the merchant to process GrabPay payments. */
- public Builder setGrabpayPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments
- grabpayPayments) {
- this.grabpayPayments = grabpayPayments;
- return this;
- }
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
- /** Allow the merchant to process iDEAL payments. */
- public Builder setIdealPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments idealPayments) {
- this.idealPayments = idealPayments;
- return this;
- }
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
- /** Allow the merchant to process JCB card payments. */
- public Builder setJcbPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments jcbPayments) {
- this.jcbPayments = jcbPayments;
- return this;
- }
-
- /** Allow the merchant to process Japanese bank transfer payments. */
- public Builder setJpBankTransferPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments
- jpBankTransferPayments) {
- this.jpBankTransferPayments = jpBankTransferPayments;
- return this;
- }
-
- /** Allow the merchant to process Kakao Pay payments. */
- public Builder setKakaoPayPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments
- kakaoPayPayments) {
- this.kakaoPayPayments = kakaoPayPayments;
- return this;
- }
-
- /** Allow the merchant to process Klarna payments. */
- public Builder setKlarnaPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments
- klarnaPayments) {
- this.klarnaPayments = klarnaPayments;
- return this;
- }
-
- /** Allow the merchant to process Konbini convenience store payments. */
- public Builder setKonbiniPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments
- konbiniPayments) {
- this.konbiniPayments = konbiniPayments;
- return this;
- }
-
- /** Allow the merchant to process Korean card payments. */
- public Builder setKrCardPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments
- krCardPayments) {
- this.krCardPayments = krCardPayments;
- return this;
- }
-
- /** Allow the merchant to process Link payments. */
- public Builder setLinkPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments linkPayments) {
- this.linkPayments = linkPayments;
- return this;
- }
-
- /** Allow the merchant to process MobilePay payments. */
- public Builder setMobilepayPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments
- mobilepayPayments) {
- this.mobilepayPayments = mobilepayPayments;
- return this;
- }
-
- /** Allow the merchant to process Multibanco payments. */
- public Builder setMultibancoPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments
- multibancoPayments) {
- this.multibancoPayments = multibancoPayments;
- return this;
- }
-
- /** Allow the merchant to process Mexican bank transfer payments. */
- public Builder setMxBankTransferPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments
- mxBankTransferPayments) {
- this.mxBankTransferPayments = mxBankTransferPayments;
- return this;
- }
-
- /** Allow the merchant to process Naver Pay payments. */
- public Builder setNaverPayPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments
- naverPayPayments) {
- this.naverPayPayments = naverPayPayments;
- return this;
- }
-
- /** Allow the merchant to process OXXO payments. */
- public Builder setOxxoPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.OxxoPayments oxxoPayments) {
- this.oxxoPayments = oxxoPayments;
- return this;
- }
-
- /** Allow the merchant to process Przelewy24 (P24) payments. */
- public Builder setP24Payments(
- AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments p24Payments) {
- this.p24Payments = p24Payments;
- return this;
- }
-
- /** Allow the merchant to process Pay by Bank payments. */
- public Builder setPayByBankPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments
- payByBankPayments) {
- this.payByBankPayments = payByBankPayments;
- return this;
- }
-
- /** Allow the merchant to process PAYCO payments. */
- public Builder setPaycoPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments paycoPayments) {
- this.paycoPayments = paycoPayments;
- return this;
- }
-
- /** Allow the merchant to process PayNow payments. */
- public Builder setPaynowPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments
- paynowPayments) {
- this.paynowPayments = paynowPayments;
- return this;
- }
-
- /** Allow the merchant to process PromptPay payments. */
- public Builder setPromptpayPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments
- promptpayPayments) {
- this.promptpayPayments = promptpayPayments;
- return this;
- }
-
- /** Allow the merchant to process Revolut Pay payments. */
- public Builder setRevolutPayPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments
- revolutPayPayments) {
- this.revolutPayPayments = revolutPayPayments;
- return this;
- }
-
- /** Allow the merchant to process Samsung Pay payments. */
- public Builder setSamsungPayPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments
- samsungPayPayments) {
- this.samsungPayPayments = samsungPayPayments;
- return this;
- }
-
- /** Allow the merchant to process SEPA bank transfer payments. */
- public Builder setSepaBankTransferPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments
- sepaBankTransferPayments) {
- this.sepaBankTransferPayments = sepaBankTransferPayments;
- return this;
- }
-
- /** Allow the merchant to process SEPA Direct Debit payments. */
- public Builder setSepaDebitPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments
- sepaDebitPayments) {
- this.sepaDebitPayments = sepaDebitPayments;
- return this;
- }
-
- /** Allow the merchant to process Swish payments. */
- public Builder setSwishPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments swishPayments) {
- this.swishPayments = swishPayments;
- return this;
- }
-
- /** Allow the merchant to process TWINT payments. */
- public Builder setTwintPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments twintPayments) {
- this.twintPayments = twintPayments;
- return this;
- }
-
- /** Allow the merchant to process US bank transfer payments. */
- public Builder setUsBankTransferPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments
- usBankTransferPayments) {
- this.usBankTransferPayments = usBankTransferPayments;
- return this;
- }
-
- /** Allow the merchant to process Zip payments. */
- public Builder setZipPayments(
- AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments zipPayments) {
- this.zipPayments = zipPayments;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class AchDebitPayments {
/**
* 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.
@@ -4129,16 +3651,37 @@ public static class AchDebitPayments {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Required. To request a new Capability for an account, pass true. There
- * can be a delay before the requested Capability becomes active.
- */
- @SerializedName("requested")
- Boolean requested;
+ /** Address line 1 (e.g., street, PO Box, or company name). */
+ @SerializedName("line1")
+ String line1;
- private AchDebitPayments(Map extraParams, Boolean requested) {
+ /** 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;
+
+ private Address(
+ String city,
+ String country,
+ Map extraParams,
+ String line1,
+ String line2,
+ String postalCode,
+ String state) {
+ this.city = city;
+ this.country = country;
this.extraParams = extraParams;
- this.requested = requested;
+ this.line1 = line1;
+ this.line2 = line2;
+ this.postalCode = postalCode;
+ this.state = state;
}
public static Builder builder() {
@@ -4146,105 +3689,53 @@ public static Builder builder() {
}
public static class Builder {
+ private String city;
+
+ private String country;
+
private Map extraParams;
- private Boolean requested;
+ private String line1;
+
+ private String line2;
+
+ private String postalCode;
+
+ private String state;
/** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments
- build() {
- return new AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments(
- this.extraParams, this.requested);
+ public AccountCreateParams.Configuration.Customer.Shipping.Address build() {
+ return new AccountCreateParams.Configuration.Customer.Shipping.Address(
+ this.city,
+ this.country,
+ this.extraParams,
+ this.line1,
+ this.line2,
+ this.postalCode,
+ this.state);
}
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments#extraParams}
- * for the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
+ /** City, district, suburb, town, or village. */
+ public Builder setCity(String city) {
+ this.city = city;
return this;
}
/**
- * Required. To request a new Capability for an account, pass true.
- * There can be a delay before the requested Capability becomes active.
+ * Two-letter country code (ISO 3166-1 alpha-2).
*/
- public Builder setRequested(Boolean requested) {
- this.requested = requested;
+ public Builder setCountry(String country) {
+ this.country = country;
return this;
}
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class AcssDebitPayments {
- /**
- * 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. To request a new Capability for an account, pass true. There
- * can be a delay before the requested Capability becomes active.
- */
- @SerializedName("requested")
- Boolean requested;
-
- private AcssDebitPayments(Map extraParams, Boolean requested) {
- this.extraParams = extraParams;
- this.requested = requested;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Boolean requested;
-
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments
- build() {
- return new AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments(
- this.extraParams, this.requested);
- }
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments#extraParams}
- * for the field documentation.
+ * AccountCreateParams.Configuration.Customer.Shipping.Address#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -4258,8 +3749,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments#extraParams}
- * for the field documentation.
+ * AccountCreateParams.Configuration.Customer.Shipping.Address#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -4269,856 +3760,4057 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Required. To request a new Capability for an account, pass true.
- * There can be a delay before the requested Capability becomes active.
- */
- public Builder setRequested(Boolean requested) {
- this.requested = requested;
+ /** Address line 1 (e.g., street, PO Box, or company name). */
+ public Builder setLine1(String line1) {
+ this.line1 = line1;
return this;
}
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class AffirmPayments {
- /**
- * 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. To request a new Capability for an account, pass true. There
- * can be a delay before the requested Capability becomes active.
- */
- @SerializedName("requested")
- Boolean requested;
-
- private AffirmPayments(Map extraParams, Boolean requested) {
- this.extraParams = extraParams;
- this.requested = requested;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Boolean requested;
-
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments build() {
- return new AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments(
- this.extraParams, this.requested);
- }
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments#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);
+ /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ public Builder setLine2(String line2) {
+ this.line2 = line2;
return this;
}
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
+ /** ZIP or postal code. */
+ public Builder setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
return this;
}
- /**
- * Required. To request a new Capability for an account, pass true.
- * There can be a delay before the requested Capability becomes active.
- */
- public Builder setRequested(Boolean requested) {
- this.requested = requested;
+ /** State, county, province, or region. */
+ public Builder setState(String state) {
+ this.state = state;
return this;
}
}
}
+ }
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class AfterpayClearpayPayments {
- /**
- * 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;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Merchant {
+ /** Settings used for Bacs debit payments. */
+ @SerializedName("bacs_debit_payments")
+ BacsDebitPayments bacsDebitPayments;
- /**
- * Required. To request a new Capability for an account, pass true. There
- * can be a delay before the requested Capability becomes active.
- */
- @SerializedName("requested")
- Boolean requested;
+ /**
+ * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and
+ * other products.
+ */
+ @SerializedName("branding")
+ Branding branding;
- private AfterpayClearpayPayments(Map extraParams, Boolean requested) {
- this.extraParams = extraParams;
- this.requested = requested;
- }
+ /** Capabilities to request on the Merchant Configuration. */
+ @SerializedName("capabilities")
+ Capabilities capabilities;
- public static Builder builder() {
- return new Builder();
- }
+ /** Card payments settings. */
+ @SerializedName("card_payments")
+ CardPayments cardPayments;
- public static class Builder {
- private Map extraParams;
+ /**
+ * 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 Boolean requested;
+ /** Settings specific to Konbini payments on the account. */
+ @SerializedName("konbini_payments")
+ KonbiniPayments konbiniPayments;
- /** Finalize and obtain parameter instance from this builder. */
- public AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments
- build() {
- return new AccountCreateParams.Configuration.Merchant.Capabilities
- .AfterpayClearpayPayments(this.extraParams, this.requested);
- }
+ /**
+ * The Merchant Category Code (MCC) for the Merchant Configuration. MCCs classify businesses
+ * based on the goods or services they provide.
+ */
+ @SerializedName("mcc")
+ String mcc;
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments#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;
- }
+ /** Settings for the default text that appears on statements for language variations. */
+ @SerializedName("script_statement_descriptor")
+ ScriptStatementDescriptor scriptStatementDescriptor;
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
+ /** Settings used for Smart Disputes. */
+ @SerializedName("smart_disputes")
+ SmartDisputes smartDisputes;
- /**
- * Required. To request a new Capability for an account, pass true.
- * There can be a delay before the requested Capability becomes active.
- */
- public Builder setRequested(Boolean requested) {
- this.requested = requested;
- return this;
- }
- }
- }
+ /** Statement descriptor. */
+ @SerializedName("statement_descriptor")
+ StatementDescriptor statementDescriptor;
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class AlmaPayments {
- /**
- * 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;
+ /** Publicly available contact information for sending support issues to. */
+ @SerializedName("support")
+ Support support;
- /**
- * Required. To request a new Capability for an account, pass true. There
- * can be a delay before the requested Capability becomes active.
- */
- @SerializedName("requested")
- Boolean requested;
+ private Merchant(
+ BacsDebitPayments bacsDebitPayments,
+ Branding branding,
+ Capabilities capabilities,
+ CardPayments cardPayments,
+ Map extraParams,
+ KonbiniPayments konbiniPayments,
+ String mcc,
+ ScriptStatementDescriptor scriptStatementDescriptor,
+ SmartDisputes smartDisputes,
+ StatementDescriptor statementDescriptor,
+ Support support) {
+ this.bacsDebitPayments = bacsDebitPayments;
+ this.branding = branding;
+ this.capabilities = capabilities;
+ this.cardPayments = cardPayments;
+ this.extraParams = extraParams;
+ this.konbiniPayments = konbiniPayments;
+ this.mcc = mcc;
+ this.scriptStatementDescriptor = scriptStatementDescriptor;
+ this.smartDisputes = smartDisputes;
+ this.statementDescriptor = statementDescriptor;
+ this.support = support;
+ }
- private AlmaPayments(Map extraParams, Boolean requested) {
- this.extraParams = extraParams;
- this.requested = requested;
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- public static Builder builder() {
- return new Builder();
- }
+ public static class Builder {
+ private BacsDebitPayments bacsDebitPayments;
- public static class Builder {
- private Map