diff --git a/API_VERSION b/API_VERSION index 7fa3a2d3c56..66718b6c2b2 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -577fcb57736b925392ea563c0284df9002c75ac9 \ No newline at end of file +847d2ef0de9626eec25973097d37b61f67e343ee \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8a7edbe6821..76d911f49fe 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2100 \ No newline at end of file +v2104 \ No newline at end of file diff --git a/build.gradle b/build.gradle index 87f2e32c815..5c4659785ee 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ tasks.withType(JavaCompile) { } options.fork = true - options.forkOptions.jvmArgs += ['-Xms512M', '-Xmx1g'] + options.forkOptions.jvmArgs += ['-Xms512M', '-Xmx4g'] options.release = project.targetCompatibility.majorVersion as Integer diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 15e129a6dcd..eb11d409b51 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1640,6 +1640,13 @@ public static class Company extends StripeObject { @SerializedName("registration_date") RegistrationDate registrationDate; + /** + * This hash is used to attest that the representative is authorized to act as the + * representative of their legal entity. + */ + @SerializedName("representative_declaration") + RepresentativeDeclaration representativeDeclaration; + /** * The category identifying the legal structure of the company or legal entity. Also available * for accounts where API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class RepresentativeDeclaration extends StripeObject { + /** The Unix timestamp marking when the representative declaration attestation was made. */ + @SerializedName("date") + Long date; + + /** The IP address from which the representative declaration attestation was made. */ + @SerializedName("ip") + String ip; + + /** + * The user-agent string from the browser where the representative declaration attestation was + * made. + */ + @SerializedName("user_agent") + String userAgent; + } + /** * For more details about Verification, please refer to the API Reference. @@ -2208,29 +2239,29 @@ public static class Errors extends StripeObject { * invalid_url_website_incomplete_terms_and_conditions}, {@code * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, * {@code invalid_value_other}, {@code unsupported_business_type}, {@code - * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code - * verification_document_address_missing}, {@code verification_document_corrupt}, {@code - * verification_document_country_not_supported}, {@code - * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch}, - * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code - * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code - * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code - * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code - * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code - * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing}, - * {@code verification_document_manipulated}, {@code verification_document_missing_back}, - * {@code verification_document_missing_front}, {@code verification_document_name_mismatch}, - * {@code verification_document_name_missing}, {@code - * verification_document_nationality_mismatch}, {@code verification_document_not_readable}, - * {@code verification_document_not_signed}, {@code verification_document_not_uploaded}, - * {@code verification_document_photo_mismatch}, {@code verification_document_too_large}, - * {@code verification_document_type_not_supported}, {@code - * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code - * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number}, - * {@code verification_failed_document_match}, {@code verification_failed_id_number_match}, - * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code - * verification_failed_name_match}, {@code verification_failed_other}, {@code - * verification_failed_representative_authority}, {@code + * verification_data_not_found}, {@code verification_directors_mismatch}, {@code + * verification_document_address_mismatch}, {@code verification_document_address_missing}, + * {@code verification_document_corrupt}, {@code verification_document_country_not_supported}, + * {@code verification_document_directors_mismatch}, {@code + * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code + * verification_document_expired}, {@code verification_document_failed_copy}, {@code + * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code + * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code + * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing}, + * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code + * verification_document_issue_or_expiry_date_missing}, {@code + * verification_document_manipulated}, {@code verification_document_missing_back}, {@code + * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code + * verification_document_name_missing}, {@code verification_document_nationality_mismatch}, + * {@code verification_document_not_readable}, {@code verification_document_not_signed}, + * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch}, + * {@code verification_document_too_large}, {@code verification_document_type_not_supported}, + * {@code verification_extraneous_directors}, {@code verification_failed_address_match}, + * {@code verification_failed_authorizer_authority}, {@code + * verification_failed_business_iec_number}, {@code verification_failed_document_match}, + * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity}, + * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code + * verification_failed_other}, {@code verification_failed_representative_authority}, {@code * verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code * verification_failed_tax_id_not_issued}, {@code * verification_legal_entity_structure_mismatch}, {@code verification_missing_directors}, @@ -2411,29 +2442,29 @@ public static class Errors extends StripeObject { * invalid_url_website_incomplete_terms_and_conditions}, {@code * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, * {@code invalid_value_other}, {@code unsupported_business_type}, {@code - * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code - * verification_document_address_missing}, {@code verification_document_corrupt}, {@code - * verification_document_country_not_supported}, {@code - * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch}, - * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code - * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code - * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code - * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code - * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code - * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing}, - * {@code verification_document_manipulated}, {@code verification_document_missing_back}, - * {@code verification_document_missing_front}, {@code verification_document_name_mismatch}, - * {@code verification_document_name_missing}, {@code - * verification_document_nationality_mismatch}, {@code verification_document_not_readable}, - * {@code verification_document_not_signed}, {@code verification_document_not_uploaded}, - * {@code verification_document_photo_mismatch}, {@code verification_document_too_large}, - * {@code verification_document_type_not_supported}, {@code - * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code - * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number}, - * {@code verification_failed_document_match}, {@code verification_failed_id_number_match}, - * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code - * verification_failed_name_match}, {@code verification_failed_other}, {@code - * verification_failed_representative_authority}, {@code + * verification_data_not_found}, {@code verification_directors_mismatch}, {@code + * verification_document_address_mismatch}, {@code verification_document_address_missing}, + * {@code verification_document_corrupt}, {@code verification_document_country_not_supported}, + * {@code verification_document_directors_mismatch}, {@code + * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code + * verification_document_expired}, {@code verification_document_failed_copy}, {@code + * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code + * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code + * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing}, + * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code + * verification_document_issue_or_expiry_date_missing}, {@code + * verification_document_manipulated}, {@code verification_document_missing_back}, {@code + * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code + * verification_document_name_missing}, {@code verification_document_nationality_mismatch}, + * {@code verification_document_not_readable}, {@code verification_document_not_signed}, + * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch}, + * {@code verification_document_too_large}, {@code verification_document_type_not_supported}, + * {@code verification_extraneous_directors}, {@code verification_failed_address_match}, + * {@code verification_failed_authorizer_authority}, {@code + * verification_failed_business_iec_number}, {@code verification_failed_document_match}, + * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity}, + * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code + * verification_failed_other}, {@code verification_failed_representative_authority}, {@code * verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code * verification_failed_tax_id_not_issued}, {@code * verification_legal_entity_structure_mismatch}, {@code verification_missing_directors}, diff --git a/src/main/java/com/stripe/model/ApplicationFee.java b/src/main/java/com/stripe/model/ApplicationFee.java index bac7b223119..c0537819dd0 100644 --- a/src/main/java/com/stripe/model/ApplicationFee.java +++ b/src/main/java/com/stripe/model/ApplicationFee.java @@ -318,10 +318,14 @@ public static class FeeSource extends StripeObject { @SerializedName("payout") String payout; + /** Transfer ID that created this application fee. */ + @SerializedName("transfer") + String transfer; + /** * Type of object that created the application fee. * - *
One of {@code charge}, or {@code payout}. + *
One of {@code charge}, {@code payout}, or {@code transfer}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/Balance.java b/src/main/java/com/stripe/model/Balance.java
index 97b50660c93..13c4ab51652 100644
--- a/src/main/java/com/stripe/model/Balance.java
+++ b/src/main/java/com/stripe/model/Balance.java
@@ -81,6 +81,9 @@ public class Balance extends ApiResource {
@SerializedName("refund_and_dispute_prefunding")
RefundAndDisputePrefunding refundAndDisputePrefunding;
+ @SerializedName("transit_balances_total")
+ TransitBalancesTotal transitBalancesTotal;
+
/**
* Retrieves the current account balance, based on the authentication that was used to make the
* request. For a sample request, see API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class TransitBalancesTotal extends StripeObject {
+ /** Funds that are available for use. */
+ @SerializedName("available")
+ List One of {@code issuing}, {@code payments}, or {@code refund_and_dispute_prefunding}.
+ * One of {@code issuing}, {@code payments}, {@code refund_and_dispute_prefunding}, or {@code
+ * transit}.
*/
@SerializedName("balance_type")
String balanceType;
diff --git a/src/main/java/com/stripe/model/BankAccount.java b/src/main/java/com/stripe/model/BankAccount.java
index 5284ebe11fe..7431969d2d4 100644
--- a/src/main/java/com/stripe/model/BankAccount.java
+++ b/src/main/java/com/stripe/model/BankAccount.java
@@ -579,29 +579,29 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
- * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
- * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
- * verification_document_country_not_supported}, {@code
- * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
- * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
- * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
- * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
- * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
- * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
- * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
- * {@code verification_document_manipulated}, {@code verification_document_missing_back},
- * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
- * {@code verification_document_name_missing}, {@code
- * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
- * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
- * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
- * {@code verification_document_type_not_supported}, {@code
- * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
- * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
- * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
- * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
- * verification_failed_name_match}, {@code verification_failed_other}, {@code
- * verification_failed_representative_authority}, {@code
+ * verification_data_not_found}, {@code verification_directors_mismatch}, {@code
+ * verification_document_address_mismatch}, {@code verification_document_address_missing},
+ * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
+ * {@code verification_document_directors_mismatch}, {@code
+ * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
+ * verification_document_expired}, {@code verification_document_failed_copy}, {@code
+ * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
+ * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
+ * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
+ * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
+ * verification_document_issue_or_expiry_date_missing}, {@code
+ * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
+ * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
+ * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
+ * {@code verification_document_not_readable}, {@code verification_document_not_signed},
+ * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
+ * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
+ * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
+ * {@code verification_failed_authorizer_authority}, {@code
+ * verification_failed_business_iec_number}, {@code verification_failed_document_match},
+ * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
+ * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
+ * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
@@ -708,29 +708,29 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
- * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
- * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
- * verification_document_country_not_supported}, {@code
- * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
- * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
- * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
- * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
- * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
- * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
- * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
- * {@code verification_document_manipulated}, {@code verification_document_missing_back},
- * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
- * {@code verification_document_name_missing}, {@code
- * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
- * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
- * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
- * {@code verification_document_type_not_supported}, {@code
- * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
- * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
- * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
- * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
- * verification_failed_name_match}, {@code verification_failed_other}, {@code
- * verification_failed_representative_authority}, {@code
+ * verification_data_not_found}, {@code verification_directors_mismatch}, {@code
+ * verification_document_address_mismatch}, {@code verification_document_address_missing},
+ * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
+ * {@code verification_document_directors_mismatch}, {@code
+ * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
+ * verification_document_expired}, {@code verification_document_failed_copy}, {@code
+ * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
+ * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
+ * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
+ * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
+ * verification_document_issue_or_expiry_date_missing}, {@code
+ * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
+ * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
+ * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
+ * {@code verification_document_not_readable}, {@code verification_document_not_signed},
+ * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
+ * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
+ * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
+ * {@code verification_failed_authorizer_authority}, {@code
+ * verification_failed_business_iec_number}, {@code verification_failed_document_match},
+ * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
+ * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
+ * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
diff --git a/src/main/java/com/stripe/model/Capability.java b/src/main/java/com/stripe/model/Capability.java
index 0b49c7c1f22..d7bf55d6cb2 100644
--- a/src/main/java/com/stripe/model/Capability.java
+++ b/src/main/java/com/stripe/model/Capability.java
@@ -273,29 +273,29 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
- * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
- * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
- * verification_document_country_not_supported}, {@code
- * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
- * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
- * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
- * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
- * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
- * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
- * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
- * {@code verification_document_manipulated}, {@code verification_document_missing_back},
- * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
- * {@code verification_document_name_missing}, {@code
- * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
- * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
- * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
- * {@code verification_document_type_not_supported}, {@code
- * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
- * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
- * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
- * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
- * verification_failed_name_match}, {@code verification_failed_other}, {@code
- * verification_failed_representative_authority}, {@code
+ * verification_data_not_found}, {@code verification_directors_mismatch}, {@code
+ * verification_document_address_mismatch}, {@code verification_document_address_missing},
+ * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
+ * {@code verification_document_directors_mismatch}, {@code
+ * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
+ * verification_document_expired}, {@code verification_document_failed_copy}, {@code
+ * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
+ * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
+ * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
+ * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
+ * verification_document_issue_or_expiry_date_missing}, {@code
+ * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
+ * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
+ * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
+ * {@code verification_document_not_readable}, {@code verification_document_not_signed},
+ * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
+ * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
+ * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
+ * {@code verification_failed_authorizer_authority}, {@code
+ * verification_failed_business_iec_number}, {@code verification_failed_document_match},
+ * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
+ * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
+ * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
@@ -459,29 +459,29 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
- * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
- * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
- * verification_document_country_not_supported}, {@code
- * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
- * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
- * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
- * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
- * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
- * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
- * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
- * {@code verification_document_manipulated}, {@code verification_document_missing_back},
- * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
- * {@code verification_document_name_missing}, {@code
- * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
- * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
- * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
- * {@code verification_document_type_not_supported}, {@code
- * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
- * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
- * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
- * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
- * verification_failed_name_match}, {@code verification_failed_other}, {@code
- * verification_failed_representative_authority}, {@code
+ * verification_data_not_found}, {@code verification_directors_mismatch}, {@code
+ * verification_document_address_mismatch}, {@code verification_document_address_missing},
+ * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
+ * {@code verification_document_directors_mismatch}, {@code
+ * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
+ * verification_document_expired}, {@code verification_document_failed_copy}, {@code
+ * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
+ * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
+ * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
+ * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
+ * verification_document_issue_or_expiry_date_missing}, {@code
+ * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
+ * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
+ * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
+ * {@code verification_document_not_readable}, {@code verification_document_not_signed},
+ * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
+ * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
+ * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
+ * {@code verification_failed_authorizer_authority}, {@code
+ * verification_failed_business_iec_number}, {@code verification_failed_document_match},
+ * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
+ * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
+ * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java
index d921063ff42..773509d9729 100644
--- a/src/main/java/com/stripe/model/Charge.java
+++ b/src/main/java/com/stripe/model/Charge.java
@@ -2784,7 +2784,7 @@ public static class Crypto extends StripeObject {
/**
* The blockchain network that the transaction was sent on.
*
- * One of {@code base}, {@code ethereum}, or {@code polygon}.
+ * One of {@code base}, {@code ethereum}, {@code polygon}, or {@code solana}.
*/
@SerializedName("network")
String network;
@@ -3818,7 +3818,11 @@ public static class Qris extends StripeObject {}
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class Rechnung extends StripeObject {}
+ public static class Rechnung extends StripeObject {
+ /** Payment portal URL. */
+ @SerializedName("payment_portal_url")
+ String paymentPortalUrl;
+ }
/**
* For more details about RevolutPay, please refer to the One of {@code acss_debit}, {@code affirm}, {@code afterpay_clearpay}, {@code alipay},
* {@code alma}, {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code
* bancontact}, {@code billie}, {@code blik}, {@code boleto}, {@code card}, {@code
- * card_present}, {@code cashapp}, {@code crypto}, {@code customer_balance}, {@code eps}, {@code
- * fpx}, {@code giropay}, {@code gopay}, {@code grabpay}, {@code id_bank_transfer}, {@code
- * ideal}, {@code interac_present}, {@code kakao_pay}, {@code klarna}, {@code konbini}, {@code
- * kr_card}, {@code link}, {@code mb_way}, {@code mobilepay}, {@code multibanco}, {@code
- * naver_pay}, {@code nz_bank_account}, {@code oxxo}, {@code p24}, {@code pay_by_bank}, {@code
- * payco}, {@code paynow}, {@code paypal}, {@code paypay}, {@code payto}, {@code pix}, {@code
- * promptpay}, {@code qris}, {@code rechnung}, {@code revolut_pay}, {@code samsung_pay}, {@code
- * satispay}, {@code sepa_debit}, {@code shopeepay}, {@code sofort}, {@code stripe_balance},
- * {@code swish}, {@code twint}, {@code us_bank_account}, {@code wechat_pay}, or {@code zip}.
+ * card_present}, {@code cashapp}, {@code crypto}, {@code custom}, {@code customer_balance},
+ * {@code eps}, {@code fpx}, {@code giropay}, {@code gopay}, {@code grabpay}, {@code
+ * id_bank_transfer}, {@code ideal}, {@code interac_present}, {@code kakao_pay}, {@code klarna},
+ * {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way}, {@code mobilepay}, {@code
+ * multibanco}, {@code naver_pay}, {@code nz_bank_account}, {@code oxxo}, {@code p24}, {@code
+ * pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, {@code paypay}, {@code payto},
+ * {@code pix}, {@code promptpay}, {@code qris}, {@code rechnung}, {@code revolut_pay}, {@code
+ * samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code shopeepay}, {@code sofort}, {@code
+ * stripe_balance}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code wechat_pay},
+ * or {@code zip}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/Customer.java b/src/main/java/com/stripe/model/Customer.java
index 572ea0d2d9d..8918954d5b8 100644
--- a/src/main/java/com/stripe/model/Customer.java
+++ b/src/main/java/com/stripe/model/Customer.java
@@ -982,6 +982,15 @@ public static class Tax extends StripeObject {
@SerializedName("location")
Location location;
+ /**
+ * The tax calculation provider used for location resolution. Defaults to {@code stripe} when
+ * not using a third-party provider.
+ *
+ * One of {@code anrok}, {@code avalara}, {@code sphere}, or {@code stripe}.
+ */
+ @SerializedName("provider")
+ String provider;
+
/**
* For more details about Location, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/CustomerSession.java b/src/main/java/com/stripe/model/CustomerSession.java
index 3992f240ad8..4659789cdb3 100644
--- a/src/main/java/com/stripe/model/CustomerSession.java
+++ b/src/main/java/com/stripe/model/CustomerSession.java
@@ -153,6 +153,17 @@ public static class Components extends StripeObject {
@SerializedName("buy_button")
BuyButton buyButton;
+ /** This hash contains whether the customer sheet is enabled and the features it supports. */
+ @SerializedName("customer_sheet")
+ CustomerSheet customerSheet;
+
+ /**
+ * This hash contains whether the mobile payment element is enabled and the features it
+ * supports.
+ */
+ @SerializedName("mobile_payment_element")
+ MobilePaymentElement mobilePaymentElement;
+
/** This hash contains whether the Payment Element is enabled and the features it supports. */
@SerializedName("payment_element")
PaymentElement paymentElement;
@@ -161,6 +172,10 @@ public static class Components extends StripeObject {
@SerializedName("pricing_table")
PricingTable pricingTable;
+ /** This hash contains whether the Tax ID Element is enabled and the features it supports. */
+ @SerializedName("tax_id_element")
+ TaxIdElement taxIdElement;
+
/** This hash contains whether the buy button is enabled. */
@Getter
@Setter
@@ -171,6 +186,144 @@ public static class BuyButton extends StripeObject {
Boolean enabled;
}
+ /** This hash contains whether the customer sheet is enabled and the features it supports. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomerSheet extends StripeObject {
+ /** Whether the customer sheet is enabled. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /** This hash defines whether the customer sheet supports certain features. */
+ @SerializedName("features")
+ Features features;
+
+ /** This hash contains the features the customer sheet supports. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features extends StripeObject {
+ /**
+ * A list of {@code
+ * allow_redisplay} values that controls which saved payment methods the customer sheet
+ * displays by filtering to only show payment methods with an {@code allow_redisplay} value
+ * that is present in this list.
+ *
+ * If not specified, defaults to ["always"]. In order to display all saved
+ * payment methods, specify ["always", "limited",
+ * "unspecified"].
+ */
+ @SerializedName("payment_method_allow_redisplay_filters")
+ List Allowing buyers to remove their saved payment methods impacts subscriptions that
+ * depend on that payment method. Removing the payment method detaches the {@code
+ * customer} object from that PaymentMethod.
+ *
+ * One of {@code disabled}, or {@code enabled}.
+ */
+ @SerializedName("payment_method_remove")
+ String paymentMethodRemove;
+ }
+ }
+
+ /**
+ * This hash contains whether the mobile payment element is enabled and the features it
+ * supports.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MobilePaymentElement extends StripeObject {
+ /** Whether the mobile payment element is enabled. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /** This hash defines whether the mobile payment element supports certain features. */
+ @SerializedName("features")
+ Features features;
+
+ /** This hash contains the features the mobile payment element supports. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features extends StripeObject {
+ /**
+ * A list of {@code
+ * allow_redisplay} values that controls which saved payment methods the mobile payment
+ * element displays by filtering to only show payment methods with an {@code
+ * allow_redisplay} value that is present in this list.
+ *
+ * If not specified, defaults to ["always"]. In order to display all saved
+ * payment methods, specify ["always", "limited",
+ * "unspecified"].
+ */
+ @SerializedName("payment_method_allow_redisplay_filters")
+ List One of {@code disabled}, or {@code enabled}.
+ */
+ @SerializedName("payment_method_redisplay")
+ String paymentMethodRedisplay;
+
+ /**
+ * Controls whether the mobile payment element displays the option to remove a saved payment
+ * method."
+ *
+ * Allowing buyers to remove their saved payment methods impacts subscriptions that
+ * depend on that payment method. Removing the payment method detaches the {@code
+ * customer} object from that PaymentMethod.
+ *
+ * One of {@code disabled}, or {@code enabled}.
+ */
+ @SerializedName("payment_method_remove")
+ String paymentMethodRemove;
+
+ /**
+ * Controls whether the mobile payment element displays a checkbox offering to save a new
+ * payment method.
+ *
+ * If a customer checks the box, the {@code
+ * allow_redisplay} value on the PaymentMethod is set to {@code 'always'} at
+ * confirmation time. For PaymentIntents, the {@code
+ * setup_future_usage} value is also set to the value defined in {@code
+ * payment_method_save_usage}.
+ *
+ * One of {@code disabled}, or {@code enabled}.
+ */
+ @SerializedName("payment_method_save")
+ String paymentMethodSave;
+
+ /**
+ * Allows overriding the value of allow_override when saving a new payment method when
+ * payment_method_save is set to disabled. Use values: "always",
+ * "limited", or "unspecified".
+ *
+ * If not specified, defaults to {@code nil} (no override value).
+ *
+ * One of {@code always}, {@code limited}, or {@code unspecified}.
+ */
+ @SerializedName("payment_method_save_allow_redisplay_override")
+ String paymentMethodSaveAllowRedisplayOverride;
+ }
+ }
+
/** This hash contains whether the Payment Element is enabled and the features it supports. */
@Getter
@Setter
@@ -277,6 +430,51 @@ public static class PricingTable extends StripeObject {
@SerializedName("enabled")
Boolean enabled;
}
+
+ /** This hash contains whether the Tax ID Element is enabled and the features it supports. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class TaxIdElement extends StripeObject {
+ /** Whether the Tax ID Element is enabled. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /** This hash defines whether the Tax ID Element supports certain features. */
+ @SerializedName("features")
+ Features features;
+
+ /** This hash defines whether the Tax ID Element supports certain features. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features extends StripeObject {
+ /**
+ * Controls whether the Tax ID Element displays saved tax IDs for the customer. This
+ * parameter defaults to {@code disabled}.
+ *
+ * When enabled, the Tax ID Element will show existing tax IDs associated with the
+ * customer, allowing them to select from previously saved tax identification numbers.
+ *
+ * One of {@code disabled}, or {@code enabled}.
+ */
+ @SerializedName("tax_id_redisplay")
+ String taxIdRedisplay;
+
+ /**
+ * Controls whether the Tax ID Element allows merchants to save new tax IDs for their
+ * customer. This parameter defaults to {@code disabled}.
+ *
+ * When enabled, customers can enter and save new tax identification numbers during the
+ * payment flow, which will be stored securely and associated with their customer object for
+ * future use.
+ *
+ * One of {@code disabled}, or {@code enabled}.
+ */
+ @SerializedName("tax_id_save")
+ String taxIdSave;
+ }
+ }
}
@Override
diff --git a/src/main/java/com/stripe/model/File.java b/src/main/java/com/stripe/model/File.java
index 39b436af72a..f11567995b5 100644
--- a/src/main/java/com/stripe/model/File.java
+++ b/src/main/java/com/stripe/model/File.java
@@ -70,8 +70,9 @@ public class File extends ApiResource implements HasId {
* document_provider_identity_document}, {@code finance_report_run}, {@code
* financial_account_statement}, {@code identity_document}, {@code
* identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document},
- * {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, {@code
- * terminal_android_apk}, or {@code terminal_reader_splashscreen}.
+ * {@code platform_terms_of_service}, {@code selfie}, {@code sigma_scheduled_query}, {@code
+ * tax_document_user_upload}, {@code terminal_android_apk}, or {@code
+ * terminal_reader_splashscreen}.
*/
@SerializedName("purpose")
String purpose;
diff --git a/src/main/java/com/stripe/model/PaymentAttemptRecord.java b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
index fe50e661329..d597a64705a 100644
--- a/src/main/java/com/stripe/model/PaymentAttemptRecord.java
+++ b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
@@ -1666,7 +1666,7 @@ public static class Crypto extends StripeObject {
/**
* The blockchain network that the transaction was sent on.
*
- * One of {@code base}, {@code ethereum}, or {@code polygon}.
+ * One of {@code base}, {@code ethereum}, {@code polygon}, or {@code solana}.
*/
@SerializedName("network")
String network;
@@ -2721,7 +2721,11 @@ public static class Qris extends StripeObject {}
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class Rechnung extends StripeObject {}
+ public static class Rechnung extends StripeObject {
+ /** Payment portal URL. */
+ @SerializedName("payment_portal_url")
+ String paymentPortalUrl;
+ }
/**
* For more details about RevolutPay, please refer to the {
+ /** Allocated Funds configuration for this PaymentIntent. */
+ @SerializedName("allocated_funds")
+ AllocatedFunds allocatedFunds;
+
/**
* Amount intended to be collected by this PaymentIntent. A positive integer representing how much
* to charge in the smallest currency
@@ -1701,6 +1705,19 @@ public PaymentIntent verifyMicrodeposits(
return getResponseGetter().request(request, PaymentIntent.class);
}
+ /**
+ * For more details about AllocatedFunds, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AllocatedFunds extends StripeObject {
+ /** Allocated Funds configuration for this PaymentIntent. */
+ @SerializedName("enabled")
+ Boolean enabled;
+ }
+
/**
* For more details about AmountDetails, please refer to the API Reference.
@@ -6399,6 +6416,7 @@ public void setDestinationObject(Account expandableObject) {
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
+ trySetResponseGetter(allocatedFunds, responseGetter);
trySetResponseGetter(amountDetails, responseGetter);
trySetResponseGetter(application, responseGetter);
trySetResponseGetter(automaticPaymentMethods, responseGetter);
diff --git a/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java b/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java
index ade4d8858f7..6ca0911d59a 100644
--- a/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java
+++ b/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java
@@ -164,6 +164,12 @@ public static class Klarna extends StripeObject {
@SerializedName("product_url")
String productUrl;
+
+ @SerializedName("reference")
+ String reference;
+
+ @SerializedName("subscription_reference")
+ String subscriptionReference;
}
/**
diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java
index ba8c5adeca8..dcd309e9b9b 100644
--- a/src/main/java/com/stripe/model/PaymentLink.java
+++ b/src/main/java/com/stripe/model/PaymentLink.java
@@ -145,6 +145,9 @@ public class PaymentLink extends ApiResource implements HasId, MetadataStore One of {@code acss_debit}, {@code affirm}, {@code afterpay_clearpay}, {@code alipay}, {@code
* alma}, {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code bancontact},
* {@code billie}, {@code blik}, {@code boleto}, {@code card}, {@code card_present}, {@code
- * cashapp}, {@code crypto}, {@code customer_balance}, {@code eps}, {@code fpx}, {@code giropay},
- * {@code gopay}, {@code grabpay}, {@code id_bank_transfer}, {@code ideal}, {@code
- * interac_present}, {@code kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card}, {@code
- * link}, {@code mb_way}, {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code
+ * cashapp}, {@code crypto}, {@code custom}, {@code customer_balance}, {@code eps}, {@code fpx},
+ * {@code giropay}, {@code gopay}, {@code grabpay}, {@code id_bank_transfer}, {@code ideal},
+ * {@code interac_present}, {@code kakao_pay}, {@code klarna}, {@code konbini}, {@code kr_card},
+ * {@code link}, {@code mb_way}, {@code mobilepay}, {@code multibanco}, {@code naver_pay}, {@code
* nz_bank_account}, {@code oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code
* paynow}, {@code paypal}, {@code paypay}, {@code payto}, {@code pix}, {@code promptpay}, {@code
* qris}, {@code rechnung}, {@code revolut_pay}, {@code samsung_pay}, {@code satispay}, {@code
@@ -1919,6 +1922,44 @@ public static class Cashapp extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Crypto extends StripeObject {}
+ /**
+ * For more details about Custom, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Custom extends StripeObject {
+ /** Display name of the Dashboard-only CustomPaymentMethodType. */
+ @SerializedName("display_name")
+ String displayName;
+
+ /** Contains information about the Dashboard-only CustomPaymentMethodType logo. */
+ @SerializedName("logo")
+ Logo logo;
+
+ /** ID of the Dashboard-only CustomPaymentMethodType. Not expandable. */
+ @SerializedName("type")
+ String type;
+
+ /**
+ * For more details about Logo, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Logo extends StripeObject {
+ /** Content type of the Dashboard-only CustomPaymentMethodType logo. */
+ @SerializedName("content_type")
+ String contentType;
+
+ /** URL of the Dashboard-only CustomPaymentMethodType logo. */
+ @SerializedName("url")
+ String url;
+ }
+ }
+
/**
* For more details about CustomerBalance, please refer to the API Reference.
@@ -2905,6 +2946,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(cardPresent, responseGetter);
trySetResponseGetter(cashapp, responseGetter);
trySetResponseGetter(crypto, responseGetter);
+ trySetResponseGetter(custom, responseGetter);
trySetResponseGetter(customer, responseGetter);
trySetResponseGetter(customerBalance, responseGetter);
trySetResponseGetter(eps, responseGetter);
diff --git a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
index e95ad0a208b..73e5c3c2d20 100644
--- a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
+++ b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
@@ -108,6 +108,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("cashapp")
Cashapp cashapp;
+ @SerializedName("crypto")
+ Crypto crypto;
+
@SerializedName("customer_balance")
CustomerBalance customerBalance;
@@ -169,6 +172,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("livemode")
Boolean livemode;
+ @SerializedName("mb_way")
+ MbWay mbWay;
+
@SerializedName("mobilepay")
Mobilepay mobilepay;
@@ -1233,6 +1239,57 @@ public static class DisplayPreference extends StripeObject {
}
}
+ /**
+ * For more details about Crypto, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Crypto extends StripeObject {
+ /**
+ * Whether this payment method may be offered at checkout. True if {@code display_preference} is
+ * {@code on} and the payment method's capability is active.
+ */
+ @SerializedName("available")
+ Boolean available;
+
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * For more details about DisplayPreference, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference extends StripeObject {
+ /**
+ * For child configs, whether or not the account's preference will be observed. If {@code
+ * false}, the parent configuration's default is used.
+ */
+ @SerializedName("overridable")
+ Boolean overridable;
+
+ /**
+ * The account's display preference.
+ *
+ * One of {@code none}, {@code off}, or {@code on}.
+ */
+ @SerializedName("preference")
+ String preference;
+
+ /**
+ * The effective display preference value.
+ *
+ * One of {@code off}, or {@code on}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
/**
* For more details about CustomerBalance, please refer to the API Reference.
@@ -1998,6 +2055,57 @@ public static class DisplayPreference extends StripeObject {
}
}
+ /**
+ * For more details about MbWay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWay extends StripeObject {
+ /**
+ * Whether this payment method may be offered at checkout. True if {@code display_preference} is
+ * {@code on} and the payment method's capability is active.
+ */
+ @SerializedName("available")
+ Boolean available;
+
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * For more details about DisplayPreference, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference extends StripeObject {
+ /**
+ * For child configs, whether or not the account's preference will be observed. If {@code
+ * false}, the parent configuration's default is used.
+ */
+ @SerializedName("overridable")
+ Boolean overridable;
+
+ /**
+ * The account's display preference.
+ *
+ * One of {@code none}, {@code off}, or {@code on}.
+ */
+ @SerializedName("preference")
+ String preference;
+
+ /**
+ * The effective display preference value.
+ *
+ * One of {@code off}, or {@code on}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
/**
* For more details about Mobilepay, please refer to the API
* Reference.
@@ -3343,6 +3451,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(card, responseGetter);
trySetResponseGetter(cartesBancaires, responseGetter);
trySetResponseGetter(cashapp, responseGetter);
+ trySetResponseGetter(crypto, responseGetter);
trySetResponseGetter(customerBalance, responseGetter);
trySetResponseGetter(eps, responseGetter);
trySetResponseGetter(fpx, responseGetter);
@@ -3358,6 +3467,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(konbini, responseGetter);
trySetResponseGetter(krCard, responseGetter);
trySetResponseGetter(link, responseGetter);
+ trySetResponseGetter(mbWay, responseGetter);
trySetResponseGetter(mobilepay, responseGetter);
trySetResponseGetter(multibanco, responseGetter);
trySetResponseGetter(naverPay, responseGetter);
diff --git a/src/main/java/com/stripe/model/PaymentRecord.java b/src/main/java/com/stripe/model/PaymentRecord.java
index 4a59357d016..660d2fd45d7 100644
--- a/src/main/java/com/stripe/model/PaymentRecord.java
+++ b/src/main/java/com/stripe/model/PaymentRecord.java
@@ -15,6 +15,7 @@
import com.stripe.param.PaymentRecordReportPaymentAttemptInformationalParams;
import com.stripe.param.PaymentRecordReportPaymentAttemptParams;
import com.stripe.param.PaymentRecordReportPaymentParams;
+import com.stripe.param.PaymentRecordReportRefundParams;
import com.stripe.param.PaymentRecordRetrieveParams;
import java.util.List;
import java.util.Map;
@@ -423,6 +424,44 @@ public PaymentRecord reportPaymentAttemptInformational(
return getResponseGetter().request(request, PaymentRecord.class);
}
+ /** Report that the most recent payment attempt on the specified Payment Record was refunded. */
+ public PaymentRecord reportRefund(Map One of {@code base}, {@code ethereum}, or {@code polygon}.
+ * One of {@code base}, {@code ethereum}, {@code polygon}, or {@code solana}.
*/
@SerializedName("network")
String network;
@@ -2975,7 +3014,11 @@ public static class Qris extends StripeObject {}
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class Rechnung extends StripeObject {}
+ public static class Rechnung extends StripeObject {
+ /** Payment portal URL. */
+ @SerializedName("payment_portal_url")
+ String paymentPortalUrl;
+ }
/**
* For more details about RevolutPay, please refer to the By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -586,8 +586,8 @@ public Payout reverse() throws StripeException {
/**
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
- * payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
- * pending} status, use {@code /v1/payouts/:id/cancel} instead.
+ * payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
+ * the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
*
* By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -599,8 +599,8 @@ public Payout reverse(RequestOptions options) throws StripeException {
/**
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
- * payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
- * pending} status, use {@code /v1/payouts/:id/cancel} instead.
+ * payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
+ * the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
*
* By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -612,8 +612,8 @@ public Payout reverse(Map By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -628,8 +628,8 @@ public Payout reverse(Map By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
@@ -641,8 +641,8 @@ public Payout reverse(PayoutReverseParams params) throws StripeException {
/**
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse
- * payouts for connected accounts to US bank accounts. If the payout is manual and in the {@code
- * pending} status, use {@code /v1/payouts/:id/cancel} instead.
+ * payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in
+ * the {@code pending} status, use {@code /v1/payouts/:id/cancel} instead.
*
* By requesting a reversal through {@code /v1/payouts/:id/reverse}, you confirm that the
* authorized signatory of the selected bank account authorizes the debit on the bank account and
diff --git a/src/main/java/com/stripe/model/Person.java b/src/main/java/com/stripe/model/Person.java
index 3ddbfc54c9e..41fac02ab2e 100644
--- a/src/main/java/com/stripe/model/Person.java
+++ b/src/main/java/com/stripe/model/Person.java
@@ -568,29 +568,29 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
- * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
- * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
- * verification_document_country_not_supported}, {@code
- * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
- * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
- * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
- * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
- * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
- * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
- * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
- * {@code verification_document_manipulated}, {@code verification_document_missing_back},
- * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
- * {@code verification_document_name_missing}, {@code
- * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
- * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
- * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
- * {@code verification_document_type_not_supported}, {@code
- * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
- * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
- * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
- * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
- * verification_failed_name_match}, {@code verification_failed_other}, {@code
- * verification_failed_representative_authority}, {@code
+ * verification_data_not_found}, {@code verification_directors_mismatch}, {@code
+ * verification_document_address_mismatch}, {@code verification_document_address_missing},
+ * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
+ * {@code verification_document_directors_mismatch}, {@code
+ * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
+ * verification_document_expired}, {@code verification_document_failed_copy}, {@code
+ * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
+ * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
+ * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
+ * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
+ * verification_document_issue_or_expiry_date_missing}, {@code
+ * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
+ * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
+ * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
+ * {@code verification_document_not_readable}, {@code verification_document_not_signed},
+ * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
+ * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
+ * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
+ * {@code verification_failed_authorizer_authority}, {@code
+ * verification_failed_business_iec_number}, {@code verification_failed_document_match},
+ * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
+ * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
+ * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
@@ -785,29 +785,29 @@ public static class Errors extends StripeObject {
* invalid_url_website_incomplete_terms_and_conditions}, {@code
* invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other},
* {@code invalid_value_other}, {@code unsupported_business_type}, {@code
- * verification_directors_mismatch}, {@code verification_document_address_mismatch}, {@code
- * verification_document_address_missing}, {@code verification_document_corrupt}, {@code
- * verification_document_country_not_supported}, {@code
- * verification_document_directors_mismatch}, {@code verification_document_dob_mismatch},
- * {@code verification_document_duplicate_type}, {@code verification_document_expired}, {@code
- * verification_document_failed_copy}, {@code verification_document_failed_greyscale}, {@code
- * verification_document_failed_other}, {@code verification_document_failed_test_mode}, {@code
- * verification_document_fraudulent}, {@code verification_document_id_number_mismatch}, {@code
- * verification_document_id_number_missing}, {@code verification_document_incomplete}, {@code
- * verification_document_invalid}, {@code verification_document_issue_or_expiry_date_missing},
- * {@code verification_document_manipulated}, {@code verification_document_missing_back},
- * {@code verification_document_missing_front}, {@code verification_document_name_mismatch},
- * {@code verification_document_name_missing}, {@code
- * verification_document_nationality_mismatch}, {@code verification_document_not_readable},
- * {@code verification_document_not_signed}, {@code verification_document_not_uploaded},
- * {@code verification_document_photo_mismatch}, {@code verification_document_too_large},
- * {@code verification_document_type_not_supported}, {@code
- * verification_extraneous_directors}, {@code verification_failed_address_match}, {@code
- * verification_failed_authorizer_authority}, {@code verification_failed_business_iec_number},
- * {@code verification_failed_document_match}, {@code verification_failed_id_number_match},
- * {@code verification_failed_keyed_identity}, {@code verification_failed_keyed_match}, {@code
- * verification_failed_name_match}, {@code verification_failed_other}, {@code
- * verification_failed_representative_authority}, {@code
+ * verification_data_not_found}, {@code verification_directors_mismatch}, {@code
+ * verification_document_address_mismatch}, {@code verification_document_address_missing},
+ * {@code verification_document_corrupt}, {@code verification_document_country_not_supported},
+ * {@code verification_document_directors_mismatch}, {@code
+ * verification_document_dob_mismatch}, {@code verification_document_duplicate_type}, {@code
+ * verification_document_expired}, {@code verification_document_failed_copy}, {@code
+ * verification_document_failed_greyscale}, {@code verification_document_failed_other}, {@code
+ * verification_document_failed_test_mode}, {@code verification_document_fraudulent}, {@code
+ * verification_document_id_number_mismatch}, {@code verification_document_id_number_missing},
+ * {@code verification_document_incomplete}, {@code verification_document_invalid}, {@code
+ * verification_document_issue_or_expiry_date_missing}, {@code
+ * verification_document_manipulated}, {@code verification_document_missing_back}, {@code
+ * verification_document_missing_front}, {@code verification_document_name_mismatch}, {@code
+ * verification_document_name_missing}, {@code verification_document_nationality_mismatch},
+ * {@code verification_document_not_readable}, {@code verification_document_not_signed},
+ * {@code verification_document_not_uploaded}, {@code verification_document_photo_mismatch},
+ * {@code verification_document_too_large}, {@code verification_document_type_not_supported},
+ * {@code verification_extraneous_directors}, {@code verification_failed_address_match},
+ * {@code verification_failed_authorizer_authority}, {@code
+ * verification_failed_business_iec_number}, {@code verification_failed_document_match},
+ * {@code verification_failed_id_number_match}, {@code verification_failed_keyed_identity},
+ * {@code verification_failed_keyed_match}, {@code verification_failed_name_match}, {@code
+ * verification_failed_other}, {@code verification_failed_representative_authority}, {@code
* verification_failed_residential_address}, {@code verification_failed_tax_id_match}, {@code
* verification_failed_tax_id_not_issued}, {@code
* verification_legal_entity_structure_mismatch}, {@code verification_missing_directors},
diff --git a/src/main/java/com/stripe/model/Refund.java b/src/main/java/com/stripe/model/Refund.java
index 23f4a47472e..6d4b6bd2052 100644
--- a/src/main/java/com/stripe/model/Refund.java
+++ b/src/main/java/com/stripe/model/Refund.java
@@ -625,6 +625,9 @@ public static class DestinationDetails extends StripeObject {
@SerializedName("cashapp")
Cashapp cashapp;
+ @SerializedName("crypto")
+ Crypto crypto;
+
@SerializedName("customer_cash_balance")
CustomerCashBalance customerCashBalance;
@@ -844,6 +847,19 @@ public static class Card extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Cashapp extends StripeObject {}
+ /**
+ * For more details about Crypto, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Crypto extends StripeObject {
+ /** The transaction hash of the refund. */
+ @SerializedName("reference")
+ String reference;
+ }
+
/**
* For more details about CustomerCashBalance, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java
index 107b7af3aba..8eb7285e2cb 100644
--- a/src/main/java/com/stripe/model/SetupIntent.java
+++ b/src/main/java/com/stripe/model/SetupIntent.java
@@ -122,6 +122,10 @@ public class SetupIntent extends ApiResource implements HasId, MetadataStore 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.
+ *
+ * Equal to {@code none}.
+ */
+ @SerializedName("setup_future_usage")
+ String setupFutureUsage;
+ }
+
/**
* For more details about UsBankAccount, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/financialconnections/Account.java b/src/main/java/com/stripe/model/financialconnections/Account.java
index ee458fefc50..143a5aa6f3e 100644
--- a/src/main/java/com/stripe/model/financialconnections/Account.java
+++ b/src/main/java/com/stripe/model/financialconnections/Account.java
@@ -424,7 +424,7 @@ public static com.stripe.model.financialconnections.Account retrieve(
/**
* Subscribes to periodic refreshes of data associated with a Financial Connections {@code
- * Account}.
+ * Account}. When the account status is active, data is typically refreshed once a day.
*/
public com.stripe.model.financialconnections.Account subscribe(Map Equal to {@code simplified}.
+ */
+ @SerializedName("type")
+ String type;
+ }
+
/**
* For more details about Tz, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/terminal/Configuration.java b/src/main/java/com/stripe/model/terminal/Configuration.java
index ea48c740df3..c01718d5c1e 100644
--- a/src/main/java/com/stripe/model/terminal/Configuration.java
+++ b/src/main/java/com/stripe/model/terminal/Configuration.java
@@ -444,6 +444,9 @@ public static class Tipping extends StripeObject {
@SerializedName("gbp")
Gbp gbp;
+ @SerializedName("gip")
+ Gip gip;
+
@SerializedName("hkd")
Hkd hkd;
@@ -696,6 +699,30 @@ public static class Gbp extends StripeObject {
Long smartTipThreshold;
}
+ /**
+ * For more details about Gip, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Gip extends StripeObject {
+ /** Fixed amounts displayed when collecting a tip. */
+ @SerializedName("fixed_amounts")
+ List One of {@code primary}, or {@code secondary}.
- */
+ /** The button style for the choice. Can be {@code primary} or {@code secondary}. */
@SerializedName("style")
String style;
- /** The text to be selected. */
+ /** The text to be selected. Maximum 30 characters. */
@SerializedName("text")
String text;
}
@@ -910,27 +1042,19 @@ public static class Text extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Toggle extends StripeObject {
- /**
- * The toggle's default value
- *
- * One of {@code disabled}, or {@code enabled}.
- */
+ /** The toggle's default value. Can be {@code enabled} or {@code disabled}. */
@SerializedName("default_value")
String defaultValue;
- /** The toggle's description text. */
+ /** The toggle's description text. Maximum 50 characters. */
@SerializedName("description")
String description;
- /** The toggle's title text. */
+ /** The toggle's title text. Maximum 50 characters. */
@SerializedName("title")
String title;
- /**
- * The toggle's collected value
- *
- * One of {@code disabled}, or {@code enabled}.
- */
+ /** The toggle's collected value. Can be {@code enabled} or {@code disabled}. */
@SerializedName("value")
String value;
}
@@ -1344,12 +1468,13 @@ public static class RefundPaymentConfig extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SetReaderDisplay extends StripeObject {
- /** Cart object to be displayed by the reader. */
+ /** Cart object to be displayed by the reader, including line items, amounts, and currency. */
@SerializedName("cart")
Cart cart;
/**
- * Type of information to be displayed by the reader.
+ * Type of information to be displayed by the reader. Only {@code cart} is currently
+ * supported.
*
* Equal to {@code cart}.
*/
diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java
index c9d42a753e9..6a3b68f6f01 100644
--- a/src/main/java/com/stripe/model/v2/core/Account.java
+++ b/src/main/java/com/stripe/model/v2/core/Account.java
@@ -4280,6 +4280,61 @@ public static class Storer extends StripeObject {
@SerializedName("capabilities")
Capabilities capabilities;
+ /** List of high-risk activities the business is involved in. */
+ @SerializedName("high_risk_activities")
+ List One of {@code charitable_donations}, {@code ecommerce_retail_payments}, {@code
+ * investment_purposes}, {@code other}, {@code payments_to_friends_or_family_abroad}, {@code
+ * payroll}, {@code personal_or_living_expenses}, {@code protect_wealth}, {@code
+ * purchase_goods_and_services}, {@code receive_payments_for_goods_and_services}, {@code
+ * tax_optimization}, {@code third_party_money_transmission}, or {@code treasury_management}.
+ */
+ @SerializedName("purpose_of_funds")
+ String purposeOfFunds;
+
+ /** Description of the purpose of the stored funds. */
+ @SerializedName("purpose_of_funds_description")
+ String purposeOfFundsDescription;
+
+ /** Details of the regulated activity if the business participates in one. */
+ @SerializedName("regulated_activity")
+ RegulatedActivity regulatedActivity;
+
+ /**
+ * The source of funds for the business, e.g. profits, income, venture capital, etc.
+ *
+ * One of {@code business_loans}, {@code grants}, {@code inter_company_funds}, {@code
+ * investment_proceeds}, {@code legal_settlement}, {@code owners_capital}, {@code
+ * pension_retirement}, {@code sales_of_assets}, {@code sales_of_goods_and_services}, {@code
+ * tax_refund}, {@code third_party_funds}, or {@code treasury_reserves}.
+ */
+ @SerializedName("source_of_funds")
+ String sourceOfFunds;
+
+ /** Description of the source of funds for the business' account. */
+ @SerializedName("source_of_funds_description")
+ String sourceOfFundsDescription;
+
/** Capabilities that have been requested on the Storer Configuration. */
@Getter
@Setter
@@ -4317,6 +4372,10 @@ public static class FinancialAddresses extends StripeObject {
@SerializedName("bank_accounts")
BankAccounts bankAccounts;
+ /** Can provision a crypto wallet like financial address to credit a FinancialAccount. */
+ @SerializedName("crypto_wallets")
+ CryptoWallets cryptoWallets;
+
/**
* Can provision a bank-account like financial address (VBAN) to credit/debit a
* FinancialAccount.
@@ -4377,6 +4436,64 @@ public static class StatusDetail extends StripeObject {
String resolution;
}
}
+
+ /** Can provision a crypto wallet like financial address to credit a FinancialAccount. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CryptoWallets extends StripeObject {
+ /** Whether the Capability has been requested. */
+ @SerializedName("requested")
+ Boolean requested;
+
+ /**
+ * The status of the Capability.
+ *
+ * One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Additional details regarding the status of the Capability. {@code status_details}
+ * will be empty if the Capability's status is {@code active}.
+ */
+ @SerializedName("status_details")
+ List<
+ Account.Configuration.Storer.Capabilities.FinancialAddresses.CryptoWallets
+ .StatusDetail>
+ statusDetails;
+
+ /**
+ * For more details about StatusDetail, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetail extends StripeObject {
+ /**
+ * Machine-readable code explaining the reason for the Capability to be in its current
+ * status.
+ *
+ * One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ * One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
}
/** Can hold storage-type funds on Stripe. */
@@ -4392,6 +4509,10 @@ public static class HoldsCurrencies extends StripeObject {
@SerializedName("usd")
Usd usd;
+ /** Can hold storage-type funds on Stripe in USDC. */
+ @SerializedName("usdc")
+ Usdc usdc;
+
/** Can hold storage-type funds on Stripe in GBP. */
@Getter
@Setter
@@ -4503,6 +4624,62 @@ public static class StatusDetail extends StripeObject {
String resolution;
}
}
+
+ /** Can hold storage-type funds on Stripe in USDC. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Usdc extends StripeObject {
+ /** Whether the Capability has been requested. */
+ @SerializedName("requested")
+ Boolean requested;
+
+ /**
+ * The status of the Capability.
+ *
+ * One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Additional details regarding the status of the Capability. {@code status_details}
+ * will be empty if the Capability's status is {@code active}.
+ */
+ @SerializedName("status_details")
+ List One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ * One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
}
/** Can pull funds from an external source, owned by yourself, to a FinancialAccount. */
@@ -4590,6 +4767,10 @@ public static class OutboundPayments extends StripeObject {
@SerializedName("cards")
Cards cards;
+ /** Can send funds from a FinancialAccount to a crypto wallet, owned by someone else. */
+ @SerializedName("crypto_wallets")
+ CryptoWallets cryptoWallets;
+
/**
* Can send funds from a FinancialAccount to another FinancialAccount, owned by someone
* else.
@@ -4711,6 +4892,64 @@ public static class StatusDetail extends StripeObject {
}
}
+ /** Can send funds from a FinancialAccount to a crypto wallet, owned by someone else. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CryptoWallets extends StripeObject {
+ /** Whether the Capability has been requested. */
+ @SerializedName("requested")
+ Boolean requested;
+
+ /**
+ * The status of the Capability.
+ *
+ * One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Additional details regarding the status of the Capability. {@code status_details}
+ * will be empty if the Capability's status is {@code active}.
+ */
+ @SerializedName("status_details")
+ List<
+ Account.Configuration.Storer.Capabilities.OutboundPayments.CryptoWallets
+ .StatusDetail>
+ statusDetails;
+
+ /**
+ * For more details about StatusDetail, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetail extends StripeObject {
+ /**
+ * Machine-readable code explaining the reason for the Capability to be in its current
+ * status.
+ *
+ * One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ * One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
+
/**
* Can send funds from a FinancialAccount to another FinancialAccount, owned by someone
* else.
@@ -4782,6 +5021,10 @@ public static class OutboundTransfers extends StripeObject {
@SerializedName("bank_accounts")
BankAccounts bankAccounts;
+ /** Can send funds from a FinancialAccount to a crypto wallet, owned by yourself. */
+ @SerializedName("crypto_wallets")
+ CryptoWallets cryptoWallets;
+
/**
* Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself.
*/
@@ -4846,6 +5089,64 @@ public static class StatusDetail extends StripeObject {
}
}
+ /** Can send funds from a FinancialAccount to a crypto wallet, owned by yourself. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CryptoWallets extends StripeObject {
+ /** Whether the Capability has been requested. */
+ @SerializedName("requested")
+ Boolean requested;
+
+ /**
+ * The status of the Capability.
+ *
+ * One of {@code active}, {@code pending}, {@code restricted}, or {@code
+ * unsupported}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /**
+ * Additional details regarding the status of the Capability. {@code status_details}
+ * will be empty if the Capability's status is {@code active}.
+ */
+ @SerializedName("status_details")
+ List<
+ Account.Configuration.Storer.Capabilities.OutboundTransfers.CryptoWallets
+ .StatusDetail>
+ statusDetails;
+
+ /**
+ * For more details about StatusDetail, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetail extends StripeObject {
+ /**
+ * Machine-readable code explaining the reason for the Capability to be in its current
+ * status.
+ *
+ * One of {@code determining_status}, {@code requirements_past_due}, {@code
+ * requirements_pending_verification}, {@code restricted_other}, {@code
+ * unsupported_business}, {@code unsupported_country}, or {@code
+ * unsupported_entity_type}.
+ */
+ @SerializedName("code")
+ String code;
+
+ /**
+ * Machine-readable code explaining how to make the Capability active.
+ *
+ * One of {@code contact_stripe}, {@code no_resolution}, or {@code provide_info}.
+ */
+ @SerializedName("resolution")
+ String resolution;
+ }
+ }
+
/**
* Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself.
*/
@@ -4907,6 +5208,38 @@ public static class StatusDetail extends StripeObject {
}
}
}
+
+ /** Details of the regulated activity if the business participates in one. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RegulatedActivity extends StripeObject {
+ /**
+ * A detailed description of the regulated activities the business is licensed to conduct.
+ */
+ @SerializedName("description")
+ String description;
+
+ /**
+ * The license number or registration number assigned by the business's primary regulator.
+ */
+ @SerializedName("license_number")
+ String licenseNumber;
+
+ /**
+ * The country of the primary regulatory authority that oversees the business's regulated
+ * activities.
+ */
+ @SerializedName("primary_regulatory_authority_country")
+ String primaryRegulatoryAuthorityCountry;
+
+ /**
+ * The name of the primary regulatory authority that oversees the business's regulated
+ * activities.
+ */
+ @SerializedName("primary_regulatory_authority_name")
+ String primaryRegulatoryAuthorityName;
+ }
}
}
@@ -5189,6 +5522,10 @@ public static class TermsOfService extends StripeObject {
@SerializedName("card_creator")
CardCreator cardCreator;
+ /** Details on the Account's acceptance of Crypto-storer-specific terms of service. */
+ @SerializedName("crypto_storer")
+ CryptoStorer cryptoStorer;
+
/** Details on the Account's acceptance of Treasury-specific terms of service. */
@SerializedName("storer")
Storer storer;
@@ -5843,6 +6180,33 @@ public static class FinancingDisclosures extends StripeObject {
}
}
+ /** Details on the Account's acceptance of Crypto-storer-specific terms of service. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CryptoStorer extends StripeObject {
+ /**
+ * The time when the Account's representative accepted the terms of service. Represented
+ * as a RFC 3339 date & time UTC value in millisecond precision, for example:
+ * 2022-09-18T13:22:18.123Z.
+ */
+ @SerializedName("date")
+ Instant date;
+
+ /**
+ * The IP address from which the Account's representative accepted the terms of service.
+ */
+ @SerializedName("ip")
+ String ip;
+
+ /**
+ * The user agent of the browser from which the Account's representative accepted the
+ * terms of service.
+ */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
+
/**
* Details on the Account's acceptance of the Stripe Services
@@ -5916,6 +6280,13 @@ public static class BusinessDetails extends StripeObject {
@SerializedName("annual_revenue")
AnnualRevenue annualRevenue;
+ /**
+ * A detailed description of the business's compliance and anti-money laundering controls and
+ * practices.
+ */
+ @SerializedName("compliance_screening_description")
+ String complianceScreeningDescription;
+
/** Documents that may be submitted to satisfy various informational requests. */
@SerializedName("documents")
Documents documents;
diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java
index 06ad381d4bd..8956aea803b 100644
--- a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java
+++ b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedCredit.java
@@ -47,6 +47,10 @@ public class ReceivedCredit extends StripeObject implements HasId {
@SerializedName("description")
String description;
+ /** The amount and currency of the original/external credit request. */
+ @SerializedName("external_amount")
+ Amount externalAmount;
+
/** Financial Account ID on which funds for ReceivedCredit were received. */
@SerializedName("financial_account")
String financialAccount;
diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java
index 11a6218f3d3..c23eef84c87 100644
--- a/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java
+++ b/src/main/java/com/stripe/model/v2/moneymanagement/ReceivedDebit.java
@@ -37,6 +37,10 @@ public class ReceivedDebit extends StripeObject implements HasId {
@SerializedName("description")
String description;
+ /** The amount and currency of the original/external debit request. */
+ @SerializedName("external_amount")
+ Amount externalAmount;
+
/** Financial Account on which funds for ReceivedDebit were debited. */
@SerializedName("financial_account")
String financialAccount;
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index 5fd61455fb6..1022f5aa67e 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -8551,6 +8551,13 @@ public static class Company {
@SerializedName("registration_number")
String registrationNumber;
+ /**
+ * This hash is used to attest that the representative is authorized to act as the
+ * representative of their legal entity.
+ */
+ @SerializedName("representative_declaration")
+ RepresentativeDeclaration representativeDeclaration;
+
/**
* The category identifying the legal structure of the company or legal entity. See Business
@@ -8600,6 +8607,7 @@ private Company(
String phone,
Object registrationDate,
String registrationNumber,
+ RepresentativeDeclaration representativeDeclaration,
ApiRequestParams.EnumParam structure,
String taxId,
String taxIdRegistrar,
@@ -8623,6 +8631,7 @@ private Company(
this.phone = phone;
this.registrationDate = registrationDate;
this.registrationNumber = registrationNumber;
+ this.representativeDeclaration = representativeDeclaration;
this.structure = structure;
this.taxId = taxId;
this.taxIdRegistrar = taxIdRegistrar;
@@ -8671,6 +8680,8 @@ public static class Builder {
private String registrationNumber;
+ private RepresentativeDeclaration representativeDeclaration;
+
private ApiRequestParams.EnumParam structure;
private String taxId;
@@ -8702,6 +8713,7 @@ public AccountCreateParams.Company build() {
this.phone,
this.registrationDate,
this.registrationNumber,
+ this.representativeDeclaration,
this.structure,
this.taxId,
this.taxIdRegistrar,
@@ -8895,6 +8907,16 @@ public Builder setRegistrationNumber(String registrationNumber) {
return this;
}
+ /**
+ * This hash is used to attest that the representative is authorized to act as the
+ * representative of their legal entity.
+ */
+ public Builder setRepresentativeDeclaration(
+ AccountCreateParams.Company.RepresentativeDeclaration representativeDeclaration) {
+ this.representativeDeclaration = representativeDeclaration;
+ return this;
+ }
+
/**
* The category identifying the legal structure of the company or legal entity. See Business
@@ -9745,6 +9767,111 @@ public Builder setYear(Long year) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RepresentativeDeclaration {
+ /** The Unix timestamp marking when the representative declaration attestation was made. */
+ @SerializedName("date")
+ Long date;
+
+ /**
+ * 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 If not specified, defaults to ["always"]. In order to display all saved
+ * payment methods, specify ["always", "limited",
+ * "unspecified"].
+ */
+ @SerializedName("payment_method_allow_redisplay_filters")
+ List<
+ CustomerSessionCreateParams.Components.CustomerSheet.Features
+ .PaymentMethodAllowRedisplayFilter>
+ paymentMethodAllowRedisplayFilters;
+
+ /**
+ * Controls whether the customer sheet displays the option to remove a saved payment
+ * method."
+ *
+ * Allowing buyers to remove their saved payment methods impacts subscriptions that
+ * depend on that payment method. Removing the payment method detaches the {@code
+ * customer} object from that PaymentMethod.
+ */
+ @SerializedName("payment_method_remove")
+ PaymentMethodRemove paymentMethodRemove;
+
+ private Features(
+ Map Allowing buyers to remove their saved payment methods impacts subscriptions that
+ * depend on that payment method. Removing the payment method detaches the {@code
+ * customer} object from that PaymentMethod.
+ */
+ public Builder setPaymentMethodRemove(
+ CustomerSessionCreateParams.Components.CustomerSheet.Features.PaymentMethodRemove
+ paymentMethodRemove) {
+ this.paymentMethodRemove = paymentMethodRemove;
+ return this;
+ }
+ }
+
+ public enum PaymentMethodAllowRedisplayFilter implements ApiRequestParams.EnumParam {
+ @SerializedName("always")
+ ALWAYS("always"),
+
+ @SerializedName("limited")
+ LIMITED("limited"),
+
+ @SerializedName("unspecified")
+ UNSPECIFIED("unspecified");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ PaymentMethodAllowRedisplayFilter(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum PaymentMethodRemove implements ApiRequestParams.EnumParam {
+ @SerializedName("disabled")
+ DISABLED("disabled"),
+
+ @SerializedName("enabled")
+ ENABLED("enabled");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ PaymentMethodRemove(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MobilePaymentElement {
+ /** Required. Whether the mobile payment element is enabled. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map If not specified, defaults to ["always"]. In order to display all saved
+ * payment methods, specify ["always", "limited",
+ * "unspecified"].
+ */
+ @SerializedName("payment_method_allow_redisplay_filters")
+ List<
+ CustomerSessionCreateParams.Components.MobilePaymentElement.Features
+ .PaymentMethodAllowRedisplayFilter>
+ paymentMethodAllowRedisplayFilters;
+
+ /** Controls whether or not the mobile payment element shows saved payment methods. */
+ @SerializedName("payment_method_redisplay")
+ PaymentMethodRedisplay paymentMethodRedisplay;
+
+ /**
+ * Controls whether the mobile payment element displays the option to remove a saved payment
+ * method."
+ *
+ * Allowing buyers to remove their saved payment methods impacts subscriptions that
+ * depend on that payment method. Removing the payment method detaches the {@code
+ * customer} object from that PaymentMethod.
+ */
+ @SerializedName("payment_method_remove")
+ PaymentMethodRemove paymentMethodRemove;
+
+ /**
+ * Controls whether the mobile payment element displays a checkbox offering to save a new
+ * payment method.
+ *
+ * If a customer checks the box, the {@code
+ * allow_redisplay} value on the PaymentMethod is set to {@code 'always'} at
+ * confirmation time. For PaymentIntents, the {@code
+ * setup_future_usage} value is also set to the value defined in {@code
+ * payment_method_save_usage}.
+ */
+ @SerializedName("payment_method_save")
+ PaymentMethodSave paymentMethodSave;
+
+ /**
+ * Allows overriding the value of allow_override when saving a new payment method when
+ * payment_method_save is set to disabled. Use values: "always",
+ * "limited", or "unspecified".
+ *
+ * If not specified, defaults to {@code nil} (no override value).
+ */
+ @SerializedName("payment_method_save_allow_redisplay_override")
+ PaymentMethodSaveAllowRedisplayOverride paymentMethodSaveAllowRedisplayOverride;
+
+ private Features(
+ Map Allowing buyers to remove their saved payment methods impacts subscriptions that
+ * depend on that payment method. Removing the payment method detaches the {@code
+ * customer} object from that PaymentMethod.
+ */
+ public Builder setPaymentMethodRemove(
+ CustomerSessionCreateParams.Components.MobilePaymentElement.Features
+ .PaymentMethodRemove
+ paymentMethodRemove) {
+ this.paymentMethodRemove = paymentMethodRemove;
+ return this;
+ }
+
+ /**
+ * Controls whether the mobile payment element displays a checkbox offering to save a new
+ * payment method.
+ *
+ * If a customer checks the box, the {@code
+ * allow_redisplay} value on the PaymentMethod is set to {@code 'always'} at
+ * confirmation time. For PaymentIntents, the {@code
+ * setup_future_usage} value is also set to the value defined in {@code
+ * payment_method_save_usage}.
+ */
+ public Builder setPaymentMethodSave(
+ CustomerSessionCreateParams.Components.MobilePaymentElement.Features.PaymentMethodSave
+ paymentMethodSave) {
+ this.paymentMethodSave = paymentMethodSave;
+ return this;
+ }
+
+ /**
+ * Allows overriding the value of allow_override when saving a new payment method when
+ * payment_method_save is set to disabled. Use values: "always",
+ * "limited", or "unspecified".
+ *
+ * If not specified, defaults to {@code nil} (no override value).
+ */
+ public Builder setPaymentMethodSaveAllowRedisplayOverride(
+ CustomerSessionCreateParams.Components.MobilePaymentElement.Features
+ .PaymentMethodSaveAllowRedisplayOverride
+ paymentMethodSaveAllowRedisplayOverride) {
+ this.paymentMethodSaveAllowRedisplayOverride = paymentMethodSaveAllowRedisplayOverride;
+ return this;
+ }
+ }
+
+ public enum PaymentMethodAllowRedisplayFilter implements ApiRequestParams.EnumParam {
+ @SerializedName("always")
+ ALWAYS("always"),
+
+ @SerializedName("limited")
+ LIMITED("limited"),
+
+ @SerializedName("unspecified")
+ UNSPECIFIED("unspecified");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ PaymentMethodAllowRedisplayFilter(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum PaymentMethodRedisplay implements ApiRequestParams.EnumParam {
+ @SerializedName("disabled")
+ DISABLED("disabled"),
+
+ @SerializedName("enabled")
+ ENABLED("enabled");
- private Map When enabled, the Tax ID Element will show existing tax IDs associated with the
+ * customer, allowing them to select from previously saved tax identification numbers.
+ */
+ @SerializedName("tax_id_redisplay")
+ TaxIdRedisplay taxIdRedisplay;
+
+ /**
+ * Controls whether the Tax ID Element allows merchants to save new tax IDs for their
+ * customer. This parameter defaults to {@code disabled}.
+ *
+ * When enabled, customers can enter and save new tax identification numbers during the
+ * payment flow, which will be stored securely and associated with their customer object for
+ * future use.
+ */
+ @SerializedName("tax_id_save")
+ TaxIdSave taxIdSave;
+
+ private Features(
+ Map When enabled, the Tax ID Element will show existing tax IDs associated with the
+ * customer, allowing them to select from previously saved tax identification numbers.
+ */
+ public Builder setTaxIdRedisplay(
+ CustomerSessionCreateParams.Components.TaxIdElement.Features.TaxIdRedisplay
+ taxIdRedisplay) {
+ this.taxIdRedisplay = taxIdRedisplay;
+ return this;
+ }
+
+ /**
+ * Controls whether the Tax ID Element allows merchants to save new tax IDs for their
+ * customer. This parameter defaults to {@code disabled}.
+ *
+ * When enabled, customers can enter and save new tax identification numbers during the
+ * payment flow, which will be stored securely and associated with their customer object
+ * for future use.
+ */
+ public Builder setTaxIdSave(
+ CustomerSessionCreateParams.Components.TaxIdElement.Features.TaxIdSave taxIdSave) {
+ this.taxIdSave = taxIdSave;
+ return this;
+ }
+ }
+
+ public enum TaxIdRedisplay implements ApiRequestParams.EnumParam {
+ @SerializedName("disabled")
+ DISABLED("disabled"),
+
+ @SerializedName("enabled")
+ ENABLED("enabled");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ TaxIdRedisplay(String value) {
+ this.value = value;
+ }
+ }
+
+ public enum TaxIdSave implements ApiRequestParams.EnumParam {
+ @SerializedName("disabled")
+ DISABLED("disabled"),
+
+ @SerializedName("enabled")
+ ENABLED("enabled");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ TaxIdSave(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
}
}
diff --git a/src/main/java/com/stripe/param/FileCreateParams.java b/src/main/java/com/stripe/param/FileCreateParams.java
index 55026b17719..665a984b1b9 100644
--- a/src/main/java/com/stripe/param/FileCreateParams.java
+++ b/src/main/java/com/stripe/param/FileCreateParams.java
@@ -361,6 +361,9 @@ public enum Purpose implements ApiRequestParams.EnumParam {
@SerializedName("pci_document")
PCI_DOCUMENT("pci_document"),
+ @SerializedName("platform_terms_of_service")
+ PLATFORM_TERMS_OF_SERVICE("platform_terms_of_service"),
+
@SerializedName("tax_document_user_upload")
TAX_DOCUMENT_USER_UPLOAD("tax_document_user_upload"),
diff --git a/src/main/java/com/stripe/param/FileListParams.java b/src/main/java/com/stripe/param/FileListParams.java
index ad1192cacea..f0085ee3138 100644
--- a/src/main/java/com/stripe/param/FileListParams.java
+++ b/src/main/java/com/stripe/param/FileListParams.java
@@ -363,6 +363,9 @@ public enum Purpose implements ApiRequestParams.EnumParam {
@SerializedName("pci_document")
PCI_DOCUMENT("pci_document"),
+ @SerializedName("platform_terms_of_service")
+ PLATFORM_TERMS_OF_SERVICE("platform_terms_of_service"),
+
@SerializedName("selfie")
SELFIE("selfie"),
diff --git a/src/main/java/com/stripe/param/PaymentAttemptRecordListParams.java b/src/main/java/com/stripe/param/PaymentAttemptRecordListParams.java
index 85a48339197..3a68f81ca90 100644
--- a/src/main/java/com/stripe/param/PaymentAttemptRecordListParams.java
+++ b/src/main/java/com/stripe/param/PaymentAttemptRecordListParams.java
@@ -37,12 +37,26 @@ public class PaymentAttemptRecordListParams extends ApiRequestParams {
@SerializedName("payment_record")
String paymentRecord;
+ /**
+ * A cursor for use in pagination. {@code starting_after} is an object ID that defines your place
+ * in the list. For instance, if you make a list request and receive 100 objects, ending with
+ * {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in order to
+ * fetch the next page of the list.
+ */
+ @SerializedName("starting_after")
+ String startingAfter;
+
private PaymentAttemptRecordListParams(
- List