diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d42b9191871..bbe0dc1c93c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v602 \ No newline at end of file +v603 \ No newline at end of file diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java index c2ee1e0944e..401ecf5f274 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -2,5 +2,5 @@ package com.stripe; final class ApiVersion { - public static final String CURRENT = "2023-08-16"; + public static final String CURRENT = "2023-10-16"; } diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 925f704032f..796eb396446 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1525,34 +1525,56 @@ public static class Errors extends StripeObject { /** * The code for the type of error. * - *

One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18}, - * {@code invalid_representative_country}, {@code invalid_street_address}, {@code - * invalid_tos_acceptance}, {@code invalid_value_other}, {@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_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_residential_address}, {@code - * verification_failed_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code - * verification_missing_directors}, {@code verification_missing_executives}, {@code - * verification_missing_owners}, or {@code + *

One of {@code invalid_address_city_state_postal_code}, {@code + * invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code + * invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code + * invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code + * invalid_dob_age_under_18}, {@code invalid_product_description_length}, {@code + * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code + * invalid_statement_descriptor_business_mismatch}, {@code + * invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length}, + * {@code invalid_statement_descriptor_prefix_denylisted}, {@code + * invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code + * invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code + * invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code + * invalid_url_web_presence_detected}, {@code + * invalid_url_website_business_information_mismatch}, {@code invalid_url_website_empty}, + * {@code invalid_url_website_inaccessible}, {@code + * invalid_url_website_inaccessible_geoblocked}, {@code + * invalid_url_website_inaccessible_password_protected}, {@code + * invalid_url_website_incomplete}, {@code + * invalid_url_website_incomplete_cancellation_policy}, {@code + * invalid_url_website_incomplete_customer_service_details}, {@code + * invalid_url_website_incomplete_legal_restrictions}, {@code + * invalid_url_website_incomplete_refund_policy}, {@code + * invalid_url_website_incomplete_return_policy}, {@code + * invalid_url_website_incomplete_terms_and_conditions}, {@code + * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, + * {@code invalid_value_other}, {@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_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_residential_address}, {@code verification_failed_tax_id_match}, {@code + * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code + * verification_missing_executives}, {@code verification_missing_owners}, or {@code * verification_requires_additional_memorandum_of_associations}. */ @SerializedName("code") @@ -1663,34 +1685,56 @@ public static class Errors extends StripeObject { /** * The code for the type of error. * - *

One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18}, - * {@code invalid_representative_country}, {@code invalid_street_address}, {@code - * invalid_tos_acceptance}, {@code invalid_value_other}, {@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_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_residential_address}, {@code - * verification_failed_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code - * verification_missing_directors}, {@code verification_missing_executives}, {@code - * verification_missing_owners}, or {@code + *

One of {@code invalid_address_city_state_postal_code}, {@code + * invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code + * invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code + * invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code + * invalid_dob_age_under_18}, {@code invalid_product_description_length}, {@code + * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code + * invalid_statement_descriptor_business_mismatch}, {@code + * invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length}, + * {@code invalid_statement_descriptor_prefix_denylisted}, {@code + * invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code + * invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code + * invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code + * invalid_url_web_presence_detected}, {@code + * invalid_url_website_business_information_mismatch}, {@code invalid_url_website_empty}, + * {@code invalid_url_website_inaccessible}, {@code + * invalid_url_website_inaccessible_geoblocked}, {@code + * invalid_url_website_inaccessible_password_protected}, {@code + * invalid_url_website_incomplete}, {@code + * invalid_url_website_incomplete_cancellation_policy}, {@code + * invalid_url_website_incomplete_customer_service_details}, {@code + * invalid_url_website_incomplete_legal_restrictions}, {@code + * invalid_url_website_incomplete_refund_policy}, {@code + * invalid_url_website_incomplete_return_policy}, {@code + * invalid_url_website_incomplete_terms_and_conditions}, {@code + * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, + * {@code invalid_value_other}, {@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_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_residential_address}, {@code verification_failed_tax_id_match}, {@code + * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code + * verification_missing_executives}, {@code verification_missing_owners}, or {@code * verification_requires_additional_memorandum_of_associations}. */ @SerializedName("code") diff --git a/src/main/java/com/stripe/model/BankAccount.java b/src/main/java/com/stripe/model/BankAccount.java index 344316d81eb..ee8f5a6ae84 100644 --- a/src/main/java/com/stripe/model/BankAccount.java +++ b/src/main/java/com/stripe/model/BankAccount.java @@ -554,34 +554,56 @@ public static class Errors extends StripeObject { /** * The code for the type of error. * - *

One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18}, - * {@code invalid_representative_country}, {@code invalid_street_address}, {@code - * invalid_tos_acceptance}, {@code invalid_value_other}, {@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_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_residential_address}, {@code - * verification_failed_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code - * verification_missing_directors}, {@code verification_missing_executives}, {@code - * verification_missing_owners}, or {@code + *

One of {@code invalid_address_city_state_postal_code}, {@code + * invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code + * invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code + * invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code + * invalid_dob_age_under_18}, {@code invalid_product_description_length}, {@code + * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code + * invalid_statement_descriptor_business_mismatch}, {@code + * invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length}, + * {@code invalid_statement_descriptor_prefix_denylisted}, {@code + * invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code + * invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code + * invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code + * invalid_url_web_presence_detected}, {@code + * invalid_url_website_business_information_mismatch}, {@code invalid_url_website_empty}, + * {@code invalid_url_website_inaccessible}, {@code + * invalid_url_website_inaccessible_geoblocked}, {@code + * invalid_url_website_inaccessible_password_protected}, {@code + * invalid_url_website_incomplete}, {@code + * invalid_url_website_incomplete_cancellation_policy}, {@code + * invalid_url_website_incomplete_customer_service_details}, {@code + * invalid_url_website_incomplete_legal_restrictions}, {@code + * invalid_url_website_incomplete_refund_policy}, {@code + * invalid_url_website_incomplete_return_policy}, {@code + * invalid_url_website_incomplete_terms_and_conditions}, {@code + * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, + * {@code invalid_value_other}, {@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_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_residential_address}, {@code verification_failed_tax_id_match}, {@code + * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code + * verification_missing_executives}, {@code verification_missing_owners}, or {@code * verification_requires_additional_memorandum_of_associations}. */ @SerializedName("code") @@ -644,34 +666,56 @@ public static class Errors extends StripeObject { /** * The code for the type of error. * - *

One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18}, - * {@code invalid_representative_country}, {@code invalid_street_address}, {@code - * invalid_tos_acceptance}, {@code invalid_value_other}, {@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_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_residential_address}, {@code - * verification_failed_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code - * verification_missing_directors}, {@code verification_missing_executives}, {@code - * verification_missing_owners}, or {@code + *

One of {@code invalid_address_city_state_postal_code}, {@code + * invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code + * invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code + * invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code + * invalid_dob_age_under_18}, {@code invalid_product_description_length}, {@code + * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code + * invalid_statement_descriptor_business_mismatch}, {@code + * invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length}, + * {@code invalid_statement_descriptor_prefix_denylisted}, {@code + * invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code + * invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code + * invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code + * invalid_url_web_presence_detected}, {@code + * invalid_url_website_business_information_mismatch}, {@code invalid_url_website_empty}, + * {@code invalid_url_website_inaccessible}, {@code + * invalid_url_website_inaccessible_geoblocked}, {@code + * invalid_url_website_inaccessible_password_protected}, {@code + * invalid_url_website_incomplete}, {@code + * invalid_url_website_incomplete_cancellation_policy}, {@code + * invalid_url_website_incomplete_customer_service_details}, {@code + * invalid_url_website_incomplete_legal_restrictions}, {@code + * invalid_url_website_incomplete_refund_policy}, {@code + * invalid_url_website_incomplete_return_policy}, {@code + * invalid_url_website_incomplete_terms_and_conditions}, {@code + * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, + * {@code invalid_value_other}, {@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_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_residential_address}, {@code verification_failed_tax_id_match}, {@code + * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code + * verification_missing_executives}, {@code verification_missing_owners}, or {@code * verification_requires_additional_memorandum_of_associations}. */ @SerializedName("code") diff --git a/src/main/java/com/stripe/model/Capability.java b/src/main/java/com/stripe/model/Capability.java index 3c182d9e1ab..949ee5ccac0 100644 --- a/src/main/java/com/stripe/model/Capability.java +++ b/src/main/java/com/stripe/model/Capability.java @@ -233,34 +233,56 @@ public static class Errors extends StripeObject { /** * The code for the type of error. * - *

One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18}, - * {@code invalid_representative_country}, {@code invalid_street_address}, {@code - * invalid_tos_acceptance}, {@code invalid_value_other}, {@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_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_residential_address}, {@code - * verification_failed_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code - * verification_missing_directors}, {@code verification_missing_executives}, {@code - * verification_missing_owners}, or {@code + *

One of {@code invalid_address_city_state_postal_code}, {@code + * invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code + * invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code + * invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code + * invalid_dob_age_under_18}, {@code invalid_product_description_length}, {@code + * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code + * invalid_statement_descriptor_business_mismatch}, {@code + * invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length}, + * {@code invalid_statement_descriptor_prefix_denylisted}, {@code + * invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code + * invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code + * invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code + * invalid_url_web_presence_detected}, {@code + * invalid_url_website_business_information_mismatch}, {@code invalid_url_website_empty}, + * {@code invalid_url_website_inaccessible}, {@code + * invalid_url_website_inaccessible_geoblocked}, {@code + * invalid_url_website_inaccessible_password_protected}, {@code + * invalid_url_website_incomplete}, {@code + * invalid_url_website_incomplete_cancellation_policy}, {@code + * invalid_url_website_incomplete_customer_service_details}, {@code + * invalid_url_website_incomplete_legal_restrictions}, {@code + * invalid_url_website_incomplete_refund_policy}, {@code + * invalid_url_website_incomplete_return_policy}, {@code + * invalid_url_website_incomplete_terms_and_conditions}, {@code + * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, + * {@code invalid_value_other}, {@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_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_residential_address}, {@code verification_failed_tax_id_match}, {@code + * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code + * verification_missing_executives}, {@code verification_missing_owners}, or {@code * verification_requires_additional_memorandum_of_associations}. */ @SerializedName("code") @@ -381,34 +403,56 @@ public static class Errors extends StripeObject { /** * The code for the type of error. * - *

One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18}, - * {@code invalid_representative_country}, {@code invalid_street_address}, {@code - * invalid_tos_acceptance}, {@code invalid_value_other}, {@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_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_residential_address}, {@code - * verification_failed_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code - * verification_missing_directors}, {@code verification_missing_executives}, {@code - * verification_missing_owners}, or {@code + *

One of {@code invalid_address_city_state_postal_code}, {@code + * invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code + * invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code + * invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code + * invalid_dob_age_under_18}, {@code invalid_product_description_length}, {@code + * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code + * invalid_statement_descriptor_business_mismatch}, {@code + * invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length}, + * {@code invalid_statement_descriptor_prefix_denylisted}, {@code + * invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code + * invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code + * invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code + * invalid_url_web_presence_detected}, {@code + * invalid_url_website_business_information_mismatch}, {@code invalid_url_website_empty}, + * {@code invalid_url_website_inaccessible}, {@code + * invalid_url_website_inaccessible_geoblocked}, {@code + * invalid_url_website_inaccessible_password_protected}, {@code + * invalid_url_website_incomplete}, {@code + * invalid_url_website_incomplete_cancellation_policy}, {@code + * invalid_url_website_incomplete_customer_service_details}, {@code + * invalid_url_website_incomplete_legal_restrictions}, {@code + * invalid_url_website_incomplete_refund_policy}, {@code + * invalid_url_website_incomplete_return_policy}, {@code + * invalid_url_website_incomplete_terms_and_conditions}, {@code + * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, + * {@code invalid_value_other}, {@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_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_residential_address}, {@code verification_failed_tax_id_match}, {@code + * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code + * verification_missing_executives}, {@code verification_missing_owners}, or {@code * verification_requires_additional_memorandum_of_associations}. */ @SerializedName("code") diff --git a/src/main/java/com/stripe/model/Person.java b/src/main/java/com/stripe/model/Person.java index 9652e9bcefc..da1aa523e6b 100644 --- a/src/main/java/com/stripe/model/Person.java +++ b/src/main/java/com/stripe/model/Person.java @@ -38,6 +38,9 @@ public class Person extends ApiResource implements HasId, MetadataStore @SerializedName("account") String account; + @SerializedName("additional_tos_acceptances") + AdditionalTosAcceptances additionalTosAcceptances; + @SerializedName("address") Address address; @@ -286,6 +289,33 @@ public Person update(PersonUpdateParams params, RequestOptions options) throws S ApiMode.V1); } + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AdditionalTosAcceptances extends StripeObject { + @SerializedName("account") + Account account; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Account extends StripeObject { + /** The Unix timestamp marking when the legal guardian accepted the service agreement. */ + @SerializedName("date") + Long date; + + /** The IP address from which the legal guardian accepted the service agreement. */ + @SerializedName("ip") + String ip; + + /** + * The user agent of the browser from which the legal guardian accepted the service agreement. + */ + @SerializedName("user_agent") + String userAgent; + } + } + @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -451,34 +481,56 @@ public static class Errors extends StripeObject { /** * The code for the type of error. * - *

One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18}, - * {@code invalid_representative_country}, {@code invalid_street_address}, {@code - * invalid_tos_acceptance}, {@code invalid_value_other}, {@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_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_residential_address}, {@code - * verification_failed_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code - * verification_missing_directors}, {@code verification_missing_executives}, {@code - * verification_missing_owners}, or {@code + *

One of {@code invalid_address_city_state_postal_code}, {@code + * invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code + * invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code + * invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code + * invalid_dob_age_under_18}, {@code invalid_product_description_length}, {@code + * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code + * invalid_statement_descriptor_business_mismatch}, {@code + * invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length}, + * {@code invalid_statement_descriptor_prefix_denylisted}, {@code + * invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code + * invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code + * invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code + * invalid_url_web_presence_detected}, {@code + * invalid_url_website_business_information_mismatch}, {@code invalid_url_website_empty}, + * {@code invalid_url_website_inaccessible}, {@code + * invalid_url_website_inaccessible_geoblocked}, {@code + * invalid_url_website_inaccessible_password_protected}, {@code + * invalid_url_website_incomplete}, {@code + * invalid_url_website_incomplete_cancellation_policy}, {@code + * invalid_url_website_incomplete_customer_service_details}, {@code + * invalid_url_website_incomplete_legal_restrictions}, {@code + * invalid_url_website_incomplete_refund_policy}, {@code + * invalid_url_website_incomplete_return_policy}, {@code + * invalid_url_website_incomplete_terms_and_conditions}, {@code + * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, + * {@code invalid_value_other}, {@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_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_residential_address}, {@code verification_failed_tax_id_match}, {@code + * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code + * verification_missing_executives}, {@code verification_missing_owners}, or {@code * verification_requires_additional_memorandum_of_associations}. */ @SerializedName("code") @@ -519,6 +571,10 @@ public static class Relationship extends StripeObject { @SerializedName("executive") Boolean executive; + /** Whether the person is the legal guardian of the account's representative. */ + @SerializedName("legal_guardian") + Boolean legalGuardian; + /** Whether the person is an owner of the account’s legal entity. */ @SerializedName("owner") Boolean owner; @@ -614,34 +670,56 @@ public static class Errors extends StripeObject { /** * The code for the type of error. * - *

One of {@code invalid_address_city_state_postal_code}, {@code invalid_dob_age_under_18}, - * {@code invalid_representative_country}, {@code invalid_street_address}, {@code - * invalid_tos_acceptance}, {@code invalid_value_other}, {@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_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_residential_address}, {@code - * verification_failed_tax_id_match}, {@code verification_failed_tax_id_not_issued}, {@code - * verification_missing_directors}, {@code verification_missing_executives}, {@code - * verification_missing_owners}, or {@code + *

One of {@code invalid_address_city_state_postal_code}, {@code + * invalid_address_highway_contract_box}, {@code invalid_address_private_mailbox}, {@code + * invalid_business_profile_name}, {@code invalid_business_profile_name_denylisted}, {@code + * invalid_company_name_denylisted}, {@code invalid_dob_age_over_maximum}, {@code + * invalid_dob_age_under_18}, {@code invalid_product_description_length}, {@code + * invalid_product_description_url_match}, {@code invalid_representative_country}, {@code + * invalid_statement_descriptor_business_mismatch}, {@code + * invalid_statement_descriptor_denylisted}, {@code invalid_statement_descriptor_length}, + * {@code invalid_statement_descriptor_prefix_denylisted}, {@code + * invalid_statement_descriptor_prefix_mismatch}, {@code invalid_street_address}, {@code + * invalid_tax_id}, {@code invalid_tax_id_format}, {@code invalid_tos_acceptance}, {@code + * invalid_url_denylisted}, {@code invalid_url_format}, {@code invalid_url_length}, {@code + * invalid_url_web_presence_detected}, {@code + * invalid_url_website_business_information_mismatch}, {@code invalid_url_website_empty}, + * {@code invalid_url_website_inaccessible}, {@code + * invalid_url_website_inaccessible_geoblocked}, {@code + * invalid_url_website_inaccessible_password_protected}, {@code + * invalid_url_website_incomplete}, {@code + * invalid_url_website_incomplete_cancellation_policy}, {@code + * invalid_url_website_incomplete_customer_service_details}, {@code + * invalid_url_website_incomplete_legal_restrictions}, {@code + * invalid_url_website_incomplete_refund_policy}, {@code + * invalid_url_website_incomplete_return_policy}, {@code + * invalid_url_website_incomplete_terms_and_conditions}, {@code + * invalid_url_website_incomplete_under_construction}, {@code invalid_url_website_other}, + * {@code invalid_value_other}, {@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_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_residential_address}, {@code verification_failed_tax_id_match}, {@code + * verification_failed_tax_id_not_issued}, {@code verification_missing_directors}, {@code + * verification_missing_executives}, {@code verification_missing_owners}, or {@code * verification_requires_additional_memorandum_of_associations}. */ @SerializedName("code") @@ -865,6 +943,7 @@ public void setFrontObject(File expandableObject) { @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); + trySetResponseGetter(additionalTosAcceptances, responseGetter); trySetResponseGetter(address, responseGetter); trySetResponseGetter(addressKana, responseGetter); trySetResponseGetter(addressKanji, responseGetter); diff --git a/src/main/java/com/stripe/param/AccountPersonsParams.java b/src/main/java/com/stripe/param/AccountPersonsParams.java index efec8597369..054e8347ad5 100644 --- a/src/main/java/com/stripe/param/AccountPersonsParams.java +++ b/src/main/java/com/stripe/param/AccountPersonsParams.java @@ -217,6 +217,13 @@ public static class Relationship { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * A filter on the list of people returned based on whether these people are legal guardians of + * the account's representative. + */ + @SerializedName("legal_guardian") + Boolean legalGuardian; + /** * A filter on the list of people returned based on whether these people are owners of the * account's company. @@ -235,11 +242,13 @@ private Relationship( Boolean director, Boolean executive, Map extraParams, + Boolean legalGuardian, Boolean owner, Boolean representative) { this.director = director; this.executive = executive; this.extraParams = extraParams; + this.legalGuardian = legalGuardian; this.owner = owner; this.representative = representative; } @@ -255,6 +264,8 @@ public static class Builder { private Map extraParams; + private Boolean legalGuardian; + private Boolean owner; private Boolean representative; @@ -262,7 +273,12 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountPersonsParams.Relationship build() { return new AccountPersonsParams.Relationship( - this.director, this.executive, this.extraParams, this.owner, this.representative); + this.director, + this.executive, + this.extraParams, + this.legalGuardian, + this.owner, + this.representative); } /** @@ -309,6 +325,15 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * A filter on the list of people returned based on whether these people are legal guardians + * of the account's representative. + */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } + /** * A filter on the list of people returned based on whether these people are owners of the * account's company. diff --git a/src/main/java/com/stripe/param/PersonCollectionCreateParams.java b/src/main/java/com/stripe/param/PersonCollectionCreateParams.java index 3e56363d98f..3ca7a931802 100644 --- a/src/main/java/com/stripe/param/PersonCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/PersonCollectionCreateParams.java @@ -13,6 +13,10 @@ @Getter public class PersonCollectionCreateParams extends ApiRequestParams { + /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + @SerializedName("additional_tos_acceptances") + AdditionalTosAcceptances additionalTosAcceptances; + /** The person's address. */ @SerializedName("address") Address address; @@ -161,6 +165,7 @@ public class PersonCollectionCreateParams extends ApiRequestParams { Verification verification; private PersonCollectionCreateParams( + AdditionalTosAcceptances additionalTosAcceptances, Address address, AddressKana addressKana, AddressKanji addressKanji, @@ -189,6 +194,7 @@ private PersonCollectionCreateParams( Relationship relationship, String ssnLast4, Verification verification) { + this.additionalTosAcceptances = additionalTosAcceptances; this.address = address; this.addressKana = addressKana; this.addressKanji = addressKanji; @@ -224,6 +230,8 @@ public static Builder builder() { } public static class Builder { + private AdditionalTosAcceptances additionalTosAcceptances; + private Address address; private AddressKana addressKana; @@ -283,6 +291,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonCollectionCreateParams build() { return new PersonCollectionCreateParams( + this.additionalTosAcceptances, this.address, this.addressKana, this.addressKanji, @@ -313,6 +322,13 @@ public PersonCollectionCreateParams build() { this.verification); } + /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + public Builder setAdditionalTosAcceptances( + PersonCollectionCreateParams.AdditionalTosAcceptances additionalTosAcceptances) { + this.additionalTosAcceptances = additionalTosAcceptances; + return this; + } + /** The person's address. */ public Builder setAddress(PersonCollectionCreateParams.Address address) { this.address = address; @@ -632,6 +648,197 @@ public Builder setVerification(PersonCollectionCreateParams.Verification verific } } + @Getter + public static class AdditionalTosAcceptances { + /** Details on the legal guardian's acceptance of the main Stripe service agreement. */ + @SerializedName("account") + Account account; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AdditionalTosAcceptances(Account account, Map extraParams) { + this.account = account; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Account account; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonCollectionCreateParams.AdditionalTosAcceptances build() { + return new PersonCollectionCreateParams.AdditionalTosAcceptances( + this.account, this.extraParams); + } + + /** Details on the legal guardian's acceptance of the main Stripe service agreement. */ + public Builder setAccount( + PersonCollectionCreateParams.AdditionalTosAcceptances.Account account) { + this.account = account; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * PersonCollectionCreateParams.AdditionalTosAcceptances#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link PersonCollectionCreateParams.AdditionalTosAcceptances#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + public static class Account { + /** + * The Unix timestamp marking when the account representative accepted the service agreement. + */ + @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 extraParams; + + /** The IP address from which the account representative accepted the service agreement. */ + @SerializedName("ip") + String ip; + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + @SerializedName("user_agent") + Object userAgent; + + private Account(Long date, Map extraParams, String ip, Object userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long date; + + private Map extraParams; + + private String ip; + + private Object userAgent; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonCollectionCreateParams.AdditionalTosAcceptances.Account build() { + return new PersonCollectionCreateParams.AdditionalTosAcceptances.Account( + this.date, this.extraParams, this.ip, this.userAgent); + } + + /** + * The Unix timestamp marking when the account representative accepted the service + * agreement. + */ + public Builder setDate(Long date) { + this.date = date; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PersonCollectionCreateParams.AdditionalTosAcceptances.Account#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PersonCollectionCreateParams.AdditionalTosAcceptances.Account#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The IP address from which the account representative accepted the service agreement. */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + public Builder setUserAgent(EmptyParam userAgent) { + this.userAgent = userAgent; + return this; + } + } + } + } + @Getter public static class Address { /** City, district, suburb, town, or village. */ @@ -1795,6 +2002,10 @@ public static class Relationship { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Whether the person is the legal guardian of the account's representative. */ + @SerializedName("legal_guardian") + Boolean legalGuardian; + /** Whether the person is an owner of the account’s legal entity. */ @SerializedName("owner") Boolean owner; @@ -1821,6 +2032,7 @@ private Relationship( Boolean director, Boolean executive, Map extraParams, + Boolean legalGuardian, Boolean owner, Object percentOwnership, Boolean representative, @@ -1828,6 +2040,7 @@ private Relationship( this.director = director; this.executive = executive; this.extraParams = extraParams; + this.legalGuardian = legalGuardian; this.owner = owner; this.percentOwnership = percentOwnership; this.representative = representative; @@ -1845,6 +2058,8 @@ public static class Builder { private Map extraParams; + private Boolean legalGuardian; + private Boolean owner; private Object percentOwnership; @@ -1859,6 +2074,7 @@ public PersonCollectionCreateParams.Relationship build() { this.director, this.executive, this.extraParams, + this.legalGuardian, this.owner, this.percentOwnership, this.representative, @@ -1911,6 +2127,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Whether the person is the legal guardian of the account's representative. */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } + /** Whether the person is an owner of the account’s legal entity. */ public Builder setOwner(Boolean owner) { this.owner = owner; diff --git a/src/main/java/com/stripe/param/PersonCollectionListParams.java b/src/main/java/com/stripe/param/PersonCollectionListParams.java index 80fc9723efe..96bf4194057 100644 --- a/src/main/java/com/stripe/param/PersonCollectionListParams.java +++ b/src/main/java/com/stripe/param/PersonCollectionListParams.java @@ -217,6 +217,13 @@ public static class Relationship { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * A filter on the list of people returned based on whether these people are legal guardians of + * the account's representative. + */ + @SerializedName("legal_guardian") + Boolean legalGuardian; + /** * A filter on the list of people returned based on whether these people are owners of the * account's company. @@ -235,11 +242,13 @@ private Relationship( Boolean director, Boolean executive, Map extraParams, + Boolean legalGuardian, Boolean owner, Boolean representative) { this.director = director; this.executive = executive; this.extraParams = extraParams; + this.legalGuardian = legalGuardian; this.owner = owner; this.representative = representative; } @@ -255,6 +264,8 @@ public static class Builder { private Map extraParams; + private Boolean legalGuardian; + private Boolean owner; private Boolean representative; @@ -262,7 +273,12 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonCollectionListParams.Relationship build() { return new PersonCollectionListParams.Relationship( - this.director, this.executive, this.extraParams, this.owner, this.representative); + this.director, + this.executive, + this.extraParams, + this.legalGuardian, + this.owner, + this.representative); } /** @@ -310,6 +326,15 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * A filter on the list of people returned based on whether these people are legal guardians + * of the account's representative. + */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } + /** * A filter on the list of people returned based on whether these people are owners of the * account's company. diff --git a/src/main/java/com/stripe/param/PersonCreateParams.java b/src/main/java/com/stripe/param/PersonCreateParams.java index 91f4e4173ef..acf332db002 100644 --- a/src/main/java/com/stripe/param/PersonCreateParams.java +++ b/src/main/java/com/stripe/param/PersonCreateParams.java @@ -13,6 +13,10 @@ @Getter public class PersonCreateParams extends ApiRequestParams { + /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + @SerializedName("additional_tos_acceptances") + AdditionalTosAcceptances additionalTosAcceptances; + /** The person's address. */ @SerializedName("address") Address address; @@ -161,6 +165,7 @@ public class PersonCreateParams extends ApiRequestParams { Verification verification; private PersonCreateParams( + AdditionalTosAcceptances additionalTosAcceptances, Address address, AddressKana addressKana, AddressKanji addressKanji, @@ -189,6 +194,7 @@ private PersonCreateParams( Relationship relationship, String ssnLast4, Verification verification) { + this.additionalTosAcceptances = additionalTosAcceptances; this.address = address; this.addressKana = addressKana; this.addressKanji = addressKanji; @@ -224,6 +230,8 @@ public static Builder builder() { } public static class Builder { + private AdditionalTosAcceptances additionalTosAcceptances; + private Address address; private AddressKana addressKana; @@ -283,6 +291,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonCreateParams build() { return new PersonCreateParams( + this.additionalTosAcceptances, this.address, this.addressKana, this.addressKanji, @@ -313,6 +322,13 @@ public PersonCreateParams build() { this.verification); } + /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + public Builder setAdditionalTosAcceptances( + PersonCreateParams.AdditionalTosAcceptances additionalTosAcceptances) { + this.additionalTosAcceptances = additionalTosAcceptances; + return this; + } + /** The person's address. */ public Builder setAddress(PersonCreateParams.Address address) { this.address = address; @@ -631,6 +647,192 @@ public Builder setVerification(PersonCreateParams.Verification verification) { } } + @Getter + public static class AdditionalTosAcceptances { + /** Details on the legal guardian's acceptance of the main Stripe service agreement. */ + @SerializedName("account") + Account account; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AdditionalTosAcceptances(Account account, Map extraParams) { + this.account = account; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Account account; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.AdditionalTosAcceptances build() { + return new PersonCreateParams.AdditionalTosAcceptances(this.account, this.extraParams); + } + + /** Details on the legal guardian's acceptance of the main Stripe service agreement. */ + public Builder setAccount(PersonCreateParams.AdditionalTosAcceptances.Account account) { + this.account = account; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * PersonCreateParams.AdditionalTosAcceptances#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link PersonCreateParams.AdditionalTosAcceptances#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + public static class Account { + /** + * The Unix timestamp marking when the account representative accepted the service agreement. + */ + @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 extraParams; + + /** The IP address from which the account representative accepted the service agreement. */ + @SerializedName("ip") + String ip; + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + @SerializedName("user_agent") + Object userAgent; + + private Account(Long date, Map extraParams, String ip, Object userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long date; + + private Map extraParams; + + private String ip; + + private Object userAgent; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonCreateParams.AdditionalTosAcceptances.Account build() { + return new PersonCreateParams.AdditionalTosAcceptances.Account( + this.date, this.extraParams, this.ip, this.userAgent); + } + + /** + * The Unix timestamp marking when the account representative accepted the service + * agreement. + */ + public Builder setDate(Long date) { + this.date = date; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PersonCreateParams.AdditionalTosAcceptances.Account#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PersonCreateParams.AdditionalTosAcceptances.Account#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The IP address from which the account representative accepted the service agreement. */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + public Builder setUserAgent(EmptyParam userAgent) { + this.userAgent = userAgent; + return this; + } + } + } + } + @Getter public static class Address { /** City, district, suburb, town, or village. */ @@ -1788,6 +1990,10 @@ public static class Relationship { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Whether the person is the legal guardian of the account's representative. */ + @SerializedName("legal_guardian") + Boolean legalGuardian; + /** Whether the person is an owner of the account’s legal entity. */ @SerializedName("owner") Boolean owner; @@ -1814,6 +2020,7 @@ private Relationship( Boolean director, Boolean executive, Map extraParams, + Boolean legalGuardian, Boolean owner, Object percentOwnership, Boolean representative, @@ -1821,6 +2028,7 @@ private Relationship( this.director = director; this.executive = executive; this.extraParams = extraParams; + this.legalGuardian = legalGuardian; this.owner = owner; this.percentOwnership = percentOwnership; this.representative = representative; @@ -1838,6 +2046,8 @@ public static class Builder { private Map extraParams; + private Boolean legalGuardian; + private Boolean owner; private Object percentOwnership; @@ -1852,6 +2062,7 @@ public PersonCreateParams.Relationship build() { this.director, this.executive, this.extraParams, + this.legalGuardian, this.owner, this.percentOwnership, this.representative, @@ -1903,6 +2114,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Whether the person is the legal guardian of the account's representative. */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } + /** Whether the person is an owner of the account’s legal entity. */ public Builder setOwner(Boolean owner) { this.owner = owner; diff --git a/src/main/java/com/stripe/param/PersonListParams.java b/src/main/java/com/stripe/param/PersonListParams.java index b91189e5adf..472adbb36be 100644 --- a/src/main/java/com/stripe/param/PersonListParams.java +++ b/src/main/java/com/stripe/param/PersonListParams.java @@ -217,6 +217,13 @@ public static class Relationship { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * A filter on the list of people returned based on whether these people are legal guardians of + * the account's representative. + */ + @SerializedName("legal_guardian") + Boolean legalGuardian; + /** * A filter on the list of people returned based on whether these people are owners of the * account's company. @@ -235,11 +242,13 @@ private Relationship( Boolean director, Boolean executive, Map extraParams, + Boolean legalGuardian, Boolean owner, Boolean representative) { this.director = director; this.executive = executive; this.extraParams = extraParams; + this.legalGuardian = legalGuardian; this.owner = owner; this.representative = representative; } @@ -255,6 +264,8 @@ public static class Builder { private Map extraParams; + private Boolean legalGuardian; + private Boolean owner; private Boolean representative; @@ -262,7 +273,12 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonListParams.Relationship build() { return new PersonListParams.Relationship( - this.director, this.executive, this.extraParams, this.owner, this.representative); + this.director, + this.executive, + this.extraParams, + this.legalGuardian, + this.owner, + this.representative); } /** @@ -309,6 +325,15 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * A filter on the list of people returned based on whether these people are legal guardians + * of the account's representative. + */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } + /** * A filter on the list of people returned based on whether these people are owners of the * account's company. diff --git a/src/main/java/com/stripe/param/PersonUpdateParams.java b/src/main/java/com/stripe/param/PersonUpdateParams.java index 33d4d55eff8..80e09112719 100644 --- a/src/main/java/com/stripe/param/PersonUpdateParams.java +++ b/src/main/java/com/stripe/param/PersonUpdateParams.java @@ -13,6 +13,10 @@ @Getter public class PersonUpdateParams extends ApiRequestParams { + /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + @SerializedName("additional_tos_acceptances") + AdditionalTosAcceptances additionalTosAcceptances; + /** The person's address. */ @SerializedName("address") Address address; @@ -161,6 +165,7 @@ public class PersonUpdateParams extends ApiRequestParams { Verification verification; private PersonUpdateParams( + AdditionalTosAcceptances additionalTosAcceptances, Address address, AddressKana addressKana, AddressKanji addressKanji, @@ -189,6 +194,7 @@ private PersonUpdateParams( Relationship relationship, Object ssnLast4, Verification verification) { + this.additionalTosAcceptances = additionalTosAcceptances; this.address = address; this.addressKana = addressKana; this.addressKanji = addressKanji; @@ -224,6 +230,8 @@ public static Builder builder() { } public static class Builder { + private AdditionalTosAcceptances additionalTosAcceptances; + private Address address; private AddressKana addressKana; @@ -283,6 +291,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonUpdateParams build() { return new PersonUpdateParams( + this.additionalTosAcceptances, this.address, this.addressKana, this.addressKanji, @@ -313,6 +322,13 @@ public PersonUpdateParams build() { this.verification); } + /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + public Builder setAdditionalTosAcceptances( + PersonUpdateParams.AdditionalTosAcceptances additionalTosAcceptances) { + this.additionalTosAcceptances = additionalTosAcceptances; + return this; + } + /** The person's address. */ public Builder setAddress(PersonUpdateParams.Address address) { this.address = address; @@ -752,6 +768,198 @@ public Builder setVerification(PersonUpdateParams.Verification verification) { } } + @Getter + public static class AdditionalTosAcceptances { + /** Details on the legal guardian's acceptance of the main Stripe service agreement. */ + @SerializedName("account") + Account account; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AdditionalTosAcceptances(Account account, Map extraParams) { + this.account = account; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Account account; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.AdditionalTosAcceptances build() { + return new PersonUpdateParams.AdditionalTosAcceptances(this.account, this.extraParams); + } + + /** Details on the legal guardian's acceptance of the main Stripe service agreement. */ + public Builder setAccount(PersonUpdateParams.AdditionalTosAcceptances.Account account) { + this.account = account; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * PersonUpdateParams.AdditionalTosAcceptances#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link PersonUpdateParams.AdditionalTosAcceptances#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + public static class Account { + /** + * The Unix timestamp marking when the account representative accepted the service agreement. + */ + @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 extraParams; + + /** The IP address from which the account representative accepted the service agreement. */ + @SerializedName("ip") + Object ip; + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + @SerializedName("user_agent") + Object userAgent; + + private Account(Long date, Map extraParams, Object ip, Object userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long date; + + private Map extraParams; + + private Object ip; + + private Object userAgent; + + /** Finalize and obtain parameter instance from this builder. */ + public PersonUpdateParams.AdditionalTosAcceptances.Account build() { + return new PersonUpdateParams.AdditionalTosAcceptances.Account( + this.date, this.extraParams, this.ip, this.userAgent); + } + + /** + * The Unix timestamp marking when the account representative accepted the service + * agreement. + */ + public Builder setDate(Long date) { + this.date = date; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PersonUpdateParams.AdditionalTosAcceptances.Account#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PersonUpdateParams.AdditionalTosAcceptances.Account#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The IP address from which the account representative accepted the service agreement. */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } + + /** The IP address from which the account representative accepted the service agreement. */ + public Builder setIp(EmptyParam ip) { + this.ip = ip; + return this; + } + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + public Builder setUserAgent(EmptyParam userAgent) { + this.userAgent = userAgent; + return this; + } + } + } + } + @Getter public static class Address { /** City, district, suburb, town, or village. */ @@ -2077,6 +2285,10 @@ public static class Relationship { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Whether the person is the legal guardian of the account's representative. */ + @SerializedName("legal_guardian") + Boolean legalGuardian; + /** Whether the person is an owner of the account’s legal entity. */ @SerializedName("owner") Boolean owner; @@ -2103,6 +2315,7 @@ private Relationship( Boolean director, Boolean executive, Map extraParams, + Boolean legalGuardian, Boolean owner, Object percentOwnership, Boolean representative, @@ -2110,6 +2323,7 @@ private Relationship( this.director = director; this.executive = executive; this.extraParams = extraParams; + this.legalGuardian = legalGuardian; this.owner = owner; this.percentOwnership = percentOwnership; this.representative = representative; @@ -2127,6 +2341,8 @@ public static class Builder { private Map extraParams; + private Boolean legalGuardian; + private Boolean owner; private Object percentOwnership; @@ -2141,6 +2357,7 @@ public PersonUpdateParams.Relationship build() { this.director, this.executive, this.extraParams, + this.legalGuardian, this.owner, this.percentOwnership, this.representative, @@ -2192,6 +2409,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Whether the person is the legal guardian of the account's representative. */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } + /** Whether the person is an owner of the account’s legal entity. */ public Builder setOwner(Boolean owner) { this.owner = owner; diff --git a/src/main/java/com/stripe/param/TokenCreateParams.java b/src/main/java/com/stripe/param/TokenCreateParams.java index 7ce56e91f40..5aafb7045b9 100644 --- a/src/main/java/com/stripe/param/TokenCreateParams.java +++ b/src/main/java/com/stripe/param/TokenCreateParams.java @@ -3861,6 +3861,10 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Person { + /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + @SerializedName("additional_tos_acceptances") + AdditionalTosAcceptances additionalTosAcceptances; + /** The person's address. */ @SerializedName("address") Address address; @@ -3998,6 +4002,7 @@ public static class Person { Verification verification; private Person( + AdditionalTosAcceptances additionalTosAcceptances, Address address, AddressKana addressKana, AddressKanji addressKanji, @@ -4024,6 +4029,7 @@ private Person( Relationship relationship, String ssnLast4, Verification verification) { + this.additionalTosAcceptances = additionalTosAcceptances; this.address = address; this.addressKana = addressKana; this.addressKanji = addressKanji; @@ -4057,6 +4063,8 @@ public static Builder builder() { } public static class Builder { + private AdditionalTosAcceptances additionalTosAcceptances; + private Address address; private AddressKana addressKana; @@ -4112,6 +4120,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public TokenCreateParams.Person build() { return new TokenCreateParams.Person( + this.additionalTosAcceptances, this.address, this.addressKana, this.addressKanji, @@ -4140,6 +4149,13 @@ public TokenCreateParams.Person build() { this.verification); } + /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + public Builder setAdditionalTosAcceptances( + TokenCreateParams.Person.AdditionalTosAcceptances additionalTosAcceptances) { + this.additionalTosAcceptances = additionalTosAcceptances; + return this; + } + /** The person's address. */ public Builder setAddress(TokenCreateParams.Person.Address address) { this.address = address; @@ -4425,6 +4441,199 @@ public Builder setVerification(TokenCreateParams.Person.Verification verificatio } } + @Getter + public static class AdditionalTosAcceptances { + /** Details on the legal guardian's acceptance of the main Stripe service agreement. */ + @SerializedName("account") + Account account; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AdditionalTosAcceptances(Account account, Map extraParams) { + this.account = account; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Account account; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public TokenCreateParams.Person.AdditionalTosAcceptances build() { + return new TokenCreateParams.Person.AdditionalTosAcceptances( + this.account, this.extraParams); + } + + /** Details on the legal guardian's acceptance of the main Stripe service agreement. */ + public Builder setAccount( + TokenCreateParams.Person.AdditionalTosAcceptances.Account account) { + this.account = account; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link TokenCreateParams.Person.AdditionalTosAcceptances#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link TokenCreateParams.Person.AdditionalTosAcceptances#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + public static class Account { + /** + * The Unix timestamp marking when the account representative accepted the service + * agreement. + */ + @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 extraParams; + + /** The IP address from which the account representative accepted the service agreement. */ + @SerializedName("ip") + String ip; + + /** + * The user agent of the browser from which the account representative accepted the service + * agreement. + */ + @SerializedName("user_agent") + Object userAgent; + + private Account(Long date, Map extraParams, String ip, Object userAgent) { + this.date = date; + this.extraParams = extraParams; + this.ip = ip; + this.userAgent = userAgent; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long date; + + private Map extraParams; + + private String ip; + + private Object userAgent; + + /** Finalize and obtain parameter instance from this builder. */ + public TokenCreateParams.Person.AdditionalTosAcceptances.Account build() { + return new TokenCreateParams.Person.AdditionalTosAcceptances.Account( + this.date, this.extraParams, this.ip, this.userAgent); + } + + /** + * The Unix timestamp marking when the account representative accepted the service + * agreement. + */ + public Builder setDate(Long date) { + this.date = date; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link TokenCreateParams.Person.AdditionalTosAcceptances.Account#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link TokenCreateParams.Person.AdditionalTosAcceptances.Account#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * The IP address from which the account representative accepted the service agreement. + */ + public Builder setIp(String ip) { + this.ip = ip; + return this; + } + + /** + * The user agent of the browser from which the account representative accepted the + * service agreement. + */ + public Builder setUserAgent(String userAgent) { + this.userAgent = userAgent; + return this; + } + + /** + * The user agent of the browser from which the account representative accepted the + * service agreement. + */ + public Builder setUserAgent(EmptyParam userAgent) { + this.userAgent = userAgent; + return this; + } + } + } + } + @Getter public static class Address { /** City, district, suburb, town, or village. */ @@ -5600,6 +5809,10 @@ public static class Relationship { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Whether the person is the legal guardian of the account's representative. */ + @SerializedName("legal_guardian") + Boolean legalGuardian; + /** Whether the person is an owner of the account’s legal entity. */ @SerializedName("owner") Boolean owner; @@ -5626,6 +5839,7 @@ private Relationship( Boolean director, Boolean executive, Map extraParams, + Boolean legalGuardian, Boolean owner, Object percentOwnership, Boolean representative, @@ -5633,6 +5847,7 @@ private Relationship( this.director = director; this.executive = executive; this.extraParams = extraParams; + this.legalGuardian = legalGuardian; this.owner = owner; this.percentOwnership = percentOwnership; this.representative = representative; @@ -5650,6 +5865,8 @@ public static class Builder { private Map extraParams; + private Boolean legalGuardian; + private Boolean owner; private Object percentOwnership; @@ -5664,6 +5881,7 @@ public TokenCreateParams.Person.Relationship build() { this.director, this.executive, this.extraParams, + this.legalGuardian, this.owner, this.percentOwnership, this.representative, @@ -5717,6 +5935,12 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Whether the person is the legal guardian of the account's representative. */ + public Builder setLegalGuardian(Boolean legalGuardian) { + this.legalGuardian = legalGuardian; + return this; + } + /** Whether the person is an owner of the account’s legal entity. */ public Builder setOwner(Boolean owner) { this.owner = owner; diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index a6688b74978..9c25627f6bf 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -577,7 +577,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam { VERSION_2022_11_15("2022-11-15"), @SerializedName("2023-08-16") - VERSION_2023_08_16("2023-08-16"); + VERSION_2023_08_16("2023-08-16"), + + @SerializedName("2023-10-16") + VERSION_2023_10_16("2023-10-16"); @Getter(onMethod_ = {@Override}) private final String value;