Skip to content

Commit

Permalink
Update generated code (#1753)
Browse files Browse the repository at this point in the history
Update generated code for v603

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Oct 16, 2023
1 parent e1bc0b0 commit 76e0667
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v602
v603
2 changes: 1 addition & 1 deletion api_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
package stripe

const (
apiVersion string = "2023-08-16"
apiVersion string = "2023-10-16"
)
66 changes: 66 additions & 0 deletions bankaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
41 changes: 39 additions & 2 deletions person.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 76e0667

Please sign in to comment.