From 4fb066b82c2b3c43bc5b39b8a41a8ec114a282ed Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Fri, 12 Jun 2026 01:41:30 +0000
Subject: [PATCH 01/14] Update generated code for v2295 and
6f145c2614d8c9cc87bf358f4f93c44e3bd47fa4
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
.../java/com/stripe/model/PaymentIntent.java | 209 ++-
.../java/com/stripe/model/SetupAttempt.java | 12 +
.../model/radar/CustomerEvaluation.java | 42 +
.../param/PaymentIntentConfirmParams.java | 1515 ++++++---------
.../param/PaymentIntentCreateParams.java | 1511 ++++++---------
.../param/PaymentIntentUpdateParams.java | 1659 ++++++-----------
...ymentRecordReportPaymentAttemptParams.java | 279 ++-
.../PaymentRecordReportPaymentParams.java | 274 ++-
.../CustomerEvaluationRetrieveParams.java | 100 +
.../radar/CustomerEvaluationService.java | 32 +
12 files changed, 2507 insertions(+), 3130 deletions(-)
create mode 100644 src/main/java/com/stripe/param/radar/CustomerEvaluationRetrieveParams.java
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index c3b520d074c..86cb90fe5ec 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-aa10ab9548143dbe396ae1e91e443c64473cbdc2
\ No newline at end of file
+6f145c2614d8c9cc87bf358f4f93c44e3bd47fa4
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 733547a80f0..7b1ccaa0490 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2294
\ No newline at end of file
+v2295
\ No newline at end of file
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index 0d5699c4eb6..10d03c0f09b 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -1961,6 +1961,9 @@ public static class AdvancedFeatureDetails extends StripeObject {
@SerializedName("decremental_authorization")
DecrementalAuthorization decrementalAuthorization;
+ @SerializedName("forced_capture")
+ ForcedCapture forcedCapture;
+
@SerializedName("incremental_authorization")
IncrementalAuthorization incrementalAuthorization;
@@ -1987,6 +1990,27 @@ public static class DecrementalAuthorization extends StripeObject {
String status;
}
+ /**
+ * For more details about ForcedCapture, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ForcedCapture extends StripeObject {
+ /** Timestamp at which the forced capture window expires. */
+ @SerializedName("expires_at")
+ Long expiresAt;
+
+ /**
+ * Indicates whether forced capture is supported.
+ *
+ *
One of {@code available}, or {@code unavailable}.
+ */
+ @SerializedName("status")
+ String status;
+ }
+
/**
* For more details about IncrementalAuthorization, please refer to the API Reference.
@@ -5082,6 +5106,13 @@ public static class MoneyServices extends StripeObject {
@SerializedName("account_funding")
AccountFunding accountFunding;
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ @SerializedName("beneficiary_account")
+ String beneficiaryAccount;
+
+ @SerializedName("beneficiary_details")
+ BeneficiaryDetails beneficiaryDetails;
+
/**
* The type of money services transaction.
*
@@ -5098,13 +5129,6 @@ public static class MoneyServices extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AccountFunding extends StripeObject {
- /** ID of the Account representing the beneficiary in this account funding transaction. */
- @SerializedName("beneficiary_account")
- String beneficiaryAccount;
-
- @SerializedName("beneficiary_details")
- BeneficiaryDetails beneficiaryDetails;
-
/** ID of the Account representing the sender in this account funding transaction. */
@SerializedName("sender_account")
String senderAccount;
@@ -5113,16 +5137,16 @@ public static class AccountFunding extends StripeObject {
SenderDetails senderDetails;
/**
- * For more details about BeneficiaryDetails, please refer to the API Reference.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class BeneficiaryDetails extends StripeObject {
+ public static class SenderDetails extends StripeObject {
@SerializedName("address")
- com.stripe.model.PaymentIntent.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address
+ com.stripe.model.PaymentIntent.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .Address
address;
@SerializedName("date_of_birth")
@@ -5197,91 +5221,90 @@ public static class DateOfBirth extends StripeObject {
Long year;
}
}
+ }
+
+ /**
+ * For more details about BeneficiaryDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BeneficiaryDetails extends StripeObject {
+ @SerializedName("address")
+ com.stripe.model.PaymentIntent.PaymentDetails.MoneyServices.BeneficiaryDetails.Address
+ address;
+
+ @SerializedName("date_of_birth")
+ DateOfBirth dateOfBirth;
+
+ /** Email address. */
+ @SerializedName("email")
+ String email;
+
+ /** Full name. */
+ @SerializedName("name")
+ String name;
+
+ /** Phone number. */
+ @SerializedName("phone")
+ String phone;
/**
- * For more details about SenderDetails, please refer to the API Reference.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class SenderDetails extends StripeObject {
- @SerializedName("address")
- com.stripe.model.PaymentIntent.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
- .Address
- address;
-
- @SerializedName("date_of_birth")
- DateOfBirth dateOfBirth;
-
- /** Email address. */
- @SerializedName("email")
- String email;
-
- /** Full name. */
- @SerializedName("name")
- String name;
-
- /** Phone number. */
- @SerializedName("phone")
- String phone;
+ public static class Address extends StripeObject {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
/**
- * For more details about Address, please refer to the API Reference.
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
*/
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class Address extends StripeObject {
- /** City, district, suburb, town, or village. */
- @SerializedName("city")
- String city;
-
- /**
- * Two-letter country code (ISO 3166-1 alpha-2).
- */
- @SerializedName("country")
- String country;
+ @SerializedName("country")
+ String country;
- /** Address line 1 (e.g., street, PO Box, or company name). */
- @SerializedName("line1")
- String line1;
+ /** Address line 1 (e.g., street, PO Box, or company name). */
+ @SerializedName("line1")
+ String line1;
- /** Address line 2 (e.g., apartment, suite, unit, or building). */
- @SerializedName("line2")
- String line2;
+ /** Address line 2 (e.g., apartment, suite, unit, or building). */
+ @SerializedName("line2")
+ String line2;
- /** ZIP or postal code. */
- @SerializedName("postal_code")
- String postalCode;
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
- /** State, county, province, or region. */
- @SerializedName("state")
- String state;
- }
+ /** State, county, province, or region. */
+ @SerializedName("state")
+ String state;
+ }
- /**
- * For more details about DateOfBirth, please refer to the API Reference.
- */
- @Getter
- @Setter
- @EqualsAndHashCode(callSuper = false)
- public static class DateOfBirth extends StripeObject {
- /** Day of birth, between 1 and 31. */
- @SerializedName("day")
- Long day;
+ /**
+ * For more details about DateOfBirth, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DateOfBirth extends StripeObject {
+ /** Day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
- /** Month of birth, between 1 and 12. */
- @SerializedName("month")
- Long month;
+ /** Month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
- /** Four-digit year of birth. */
- @SerializedName("year")
- Long year;
- }
+ /** Four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
}
}
}
@@ -6112,7 +6135,7 @@ public static class Card extends StripeObject {
/**
* Controls when the funds will be captured from the customer's account.
*
- *
Equal to {@code manual}.
+ *
One of {@code automatic_delayed}, or {@code manual}.
*/
@SerializedName("capture_method")
String captureMethod;
@@ -6528,7 +6551,7 @@ public static class CardPresent extends StripeObject {
/**
* Controls when the funds will be captured from the customer's account.
*
- *
One of {@code manual}, or {@code manual_preferred}.
+ *
One of {@code automatic_delayed}, {@code manual}, or {@code manual_preferred}.
*/
@SerializedName("capture_method")
String captureMethod;
@@ -8182,6 +8205,30 @@ public static class Satispay extends StripeObject {
*/
@SerializedName("capture_method")
String captureMethod;
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ *
+ *
If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ *
+ *
One of {@code none}, {@code off_session}, or {@code on_session}.
+ */
+ @SerializedName("setup_future_usage")
+ String setupFutureUsage;
}
/**
diff --git a/src/main/java/com/stripe/model/SetupAttempt.java b/src/main/java/com/stripe/model/SetupAttempt.java
index 81f0ad1428b..5b698d248af 100644
--- a/src/main/java/com/stripe/model/SetupAttempt.java
+++ b/src/main/java/com/stripe/model/SetupAttempt.java
@@ -339,6 +339,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("revolut_pay")
RevolutPay revolutPay;
+ @SerializedName("satispay")
+ Satispay satispay;
+
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
@@ -1037,6 +1040,15 @@ public static class Pix extends StripeObject {}
@EqualsAndHashCode(callSuper = false)
public static class RevolutPay extends StripeObject {}
+ /**
+ * For more details about Satispay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Satispay extends StripeObject {}
+
/**
* For more details about SepaDebit, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/radar/CustomerEvaluation.java b/src/main/java/com/stripe/model/radar/CustomerEvaluation.java
index 173e3a66337..fdd25c26fa5 100644
--- a/src/main/java/com/stripe/model/radar/CustomerEvaluation.java
+++ b/src/main/java/com/stripe/model/radar/CustomerEvaluation.java
@@ -12,6 +12,7 @@
import com.stripe.net.RequestOptions;
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.radar.CustomerEvaluationCreateParams;
+import com.stripe.param.radar.CustomerEvaluationRetrieveParams;
import com.stripe.param.radar.CustomerEvaluationUpdateParams;
import java.math.BigDecimal;
import java.util.List;
@@ -108,6 +109,47 @@ public static CustomerEvaluation create(
return getGlobalResponseGetter().request(request, CustomerEvaluation.class);
}
+ /** Retrieves an {@code CustomerEvaluation} object. */
+ public static CustomerEvaluation retrieve(String customerEvaluation) throws StripeException {
+ return retrieve(customerEvaluation, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieves an {@code CustomerEvaluation} object. */
+ public static CustomerEvaluation retrieve(String customerEvaluation, RequestOptions options)
+ throws StripeException {
+ return retrieve(customerEvaluation, (Map) null, options);
+ }
+
+ /** Retrieves an {@code CustomerEvaluation} object. */
+ public static CustomerEvaluation retrieve(
+ String customerEvaluation, Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/radar/customer_evaluations/%s", ApiResource.urlEncodeId(customerEvaluation));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, CustomerEvaluation.class);
+ }
+
+ /** Retrieves an {@code CustomerEvaluation} object. */
+ public static CustomerEvaluation retrieve(
+ String customerEvaluation, CustomerEvaluationRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/radar/customer_evaluations/%s", ApiResource.urlEncodeId(customerEvaluation));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, CustomerEvaluation.class);
+ }
+
/** Reports an event on a {@code CustomerEvaluation} object. */
public CustomerEvaluation update(Map params) throws StripeException {
return update(params, (RequestOptions) null);
diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
index 71d5b64e059..7ce5c5bf337 100644
--- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
@@ -14820,10 +14820,18 @@ public Builder setType(String type) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class MoneyServices {
- /** Account funding transaction details including sender and beneficiary information. */
+ /** Account funding transaction details including sender information. */
@SerializedName("account_funding")
Object accountFunding;
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ @SerializedName("beneficiary_account")
+ String beneficiaryAccount;
+
+ /** Inline identity details for the beneficiary of this transaction. */
+ @SerializedName("beneficiary_details")
+ Object beneficiaryDetails;
+
/**
* 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.
@@ -14839,9 +14847,13 @@ public static class MoneyServices {
private MoneyServices(
Object accountFunding,
+ String beneficiaryAccount,
+ Object beneficiaryDetails,
Map extraParams,
ApiRequestParams.EnumParam transactionType) {
this.accountFunding = accountFunding;
+ this.beneficiaryAccount = beneficiaryAccount;
+ this.beneficiaryDetails = beneficiaryDetails;
this.extraParams = extraParams;
this.transactionType = transactionType;
}
@@ -14853,6 +14865,10 @@ public static Builder builder() {
public static class Builder {
private Object accountFunding;
+ private String beneficiaryAccount;
+
+ private Object beneficiaryDetails;
+
private Map extraParams;
private ApiRequestParams.EnumParam transactionType;
@@ -14860,22 +14876,46 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentConfirmParams.PaymentDetails.MoneyServices build() {
return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices(
- this.accountFunding, this.extraParams, this.transactionType);
+ this.accountFunding,
+ this.beneficiaryAccount,
+ this.beneficiaryDetails,
+ this.extraParams,
+ this.transactionType);
}
- /** Account funding transaction details including sender and beneficiary information. */
+ /** Account funding transaction details including sender information. */
public Builder setAccountFunding(
PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding accountFunding) {
this.accountFunding = accountFunding;
return this;
}
- /** Account funding transaction details including sender and beneficiary information. */
+ /** Account funding transaction details including sender information. */
public Builder setAccountFunding(EmptyParam accountFunding) {
this.accountFunding = accountFunding;
return this;
}
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ public Builder setBeneficiaryAccount(String beneficiaryAccount) {
+ this.beneficiaryAccount = beneficiaryAccount;
+ return this;
+ }
+
+ /** Inline identity details for the beneficiary of this transaction. */
+ public Builder setBeneficiaryDetails(
+ PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ beneficiaryDetails) {
+ this.beneficiaryDetails = beneficiaryDetails;
+ return this;
+ }
+
+ /** Inline identity details for the beneficiary of this transaction. */
+ public Builder setBeneficiaryDetails(EmptyParam beneficiaryDetails) {
+ this.beneficiaryDetails = beneficiaryDetails;
+ 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
@@ -14922,14 +14962,6 @@ public Builder setTransactionType(EmptyParam transactionType) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class AccountFunding {
- /** ID of the Account representing the beneficiary in this account funding transaction. */
- @SerializedName("beneficiary_account")
- String beneficiaryAccount;
-
- /** Inline identity details for the beneficiary of this account funding transaction. */
- @SerializedName("beneficiary_details")
- Object beneficiaryDetails;
-
/**
* 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.
@@ -14949,13 +14981,7 @@ public static class AccountFunding {
Object senderDetails;
private AccountFunding(
- String beneficiaryAccount,
- Object beneficiaryDetails,
- Map extraParams,
- String senderAccount,
- Object senderDetails) {
- this.beneficiaryAccount = beneficiaryAccount;
- this.beneficiaryDetails = beneficiaryDetails;
+ Map extraParams, String senderAccount, Object senderDetails) {
this.extraParams = extraParams;
this.senderAccount = senderAccount;
this.senderDetails = senderDetails;
@@ -14966,10 +14992,6 @@ public static Builder builder() {
}
public static class Builder {
- private String beneficiaryAccount;
-
- private Object beneficiaryDetails;
-
private Map extraParams;
private String senderAccount;
@@ -14979,32 +15001,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding build() {
return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding(
- this.beneficiaryAccount,
- this.beneficiaryDetails,
- this.extraParams,
- this.senderAccount,
- this.senderDetails);
- }
-
- /** ID of the Account representing the beneficiary in this account funding transaction. */
- public Builder setBeneficiaryAccount(String beneficiaryAccount) {
- this.beneficiaryAccount = beneficiaryAccount;
- return this;
- }
-
- /** Inline identity details for the beneficiary of this account funding transaction. */
- public Builder setBeneficiaryDetails(
- PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails
- beneficiaryDetails) {
- this.beneficiaryDetails = beneficiaryDetails;
- return this;
- }
-
- /** Inline identity details for the beneficiary of this account funding transaction. */
- public Builder setBeneficiaryDetails(EmptyParam beneficiaryDetails) {
- this.beneficiaryDetails = beneficiaryDetails;
- return this;
+ this.extraParams, this.senderAccount, this.senderDetails);
}
/**
@@ -15060,7 +15057,7 @@ public Builder setSenderDetails(EmptyParam senderDetails) {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class BeneficiaryDetails {
+ public static class SenderDetails {
/** Address. */
@SerializedName("address")
Address address;
@@ -15091,7 +15088,7 @@ public static class BeneficiaryDetails {
@SerializedName("phone")
String phone;
- private BeneficiaryDetails(
+ private SenderDetails(
Address address,
DateOfBirth dateOfBirth,
String email,
@@ -15125,10 +15122,10 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails
+ .SenderDetails
build() {
return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails(
+ .SenderDetails(
this.address,
this.dateOfBirth,
this.email,
@@ -15139,8 +15136,8 @@ public static class Builder {
/** Address. */
public Builder setAddress(
- PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address
+ PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .Address
address) {
this.address = address;
return this;
@@ -15148,8 +15145,8 @@ public Builder setAddress(
/** Date of birth. */
public Builder setDateOfBirth(
- PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.DateOfBirth
+ PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .DateOfBirth
dateOfBirth) {
this.dateOfBirth = dateOfBirth;
return this;
@@ -15165,7 +15162,7 @@ public Builder setEmail(String email) {
* 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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails#extraParams}
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -15180,7 +15177,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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails#extraParams}
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -15285,10 +15282,10 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address
+ .SenderDetails.Address
build() {
return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address(
+ .SenderDetails.Address(
this.city,
this.country,
this.extraParams,
@@ -15317,7 +15314,7 @@ public Builder setCountry(String country) {
* 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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.Address#extraParams}
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -15332,7 +15329,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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.Address#extraParams}
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -15419,11 +15416,10 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.DateOfBirth
+ .SenderDetails.DateOfBirth
build() {
return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.DateOfBirth(
- this.day, this.extraParams, this.month, this.year);
+ .SenderDetails.DateOfBirth(this.day, this.extraParams, this.month, this.year);
}
/** Required. Day of birth, between 1 and 31. */
@@ -15436,7 +15432,7 @@ public Builder setDay(Long day) {
* 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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.DateOfBirth#extraParams}
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -15451,7 +15447,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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.DateOfBirth#extraParams}
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -15476,21 +15472,163 @@ public Builder setYear(Long year) {
}
}
}
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BeneficiaryDetails {
+ /** Address. */
+ @SerializedName("address")
+ Address address;
+
+ /** Date of birth. */
+ @SerializedName("date_of_birth")
+ DateOfBirth dateOfBirth;
+
+ /** Email address. */
+ @SerializedName("email")
+ String email;
+
+ /**
+ * 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;
+
+ /** Full name. */
+ @SerializedName("name")
+ String name;
+
+ /** Phone number. */
+ @SerializedName("phone")
+ String phone;
+
+ private BeneficiaryDetails(
+ Address address,
+ DateOfBirth dateOfBirth,
+ String email,
+ Map extraParams,
+ String name,
+ String phone) {
+ this.address = address;
+ this.dateOfBirth = dateOfBirth;
+ this.email = email;
+ this.extraParams = extraParams;
+ this.name = name;
+ this.phone = phone;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Address address;
+
+ private DateOfBirth dateOfBirth;
+
+ private String email;
+
+ private Map extraParams;
+
+ private String name;
+
+ private String phone;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ build() {
+ return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails(
+ this.address,
+ this.dateOfBirth,
+ this.email,
+ this.extraParams,
+ this.name,
+ this.phone);
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class SenderDetails {
/** Address. */
- @SerializedName("address")
- Address address;
+ public Builder setAddress(
+ PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address
+ address) {
+ this.address = address;
+ return this;
+ }
/** Date of birth. */
- @SerializedName("date_of_birth")
- DateOfBirth dateOfBirth;
+ public Builder setDateOfBirth(
+ PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails.DateOfBirth
+ dateOfBirth) {
+ this.dateOfBirth = dateOfBirth;
+ return this;
+ }
/** Email address. */
- @SerializedName("email")
- String email;
+ public Builder setEmail(String email) {
+ this.email = email;
+ 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
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails#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
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Full name. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /** Phone number. */
+ 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;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
/**
* Map of extra parameters for custom features not available in this client library. The
@@ -15502,27 +15640,40 @@ public static class SenderDetails {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Full name. */
- @SerializedName("name")
- String name;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ @SerializedName("line1")
+ String line1;
- /** Phone number. */
- @SerializedName("phone")
- String phone;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ String line2;
- private SenderDetails(
- Address address,
- DateOfBirth dateOfBirth,
- String email,
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ @SerializedName("state")
+ String state;
+
+ private Address(
+ String city,
+ String country,
Map extraParams,
- String name,
- String phone) {
- this.address = address;
- this.dateOfBirth = dateOfBirth;
- this.email = email;
+ String line1,
+ String line2,
+ String postalCode,
+ String state) {
+ this.city = city;
+ this.country = country;
this.extraParams = extraParams;
- this.name = name;
- this.phone = phone;
+ this.line1 = line1;
+ this.line2 = line2;
+ this.postalCode = postalCode;
+ this.state = state;
}
public static Builder builder() {
@@ -15530,53 +15681,47 @@ public static Builder builder() {
}
public static class Builder {
- private Address address;
-
- private DateOfBirth dateOfBirth;
+ private String city;
- private String email;
+ private String country;
private Map extraParams;
- private String name;
+ private String line1;
- private String phone;
+ private String line2;
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails
+ private String postalCode;
+
+ private String state;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .Address
build() {
- return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails(
- this.address,
- this.dateOfBirth,
- this.email,
+ return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .Address(
+ this.city,
+ this.country,
this.extraParams,
- this.name,
- this.phone);
- }
-
- /** Address. */
- public Builder setAddress(
- PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
- .Address
- address) {
- this.address = address;
- return this;
+ this.line1,
+ this.line2,
+ this.postalCode,
+ this.state);
}
- /** Date of birth. */
- public Builder setDateOfBirth(
- PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
- .DateOfBirth
- dateOfBirth) {
- this.dateOfBirth = dateOfBirth;
+ /** City, district, suburb, town, or village. */
+ public Builder setCity(String city) {
+ this.city = city;
return this;
}
- /** Email address. */
- public Builder setEmail(String email) {
- this.email = email;
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ public Builder setCountry(String country) {
+ this.country = country;
return this;
}
@@ -15584,7 +15729,7 @@ public Builder setEmail(String email) {
* 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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -15599,7 +15744,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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -15610,287 +15755,134 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Full name. */
- public Builder setName(String name) {
- this.name = name;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ public Builder setLine1(String line1) {
+ this.line1 = line1;
return this;
}
- /** Phone number. */
- public Builder setPhone(String phone) {
- this.phone = phone;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ public Builder setLine2(String line2) {
+ this.line2 = line2;
return this;
}
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Address {
- /** City, district, suburb, town, or village. */
- @SerializedName("city")
- String city;
-
- /**
- * Two-letter country code (ISO 3166-1 alpha-2).
- */
- @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;
-
- /** Address line 1, such as the street, PO Box, or company name. */
- @SerializedName("line1")
- String line1;
-
- /** Address line 2, such as the apartment, suite, unit, or building. */
- @SerializedName("line2")
- String line2;
/** ZIP or postal code. */
- @SerializedName("postal_code")
- String postalCode;
+ public Builder setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
/**
* State, county, province, or region (ISO 3166-2).
*/
- @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.line1 = line1;
- this.line2 = line2;
- this.postalCode = postalCode;
+ public Builder setState(String state) {
this.state = state;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private String city;
-
- private String country;
-
- private Map extraParams;
-
- private String line1;
-
- private String line2;
-
- private String postalCode;
-
- private String state;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.Address
- build() {
- return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.Address(
- this.city,
- this.country,
- this.extraParams,
- this.line1,
- this.line2,
- this.postalCode,
- this.state);
- }
-
- /** 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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.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, such as the street, PO Box, or company name. */
- public Builder setLine1(String line1) {
- this.line1 = line1;
- return this;
- }
-
- /** Address line 2, such as the 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 (ISO 3166-2).
- */
- public Builder setState(String state) {
- this.state = state;
- return this;
- }
+ return this;
}
}
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class DateOfBirth {
- /** Required. Day of birth, between 1 and 31. */
- @SerializedName("day")
- Long day;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DateOfBirth {
+ /** Required. Day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
- /**
- * 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;
- /** Required. Month of birth, between 1 and 12. */
- @SerializedName("month")
- Long month;
+ /** Required. Month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
- /** Required. Four-digit year of birth. */
- @SerializedName("year")
- Long year;
+ /** Required. Four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
- private DateOfBirth(Long day, Map extraParams, Long month, Long year) {
- this.day = day;
- this.extraParams = extraParams;
- this.month = month;
- this.year = year;
- }
+ private DateOfBirth(Long day, Map extraParams, Long month, Long year) {
+ this.day = day;
+ this.extraParams = extraParams;
+ this.month = month;
+ this.year = year;
+ }
- public static Builder builder() {
- return new Builder();
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- public static class Builder {
- private Long day;
+ public static class Builder {
+ private Long day;
- private Map extraParams;
+ private Map extraParams;
- private Long month;
+ private Long month;
- private Long year;
+ private Long year;
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.DateOfBirth
- build() {
- return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.DateOfBirth(this.day, this.extraParams, this.month, this.year);
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .DateOfBirth
+ build() {
+ return new PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .DateOfBirth(this.day, this.extraParams, this.month, this.year);
+ }
- /** Required. Day of birth, between 1 and 31. */
- public Builder setDay(Long day) {
- this.day = day;
- return this;
- }
+ /** Required. Day of birth, between 1 and 31. */
+ public Builder setDay(Long day) {
+ this.day = day;
+ 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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#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
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails.DateOfBirth#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
- * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#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
+ * PaymentIntentConfirmParams.PaymentDetails.MoneyServices.BeneficiaryDetails.DateOfBirth#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. Month of birth, between 1 and 12. */
- public Builder setMonth(Long month) {
- this.month = month;
- return this;
- }
+ /** Required. Month of birth, between 1 and 12. */
+ public Builder setMonth(Long month) {
+ this.month = month;
+ return this;
+ }
- /** Required. Four-digit year of birth. */
- public Builder setYear(Long year) {
- this.year = year;
- return this;
- }
+ /** Required. Four-digit year of birth. */
+ public Builder setYear(Long year) {
+ this.year = year;
+ return this;
}
}
}
@@ -29499,346 +29491,69 @@ public static class AccountFunding {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Details for a wallet funding transaction. */
- @SerializedName("wallet")
- Wallet wallet;
-
private AccountFunding(
- DigitalAssetCategory digitalAssetCategory,
- Map extraParams,
- Wallet wallet) {
+ DigitalAssetCategory digitalAssetCategory, Map extraParams) {
this.digitalAssetCategory = digitalAssetCategory;
this.extraParams = extraParams;
- this.wallet = wallet;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private DigitalAssetCategory digitalAssetCategory;
-
- private Map extraParams;
-
- private Wallet wallet;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding
- build() {
- return new PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding(
- this.digitalAssetCategory, this.extraParams, this.wallet);
- }
-
- /**
- * The category of digital asset being acquired through this account funding
- * transaction.
- */
- public Builder setDigitalAssetCategory(
- PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
- .AccountFunding.DigitalAssetCategory
- digitalAssetCategory) {
- this.digitalAssetCategory = digitalAssetCategory;
- 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
- * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#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
- * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Details for a wallet funding transaction. */
- public Builder setWallet(
- PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
- .AccountFunding.Wallet
- wallet) {
- this.wallet = wallet;
- return this;
- }
}
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Wallet {
- /**
- * Map of extra parameters for custom features not available in this client library.
- * The content in this map is not serialized under this field's
- * {@code @SerializedName} value. Instead, each key/value pair is serialized as if the
- * key is a root-level field (serialized) name in this param object. Effectively, this
- * map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** Details for a staged purchase. */
- @SerializedName("staged_purchase")
- Object stagedPurchase;
-
- private Wallet(Map extraParams, Object stagedPurchase) {
- this.extraParams = extraParams;
- this.stagedPurchase = stagedPurchase;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Object stagedPurchase;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet
- build() {
- return new PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet(this.extraParams, this.stagedPurchase);
- }
-
- /**
- * 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
- * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet#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
- * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(
- PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(EmptyParam stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class StagedPurchase {
- /**
- * 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 merchant where the staged wallet purchase is made. */
- @SerializedName("merchant")
- Merchant merchant;
-
- private StagedPurchase(Map extraParams, Merchant merchant) {
- this.extraParams = extraParams;
- this.merchant = merchant;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
+ public static Builder builder() {
+ return new Builder();
+ }
- private Merchant merchant;
+ public static class Builder {
+ private DigitalAssetCategory digitalAssetCategory;
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- build() {
- return new PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase(
- this.extraParams, this.merchant);
- }
+ private Map extraParams;
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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;
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
+ .MoneyServices.AccountFunding
+ build() {
+ return new PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
+ .MoneyServices.AccountFunding(this.digitalAssetCategory, this.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
- * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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 category of digital asset being acquired through this account funding
+ * transaction.
+ */
+ public Builder setDigitalAssetCategory(
+ PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
+ .AccountFunding.DigitalAssetCategory
+ digitalAssetCategory) {
+ this.digitalAssetCategory = digitalAssetCategory;
+ return this;
+ }
- /** The merchant where the staged wallet purchase is made. */
- public Builder setMerchant(
- PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- merchant) {
- this.merchant = merchant;
- 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
+ * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#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;
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Merchant {
- /**
- * 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 merchant category code of the merchant. */
- @SerializedName("mcc")
- String mcc;
-
- /** The merchant's name. */
- @SerializedName("name")
- String name;
-
- private Merchant(Map extraParams, String mcc, String name) {
- this.extraParams = extraParams;
- this.mcc = mcc;
- this.name = name;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private String mcc;
-
- private String name;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- build() {
- return new PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant(
- this.extraParams, this.mcc, this.name);
- }
-
- /**
- * 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
- * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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
- * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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 merchant category code of the merchant. */
- public Builder setMcc(String mcc) {
- this.mcc = mcc;
- return this;
- }
-
- /** The merchant's name. */
- public Builder setName(String name) {
- this.name = name;
- 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
+ * PaymentIntentConfirmParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
}
+ this.extraParams.putAll(map);
+ return this;
}
}
@@ -30703,6 +30418,9 @@ public enum CaptureBy implements ApiRequestParams.EnumParam {
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("automatic_delayed")
+ AUTOMATIC_DELAYED("automatic_delayed"),
+
@SerializedName("manual")
MANUAL("manual");
@@ -31453,17 +31171,10 @@ public static class AccountFunding {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Details for a wallet funding transaction. */
- @SerializedName("wallet")
- Wallet wallet;
-
private AccountFunding(
- DigitalAssetCategory digitalAssetCategory,
- Map extraParams,
- Wallet wallet) {
+ DigitalAssetCategory digitalAssetCategory, Map extraParams) {
this.digitalAssetCategory = digitalAssetCategory;
this.extraParams = extraParams;
- this.wallet = wallet;
}
public static Builder builder() {
@@ -31475,15 +31186,13 @@ public static class Builder {
private Map extraParams;
- private Wallet wallet;
-
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails
.MoneyServices.AccountFunding
build() {
return new PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent
.PaymentDetails.MoneyServices.AccountFunding(
- this.digitalAssetCategory, this.extraParams, this.wallet);
+ this.digitalAssetCategory, this.extraParams);
}
/**
@@ -31527,275 +31236,6 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
-
- /** Details for a wallet funding transaction. */
- public Builder setWallet(
- PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet
- wallet) {
- this.wallet = wallet;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Wallet {
- /**
- * Map of extra parameters for custom features not available in this client library.
- * The content in this map is not serialized under this field's
- * {@code @SerializedName} value. Instead, each key/value pair is serialized as if the
- * key is a root-level field (serialized) name in this param object. Effectively, this
- * map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** Details for a staged purchase. */
- @SerializedName("staged_purchase")
- Object stagedPurchase;
-
- private Wallet(Map extraParams, Object stagedPurchase) {
- this.extraParams = extraParams;
- this.stagedPurchase = stagedPurchase;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Object stagedPurchase;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet
- build() {
- return new PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet(
- this.extraParams, this.stagedPurchase);
- }
-
- /**
- * 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
- * PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet#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
- * PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(
- PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(EmptyParam stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class StagedPurchase {
- /**
- * 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 merchant where the staged wallet purchase is made. */
- @SerializedName("merchant")
- Merchant merchant;
-
- private StagedPurchase(Map extraParams, Merchant merchant) {
- this.extraParams = extraParams;
- this.merchant = merchant;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Merchant merchant;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- build() {
- return new PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase(
- this.extraParams, this.merchant);
- }
-
- /**
- * 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
- * PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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
- * PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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 merchant where the staged wallet purchase is made. */
- public Builder setMerchant(
- PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- merchant) {
- this.merchant = merchant;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Merchant {
- /**
- * 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 merchant category code of the merchant. */
- @SerializedName("mcc")
- String mcc;
-
- /** The merchant's name. */
- @SerializedName("name")
- String name;
-
- private Merchant(Map extraParams, String mcc, String name) {
- this.extraParams = extraParams;
- this.mcc = mcc;
- this.name = name;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private String mcc;
-
- private String name;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase
- .Merchant
- build() {
- return new PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase
- .Merchant(this.extraParams, this.mcc, this.name);
- }
-
- /**
- * 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
- * PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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
- * PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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 merchant category code of the merchant. */
- public Builder setMcc(String mcc) {
- this.mcc = mcc;
- return this;
- }
-
- /** The merchant's name. */
- public Builder setName(String name) {
- this.name = name;
- return this;
- }
- }
- }
- }
}
public enum DigitalAssetCategory implements ApiRequestParams.EnumParam {
@@ -31933,6 +31373,9 @@ public enum CaptureBy implements ApiRequestParams.EnumParam {
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("automatic_delayed")
+ AUTOMATIC_DELAYED("automatic_delayed"),
+
@SerializedName("manual")
MANUAL("manual"),
@@ -46671,9 +46114,35 @@ public static class Satispay {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Satispay(ApiRequestParams.EnumParam captureMethod, Map extraParams) {
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ *
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ ApiRequestParams.EnumParam setupFutureUsage;
+
+ private Satispay(
+ ApiRequestParams.EnumParam captureMethod,
+ Map extraParams,
+ ApiRequestParams.EnumParam setupFutureUsage) {
this.captureMethod = captureMethod;
this.extraParams = extraParams;
+ this.setupFutureUsage = setupFutureUsage;
}
public static Builder builder() {
@@ -46685,10 +46154,12 @@ public static class Builder {
private Map extraParams;
+ private ApiRequestParams.EnumParam setupFutureUsage;
+
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentConfirmParams.PaymentMethodOptions.Satispay build() {
return new PaymentIntentConfirmParams.PaymentMethodOptions.Satispay(
- this.captureMethod, this.extraParams);
+ this.captureMethod, this.extraParams, this.setupFutureUsage);
}
/**
@@ -46749,6 +46220,58 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment
+ * method.
+ *
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentIntentConfirmParams.PaymentMethodOptions.Satispay.SetupFutureUsage
+ setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment
+ * method.
+ *
+ *
If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
@@ -46762,6 +46285,24 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
this.value = value;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("off_session")
+ OFF_SESSION("off_session"),
+
+ @SerializedName("on_session")
+ ON_SESSION("on_session");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
index 27f4333dce1..a92b77bea22 100644
--- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
@@ -15323,10 +15323,18 @@ public Builder setType(String type) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class MoneyServices {
- /** Account funding transaction details including sender and beneficiary information. */
+ /** Account funding transaction details including sender information. */
@SerializedName("account_funding")
Object accountFunding;
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ @SerializedName("beneficiary_account")
+ String beneficiaryAccount;
+
+ /** Inline identity details for the beneficiary of this transaction. */
+ @SerializedName("beneficiary_details")
+ Object beneficiaryDetails;
+
/**
* 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.
@@ -15342,9 +15350,13 @@ public static class MoneyServices {
private MoneyServices(
Object accountFunding,
+ String beneficiaryAccount,
+ Object beneficiaryDetails,
Map extraParams,
ApiRequestParams.EnumParam transactionType) {
this.accountFunding = accountFunding;
+ this.beneficiaryAccount = beneficiaryAccount;
+ this.beneficiaryDetails = beneficiaryDetails;
this.extraParams = extraParams;
this.transactionType = transactionType;
}
@@ -15356,6 +15368,10 @@ public static Builder builder() {
public static class Builder {
private Object accountFunding;
+ private String beneficiaryAccount;
+
+ private Object beneficiaryDetails;
+
private Map extraParams;
private ApiRequestParams.EnumParam transactionType;
@@ -15363,22 +15379,46 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentCreateParams.PaymentDetails.MoneyServices build() {
return new PaymentIntentCreateParams.PaymentDetails.MoneyServices(
- this.accountFunding, this.extraParams, this.transactionType);
+ this.accountFunding,
+ this.beneficiaryAccount,
+ this.beneficiaryDetails,
+ this.extraParams,
+ this.transactionType);
}
- /** Account funding transaction details including sender and beneficiary information. */
+ /** Account funding transaction details including sender information. */
public Builder setAccountFunding(
PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding accountFunding) {
this.accountFunding = accountFunding;
return this;
}
- /** Account funding transaction details including sender and beneficiary information. */
+ /** Account funding transaction details including sender information. */
public Builder setAccountFunding(EmptyParam accountFunding) {
this.accountFunding = accountFunding;
return this;
}
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ public Builder setBeneficiaryAccount(String beneficiaryAccount) {
+ this.beneficiaryAccount = beneficiaryAccount;
+ return this;
+ }
+
+ /** Inline identity details for the beneficiary of this transaction. */
+ public Builder setBeneficiaryDetails(
+ PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ beneficiaryDetails) {
+ this.beneficiaryDetails = beneficiaryDetails;
+ return this;
+ }
+
+ /** Inline identity details for the beneficiary of this transaction. */
+ public Builder setBeneficiaryDetails(EmptyParam beneficiaryDetails) {
+ this.beneficiaryDetails = beneficiaryDetails;
+ 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
@@ -15425,14 +15465,6 @@ public Builder setTransactionType(EmptyParam transactionType) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class AccountFunding {
- /** ID of the Account representing the beneficiary in this account funding transaction. */
- @SerializedName("beneficiary_account")
- String beneficiaryAccount;
-
- /** Inline identity details for the beneficiary of this account funding transaction. */
- @SerializedName("beneficiary_details")
- Object beneficiaryDetails;
-
/**
* 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.
@@ -15452,13 +15484,7 @@ public static class AccountFunding {
Object senderDetails;
private AccountFunding(
- String beneficiaryAccount,
- Object beneficiaryDetails,
- Map extraParams,
- String senderAccount,
- Object senderDetails) {
- this.beneficiaryAccount = beneficiaryAccount;
- this.beneficiaryDetails = beneficiaryDetails;
+ Map extraParams, String senderAccount, Object senderDetails) {
this.extraParams = extraParams;
this.senderAccount = senderAccount;
this.senderDetails = senderDetails;
@@ -15469,10 +15495,6 @@ public static Builder builder() {
}
public static class Builder {
- private String beneficiaryAccount;
-
- private Object beneficiaryDetails;
-
private Map extraParams;
private String senderAccount;
@@ -15482,32 +15504,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding build() {
return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding(
- this.beneficiaryAccount,
- this.beneficiaryDetails,
- this.extraParams,
- this.senderAccount,
- this.senderDetails);
- }
-
- /** ID of the Account representing the beneficiary in this account funding transaction. */
- public Builder setBeneficiaryAccount(String beneficiaryAccount) {
- this.beneficiaryAccount = beneficiaryAccount;
- return this;
- }
-
- /** Inline identity details for the beneficiary of this account funding transaction. */
- public Builder setBeneficiaryDetails(
- PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails
- beneficiaryDetails) {
- this.beneficiaryDetails = beneficiaryDetails;
- return this;
- }
-
- /** Inline identity details for the beneficiary of this account funding transaction. */
- public Builder setBeneficiaryDetails(EmptyParam beneficiaryDetails) {
- this.beneficiaryDetails = beneficiaryDetails;
- return this;
+ this.extraParams, this.senderAccount, this.senderDetails);
}
/**
@@ -15563,7 +15560,7 @@ public Builder setSenderDetails(EmptyParam senderDetails) {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class BeneficiaryDetails {
+ public static class SenderDetails {
/** Address. */
@SerializedName("address")
Address address;
@@ -15594,7 +15591,7 @@ public static class BeneficiaryDetails {
@SerializedName("phone")
String phone;
- private BeneficiaryDetails(
+ private SenderDetails(
Address address,
DateOfBirth dateOfBirth,
String email,
@@ -15628,10 +15625,10 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails
+ .SenderDetails
build() {
return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails(
+ .SenderDetails(
this.address,
this.dateOfBirth,
this.email,
@@ -15642,8 +15639,8 @@ public static class Builder {
/** Address. */
public Builder setAddress(
- PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address
+ PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .Address
address) {
this.address = address;
return this;
@@ -15651,8 +15648,8 @@ public Builder setAddress(
/** Date of birth. */
public Builder setDateOfBirth(
- PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.DateOfBirth
+ PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .DateOfBirth
dateOfBirth) {
this.dateOfBirth = dateOfBirth;
return this;
@@ -15668,7 +15665,7 @@ public Builder setEmail(String email) {
* 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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails#extraParams}
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -15683,7 +15680,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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails#extraParams}
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -15788,10 +15785,10 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address
+ .SenderDetails.Address
build() {
return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address(
+ .SenderDetails.Address(
this.city,
this.country,
this.extraParams,
@@ -15820,7 +15817,7 @@ public Builder setCountry(String country) {
* 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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.Address#extraParams}
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -15835,7 +15832,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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.Address#extraParams}
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -15922,11 +15919,10 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.DateOfBirth
+ .SenderDetails.DateOfBirth
build() {
return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.DateOfBirth(
- this.day, this.extraParams, this.month, this.year);
+ .SenderDetails.DateOfBirth(this.day, this.extraParams, this.month, this.year);
}
/** Required. Day of birth, between 1 and 31. */
@@ -15939,7 +15935,7 @@ public Builder setDay(Long day) {
* 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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.DateOfBirth#extraParams}
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -15954,7 +15950,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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.DateOfBirth#extraParams}
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -15979,21 +15975,162 @@ public Builder setYear(Long year) {
}
}
}
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BeneficiaryDetails {
+ /** Address. */
+ @SerializedName("address")
+ Address address;
+
+ /** Date of birth. */
+ @SerializedName("date_of_birth")
+ DateOfBirth dateOfBirth;
+
+ /** Email address. */
+ @SerializedName("email")
+ String email;
+
+ /**
+ * 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;
+
+ /** Full name. */
+ @SerializedName("name")
+ String name;
+
+ /** Phone number. */
+ @SerializedName("phone")
+ String phone;
+
+ private BeneficiaryDetails(
+ Address address,
+ DateOfBirth dateOfBirth,
+ String email,
+ Map extraParams,
+ String name,
+ String phone) {
+ this.address = address;
+ this.dateOfBirth = dateOfBirth;
+ this.email = email;
+ this.extraParams = extraParams;
+ this.name = name;
+ this.phone = phone;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Address address;
+
+ private DateOfBirth dateOfBirth;
+
+ private String email;
+
+ private Map extraParams;
+
+ private String name;
+
+ private String phone;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails build() {
+ return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails(
+ this.address,
+ this.dateOfBirth,
+ this.email,
+ this.extraParams,
+ this.name,
+ this.phone);
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class SenderDetails {
/** Address. */
- @SerializedName("address")
- Address address;
+ public Builder setAddress(
+ PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address
+ address) {
+ this.address = address;
+ return this;
+ }
/** Date of birth. */
- @SerializedName("date_of_birth")
- DateOfBirth dateOfBirth;
+ public Builder setDateOfBirth(
+ PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.DateOfBirth
+ dateOfBirth) {
+ this.dateOfBirth = dateOfBirth;
+ return this;
+ }
/** Email address. */
- @SerializedName("email")
- String email;
+ public Builder setEmail(String email) {
+ this.email = email;
+ 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
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails#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
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Full name. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /** Phone number. */
+ 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;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
/**
* Map of extra parameters for custom features not available in this client library. The
@@ -16005,27 +16142,40 @@ public static class SenderDetails {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Full name. */
- @SerializedName("name")
- String name;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ @SerializedName("line1")
+ String line1;
- /** Phone number. */
- @SerializedName("phone")
- String phone;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ String line2;
- private SenderDetails(
- Address address,
- DateOfBirth dateOfBirth,
- String email,
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ @SerializedName("state")
+ String state;
+
+ private Address(
+ String city,
+ String country,
Map extraParams,
- String name,
- String phone) {
- this.address = address;
- this.dateOfBirth = dateOfBirth;
- this.email = email;
+ String line1,
+ String line2,
+ String postalCode,
+ String state) {
+ this.city = city;
+ this.country = country;
this.extraParams = extraParams;
- this.name = name;
- this.phone = phone;
+ this.line1 = line1;
+ this.line2 = line2;
+ this.postalCode = postalCode;
+ this.state = state;
}
public static Builder builder() {
@@ -16033,53 +16183,46 @@ public static Builder builder() {
}
public static class Builder {
- private Address address;
-
- private DateOfBirth dateOfBirth;
+ private String city;
- private String email;
+ private String country;
private Map extraParams;
- private String name;
+ private String line1;
- private String phone;
+ private String line2;
+
+ private String postalCode;
+
+ private String state;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails
+ public PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address
build() {
- return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails(
- this.address,
- this.dateOfBirth,
- this.email,
+ return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .Address(
+ this.city,
+ this.country,
this.extraParams,
- this.name,
- this.phone);
- }
-
- /** Address. */
- public Builder setAddress(
- PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
- .Address
- address) {
- this.address = address;
- return this;
+ this.line1,
+ this.line2,
+ this.postalCode,
+ this.state);
}
- /** Date of birth. */
- public Builder setDateOfBirth(
- PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
- .DateOfBirth
- dateOfBirth) {
- this.dateOfBirth = dateOfBirth;
+ /** City, district, suburb, town, or village. */
+ public Builder setCity(String city) {
+ this.city = city;
return this;
}
- /** Email address. */
- public Builder setEmail(String email) {
- this.email = email;
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ public Builder setCountry(String country) {
+ this.country = country;
return this;
}
@@ -16087,7 +16230,7 @@ public Builder setEmail(String email) {
* 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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -16102,7 +16245,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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -16113,287 +16256,134 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Full name. */
- public Builder setName(String name) {
- this.name = name;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ public Builder setLine1(String line1) {
+ this.line1 = line1;
return this;
}
- /** Phone number. */
- public Builder setPhone(String phone) {
- this.phone = phone;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ public Builder setLine2(String line2) {
+ this.line2 = line2;
return this;
}
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Address {
- /** City, district, suburb, town, or village. */
- @SerializedName("city")
- String city;
-
- /**
- * Two-letter country code (ISO 3166-1 alpha-2).
- */
- @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;
-
- /** Address line 1, such as the street, PO Box, or company name. */
- @SerializedName("line1")
- String line1;
-
- /** Address line 2, such as the apartment, suite, unit, or building. */
- @SerializedName("line2")
- String line2;
/** ZIP or postal code. */
- @SerializedName("postal_code")
- String postalCode;
+ public Builder setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
/**
* State, county, province, or region (ISO 3166-2).
*/
- @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.line1 = line1;
- this.line2 = line2;
- this.postalCode = postalCode;
+ public Builder setState(String state) {
this.state = state;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private String city;
-
- private String country;
-
- private Map extraParams;
-
- private String line1;
-
- private String line2;
-
- private String postalCode;
-
- private String state;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.Address
- build() {
- return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.Address(
- this.city,
- this.country,
- this.extraParams,
- this.line1,
- this.line2,
- this.postalCode,
- this.state);
- }
-
- /** 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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.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, such as the street, PO Box, or company name. */
- public Builder setLine1(String line1) {
- this.line1 = line1;
- return this;
- }
-
- /** Address line 2, such as the 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 (ISO 3166-2).
- */
- public Builder setState(String state) {
- this.state = state;
- return this;
- }
+ return this;
}
}
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class DateOfBirth {
- /** Required. Day of birth, between 1 and 31. */
- @SerializedName("day")
- Long day;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DateOfBirth {
+ /** Required. Day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
- /**
- * 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;
- /** Required. Month of birth, between 1 and 12. */
- @SerializedName("month")
- Long month;
+ /** Required. Month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
- /** Required. Four-digit year of birth. */
- @SerializedName("year")
- Long year;
+ /** Required. Four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
- private DateOfBirth(Long day, Map extraParams, Long month, Long year) {
- this.day = day;
- this.extraParams = extraParams;
- this.month = month;
- this.year = year;
- }
+ private DateOfBirth(Long day, Map extraParams, Long month, Long year) {
+ this.day = day;
+ this.extraParams = extraParams;
+ this.month = month;
+ this.year = year;
+ }
- public static Builder builder() {
- return new Builder();
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- public static class Builder {
- private Long day;
+ public static class Builder {
+ private Long day;
- private Map extraParams;
+ private Map extraParams;
- private Long month;
+ private Long month;
- private Long year;
+ private Long year;
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.DateOfBirth
- build() {
- return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.DateOfBirth(this.day, this.extraParams, this.month, this.year);
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .DateOfBirth
+ build() {
+ return new PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .DateOfBirth(this.day, this.extraParams, this.month, this.year);
+ }
- /** Required. Day of birth, between 1 and 31. */
- public Builder setDay(Long day) {
- this.day = day;
- return this;
- }
+ /** Required. Day of birth, between 1 and 31. */
+ public Builder setDay(Long day) {
+ this.day = day;
+ 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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#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
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.DateOfBirth#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
- * PaymentIntentCreateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#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
+ * PaymentIntentCreateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.DateOfBirth#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. Month of birth, between 1 and 12. */
- public Builder setMonth(Long month) {
- this.month = month;
- return this;
- }
+ /** Required. Month of birth, between 1 and 12. */
+ public Builder setMonth(Long month) {
+ this.month = month;
+ return this;
+ }
- /** Required. Four-digit year of birth. */
- public Builder setYear(Long year) {
- this.year = year;
- return this;
- }
+ /** Required. Four-digit year of birth. */
+ public Builder setYear(Long year) {
+ this.year = year;
+ return this;
}
}
}
@@ -29976,346 +29966,69 @@ public static class AccountFunding {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Details for a wallet funding transaction. */
- @SerializedName("wallet")
- Wallet wallet;
-
private AccountFunding(
- DigitalAssetCategory digitalAssetCategory,
- Map extraParams,
- Wallet wallet) {
+ DigitalAssetCategory digitalAssetCategory, Map extraParams) {
this.digitalAssetCategory = digitalAssetCategory;
this.extraParams = extraParams;
- this.wallet = wallet;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private DigitalAssetCategory digitalAssetCategory;
-
- private Map extraParams;
-
- private Wallet wallet;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding
- build() {
- return new PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding(
- this.digitalAssetCategory, this.extraParams, this.wallet);
- }
-
- /**
- * The category of digital asset being acquired through this account funding
- * transaction.
- */
- public Builder setDigitalAssetCategory(
- PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
- .AccountFunding.DigitalAssetCategory
- digitalAssetCategory) {
- this.digitalAssetCategory = digitalAssetCategory;
- 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
- * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#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
- * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Details for a wallet funding transaction. */
- public Builder setWallet(
- PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
- .AccountFunding.Wallet
- wallet) {
- this.wallet = wallet;
- return this;
- }
}
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Wallet {
- /**
- * Map of extra parameters for custom features not available in this client library.
- * The content in this map is not serialized under this field's
- * {@code @SerializedName} value. Instead, each key/value pair is serialized as if the
- * key is a root-level field (serialized) name in this param object. Effectively, this
- * map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** Details for a staged purchase. */
- @SerializedName("staged_purchase")
- Object stagedPurchase;
-
- private Wallet(Map extraParams, Object stagedPurchase) {
- this.extraParams = extraParams;
- this.stagedPurchase = stagedPurchase;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Object stagedPurchase;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet
- build() {
- return new PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet(this.extraParams, this.stagedPurchase);
- }
-
- /**
- * 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
- * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet#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
- * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(
- PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
- .AccountFunding.Wallet.StagedPurchase
- stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(EmptyParam stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class StagedPurchase {
- /**
- * 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 merchant where the staged wallet purchase is made. */
- @SerializedName("merchant")
- Merchant merchant;
-
- private StagedPurchase(Map extraParams, Merchant merchant) {
- this.extraParams = extraParams;
- this.merchant = merchant;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
+ public static Builder builder() {
+ return new Builder();
+ }
- private Merchant merchant;
+ public static class Builder {
+ private DigitalAssetCategory digitalAssetCategory;
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- build() {
- return new PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase(
- this.extraParams, this.merchant);
- }
+ private Map extraParams;
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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;
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
+ .MoneyServices.AccountFunding
+ build() {
+ return new PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
+ .MoneyServices.AccountFunding(this.digitalAssetCategory, this.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
- * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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 category of digital asset being acquired through this account funding
+ * transaction.
+ */
+ public Builder setDigitalAssetCategory(
+ PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
+ .AccountFunding.DigitalAssetCategory
+ digitalAssetCategory) {
+ this.digitalAssetCategory = digitalAssetCategory;
+ return this;
+ }
- /** The merchant where the staged wallet purchase is made. */
- public Builder setMerchant(
- PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- merchant) {
- this.merchant = merchant;
- 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
+ * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#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;
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Merchant {
- /**
- * 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 merchant category code of the merchant. */
- @SerializedName("mcc")
- String mcc;
-
- /** The merchant's name. */
- @SerializedName("name")
- String name;
-
- private Merchant(Map extraParams, String mcc, String name) {
- this.extraParams = extraParams;
- this.mcc = mcc;
- this.name = name;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private String mcc;
-
- private String name;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- build() {
- return new PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant(
- this.extraParams, this.mcc, this.name);
- }
-
- /**
- * 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
- * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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
- * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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 merchant category code of the merchant. */
- public Builder setMcc(String mcc) {
- this.mcc = mcc;
- return this;
- }
-
- /** The merchant's name. */
- public Builder setName(String name) {
- this.name = name;
- 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
+ * PaymentIntentCreateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
}
+ this.extraParams.putAll(map);
+ return this;
}
}
@@ -31180,6 +30893,9 @@ public enum CaptureBy implements ApiRequestParams.EnumParam {
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("automatic_delayed")
+ AUTOMATIC_DELAYED("automatic_delayed"),
+
@SerializedName("manual")
MANUAL("manual");
@@ -31929,17 +31645,10 @@ public static class AccountFunding {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Details for a wallet funding transaction. */
- @SerializedName("wallet")
- Wallet wallet;
-
private AccountFunding(
- DigitalAssetCategory digitalAssetCategory,
- Map extraParams,
- Wallet wallet) {
+ DigitalAssetCategory digitalAssetCategory, Map extraParams) {
this.digitalAssetCategory = digitalAssetCategory;
this.extraParams = extraParams;
- this.wallet = wallet;
}
public static Builder builder() {
@@ -31951,15 +31660,12 @@ public static class Builder {
private Map extraParams;
- private Wallet wallet;
-
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails
.MoneyServices.AccountFunding
build() {
return new PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding(
- this.digitalAssetCategory, this.extraParams, this.wallet);
+ .MoneyServices.AccountFunding(this.digitalAssetCategory, this.extraParams);
}
/**
@@ -32003,274 +31709,6 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
-
- /** Details for a wallet funding transaction. */
- public Builder setWallet(
- PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet
- wallet) {
- this.wallet = wallet;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Wallet {
- /**
- * Map of extra parameters for custom features not available in this client library.
- * The content in this map is not serialized under this field's
- * {@code @SerializedName} value. Instead, each key/value pair is serialized as if the
- * key is a root-level field (serialized) name in this param object. Effectively, this
- * map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** Details for a staged purchase. */
- @SerializedName("staged_purchase")
- Object stagedPurchase;
-
- private Wallet(Map extraParams, Object stagedPurchase) {
- this.extraParams = extraParams;
- this.stagedPurchase = stagedPurchase;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Object stagedPurchase;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet
- build() {
- return new PaymentIntentCreateParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet(
- this.extraParams, this.stagedPurchase);
- }
-
- /**
- * 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
- * PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet#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
- * PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(
- PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(EmptyParam stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class StagedPurchase {
- /**
- * 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 merchant where the staged wallet purchase is made. */
- @SerializedName("merchant")
- Merchant merchant;
-
- private StagedPurchase(Map extraParams, Merchant merchant) {
- this.extraParams = extraParams;
- this.merchant = merchant;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Merchant merchant;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- build() {
- return new PaymentIntentCreateParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase(
- this.extraParams, this.merchant);
- }
-
- /**
- * 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
- * PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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
- * PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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 merchant where the staged wallet purchase is made. */
- public Builder setMerchant(
- PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- merchant) {
- this.merchant = merchant;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Merchant {
- /**
- * 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 merchant category code of the merchant. */
- @SerializedName("mcc")
- String mcc;
-
- /** The merchant's name. */
- @SerializedName("name")
- String name;
-
- private Merchant(Map extraParams, String mcc, String name) {
- this.extraParams = extraParams;
- this.mcc = mcc;
- this.name = name;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private String mcc;
-
- private String name;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- build() {
- return new PaymentIntentCreateParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase
- .Merchant(this.extraParams, this.mcc, this.name);
- }
-
- /**
- * 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
- * PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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
- * PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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 merchant category code of the merchant. */
- public Builder setMcc(String mcc) {
- this.mcc = mcc;
- return this;
- }
-
- /** The merchant's name. */
- public Builder setName(String name) {
- this.name = name;
- return this;
- }
- }
- }
- }
}
public enum DigitalAssetCategory implements ApiRequestParams.EnumParam {
@@ -32408,6 +31846,9 @@ public enum CaptureBy implements ApiRequestParams.EnumParam {
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("automatic_delayed")
+ AUTOMATIC_DELAYED("automatic_delayed"),
+
@SerializedName("manual")
MANUAL("manual"),
@@ -47132,9 +46573,35 @@ public static class Satispay {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Satispay(ApiRequestParams.EnumParam captureMethod, Map extraParams) {
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ *
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ ApiRequestParams.EnumParam setupFutureUsage;
+
+ private Satispay(
+ ApiRequestParams.EnumParam captureMethod,
+ Map extraParams,
+ ApiRequestParams.EnumParam setupFutureUsage) {
this.captureMethod = captureMethod;
this.extraParams = extraParams;
+ this.setupFutureUsage = setupFutureUsage;
}
public static Builder builder() {
@@ -47146,10 +46613,12 @@ public static class Builder {
private Map extraParams;
+ private ApiRequestParams.EnumParam setupFutureUsage;
+
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentCreateParams.PaymentMethodOptions.Satispay build() {
return new PaymentIntentCreateParams.PaymentMethodOptions.Satispay(
- this.captureMethod, this.extraParams);
+ this.captureMethod, this.extraParams, this.setupFutureUsage);
}
/**
@@ -47210,6 +46679,58 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment
+ * method.
+ *
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentIntentCreateParams.PaymentMethodOptions.Satispay.SetupFutureUsage
+ setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment
+ * method.
+ *
+ *
If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
@@ -47223,6 +46744,24 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
this.value = value;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("off_session")
+ OFF_SESSION("off_session"),
+
+ @SerializedName("on_session")
+ ON_SESSION("on_session");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
index 715916b0090..5a3338dd054 100644
--- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
@@ -16123,10 +16123,18 @@ public Builder setType(EmptyParam type) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class MoneyServices {
- /** Account funding transaction details including sender and beneficiary information. */
+ /** Account funding transaction details including sender information. */
@SerializedName("account_funding")
Object accountFunding;
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ @SerializedName("beneficiary_account")
+ Object beneficiaryAccount;
+
+ /** Inline identity details for the beneficiary of this transaction. */
+ @SerializedName("beneficiary_details")
+ Object beneficiaryDetails;
+
/**
* 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.
@@ -16142,9 +16150,13 @@ public static class MoneyServices {
private MoneyServices(
Object accountFunding,
+ Object beneficiaryAccount,
+ Object beneficiaryDetails,
Map extraParams,
ApiRequestParams.EnumParam transactionType) {
this.accountFunding = accountFunding;
+ this.beneficiaryAccount = beneficiaryAccount;
+ this.beneficiaryDetails = beneficiaryDetails;
this.extraParams = extraParams;
this.transactionType = transactionType;
}
@@ -16156,6 +16168,10 @@ public static Builder builder() {
public static class Builder {
private Object accountFunding;
+ private Object beneficiaryAccount;
+
+ private Object beneficiaryDetails;
+
private Map extraParams;
private ApiRequestParams.EnumParam transactionType;
@@ -16163,22 +16179,52 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentUpdateParams.PaymentDetails.MoneyServices build() {
return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices(
- this.accountFunding, this.extraParams, this.transactionType);
+ this.accountFunding,
+ this.beneficiaryAccount,
+ this.beneficiaryDetails,
+ this.extraParams,
+ this.transactionType);
}
- /** Account funding transaction details including sender and beneficiary information. */
+ /** Account funding transaction details including sender information. */
public Builder setAccountFunding(
PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding accountFunding) {
this.accountFunding = accountFunding;
return this;
}
- /** Account funding transaction details including sender and beneficiary information. */
+ /** Account funding transaction details including sender information. */
public Builder setAccountFunding(EmptyParam accountFunding) {
this.accountFunding = accountFunding;
return this;
}
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ public Builder setBeneficiaryAccount(String beneficiaryAccount) {
+ this.beneficiaryAccount = beneficiaryAccount;
+ return this;
+ }
+
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ public Builder setBeneficiaryAccount(EmptyParam beneficiaryAccount) {
+ this.beneficiaryAccount = beneficiaryAccount;
+ return this;
+ }
+
+ /** Inline identity details for the beneficiary of this transaction. */
+ public Builder setBeneficiaryDetails(
+ PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ beneficiaryDetails) {
+ this.beneficiaryDetails = beneficiaryDetails;
+ return this;
+ }
+
+ /** Inline identity details for the beneficiary of this transaction. */
+ public Builder setBeneficiaryDetails(EmptyParam beneficiaryDetails) {
+ this.beneficiaryDetails = beneficiaryDetails;
+ 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
@@ -16225,14 +16271,6 @@ public Builder setTransactionType(EmptyParam transactionType) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class AccountFunding {
- /** ID of the Account representing the beneficiary in this account funding transaction. */
- @SerializedName("beneficiary_account")
- Object beneficiaryAccount;
-
- /** Inline identity details for the beneficiary of this account funding transaction. */
- @SerializedName("beneficiary_details")
- Object beneficiaryDetails;
-
/**
* 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.
@@ -16252,13 +16290,7 @@ public static class AccountFunding {
Object senderDetails;
private AccountFunding(
- Object beneficiaryAccount,
- Object beneficiaryDetails,
- Map extraParams,
- Object senderAccount,
- Object senderDetails) {
- this.beneficiaryAccount = beneficiaryAccount;
- this.beneficiaryDetails = beneficiaryDetails;
+ Map extraParams, Object senderAccount, Object senderDetails) {
this.extraParams = extraParams;
this.senderAccount = senderAccount;
this.senderDetails = senderDetails;
@@ -16269,10 +16301,6 @@ public static Builder builder() {
}
public static class Builder {
- private Object beneficiaryAccount;
-
- private Object beneficiaryDetails;
-
private Map extraParams;
private Object senderAccount;
@@ -16282,38 +16310,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding build() {
return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding(
- this.beneficiaryAccount,
- this.beneficiaryDetails,
- this.extraParams,
- this.senderAccount,
- this.senderDetails);
- }
-
- /** ID of the Account representing the beneficiary in this account funding transaction. */
- public Builder setBeneficiaryAccount(String beneficiaryAccount) {
- this.beneficiaryAccount = beneficiaryAccount;
- return this;
- }
-
- /** ID of the Account representing the beneficiary in this account funding transaction. */
- public Builder setBeneficiaryAccount(EmptyParam beneficiaryAccount) {
- this.beneficiaryAccount = beneficiaryAccount;
- return this;
- }
-
- /** Inline identity details for the beneficiary of this account funding transaction. */
- public Builder setBeneficiaryDetails(
- PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails
- beneficiaryDetails) {
- this.beneficiaryDetails = beneficiaryDetails;
- return this;
- }
-
- /** Inline identity details for the beneficiary of this account funding transaction. */
- public Builder setBeneficiaryDetails(EmptyParam beneficiaryDetails) {
- this.beneficiaryDetails = beneficiaryDetails;
- return this;
+ this.extraParams, this.senderAccount, this.senderDetails);
}
/**
@@ -16375,7 +16372,7 @@ public Builder setSenderDetails(EmptyParam senderDetails) {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class BeneficiaryDetails {
+ public static class SenderDetails {
/** Address. */
@SerializedName("address")
Address address;
@@ -16406,7 +16403,7 @@ public static class BeneficiaryDetails {
@SerializedName("phone")
Object phone;
- private BeneficiaryDetails(
+ private SenderDetails(
Address address,
DateOfBirth dateOfBirth,
Object email,
@@ -16440,10 +16437,10 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails
+ .SenderDetails
build() {
return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails(
+ .SenderDetails(
this.address,
this.dateOfBirth,
this.email,
@@ -16454,8 +16451,8 @@ public static class Builder {
/** Address. */
public Builder setAddress(
- PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address
+ PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .Address
address) {
this.address = address;
return this;
@@ -16463,8 +16460,8 @@ public Builder setAddress(
/** Date of birth. */
public Builder setDateOfBirth(
- PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.DateOfBirth
+ PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .DateOfBirth
dateOfBirth) {
this.dateOfBirth = dateOfBirth;
return this;
@@ -16486,7 +16483,7 @@ public Builder setEmail(EmptyParam email) {
* 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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails#extraParams}
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -16501,7 +16498,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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails#extraParams}
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -16618,10 +16615,10 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address
+ .SenderDetails.Address
build() {
return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.Address(
+ .SenderDetails.Address(
this.city,
this.country,
this.extraParams,
@@ -16665,7 +16662,7 @@ public Builder setCountry(EmptyParam country) {
* 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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.Address#extraParams}
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -16680,7 +16677,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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.Address#extraParams}
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -16794,11 +16791,10 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.DateOfBirth
+ .SenderDetails.DateOfBirth
build() {
return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .BeneficiaryDetails.DateOfBirth(
- this.day, this.extraParams, this.month, this.year);
+ .SenderDetails.DateOfBirth(this.day, this.extraParams, this.month, this.year);
}
/** Required. Day of birth, between 1 and 31. */
@@ -16811,7 +16807,7 @@ public Builder setDay(Long day) {
* 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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.DateOfBirth#extraParams}
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -16826,7 +16822,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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.DateOfBirth#extraParams}
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -16851,113 +16847,287 @@ public Builder setYear(Long year) {
}
}
}
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BeneficiaryDetails {
+ /** Address. */
+ @SerializedName("address")
+ Address address;
+
+ /** Date of birth. */
+ @SerializedName("date_of_birth")
+ DateOfBirth dateOfBirth;
+
+ /** Email address. */
+ @SerializedName("email")
+ Object email;
+
+ /**
+ * 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;
+
+ /** Full name. */
+ @SerializedName("name")
+ Object name;
+
+ /** Phone number. */
+ @SerializedName("phone")
+ Object phone;
+
+ private BeneficiaryDetails(
+ Address address,
+ DateOfBirth dateOfBirth,
+ Object email,
+ Map extraParams,
+ Object name,
+ Object phone) {
+ this.address = address;
+ this.dateOfBirth = dateOfBirth;
+ this.email = email;
+ this.extraParams = extraParams;
+ this.name = name;
+ this.phone = phone;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Address address;
+
+ private DateOfBirth dateOfBirth;
+
+ private Object email;
+
+ private Map extraParams;
+
+ private Object name;
+
+ private Object phone;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails build() {
+ return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails(
+ this.address,
+ this.dateOfBirth,
+ this.email,
+ this.extraParams,
+ this.name,
+ this.phone);
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class SenderDetails {
/** Address. */
- @SerializedName("address")
- Address address;
+ public Builder setAddress(
+ PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address
+ address) {
+ this.address = address;
+ return this;
+ }
/** Date of birth. */
- @SerializedName("date_of_birth")
- DateOfBirth dateOfBirth;
+ public Builder setDateOfBirth(
+ PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.DateOfBirth
+ dateOfBirth) {
+ this.dateOfBirth = dateOfBirth;
+ return this;
+ }
/** Email address. */
- @SerializedName("email")
- Object email;
+ public Builder setEmail(String email) {
+ this.email = email;
+ return this;
+ }
+
+ /** Email address. */
+ public Builder setEmail(EmptyParam email) {
+ this.email = email;
+ 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.
+ * 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
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails#extraParams}
+ * for the field documentation.
*/
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
- /** Full name. */
- @SerializedName("name")
- Object name;
+ /**
+ * 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
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- /** Phone number. */
- @SerializedName("phone")
- Object phone;
+ /** Full name. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
- private SenderDetails(
- Address address,
- DateOfBirth dateOfBirth,
- Object email,
- Map extraParams,
- Object name,
- Object phone) {
- this.address = address;
- this.dateOfBirth = dateOfBirth;
- this.email = email;
- this.extraParams = extraParams;
+ /** Full name. */
+ public Builder setName(EmptyParam name) {
this.name = name;
- this.phone = phone;
+ return this;
}
- public static Builder builder() {
- return new Builder();
+ /** Phone number. */
+ public Builder setPhone(String phone) {
+ this.phone = phone;
+ return this;
}
- public static class Builder {
- private Address address;
+ /** Phone number. */
+ public Builder setPhone(EmptyParam phone) {
+ this.phone = phone;
+ return this;
+ }
+ }
- private DateOfBirth dateOfBirth;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ Object city;
- private Object email;
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ Object country;
- 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 Object name;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ @SerializedName("line1")
+ Object line1;
- private Object phone;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ Object line2;
+
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ Object postalCode;
+
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ @SerializedName("state")
+ Object state;
+
+ private Address(
+ Object city,
+ Object country,
+ Map extraParams,
+ Object line1,
+ Object line2,
+ Object postalCode,
+ Object 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 class Builder {
+ private Object city;
+
+ private Object country;
+
+ private Map extraParams;
+
+ private Object line1;
+
+ private Object line2;
+
+ private Object postalCode;
+
+ private Object state;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails
+ public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address
build() {
- return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails(
- this.address,
- this.dateOfBirth,
- this.email,
+ return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .Address(
+ this.city,
+ this.country,
this.extraParams,
- this.name,
- this.phone);
+ this.line1,
+ this.line2,
+ this.postalCode,
+ this.state);
}
- /** Address. */
- public Builder setAddress(
- PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
- .Address
- address) {
- this.address = address;
+ /** City, district, suburb, town, or village. */
+ public Builder setCity(String city) {
+ this.city = city;
return this;
}
- /** Date of birth. */
- public Builder setDateOfBirth(
- PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
- .DateOfBirth
- dateOfBirth) {
- this.dateOfBirth = dateOfBirth;
+ /** City, district, suburb, town, or village. */
+ public Builder setCity(EmptyParam city) {
+ this.city = city;
return this;
}
- /** Email address. */
- public Builder setEmail(String email) {
- this.email = email;
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ public Builder setCountry(String country) {
+ this.country = country;
return this;
}
- /** Email address. */
- public Builder setEmail(EmptyParam email) {
- this.email = email;
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ public Builder setCountry(EmptyParam country) {
+ this.country = country;
return this;
}
@@ -16965,7 +17135,7 @@ public Builder setEmail(EmptyParam email) {
* 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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -16980,7 +17150,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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.Address#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -16991,341 +17161,161 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Full name. */
- public Builder setName(String name) {
- this.name = name;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ public Builder setLine1(String line1) {
+ this.line1 = line1;
return this;
}
- /** Full name. */
- public Builder setName(EmptyParam name) {
- this.name = name;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ public Builder setLine1(EmptyParam line1) {
+ this.line1 = line1;
return this;
}
- /** Phone number. */
- public Builder setPhone(String phone) {
- this.phone = phone;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ public Builder setLine2(String line2) {
+ this.line2 = line2;
return this;
}
- /** Phone number. */
- public Builder setPhone(EmptyParam phone) {
- this.phone = phone;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ public Builder setLine2(EmptyParam line2) {
+ this.line2 = line2;
return this;
}
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Address {
- /** City, district, suburb, town, or village. */
- @SerializedName("city")
- Object city;
-
- /**
- * Two-letter country code (ISO 3166-1 alpha-2).
- */
- @SerializedName("country")
- Object 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;
-
- /** Address line 1, such as the street, PO Box, or company name. */
- @SerializedName("line1")
- Object line1;
-
- /** Address line 2, such as the apartment, suite, unit, or building. */
- @SerializedName("line2")
- Object line2;
+ /** ZIP or postal code. */
+ public Builder setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
/** ZIP or postal code. */
- @SerializedName("postal_code")
- Object postalCode;
+ public Builder setPostalCode(EmptyParam postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
/**
* State, county, province, or region (ISO 3166-2).
*/
- @SerializedName("state")
- Object state;
-
- private Address(
- Object city,
- Object country,
- Map extraParams,
- Object line1,
- Object line2,
- Object postalCode,
- Object state) {
- this.city = city;
- this.country = country;
- this.extraParams = extraParams;
- this.line1 = line1;
- this.line2 = line2;
- this.postalCode = postalCode;
+ public Builder setState(String state) {
this.state = state;
+ return this;
}
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Object city;
-
- private Object country;
-
- private Map extraParams;
-
- private Object line1;
-
- private Object line2;
-
- private Object postalCode;
-
- private Object state;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.Address
- build() {
- return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.Address(
- this.city,
- this.country,
- this.extraParams,
- this.line1,
- this.line2,
- this.postalCode,
- this.state);
- }
-
- /** City, district, suburb, town, or village. */
- public Builder setCity(String city) {
- this.city = city;
- return this;
- }
-
- /** City, district, suburb, town, or village. */
- public Builder setCity(EmptyParam 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;
- }
-
- /**
- * Two-letter country code (ISO 3166-1 alpha-2).
- */
- public Builder setCountry(EmptyParam 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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.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, such as the street, PO Box, or company name. */
- public Builder setLine1(String line1) {
- this.line1 = line1;
- return this;
- }
-
- /** Address line 1, such as the street, PO Box, or company name. */
- public Builder setLine1(EmptyParam line1) {
- this.line1 = line1;
- return this;
- }
-
- /** Address line 2, such as the apartment, suite, unit, or building. */
- public Builder setLine2(String line2) {
- this.line2 = line2;
- return this;
- }
-
- /** Address line 2, such as the apartment, suite, unit, or building. */
- public Builder setLine2(EmptyParam line2) {
- this.line2 = line2;
- return this;
- }
-
- /** ZIP or postal code. */
- public Builder setPostalCode(String postalCode) {
- this.postalCode = postalCode;
- return this;
- }
-
- /** ZIP or postal code. */
- public Builder setPostalCode(EmptyParam postalCode) {
- this.postalCode = postalCode;
- return this;
- }
-
- /**
- * State, county, province, or region (ISO 3166-2).
- */
- public Builder setState(String state) {
- this.state = state;
- return this;
- }
-
- /**
- * State, county, province, or region (ISO 3166-2).
- */
- public Builder setState(EmptyParam state) {
- this.state = state;
- return this;
- }
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ public Builder setState(EmptyParam state) {
+ this.state = state;
+ return this;
}
}
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class DateOfBirth {
- /** Required. Day of birth, between 1 and 31. */
- @SerializedName("day")
- Long day;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DateOfBirth {
+ /** Required. Day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
- /**
- * 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;
- /** Required. Month of birth, between 1 and 12. */
- @SerializedName("month")
- Long month;
+ /** Required. Month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
- /** Required. Four-digit year of birth. */
- @SerializedName("year")
- Long year;
+ /** Required. Four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
- private DateOfBirth(Long day, Map extraParams, Long month, Long year) {
- this.day = day;
- this.extraParams = extraParams;
- this.month = month;
- this.year = year;
- }
+ private DateOfBirth(Long day, Map extraParams, Long month, Long year) {
+ this.day = day;
+ this.extraParams = extraParams;
+ this.month = month;
+ this.year = year;
+ }
- public static Builder builder() {
- return new Builder();
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- public static class Builder {
- private Long day;
+ public static class Builder {
+ private Long day;
- private Map extraParams;
+ private Map extraParams;
- private Long month;
+ private Long month;
- private Long year;
+ private Long year;
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.DateOfBirth
- build() {
- return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding
- .SenderDetails.DateOfBirth(this.day, this.extraParams, this.month, this.year);
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .DateOfBirth
+ build() {
+ return new PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails
+ .DateOfBirth(this.day, this.extraParams, this.month, this.year);
+ }
- /** Required. Day of birth, between 1 and 31. */
- public Builder setDay(Long day) {
- this.day = day;
- return this;
- }
+ /** Required. Day of birth, between 1 and 31. */
+ public Builder setDay(Long day) {
+ this.day = day;
+ 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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#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
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.DateOfBirth#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
- * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.DateOfBirth#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
+ * PaymentIntentUpdateParams.PaymentDetails.MoneyServices.BeneficiaryDetails.DateOfBirth#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. Month of birth, between 1 and 12. */
- public Builder setMonth(Long month) {
- this.month = month;
- return this;
- }
+ /** Required. Month of birth, between 1 and 12. */
+ public Builder setMonth(Long month) {
+ this.month = month;
+ return this;
+ }
- /** Required. Four-digit year of birth. */
- public Builder setYear(Long year) {
- this.year = year;
- return this;
- }
+ /** Required. Four-digit year of birth. */
+ public Builder setYear(Long year) {
+ this.year = year;
+ return this;
}
}
}
@@ -31233,358 +31223,69 @@ public static class AccountFunding {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Details for a wallet funding transaction. */
- @SerializedName("wallet")
- Wallet wallet;
-
private AccountFunding(
- DigitalAssetCategory digitalAssetCategory,
- Map extraParams,
- Wallet wallet) {
+ DigitalAssetCategory digitalAssetCategory, Map extraParams) {
this.digitalAssetCategory = digitalAssetCategory;
this.extraParams = extraParams;
- this.wallet = wallet;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private DigitalAssetCategory digitalAssetCategory;
-
- private Map extraParams;
-
- private Wallet wallet;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding
- build() {
- return new PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding(
- this.digitalAssetCategory, this.extraParams, this.wallet);
- }
-
- /**
- * The category of digital asset being acquired through this account funding
- * transaction.
- */
- public Builder setDigitalAssetCategory(
- PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
- .AccountFunding.DigitalAssetCategory
- digitalAssetCategory) {
- this.digitalAssetCategory = digitalAssetCategory;
- 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
- * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#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
- * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Details for a wallet funding transaction. */
- public Builder setWallet(
- PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
- .AccountFunding.Wallet
- wallet) {
- this.wallet = wallet;
- return this;
- }
}
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Wallet {
- /**
- * Map of extra parameters for custom features not available in this client library.
- * The content in this map is not serialized under this field's
- * {@code @SerializedName} value. Instead, each key/value pair is serialized as if the
- * key is a root-level field (serialized) name in this param object. Effectively, this
- * map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** Details for a staged purchase. */
- @SerializedName("staged_purchase")
- Object stagedPurchase;
-
- private Wallet(Map extraParams, Object stagedPurchase) {
- this.extraParams = extraParams;
- this.stagedPurchase = stagedPurchase;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Object stagedPurchase;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet
- build() {
- return new PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet(this.extraParams, this.stagedPurchase);
- }
-
- /**
- * 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
- * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet#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
- * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(
- PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
- .AccountFunding.Wallet.StagedPurchase
- stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(EmptyParam stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class StagedPurchase {
- /**
- * 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 merchant where the staged wallet purchase is made. */
- @SerializedName("merchant")
- Merchant merchant;
-
- private StagedPurchase(Map extraParams, Merchant merchant) {
- this.extraParams = extraParams;
- this.merchant = merchant;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
+ public static Builder builder() {
+ return new Builder();
+ }
- private Merchant merchant;
+ public static class Builder {
+ private DigitalAssetCategory digitalAssetCategory;
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- build() {
- return new PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase(
- this.extraParams, this.merchant);
- }
+ private Map extraParams;
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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;
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
+ .MoneyServices.AccountFunding
+ build() {
+ return new PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
+ .MoneyServices.AccountFunding(this.digitalAssetCategory, this.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
- * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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 category of digital asset being acquired through this account funding
+ * transaction.
+ */
+ public Builder setDigitalAssetCategory(
+ PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices
+ .AccountFunding.DigitalAssetCategory
+ digitalAssetCategory) {
+ this.digitalAssetCategory = digitalAssetCategory;
+ return this;
+ }
- /** The merchant where the staged wallet purchase is made. */
- public Builder setMerchant(
- PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- merchant) {
- this.merchant = merchant;
- 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
+ * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#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;
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Merchant {
- /**
- * 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 merchant category code of the merchant. */
- @SerializedName("mcc")
- Object mcc;
-
- /** The merchant's name. */
- @SerializedName("name")
- Object name;
-
- private Merchant(Map extraParams, Object mcc, Object name) {
- this.extraParams = extraParams;
- this.mcc = mcc;
- this.name = name;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Object mcc;
-
- private Object name;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- build() {
- return new PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant(
- this.extraParams, this.mcc, this.name);
- }
-
- /**
- * 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
- * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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
- * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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 merchant category code of the merchant. */
- public Builder setMcc(String mcc) {
- this.mcc = mcc;
- return this;
- }
-
- /** The merchant category code of the merchant. */
- public Builder setMcc(EmptyParam mcc) {
- this.mcc = mcc;
- return this;
- }
-
- /** The merchant's name. */
- public Builder setName(String name) {
- this.name = name;
- return this;
- }
-
- /** The merchant's name. */
- public Builder setName(EmptyParam name) {
- this.name = name;
- 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
+ * PaymentIntentUpdateParams.PaymentMethodOptions.Card.PaymentDetails.MoneyServices.AccountFunding#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
}
+ this.extraParams.putAll(map);
+ return this;
}
}
@@ -32536,6 +32237,9 @@ public enum CaptureBy implements ApiRequestParams.EnumParam {
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("automatic_delayed")
+ AUTOMATIC_DELAYED("automatic_delayed"),
+
@SerializedName("manual")
MANUAL("manual");
@@ -33285,17 +32989,10 @@ public static class AccountFunding {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Details for a wallet funding transaction. */
- @SerializedName("wallet")
- Wallet wallet;
-
private AccountFunding(
- DigitalAssetCategory digitalAssetCategory,
- Map extraParams,
- Wallet wallet) {
+ DigitalAssetCategory digitalAssetCategory, Map extraParams) {
this.digitalAssetCategory = digitalAssetCategory;
this.extraParams = extraParams;
- this.wallet = wallet;
}
public static Builder builder() {
@@ -33307,15 +33004,12 @@ public static class Builder {
private Map extraParams;
- private Wallet wallet;
-
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails
.MoneyServices.AccountFunding
build() {
return new PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding(
- this.digitalAssetCategory, this.extraParams, this.wallet);
+ .MoneyServices.AccountFunding(this.digitalAssetCategory, this.extraParams);
}
/**
@@ -33359,286 +33053,6 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
-
- /** Details for a wallet funding transaction. */
- public Builder setWallet(
- PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet
- wallet) {
- this.wallet = wallet;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Wallet {
- /**
- * Map of extra parameters for custom features not available in this client library.
- * The content in this map is not serialized under this field's
- * {@code @SerializedName} value. Instead, each key/value pair is serialized as if the
- * key is a root-level field (serialized) name in this param object. Effectively, this
- * map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** Details for a staged purchase. */
- @SerializedName("staged_purchase")
- Object stagedPurchase;
-
- private Wallet(Map extraParams, Object stagedPurchase) {
- this.extraParams = extraParams;
- this.stagedPurchase = stagedPurchase;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Object stagedPurchase;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet
- build() {
- return new PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet(
- this.extraParams, this.stagedPurchase);
- }
-
- /**
- * 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
- * PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet#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
- * PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(
- PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
-
- /** Details for a staged purchase. */
- public Builder setStagedPurchase(EmptyParam stagedPurchase) {
- this.stagedPurchase = stagedPurchase;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class StagedPurchase {
- /**
- * 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 merchant where the staged wallet purchase is made. */
- @SerializedName("merchant")
- Merchant merchant;
-
- private StagedPurchase(Map extraParams, Merchant merchant) {
- this.extraParams = extraParams;
- this.merchant = merchant;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Merchant merchant;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase
- build() {
- return new PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase(
- this.extraParams, this.merchant);
- }
-
- /**
- * 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
- * PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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
- * PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase#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 merchant where the staged wallet purchase is made. */
- public Builder setMerchant(
- PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- merchant) {
- this.merchant = merchant;
- return this;
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Merchant {
- /**
- * 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 merchant category code of the merchant. */
- @SerializedName("mcc")
- Object mcc;
-
- /** The merchant's name. */
- @SerializedName("name")
- Object name;
-
- private Merchant(Map extraParams, Object mcc, Object name) {
- this.extraParams = extraParams;
- this.mcc = mcc;
- this.name = name;
- }
-
- public static Builder builder() {
- return new Builder();
- }
-
- public static class Builder {
- private Map extraParams;
-
- private Object mcc;
-
- private Object name;
-
- /** Finalize and obtain parameter instance from this builder. */
- public PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails
- .MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant
- build() {
- return new PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent
- .PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase
- .Merchant(this.extraParams, this.mcc, this.name);
- }
-
- /**
- * 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
- * PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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
- * PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.PaymentDetails.MoneyServices.AccountFunding.Wallet.StagedPurchase.Merchant#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 merchant category code of the merchant. */
- public Builder setMcc(String mcc) {
- this.mcc = mcc;
- return this;
- }
-
- /** The merchant category code of the merchant. */
- public Builder setMcc(EmptyParam mcc) {
- this.mcc = mcc;
- return this;
- }
-
- /** The merchant's name. */
- public Builder setName(String name) {
- this.name = name;
- return this;
- }
-
- /** The merchant's name. */
- public Builder setName(EmptyParam name) {
- this.name = name;
- return this;
- }
- }
- }
- }
}
public enum DigitalAssetCategory implements ApiRequestParams.EnumParam {
@@ -33776,6 +33190,9 @@ public enum CaptureBy implements ApiRequestParams.EnumParam {
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("automatic_delayed")
+ AUTOMATIC_DELAYED("automatic_delayed"),
+
@SerializedName("manual")
MANUAL("manual"),
@@ -49293,9 +48710,35 @@ public static class Satispay {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Satispay(ApiRequestParams.EnumParam captureMethod, Map extraParams) {
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ *
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ ApiRequestParams.EnumParam setupFutureUsage;
+
+ private Satispay(
+ ApiRequestParams.EnumParam captureMethod,
+ Map extraParams,
+ ApiRequestParams.EnumParam setupFutureUsage) {
this.captureMethod = captureMethod;
this.extraParams = extraParams;
+ this.setupFutureUsage = setupFutureUsage;
}
public static Builder builder() {
@@ -49307,10 +48750,12 @@ public static class Builder {
private Map extraParams;
+ private ApiRequestParams.EnumParam setupFutureUsage;
+
/** Finalize and obtain parameter instance from this builder. */
public PaymentIntentUpdateParams.PaymentMethodOptions.Satispay build() {
return new PaymentIntentUpdateParams.PaymentMethodOptions.Satispay(
- this.captureMethod, this.extraParams);
+ this.captureMethod, this.extraParams, this.setupFutureUsage);
}
/**
@@ -49371,6 +48816,58 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment
+ * method.
+ *
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentIntentUpdateParams.PaymentMethodOptions.Satispay.SetupFutureUsage
+ setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment
+ * method.
+ *
+ *
If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
@@ -49384,6 +48881,24 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
this.value = value;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("off_session")
+ OFF_SESSION("off_session"),
+
+ @SerializedName("on_session")
+ ON_SESSION("on_session");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
diff --git a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptParams.java b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptParams.java
index 4684e841b48..c5838838cd6 100644
--- a/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptParams.java
+++ b/src/main/java/com/stripe/param/PaymentRecordReportPaymentAttemptParams.java
@@ -969,6 +969,10 @@ public static class PaymentMethodDetails {
@SerializedName("billing_details")
BillingDetails billingDetails;
+ /** Information about the card payment method used to make this payment. */
+ @SerializedName("card")
+ Card card;
+
/** Information about the custom (user-defined) payment method used to make this payment. */
@SerializedName("custom")
Custom custom;
@@ -996,11 +1000,13 @@ public static class PaymentMethodDetails {
private PaymentMethodDetails(
BillingDetails billingDetails,
+ Card card,
Custom custom,
Map extraParams,
String paymentMethod,
Type type) {
this.billingDetails = billingDetails;
+ this.card = card;
this.custom = custom;
this.extraParams = extraParams;
this.paymentMethod = paymentMethod;
@@ -1014,6 +1020,8 @@ public static Builder builder() {
public static class Builder {
private BillingDetails billingDetails;
+ private Card card;
+
private Custom custom;
private Map extraParams;
@@ -1025,7 +1033,12 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails build() {
return new PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails(
- this.billingDetails, this.custom, this.extraParams, this.paymentMethod, this.type);
+ this.billingDetails,
+ this.card,
+ this.custom,
+ this.extraParams,
+ this.paymentMethod,
+ this.type);
}
/** The billing details associated with the method of payment. */
@@ -1036,6 +1049,13 @@ public Builder setBillingDetails(
return this;
}
+ /** Information about the card payment method used to make this payment. */
+ public Builder setCard(
+ PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card card) {
+ this.card = card;
+ return this;
+ }
+
/** Information about the custom (user-defined) payment method used to make this payment. */
public Builder setCustom(
PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Custom custom) {
@@ -1376,6 +1396,260 @@ public Builder setState(String state) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Card {
+ /** Verification checks performed on the card. */
+ @SerializedName("checks")
+ Checks checks;
+
+ /**
+ * 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 Card(Checks checks, Map extraParams) {
+ this.checks = checks;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Checks checks;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card build() {
+ return new PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card(
+ this.checks, this.extraParams);
+ }
+
+ /** Verification checks performed on the card. */
+ public Builder setChecks(
+ PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card.Checks checks) {
+ this.checks = checks;
+ 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
+ * PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card#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
+ * PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card#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 Checks {
+ /** The result of the check on the cardholder's address line 1. */
+ @SerializedName("address_line1_check")
+ AddressLine1Check addressLine1Check;
+
+ /** The result of the check on the cardholder's postal code. */
+ @SerializedName("address_postal_code_check")
+ AddressPostalCodeCheck addressPostalCodeCheck;
+
+ /** The result of the check on the card's CVC. */
+ @SerializedName("cvc_check")
+ CvcCheck cvcCheck;
+
+ /**
+ * 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 Checks(
+ AddressLine1Check addressLine1Check,
+ AddressPostalCodeCheck addressPostalCodeCheck,
+ CvcCheck cvcCheck,
+ Map extraParams) {
+ this.addressLine1Check = addressLine1Check;
+ this.addressPostalCodeCheck = addressPostalCodeCheck;
+ this.cvcCheck = cvcCheck;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private AddressLine1Check addressLine1Check;
+
+ private AddressPostalCodeCheck addressPostalCodeCheck;
+
+ private CvcCheck cvcCheck;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card.Checks build() {
+ return new PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card.Checks(
+ this.addressLine1Check,
+ this.addressPostalCodeCheck,
+ this.cvcCheck,
+ this.extraParams);
+ }
+
+ /** The result of the check on the cardholder's address line 1. */
+ public Builder setAddressLine1Check(
+ PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card.Checks
+ .AddressLine1Check
+ addressLine1Check) {
+ this.addressLine1Check = addressLine1Check;
+ return this;
+ }
+
+ /** The result of the check on the cardholder's postal code. */
+ public Builder setAddressPostalCodeCheck(
+ PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card.Checks
+ .AddressPostalCodeCheck
+ addressPostalCodeCheck) {
+ this.addressPostalCodeCheck = addressPostalCodeCheck;
+ return this;
+ }
+
+ /** The result of the check on the card's CVC. */
+ public Builder setCvcCheck(
+ PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card.Checks.CvcCheck
+ cvcCheck) {
+ this.cvcCheck = cvcCheck;
+ 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
+ * PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card.Checks#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
+ * PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Card.Checks#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 enum AddressLine1Check implements ApiRequestParams.EnumParam {
+ @SerializedName("fail")
+ FAIL("fail"),
+
+ @SerializedName("pass")
+ PASS("pass"),
+
+ @SerializedName("unavailable")
+ UNAVAILABLE("unavailable"),
+
+ @SerializedName("unchecked")
+ UNCHECKED("unchecked");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ AddressLine1Check(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum AddressPostalCodeCheck implements ApiRequestParams.EnumParam {
+ @SerializedName("fail")
+ FAIL("fail"),
+
+ @SerializedName("pass")
+ PASS("pass"),
+
+ @SerializedName("unavailable")
+ UNAVAILABLE("unavailable"),
+
+ @SerializedName("unchecked")
+ UNCHECKED("unchecked");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ AddressPostalCodeCheck(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum CvcCheck implements ApiRequestParams.EnumParam {
+ @SerializedName("fail")
+ FAIL("fail"),
+
+ @SerializedName("pass")
+ PASS("pass"),
+
+ @SerializedName("unavailable")
+ UNAVAILABLE("unavailable"),
+
+ @SerializedName("unchecked")
+ UNCHECKED("unchecked");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ CvcCheck(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Custom {
@@ -1468,6 +1742,9 @@ public Builder setType(String type) {
}
public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("card")
+ CARD("card"),
+
@SerializedName("custom")
CUSTOM("custom");
diff --git a/src/main/java/com/stripe/param/PaymentRecordReportPaymentParams.java b/src/main/java/com/stripe/param/PaymentRecordReportPaymentParams.java
index 659d462a483..ebaceec36c5 100644
--- a/src/main/java/com/stripe/param/PaymentRecordReportPaymentParams.java
+++ b/src/main/java/com/stripe/param/PaymentRecordReportPaymentParams.java
@@ -1237,6 +1237,10 @@ public static class PaymentMethodDetails {
@SerializedName("billing_details")
BillingDetails billingDetails;
+ /** Information about the card payment method used to make this payment. */
+ @SerializedName("card")
+ Card card;
+
/** Information about the custom (user-defined) payment method used to make this payment. */
@SerializedName("custom")
Custom custom;
@@ -1264,11 +1268,13 @@ public static class PaymentMethodDetails {
private PaymentMethodDetails(
BillingDetails billingDetails,
+ Card card,
Custom custom,
Map extraParams,
String paymentMethod,
Type type) {
this.billingDetails = billingDetails;
+ this.card = card;
this.custom = custom;
this.extraParams = extraParams;
this.paymentMethod = paymentMethod;
@@ -1282,6 +1288,8 @@ public static Builder builder() {
public static class Builder {
private BillingDetails billingDetails;
+ private Card card;
+
private Custom custom;
private Map extraParams;
@@ -1293,7 +1301,12 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public PaymentRecordReportPaymentParams.PaymentMethodDetails build() {
return new PaymentRecordReportPaymentParams.PaymentMethodDetails(
- this.billingDetails, this.custom, this.extraParams, this.paymentMethod, this.type);
+ this.billingDetails,
+ this.card,
+ this.custom,
+ this.extraParams,
+ this.paymentMethod,
+ this.type);
}
/** The billing details associated with the method of payment. */
@@ -1303,6 +1316,12 @@ public Builder setBillingDetails(
return this;
}
+ /** Information about the card payment method used to make this payment. */
+ public Builder setCard(PaymentRecordReportPaymentParams.PaymentMethodDetails.Card card) {
+ this.card = card;
+ return this;
+ }
+
/** Information about the custom (user-defined) payment method used to make this payment. */
public Builder setCustom(
PaymentRecordReportPaymentParams.PaymentMethodDetails.Custom custom) {
@@ -1640,6 +1659,256 @@ public Builder setState(String state) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Card {
+ /** Verification checks performed on the card. */
+ @SerializedName("checks")
+ Checks checks;
+
+ /**
+ * 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 Card(Checks checks, Map extraParams) {
+ this.checks = checks;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Checks checks;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentRecordReportPaymentParams.PaymentMethodDetails.Card build() {
+ return new PaymentRecordReportPaymentParams.PaymentMethodDetails.Card(
+ this.checks, this.extraParams);
+ }
+
+ /** Verification checks performed on the card. */
+ public Builder setChecks(
+ PaymentRecordReportPaymentParams.PaymentMethodDetails.Card.Checks checks) {
+ this.checks = checks;
+ 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 PaymentRecordReportPaymentParams.PaymentMethodDetails.Card#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 PaymentRecordReportPaymentParams.PaymentMethodDetails.Card#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 Checks {
+ /** The result of the check on the cardholder's address line 1. */
+ @SerializedName("address_line1_check")
+ AddressLine1Check addressLine1Check;
+
+ /** The result of the check on the cardholder's postal code. */
+ @SerializedName("address_postal_code_check")
+ AddressPostalCodeCheck addressPostalCodeCheck;
+
+ /** The result of the check on the card's CVC. */
+ @SerializedName("cvc_check")
+ CvcCheck cvcCheck;
+
+ /**
+ * 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 Checks(
+ AddressLine1Check addressLine1Check,
+ AddressPostalCodeCheck addressPostalCodeCheck,
+ CvcCheck cvcCheck,
+ Map extraParams) {
+ this.addressLine1Check = addressLine1Check;
+ this.addressPostalCodeCheck = addressPostalCodeCheck;
+ this.cvcCheck = cvcCheck;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private AddressLine1Check addressLine1Check;
+
+ private AddressPostalCodeCheck addressPostalCodeCheck;
+
+ private CvcCheck cvcCheck;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentRecordReportPaymentParams.PaymentMethodDetails.Card.Checks build() {
+ return new PaymentRecordReportPaymentParams.PaymentMethodDetails.Card.Checks(
+ this.addressLine1Check,
+ this.addressPostalCodeCheck,
+ this.cvcCheck,
+ this.extraParams);
+ }
+
+ /** The result of the check on the cardholder's address line 1. */
+ public Builder setAddressLine1Check(
+ PaymentRecordReportPaymentParams.PaymentMethodDetails.Card.Checks.AddressLine1Check
+ addressLine1Check) {
+ this.addressLine1Check = addressLine1Check;
+ return this;
+ }
+
+ /** The result of the check on the cardholder's postal code. */
+ public Builder setAddressPostalCodeCheck(
+ PaymentRecordReportPaymentParams.PaymentMethodDetails.Card.Checks
+ .AddressPostalCodeCheck
+ addressPostalCodeCheck) {
+ this.addressPostalCodeCheck = addressPostalCodeCheck;
+ return this;
+ }
+
+ /** The result of the check on the card's CVC. */
+ public Builder setCvcCheck(
+ PaymentRecordReportPaymentParams.PaymentMethodDetails.Card.Checks.CvcCheck cvcCheck) {
+ this.cvcCheck = cvcCheck;
+ 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
+ * PaymentRecordReportPaymentParams.PaymentMethodDetails.Card.Checks#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
+ * PaymentRecordReportPaymentParams.PaymentMethodDetails.Card.Checks#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 enum AddressLine1Check implements ApiRequestParams.EnumParam {
+ @SerializedName("fail")
+ FAIL("fail"),
+
+ @SerializedName("pass")
+ PASS("pass"),
+
+ @SerializedName("unavailable")
+ UNAVAILABLE("unavailable"),
+
+ @SerializedName("unchecked")
+ UNCHECKED("unchecked");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ AddressLine1Check(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum AddressPostalCodeCheck implements ApiRequestParams.EnumParam {
+ @SerializedName("fail")
+ FAIL("fail"),
+
+ @SerializedName("pass")
+ PASS("pass"),
+
+ @SerializedName("unavailable")
+ UNAVAILABLE("unavailable"),
+
+ @SerializedName("unchecked")
+ UNCHECKED("unchecked");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ AddressPostalCodeCheck(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum CvcCheck implements ApiRequestParams.EnumParam {
+ @SerializedName("fail")
+ FAIL("fail"),
+
+ @SerializedName("pass")
+ PASS("pass"),
+
+ @SerializedName("unavailable")
+ UNAVAILABLE("unavailable"),
+
+ @SerializedName("unchecked")
+ UNCHECKED("unchecked");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ CvcCheck(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Custom {
@@ -1730,6 +1999,9 @@ public Builder setType(String type) {
}
public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("card")
+ CARD("card"),
+
@SerializedName("custom")
CUSTOM("custom");
diff --git a/src/main/java/com/stripe/param/radar/CustomerEvaluationRetrieveParams.java b/src/main/java/com/stripe/param/radar/CustomerEvaluationRetrieveParams.java
new file mode 100644
index 00000000000..3d37ec8afa3
--- /dev/null
+++ b/src/main/java/com/stripe/param/radar/CustomerEvaluationRetrieveParams.java
@@ -0,0 +1,100 @@
+// 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 CustomerEvaluationRetrieveParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private CustomerEvaluationRetrieveParams(List expand, Map extraParams) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public CustomerEvaluationRetrieveParams build() {
+ return new CustomerEvaluationRetrieveParams(this.expand, this.extraParams);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * CustomerEvaluationRetrieveParams#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
+ * CustomerEvaluationRetrieveParams#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
+ * CustomerEvaluationRetrieveParams#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 CustomerEvaluationRetrieveParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/service/radar/CustomerEvaluationService.java b/src/main/java/com/stripe/service/radar/CustomerEvaluationService.java
index 873a679bd91..8bb968a0f94 100644
--- a/src/main/java/com/stripe/service/radar/CustomerEvaluationService.java
+++ b/src/main/java/com/stripe/service/radar/CustomerEvaluationService.java
@@ -11,6 +11,7 @@
import com.stripe.net.RequestOptions;
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.radar.CustomerEvaluationCreateParams;
+import com.stripe.param.radar.CustomerEvaluationRetrieveParams;
import com.stripe.param.radar.CustomerEvaluationUpdateParams;
public final class CustomerEvaluationService extends ApiService {
@@ -18,6 +19,37 @@ public CustomerEvaluationService(StripeResponseGetter responseGetter) {
super(responseGetter);
}
+ /** Retrieves an {@code CustomerEvaluation} object. */
+ public CustomerEvaluation retrieve(
+ String customerEvaluation, CustomerEvaluationRetrieveParams params) throws StripeException {
+ return retrieve(customerEvaluation, params, (RequestOptions) null);
+ }
+ /** Retrieves an {@code CustomerEvaluation} object. */
+ public CustomerEvaluation retrieve(String customerEvaluation, RequestOptions options)
+ throws StripeException {
+ return retrieve(customerEvaluation, (CustomerEvaluationRetrieveParams) null, options);
+ }
+ /** Retrieves an {@code CustomerEvaluation} object. */
+ public CustomerEvaluation retrieve(String customerEvaluation) throws StripeException {
+ return retrieve(
+ customerEvaluation, (CustomerEvaluationRetrieveParams) null, (RequestOptions) null);
+ }
+ /** Retrieves an {@code CustomerEvaluation} object. */
+ public CustomerEvaluation retrieve(
+ String customerEvaluation, CustomerEvaluationRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/radar/customer_evaluations/%s", ApiResource.urlEncodeId(customerEvaluation));
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return this.request(request, CustomerEvaluation.class);
+ }
/** Creates a new {@code CustomerEvaluation} object. */
public CustomerEvaluation create(CustomerEvaluationCreateParams params) throws StripeException {
return create(params, (RequestOptions) null);
From 8c634271aa9ba1e51a85624f6d2de549135d58e1 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Fri, 12 Jun 2026 03:41:34 +0000
Subject: [PATCH 02/14] Update generated code for v2296 and
8a1c7d2f1fe275b292b3211f80a7833af35f7748
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
.../java/com/stripe/model/PaymentIntent.java | 138 ++++++++++++++----
src/main/java/com/stripe/model/Product.java | 54 +++++++
.../java/com/stripe/model/SetupAttempt.java | 12 --
.../com/stripe/model/checkout/Session.java | 12 --
.../param/PaymentIntentConfirmParams.java | 108 +-------------
.../param/PaymentIntentCreateParams.java | 108 +-------------
...mentIntentSimulateCryptoDepositParams.java | 14 +-
.../param/PaymentIntentUpdateParams.java | 108 +-------------
10 files changed, 201 insertions(+), 357 deletions(-)
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 86cb90fe5ec..3ea82edb725 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-6f145c2614d8c9cc87bf358f4f93c44e3bd47fa4
\ No newline at end of file
+8a1c7d2f1fe275b292b3211f80a7833af35f7748
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 7b1ccaa0490..87c94cdfc18 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2295
\ No newline at end of file
+v2296
\ No newline at end of file
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index 10d03c0f09b..a68f2d8b9da 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -2644,6 +2644,12 @@ public static class DepositAddresses extends StripeObject {
@SerializedName("base")
Base base;
+ @SerializedName("ethereum")
+ Ethereum ethereum;
+
+ @SerializedName("polygon")
+ Polygon polygon;
+
@SerializedName("solana")
Solana solana;
@@ -2687,9 +2693,105 @@ public static class SupportedToken extends StripeObject {
String tokenContractAddress;
/**
- * The supported token currency. Supported token currencies include: {@code usdc}.
+ * The supported token currency.
+ *
+ * One of {@code usdc}, {@code usdg}, or {@code usdp}.
+ */
+ @SerializedName("token_currency")
+ String tokenCurrency;
+ }
+ }
+
+ /**
+ * For more details about Ethereum, please refer to the