From 4aaca5134f9a70e185db9e41ae680add5f937018 Mon Sep 17 00:00:00 2001 From: Maxim Anisimov Date: Tue, 5 Mar 2024 12:44:39 +0200 Subject: [PATCH 1/2] New codes for ConnectAccountRequirementsErrorCode --- .../StripeKit/Connect/Accounts/Account.swift | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Sources/StripeKit/Connect/Accounts/Account.swift b/Sources/StripeKit/Connect/Accounts/Account.swift index 1e3c35cf..16760044 100644 --- a/Sources/StripeKit/Connect/Accounts/Account.swift +++ b/Sources/StripeKit/Connect/Accounts/Account.swift @@ -670,6 +670,38 @@ public enum ConnectAccountRequirementsErrorCode: String, Codable { case verificationRequiresAdditionalMemorandumOfAssociations = "verification_requires_additional_memorandum_of_associations" /// Underage. Age must be at least 18. case invalidDobAgeUnder18 = "invalid_dob_age_under_18" + /// Your product description must be at least 10 characters. + case invalidProductDescriptionLength = "invalid_product_description_length" + /// Your product description must be different from your URL. + case invalidProductDescriptionUrlMatch = "invalid_product_description_url_match" + /// Your statement descriptor must be between 5 and 22 characters. + case invalidStatementDescriptorLength = "invalid_statement_descriptor_length" + /// Your statement descriptor must be similar to your business name, legal entity name or URL. + case invalidStatementDescriptorBusinessMismatch = "invalid_statement_descriptor_business_mismatch" + /// Generic or well-known statement descriptors aren't supported. + case invalidStatementDescriptorDenylisted = "invalid_statement_descriptor_denylisted" + /// The statement descriptor prefix must be similar to the full statement descriptor. + case invalidStatementDescriptorPrefixMismatch = "invalid_statement_descriptor_prefix_mismatch" + /// Generic or well-known statement descriptor prefixes aren't supported. + case invalidStatementDescriptorPrefixDenylisted = "invalid_statement_descriptor_prefix_denylisted" + /// Generic or well-known business names aren't supported. + case invalidCompanyNameDenylisted = "invalid_company_name_denylisted" + /// Generic or well-known business names aren't supported. + case invalidBusinessProfileNameDenylisted = "invalid_business_profile_name_denylisted" + /// Business profile names must consist of recognizable words. + case invalidBusinessProfileName = "invalid_business_profile_name" + /// Person must be at least 13 years old. + case invalidDobAgeUnderMinimum = "invalid_dob_age_under_minimum" + /// Date of birth must be within in the last 120 years. + case invalidDobAgeOverMaximum = "invalid_dob_age_over_maximum" + /// The phone number doesn't seem to be valid. Make sure it's formatted correctly. + case invalidPhoneNumber = "invalid_phone_number" + /// Tax IDs must be a unique set of 9 numbers without dashes or other special characters. + case invalidTaxIdFormat = "invalid_tax_id_format" + /// Format as https://example.com + case invalidUrlFormat = "invalid_url_format" + /// Generic business URLs aren't supported. + case invalidUrlDenylisted = "invalid_url_denylisted" } public struct ConnectAccountFutureRequirements: Codable { From 8c15c68cca894f1ae2b275262b4269a194b6b836 Mon Sep 17 00:00:00 2001 From: Maxim Anisimov Date: Tue, 5 Mar 2024 15:11:00 +0200 Subject: [PATCH 2/2] Changed indentation to spaces --- .../StripeKit/Connect/Accounts/Account.swift | 64 +++++++++---------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/Sources/StripeKit/Connect/Accounts/Account.swift b/Sources/StripeKit/Connect/Accounts/Account.swift index 16760044..aaedbe43 100644 --- a/Sources/StripeKit/Connect/Accounts/Account.swift +++ b/Sources/StripeKit/Connect/Accounts/Account.swift @@ -670,38 +670,38 @@ public enum ConnectAccountRequirementsErrorCode: String, Codable { case verificationRequiresAdditionalMemorandumOfAssociations = "verification_requires_additional_memorandum_of_associations" /// Underage. Age must be at least 18. case invalidDobAgeUnder18 = "invalid_dob_age_under_18" - /// Your product description must be at least 10 characters. - case invalidProductDescriptionLength = "invalid_product_description_length" - /// Your product description must be different from your URL. - case invalidProductDescriptionUrlMatch = "invalid_product_description_url_match" - /// Your statement descriptor must be between 5 and 22 characters. - case invalidStatementDescriptorLength = "invalid_statement_descriptor_length" - /// Your statement descriptor must be similar to your business name, legal entity name or URL. - case invalidStatementDescriptorBusinessMismatch = "invalid_statement_descriptor_business_mismatch" - /// Generic or well-known statement descriptors aren't supported. - case invalidStatementDescriptorDenylisted = "invalid_statement_descriptor_denylisted" - /// The statement descriptor prefix must be similar to the full statement descriptor. - case invalidStatementDescriptorPrefixMismatch = "invalid_statement_descriptor_prefix_mismatch" - /// Generic or well-known statement descriptor prefixes aren't supported. - case invalidStatementDescriptorPrefixDenylisted = "invalid_statement_descriptor_prefix_denylisted" - /// Generic or well-known business names aren't supported. - case invalidCompanyNameDenylisted = "invalid_company_name_denylisted" - /// Generic or well-known business names aren't supported. - case invalidBusinessProfileNameDenylisted = "invalid_business_profile_name_denylisted" - /// Business profile names must consist of recognizable words. - case invalidBusinessProfileName = "invalid_business_profile_name" - /// Person must be at least 13 years old. - case invalidDobAgeUnderMinimum = "invalid_dob_age_under_minimum" - /// Date of birth must be within in the last 120 years. - case invalidDobAgeOverMaximum = "invalid_dob_age_over_maximum" - /// The phone number doesn't seem to be valid. Make sure it's formatted correctly. - case invalidPhoneNumber = "invalid_phone_number" - /// Tax IDs must be a unique set of 9 numbers without dashes or other special characters. - case invalidTaxIdFormat = "invalid_tax_id_format" - /// Format as https://example.com - case invalidUrlFormat = "invalid_url_format" - /// Generic business URLs aren't supported. - case invalidUrlDenylisted = "invalid_url_denylisted" + /// Your product description must be at least 10 characters. + case invalidProductDescriptionLength = "invalid_product_description_length" + /// Your product description must be different from your URL. + case invalidProductDescriptionUrlMatch = "invalid_product_description_url_match" + /// Your statement descriptor must be between 5 and 22 characters. + case invalidStatementDescriptorLength = "invalid_statement_descriptor_length" + /// Your statement descriptor must be similar to your business name, legal entity name or URL. + case invalidStatementDescriptorBusinessMismatch = "invalid_statement_descriptor_business_mismatch" + /// Generic or well-known statement descriptors aren't supported. + case invalidStatementDescriptorDenylisted = "invalid_statement_descriptor_denylisted" + /// The statement descriptor prefix must be similar to the full statement descriptor. + case invalidStatementDescriptorPrefixMismatch = "invalid_statement_descriptor_prefix_mismatch" + /// Generic or well-known statement descriptor prefixes aren't supported. + case invalidStatementDescriptorPrefixDenylisted = "invalid_statement_descriptor_prefix_denylisted" + /// Generic or well-known business names aren't supported. + case invalidCompanyNameDenylisted = "invalid_company_name_denylisted" + /// Generic or well-known business names aren't supported. + case invalidBusinessProfileNameDenylisted = "invalid_business_profile_name_denylisted" + /// Business profile names must consist of recognizable words. + case invalidBusinessProfileName = "invalid_business_profile_name" + /// Person must be at least 13 years old. + case invalidDobAgeUnderMinimum = "invalid_dob_age_under_minimum" + /// Date of birth must be within in the last 120 years. + case invalidDobAgeOverMaximum = "invalid_dob_age_over_maximum" + /// The phone number doesn't seem to be valid. Make sure it's formatted correctly. + case invalidPhoneNumber = "invalid_phone_number" + /// Tax IDs must be a unique set of 9 numbers without dashes or other special characters. + case invalidTaxIdFormat = "invalid_tax_id_format" + /// Format as https://example.com + case invalidUrlFormat = "invalid_url_format" + /// Generic business URLs aren't supported. + case invalidUrlDenylisted = "invalid_url_denylisted" } public struct ConnectAccountFutureRequirements: Codable {