Skip to content

Commit

Permalink
New codes for ConnectAccountRequirementsErrorCode (#250)
Browse files Browse the repository at this point in the history
* New codes for ConnectAccountRequirementsErrorCode

* Changed indentation to spaces
  • Loading branch information
Maxim-Inv authored Apr 14, 2024
1 parent 1726b4b commit 65a5687
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Sources/StripeKit/Connect/Accounts/Account.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 65a5687

Please sign in to comment.