Skip to content

Update generated code #2029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 24, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1680
v1719
68 changes: 62 additions & 6 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ import (
"github.com/stripe/stripe-go/v82/form"
)

// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
type AccountBusinessProfileMinorityOwnedBusinessDesignation string

// List of values that AccountBusinessProfileMinorityOwnedBusinessDesignation can take
const (
AccountBusinessProfileMinorityOwnedBusinessDesignationLgbtqiOwnedBusiness AccountBusinessProfileMinorityOwnedBusinessDesignation = "lgbtqi_owned_business"
AccountBusinessProfileMinorityOwnedBusinessDesignationMinorityOwnedBusiness AccountBusinessProfileMinorityOwnedBusinessDesignation = "minority_owned_business"
AccountBusinessProfileMinorityOwnedBusinessDesignationNoneOfTheseApply AccountBusinessProfileMinorityOwnedBusinessDesignation = "none_of_these_apply"
AccountBusinessProfileMinorityOwnedBusinessDesignationPreferNotToAnswer AccountBusinessProfileMinorityOwnedBusinessDesignation = "prefer_not_to_answer"
AccountBusinessProfileMinorityOwnedBusinessDesignationWomenOwnedBusiness AccountBusinessProfileMinorityOwnedBusinessDesignation = "women_owned_business"
)

// The business type.
type AccountBusinessType string

Expand Down Expand Up @@ -329,6 +341,8 @@ type AccountBusinessProfileParams struct {
EstimatedWorkerCount *int64 `form:"estimated_worker_count"`
// [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
MCC *string `form:"mcc"`
// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
MinorityOwnedBusinessDesignation []*string `form:"minority_owned_business_designation"`
// An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
MonthlyEstimatedRevenue *AccountBusinessProfileMonthlyEstimatedRevenueParams `form:"monthly_estimated_revenue"`
// The customer-facing business name.
Expand Down Expand Up @@ -869,6 +883,14 @@ type AccountCompanyOwnershipDeclarationParams struct {
// The user agent of the browser from which the beneficial owner attestation was made.
UserAgent *string `form:"user_agent"`
}
type AccountCompanyRegistrationDateParams struct {
// The day of registration, between 1 and 31.
Day *int64 `form:"day"`
// The month of registration, between 1 and 12.
Month *int64 `form:"month"`
// The four-digit year of registration.
Year *int64 `form:"year"`
}

// A document verifying the business.
type AccountCompanyVerificationDocumentParams struct {
Expand Down Expand Up @@ -917,7 +939,8 @@ type AccountCompanyParams struct {
// Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
OwnersProvided *bool `form:"owners_provided"`
// The company's phone number (used for verification).
Phone *string `form:"phone"`
Phone *string `form:"phone"`
RegistrationDate *AccountCompanyRegistrationDateParams `form:"registration_date"`
// The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
RegistrationNumber *string `form:"registration_number"`
// The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
Expand Down Expand Up @@ -1301,6 +1324,8 @@ type AccountUpdateBusinessProfileParams struct {
EstimatedWorkerCount *int64 `form:"estimated_worker_count"`
// [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
MCC *string `form:"mcc"`
// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
MinorityOwnedBusinessDesignation []*string `form:"minority_owned_business_designation"`
// An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
MonthlyEstimatedRevenue *AccountUpdateBusinessProfileMonthlyEstimatedRevenueParams `form:"monthly_estimated_revenue"`
// The customer-facing business name.
Expand Down Expand Up @@ -1841,6 +1866,14 @@ type AccountUpdateCompanyOwnershipDeclarationParams struct {
// The user agent of the browser from which the beneficial owner attestation was made.
UserAgent *string `form:"user_agent"`
}
type AccountUpdateCompanyRegistrationDateParams struct {
// The day of registration, between 1 and 31.
Day *int64 `form:"day"`
// The month of registration, between 1 and 12.
Month *int64 `form:"month"`
// The four-digit year of registration.
Year *int64 `form:"year"`
}

// A document verifying the business.
type AccountUpdateCompanyVerificationDocumentParams struct {
Expand Down Expand Up @@ -1887,7 +1920,8 @@ type AccountUpdateCompanyParams struct {
// Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
OwnersProvided *bool `form:"owners_provided"`
// The company's phone number (used for verification).
Phone *string `form:"phone"`
Phone *string `form:"phone"`
RegistrationDate *AccountUpdateCompanyRegistrationDateParams `form:"registration_date"`
// The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
RegistrationNumber *string `form:"registration_number"`
// The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
Expand Down Expand Up @@ -2262,6 +2296,8 @@ type AccountCreateBusinessProfileParams struct {
EstimatedWorkerCount *int64 `form:"estimated_worker_count"`
// [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
MCC *string `form:"mcc"`
// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
MinorityOwnedBusinessDesignation []*string `form:"minority_owned_business_designation"`
// An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
MonthlyEstimatedRevenue *AccountCreateBusinessProfileMonthlyEstimatedRevenueParams `form:"monthly_estimated_revenue"`
// The customer-facing business name.
Expand Down Expand Up @@ -2802,6 +2838,14 @@ type AccountCreateCompanyOwnershipDeclarationParams struct {
// The user agent of the browser from which the beneficial owner attestation was made.
UserAgent *string `form:"user_agent"`
}
type AccountCreateCompanyRegistrationDateParams struct {
// The day of registration, between 1 and 31.
Day *int64 `form:"day"`
// The month of registration, between 1 and 12.
Month *int64 `form:"month"`
// The four-digit year of registration.
Year *int64 `form:"year"`
}

// A document verifying the business.
type AccountCreateCompanyVerificationDocumentParams struct {
Expand Down Expand Up @@ -2849,7 +2893,8 @@ type AccountCreateCompanyParams struct {
// Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
OwnersProvided *bool `form:"owners_provided"`
// The company's phone number (used for verification).
Phone *string `form:"phone"`
Phone *string `form:"phone"`
RegistrationDate *AccountCreateCompanyRegistrationDateParams `form:"registration_date"`
// The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
RegistrationNumber *string `form:"registration_number"`
// The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
Expand Down Expand Up @@ -3248,8 +3293,10 @@ type AccountBusinessProfile struct {
// An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
EstimatedWorkerCount int64 `json:"estimated_worker_count"`
// [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
MCC string `json:"mcc"`
MonthlyEstimatedRevenue *AccountBusinessProfileMonthlyEstimatedRevenue `json:"monthly_estimated_revenue"`
MCC string `json:"mcc"`
// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
MinorityOwnedBusinessDesignation []AccountBusinessProfileMinorityOwnedBusinessDesignation `json:"minority_owned_business_designation"`
MonthlyEstimatedRevenue *AccountBusinessProfileMonthlyEstimatedRevenue `json:"monthly_estimated_revenue"`
// The customer-facing business name.
Name string `json:"name"`
// Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
Expand Down Expand Up @@ -3437,6 +3484,14 @@ type AccountCompanyOwnershipDeclaration struct {
// The user-agent string from the browser where the beneficial owner attestation was made.
UserAgent string `json:"user_agent"`
}
type AccountCompanyRegistrationDate struct {
// The day of registration, between 1 and 31.
Day int64 `json:"day"`
// The month of registration, between 1 and 12.
Month int64 `json:"month"`
// The four-digit year of registration.
Year int64 `json:"year"`
}
type AccountCompanyVerificationDocument struct {
// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
Back *File `json:"back"`
Expand Down Expand Up @@ -3481,7 +3536,8 @@ type AccountCompany struct {
// Whether the company's owners have been provided. This Boolean will be `true` if you've manually indicated that all owners are provided via [the `owners_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-owners_provided), or if Stripe determined that sufficient owners were provided. Stripe determines ownership requirements using both the number of owners provided and their total percent ownership (calculated by adding the `percent_ownership` of each owner together).
OwnersProvided bool `json:"owners_provided"`
// The company's phone number (used for verification).
Phone string `json:"phone"`
Phone string `json:"phone"`
RegistrationDate *AccountCompanyRegistrationDate `json:"registration_date"`
// The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
Structure AccountCompanyStructure `json:"structure"`
// Whether the company's business ID number was provided.
Expand Down
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 = "2025-03-31.basil"
apiVersion string = "2025-04-30.basil"
)
2 changes: 2 additions & 0 deletions bankaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const (
BankAccountFutureRequirementsErrorCodeVerificationFailedResidentialAddress BankAccountFutureRequirementsErrorCode = "verification_failed_residential_address"
BankAccountFutureRequirementsErrorCodeVerificationFailedTaxIDMatch BankAccountFutureRequirementsErrorCode = "verification_failed_tax_id_match"
BankAccountFutureRequirementsErrorCodeVerificationFailedTaxIDNotIssued BankAccountFutureRequirementsErrorCode = "verification_failed_tax_id_not_issued"
BankAccountFutureRequirementsErrorCodeVerificationLegalEntityStructureMismatch BankAccountFutureRequirementsErrorCode = "verification_legal_entity_structure_mismatch"
BankAccountFutureRequirementsErrorCodeVerificationMissingDirectors BankAccountFutureRequirementsErrorCode = "verification_missing_directors"
BankAccountFutureRequirementsErrorCodeVerificationMissingExecutives BankAccountFutureRequirementsErrorCode = "verification_missing_executives"
BankAccountFutureRequirementsErrorCodeVerificationMissingOwners BankAccountFutureRequirementsErrorCode = "verification_missing_owners"
Expand Down Expand Up @@ -223,6 +224,7 @@ const (
BankAccountRequirementsErrorCodeVerificationFailedResidentialAddress BankAccountRequirementsErrorCode = "verification_failed_residential_address"
BankAccountRequirementsErrorCodeVerificationFailedTaxIDMatch BankAccountRequirementsErrorCode = "verification_failed_tax_id_match"
BankAccountRequirementsErrorCodeVerificationFailedTaxIDNotIssued BankAccountRequirementsErrorCode = "verification_failed_tax_id_not_issued"
BankAccountRequirementsErrorCodeVerificationLegalEntityStructureMismatch BankAccountRequirementsErrorCode = "verification_legal_entity_structure_mismatch"
BankAccountRequirementsErrorCodeVerificationMissingDirectors BankAccountRequirementsErrorCode = "verification_missing_directors"
BankAccountRequirementsErrorCodeVerificationMissingExecutives BankAccountRequirementsErrorCode = "verification_missing_executives"
BankAccountRequirementsErrorCodeVerificationMissingOwners BankAccountRequirementsErrorCode = "verification_missing_owners"
Expand Down
2 changes: 2 additions & 0 deletions charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,8 @@ type ChargeBillingDetails struct {
Name string `json:"name"`
// Billing phone number (including extension).
Phone string `json:"phone"`
// Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
TaxID string `json:"tax_id"`
}

// Information on fraud assessments for the charge.
Expand Down
Loading
Loading