diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d42b919187..bbe0dc1c93 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/api_version.go b/api_version.go index dd00cf01cd..84b0ae67a5 100644 --- a/api_version.go +++ b/api_version.go @@ -7,5 +7,5 @@ package stripe const ( - apiVersion string = "2023-08-16" + apiVersion string = "2023-10-16" ) diff --git a/bankaccount.go b/bankaccount.go index e4ac47e5e8..021c9ab9a4 100644 --- a/bankaccount.go +++ b/bankaccount.go @@ -36,10 +36,43 @@ type BankAccountFutureRequirementsErrorCode string // List of values that BankAccountFutureRequirementsErrorCode can take const ( BankAccountFutureRequirementsErrorCodeInvalidAddressCityStatePostalCode BankAccountFutureRequirementsErrorCode = "invalid_address_city_state_postal_code" + BankAccountFutureRequirementsErrorCodeInvalidAddressHighwayContractBox BankAccountFutureRequirementsErrorCode = "invalid_address_highway_contract_box" + BankAccountFutureRequirementsErrorCodeInvalidAddressPrivateMailbox BankAccountFutureRequirementsErrorCode = "invalid_address_private_mailbox" + BankAccountFutureRequirementsErrorCodeInvalidBusinessProfileName BankAccountFutureRequirementsErrorCode = "invalid_business_profile_name" + BankAccountFutureRequirementsErrorCodeInvalidBusinessProfileNameDenylisted BankAccountFutureRequirementsErrorCode = "invalid_business_profile_name_denylisted" + BankAccountFutureRequirementsErrorCodeInvalidCompanyNameDenylisted BankAccountFutureRequirementsErrorCode = "invalid_company_name_denylisted" + BankAccountFutureRequirementsErrorCodeInvalidDOBAgeOverMaximum BankAccountFutureRequirementsErrorCode = "invalid_dob_age_over_maximum" BankAccountFutureRequirementsErrorCodeInvalidDOBAgeUnder18 BankAccountFutureRequirementsErrorCode = "invalid_dob_age_under_18" + BankAccountFutureRequirementsErrorCodeInvalidProductDescriptionLength BankAccountFutureRequirementsErrorCode = "invalid_product_description_length" + BankAccountFutureRequirementsErrorCodeInvalidProductDescriptionURLMatch BankAccountFutureRequirementsErrorCode = "invalid_product_description_url_match" BankAccountFutureRequirementsErrorCodeInvalidRepresentativeCountry BankAccountFutureRequirementsErrorCode = "invalid_representative_country" + BankAccountFutureRequirementsErrorCodeInvalidStatementDescriptorBusinessMismatch BankAccountFutureRequirementsErrorCode = "invalid_statement_descriptor_business_mismatch" + BankAccountFutureRequirementsErrorCodeInvalidStatementDescriptorDenylisted BankAccountFutureRequirementsErrorCode = "invalid_statement_descriptor_denylisted" + BankAccountFutureRequirementsErrorCodeInvalidStatementDescriptorLength BankAccountFutureRequirementsErrorCode = "invalid_statement_descriptor_length" + BankAccountFutureRequirementsErrorCodeInvalidStatementDescriptorPrefixDenylisted BankAccountFutureRequirementsErrorCode = "invalid_statement_descriptor_prefix_denylisted" + BankAccountFutureRequirementsErrorCodeInvalidStatementDescriptorPrefixMismatch BankAccountFutureRequirementsErrorCode = "invalid_statement_descriptor_prefix_mismatch" BankAccountFutureRequirementsErrorCodeInvalidStreetAddress BankAccountFutureRequirementsErrorCode = "invalid_street_address" + BankAccountFutureRequirementsErrorCodeInvalidTaxID BankAccountFutureRequirementsErrorCode = "invalid_tax_id" + BankAccountFutureRequirementsErrorCodeInvalidTaxIDFormat BankAccountFutureRequirementsErrorCode = "invalid_tax_id_format" BankAccountFutureRequirementsErrorCodeInvalidTOSAcceptance BankAccountFutureRequirementsErrorCode = "invalid_tos_acceptance" + BankAccountFutureRequirementsErrorCodeInvalidURLDenylisted BankAccountFutureRequirementsErrorCode = "invalid_url_denylisted" + BankAccountFutureRequirementsErrorCodeInvalidURLFormat BankAccountFutureRequirementsErrorCode = "invalid_url_format" + BankAccountFutureRequirementsErrorCodeInvalidURLLength BankAccountFutureRequirementsErrorCode = "invalid_url_length" + BankAccountFutureRequirementsErrorCodeInvalidURLWebPresenceDetected BankAccountFutureRequirementsErrorCode = "invalid_url_web_presence_detected" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteBusinessInformationMismatch BankAccountFutureRequirementsErrorCode = "invalid_url_website_business_information_mismatch" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteEmpty BankAccountFutureRequirementsErrorCode = "invalid_url_website_empty" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteInaccessible BankAccountFutureRequirementsErrorCode = "invalid_url_website_inaccessible" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteInaccessibleGeoblocked BankAccountFutureRequirementsErrorCode = "invalid_url_website_inaccessible_geoblocked" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteInaccessiblePasswordProtected BankAccountFutureRequirementsErrorCode = "invalid_url_website_inaccessible_password_protected" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteIncomplete BankAccountFutureRequirementsErrorCode = "invalid_url_website_incomplete" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteIncompleteCancellationPolicy BankAccountFutureRequirementsErrorCode = "invalid_url_website_incomplete_cancellation_policy" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteIncompleteCustomerServiceDetails BankAccountFutureRequirementsErrorCode = "invalid_url_website_incomplete_customer_service_details" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteIncompleteLegalRestrictions BankAccountFutureRequirementsErrorCode = "invalid_url_website_incomplete_legal_restrictions" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteIncompleteRefundPolicy BankAccountFutureRequirementsErrorCode = "invalid_url_website_incomplete_refund_policy" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteIncompleteReturnPolicy BankAccountFutureRequirementsErrorCode = "invalid_url_website_incomplete_return_policy" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteIncompleteTermsAndConditions BankAccountFutureRequirementsErrorCode = "invalid_url_website_incomplete_terms_and_conditions" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteIncompleteUnderConstruction BankAccountFutureRequirementsErrorCode = "invalid_url_website_incomplete_under_construction" + BankAccountFutureRequirementsErrorCodeInvalidURLWebsiteOther BankAccountFutureRequirementsErrorCode = "invalid_url_website_other" BankAccountFutureRequirementsErrorCodeInvalidValueOther BankAccountFutureRequirementsErrorCode = "invalid_value_other" BankAccountFutureRequirementsErrorCodeVerificationDirectorsMismatch BankAccountFutureRequirementsErrorCode = "verification_directors_mismatch" BankAccountFutureRequirementsErrorCodeVerificationDocumentAddressMismatch BankAccountFutureRequirementsErrorCode = "verification_document_address_mismatch" @@ -96,10 +129,43 @@ type BankAccountRequirementsErrorCode string // List of values that BankAccountRequirementsErrorCode can take const ( BankAccountRequirementsErrorCodeInvalidAddressCityStatePostalCode BankAccountRequirementsErrorCode = "invalid_address_city_state_postal_code" + BankAccountRequirementsErrorCodeInvalidAddressHighwayContractBox BankAccountRequirementsErrorCode = "invalid_address_highway_contract_box" + BankAccountRequirementsErrorCodeInvalidAddressPrivateMailbox BankAccountRequirementsErrorCode = "invalid_address_private_mailbox" + BankAccountRequirementsErrorCodeInvalidBusinessProfileName BankAccountRequirementsErrorCode = "invalid_business_profile_name" + BankAccountRequirementsErrorCodeInvalidBusinessProfileNameDenylisted BankAccountRequirementsErrorCode = "invalid_business_profile_name_denylisted" + BankAccountRequirementsErrorCodeInvalidCompanyNameDenylisted BankAccountRequirementsErrorCode = "invalid_company_name_denylisted" + BankAccountRequirementsErrorCodeInvalidDOBAgeOverMaximum BankAccountRequirementsErrorCode = "invalid_dob_age_over_maximum" BankAccountRequirementsErrorCodeInvalidDOBAgeUnder18 BankAccountRequirementsErrorCode = "invalid_dob_age_under_18" + BankAccountRequirementsErrorCodeInvalidProductDescriptionLength BankAccountRequirementsErrorCode = "invalid_product_description_length" + BankAccountRequirementsErrorCodeInvalidProductDescriptionURLMatch BankAccountRequirementsErrorCode = "invalid_product_description_url_match" BankAccountRequirementsErrorCodeInvalidRepresentativeCountry BankAccountRequirementsErrorCode = "invalid_representative_country" + BankAccountRequirementsErrorCodeInvalidStatementDescriptorBusinessMismatch BankAccountRequirementsErrorCode = "invalid_statement_descriptor_business_mismatch" + BankAccountRequirementsErrorCodeInvalidStatementDescriptorDenylisted BankAccountRequirementsErrorCode = "invalid_statement_descriptor_denylisted" + BankAccountRequirementsErrorCodeInvalidStatementDescriptorLength BankAccountRequirementsErrorCode = "invalid_statement_descriptor_length" + BankAccountRequirementsErrorCodeInvalidStatementDescriptorPrefixDenylisted BankAccountRequirementsErrorCode = "invalid_statement_descriptor_prefix_denylisted" + BankAccountRequirementsErrorCodeInvalidStatementDescriptorPrefixMismatch BankAccountRequirementsErrorCode = "invalid_statement_descriptor_prefix_mismatch" BankAccountRequirementsErrorCodeInvalidStreetAddress BankAccountRequirementsErrorCode = "invalid_street_address" + BankAccountRequirementsErrorCodeInvalidTaxID BankAccountRequirementsErrorCode = "invalid_tax_id" + BankAccountRequirementsErrorCodeInvalidTaxIDFormat BankAccountRequirementsErrorCode = "invalid_tax_id_format" BankAccountRequirementsErrorCodeInvalidTOSAcceptance BankAccountRequirementsErrorCode = "invalid_tos_acceptance" + BankAccountRequirementsErrorCodeInvalidURLDenylisted BankAccountRequirementsErrorCode = "invalid_url_denylisted" + BankAccountRequirementsErrorCodeInvalidURLFormat BankAccountRequirementsErrorCode = "invalid_url_format" + BankAccountRequirementsErrorCodeInvalidURLLength BankAccountRequirementsErrorCode = "invalid_url_length" + BankAccountRequirementsErrorCodeInvalidURLWebPresenceDetected BankAccountRequirementsErrorCode = "invalid_url_web_presence_detected" + BankAccountRequirementsErrorCodeInvalidURLWebsiteBusinessInformationMismatch BankAccountRequirementsErrorCode = "invalid_url_website_business_information_mismatch" + BankAccountRequirementsErrorCodeInvalidURLWebsiteEmpty BankAccountRequirementsErrorCode = "invalid_url_website_empty" + BankAccountRequirementsErrorCodeInvalidURLWebsiteInaccessible BankAccountRequirementsErrorCode = "invalid_url_website_inaccessible" + BankAccountRequirementsErrorCodeInvalidURLWebsiteInaccessibleGeoblocked BankAccountRequirementsErrorCode = "invalid_url_website_inaccessible_geoblocked" + BankAccountRequirementsErrorCodeInvalidURLWebsiteInaccessiblePasswordProtected BankAccountRequirementsErrorCode = "invalid_url_website_inaccessible_password_protected" + BankAccountRequirementsErrorCodeInvalidURLWebsiteIncomplete BankAccountRequirementsErrorCode = "invalid_url_website_incomplete" + BankAccountRequirementsErrorCodeInvalidURLWebsiteIncompleteCancellationPolicy BankAccountRequirementsErrorCode = "invalid_url_website_incomplete_cancellation_policy" + BankAccountRequirementsErrorCodeInvalidURLWebsiteIncompleteCustomerServiceDetails BankAccountRequirementsErrorCode = "invalid_url_website_incomplete_customer_service_details" + BankAccountRequirementsErrorCodeInvalidURLWebsiteIncompleteLegalRestrictions BankAccountRequirementsErrorCode = "invalid_url_website_incomplete_legal_restrictions" + BankAccountRequirementsErrorCodeInvalidURLWebsiteIncompleteRefundPolicy BankAccountRequirementsErrorCode = "invalid_url_website_incomplete_refund_policy" + BankAccountRequirementsErrorCodeInvalidURLWebsiteIncompleteReturnPolicy BankAccountRequirementsErrorCode = "invalid_url_website_incomplete_return_policy" + BankAccountRequirementsErrorCodeInvalidURLWebsiteIncompleteTermsAndConditions BankAccountRequirementsErrorCode = "invalid_url_website_incomplete_terms_and_conditions" + BankAccountRequirementsErrorCodeInvalidURLWebsiteIncompleteUnderConstruction BankAccountRequirementsErrorCode = "invalid_url_website_incomplete_under_construction" + BankAccountRequirementsErrorCodeInvalidURLWebsiteOther BankAccountRequirementsErrorCode = "invalid_url_website_other" BankAccountRequirementsErrorCodeInvalidValueOther BankAccountRequirementsErrorCode = "invalid_value_other" BankAccountRequirementsErrorCodeVerificationDirectorsMismatch BankAccountRequirementsErrorCode = "verification_directors_mismatch" BankAccountRequirementsErrorCodeVerificationDocumentAddressMismatch BankAccountRequirementsErrorCode = "verification_document_address_mismatch" diff --git a/person.go b/person.go index 8b2dc21632..2085b691ae 100644 --- a/person.go +++ b/person.go @@ -74,6 +74,8 @@ type PersonListRelationshipParams struct { Director *bool `form:"director"` // A filter on the list of people returned based on whether these people are executives of the account's company. Executive *bool `form:"executive"` + // A filter on the list of people returned based on whether these people are legal guardians of the account's representative. + LegalGuardian *bool `form:"legal_guardian"` // A filter on the list of people returned based on whether these people are owners of the account's company. Owner *bool `form:"owner"` // A filter on the list of people returned based on whether these people are the representative of the account's company. @@ -95,6 +97,22 @@ func (p *PersonListParams) AddExpand(f string) { p.Expand = append(p.Expand, &f) } +// Details on the legal guardian's acceptance of the main Stripe service agreement. +type PersonAdditionalTOSAcceptancesAccountParams struct { + // The Unix timestamp marking when the account representative accepted the service agreement. + Date *int64 `form:"date"` + // The IP address from which the account representative accepted the service agreement. + IP *string `form:"ip"` + // The user agent of the browser from which the account representative accepted the service agreement. + UserAgent *string `form:"user_agent"` +} + +// Details on the legal guardian's acceptance of the required Stripe agreements. +type PersonAdditionalTOSAcceptancesParams struct { + // Details on the legal guardian's acceptance of the main Stripe service agreement. + Account *PersonAdditionalTOSAcceptancesAccountParams `form:"account"` +} + // The Kana variation of the person's address (Japan only). type PersonAddressKanaParams struct { // City or ward. @@ -175,6 +193,8 @@ type PersonRelationshipParams struct { Director *bool `form:"director"` // Whether the person has significant responsibility to control, manage, or direct the organization. Executive *bool `form:"executive"` + // Whether the person is the legal guardian of the account's representative. + LegalGuardian *bool `form:"legal_guardian"` // Whether the person is an owner of the account's legal entity. Owner *bool `form:"owner"` // The percent owned by the person of the account's legal entity. @@ -205,6 +225,8 @@ type PersonVerificationParams struct { type PersonParams struct { Params `form:"*"` Account *string `form:"-"` // Included in URL + // Details on the legal guardian's acceptance of the required Stripe agreements. + AdditionalTOSAcceptances *PersonAdditionalTOSAcceptancesParams `form:"additional_tos_acceptances"` // The person's address. Address *AddressParams `form:"address"` // The Kana variation of the person's address (Japan only). @@ -275,6 +297,18 @@ func (p *PersonParams) AddMetadata(key string, value string) { p.Metadata[key] = value } +type PersonAdditionalTOSAcceptancesAccount struct { + // The Unix timestamp marking when the legal guardian accepted the service agreement. + Date int64 `json:"date"` + // The IP address from which the legal guardian accepted the service agreement. + IP string `json:"ip"` + // The user agent of the browser from which the legal guardian accepted the service agreement. + UserAgent string `json:"user_agent"` +} +type PersonAdditionalTOSAcceptances struct { + Account *PersonAdditionalTOSAcceptancesAccount `json:"account"` +} + // The Kana variation of the person's address (Japan only). type PersonAddressKana struct { // City/Ward. @@ -357,6 +391,8 @@ type PersonRelationship struct { Director bool `json:"director"` // Whether the person has significant responsibility to control, manage, or direct the organization. Executive bool `json:"executive"` + // Whether the person is the legal guardian of the account's representative. + LegalGuardian bool `json:"legal_guardian"` // Whether the person is an owner of the account's legal entity. Owner bool `json:"owner"` // The percent owned by the person of the account's legal entity. @@ -423,8 +459,9 @@ type PersonVerification struct { type Person struct { APIResource // The account the person is associated with. - Account string `json:"account"` - Address *Address `json:"address"` + Account string `json:"account"` + AdditionalTOSAcceptances *PersonAdditionalTOSAcceptances `json:"additional_tos_acceptances"` + Address *Address `json:"address"` // The Kana variation of the person's address (Japan only). AddressKana *PersonAddressKana `json:"address_kana"` // The Kanji variation of the person's address (Japan only).