Skip to content

Commit

Permalink
Merge pull request #1893 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Jul 25, 2024
2 parents 0b3cbb4 + 32fe400 commit e3a741a
Show file tree
Hide file tree
Showing 26 changed files with 5,071 additions and 4,549 deletions.
9,022 changes: 4,522 additions & 4,500 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1136
v1157
36 changes: 18 additions & 18 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ type AccountParams struct {
Individual *PersonParams `form:"individual"`
// Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
Metadata map[string]string `form:"metadata"`
// A hash to configure risk controls on the account. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
// A hash to configure risk controls on the account. Please see [this page for more details](https://stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
RiskControls *AccountRiskControlsParams `form:"risk_controls"`
// Options for customizing how the account functions within Stripe.
Settings *AccountSettingsParams `form:"settings"`
Expand All @@ -268,7 +268,7 @@ func (p *AccountParams) AddMetadata(key string, value string) {

// The applicant's gross annual revenue for its preceding fiscal year.
type AccountBusinessProfileAnnualRevenueParams struct {
// A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
// A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
Amount *int64 `form:"amount"`
// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Currency *string `form:"currency"`
Expand All @@ -278,7 +278,7 @@ type AccountBusinessProfileAnnualRevenueParams struct {

// An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
type AccountBusinessProfileMonthlyEstimatedRevenueParams struct {
// A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
// A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
Amount *int64 `form:"amount"`
// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Currency *string `form:"currency"`
Expand All @@ -290,7 +290,7 @@ type AccountBusinessProfileParams struct {
AnnualRevenue *AccountBusinessProfileAnnualRevenueParams `form:"annual_revenue"`
// An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
EstimatedWorkerCount *int64 `form:"estimated_worker_count"`
// [The merchant category code for the account](https://docs.stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
// [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"`
// An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
MonthlyEstimatedRevenue *AccountBusinessProfileMonthlyEstimatedRevenueParams `form:"monthly_estimated_revenue"`
Expand Down Expand Up @@ -789,9 +789,9 @@ type AccountCompanyParams struct {
AddressKana *AccountCompanyAddressKanaParams `form:"address_kana"`
// The Kanji variation of the company's primary address (Japan only).
AddressKanji *AccountCompanyAddressKanjiParams `form:"address_kanji"`
// Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
// Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
DirectorsProvided *bool `form:"directors_provided"`
// Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
// Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
ExecutivesProvided *bool `form:"executives_provided"`
// The export license ID number of the company, also referred as Import Export Code (India only).
ExportLicenseID *string `form:"export_license_id"`
Expand All @@ -807,13 +807,13 @@ type AccountCompanyParams struct {
OwnershipDeclaration *AccountCompanyOwnershipDeclarationParams `form:"ownership_declaration"`
// This parameter can only be used on Token creation.
OwnershipDeclarationShownAndSigned *bool `form:"ownership_declaration_shown_and_signed"`
// 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://docs.stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
// 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"`
// 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://docs.stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
// 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.
Structure *string `form:"structure"`
// The business ID number of the company, as appropriate for the company's country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
TaxID *string `form:"tax_id"`
Expand Down Expand Up @@ -933,7 +933,7 @@ type AccountRiskControlsPayoutsParams struct {
PauseRequested *bool `form:"pause_requested"`
}

// A hash to configure risk controls on the account. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
// A hash to configure risk controls on the account. Please see [this page for more details](https://stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
type AccountRiskControlsParams struct {
// Represents the risk control status of charges. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
Charges *AccountRiskControlsChargesParams `form:"charges"`
Expand Down Expand Up @@ -967,7 +967,7 @@ type AccountSettingsCapitalParams struct {
PayoutDestinationSelector map[string][]*string `form:"payout_destination_selector"`
}

// Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://docs.stripe.com/issuing/connect/tos_acceptance).
// Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/issuing/connect/tos_acceptance).
type AccountSettingsCardIssuingTOSAcceptanceParams struct {
// The Unix timestamp marking when the account representative accepted the service agreement.
Date *int64 `form:"date"`
Expand All @@ -979,7 +979,7 @@ type AccountSettingsCardIssuingTOSAcceptanceParams struct {

// Settings specific to the account's use of the Card Issuing product.
type AccountSettingsCardIssuingParams struct {
// Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://docs.stripe.com/issuing/connect/tos_acceptance).
// Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/issuing/connect/tos_acceptance).
TOSAcceptance *AccountSettingsCardIssuingTOSAcceptanceParams `form:"tos_acceptance"`
}

Expand Down Expand Up @@ -1019,9 +1019,9 @@ type AccountSettingsPaymentsParams struct {
StatementDescriptorKanji *string `form:"statement_descriptor_kanji"`
}

// Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation.
// Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://stripe.com/connect/bank-transfers#payout-information) documentation.
type AccountSettingsPayoutsScheduleParams struct {
// The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](https://docs.stripe.com/connect/manage-payout-schedule).
// The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](https://stripe.com/connect/manage-payout-schedule).
DelayDays *int64 `form:"delay_days"`
DelayDaysMinimum *bool `form:"-"` // See custom AppendTo
// How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
Expand All @@ -1041,9 +1041,9 @@ func (p *AccountSettingsPayoutsScheduleParams) AppendTo(body *form.Values, keyPa

// Settings specific to the account's payouts.
type AccountSettingsPayoutsParams struct {
// A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
// A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://stripe.com/connect/account-balances).
DebitNegativeBalances *bool `form:"debit_negative_balances"`
// Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation.
// Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://stripe.com/connect/bank-transfers#payout-information) documentation.
Schedule *AccountSettingsPayoutsScheduleParams `form:"schedule"`
// The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
StatementDescriptor *string `form:"statement_descriptor"`
Expand Down Expand Up @@ -1191,15 +1191,15 @@ func (p *AccountRejectParams) AddExpand(f string) {

// The applicant's gross annual revenue for its preceding fiscal year.
type AccountBusinessProfileAnnualRevenue struct {
// A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
// A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
Amount int64 `json:"amount"`
// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Currency Currency `json:"currency"`
// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
FiscalYearEnd string `json:"fiscal_year_end"`
}
type AccountBusinessProfileMonthlyEstimatedRevenue struct {
// A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
// A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
Amount int64 `json:"amount"`
// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Currency Currency `json:"currency"`
Expand All @@ -1211,7 +1211,7 @@ type AccountBusinessProfile struct {
AnnualRevenue *AccountBusinessProfileAnnualRevenue `json:"annual_revenue"`
// 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/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
// [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"`
// The customer-facing business name.
Expand Down
23 changes: 13 additions & 10 deletions accountnotice.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ type AccountNoticeReason string

// List of values that AccountNoticeReason can take
const (
AccountNoticeReasonIssuingAccountClosedForInactivity AccountNoticeReason = "issuing.account_closed_for_inactivity"
AccountNoticeReasonIssuingAccountClosedForTermsOfServiceViolation AccountNoticeReason = "issuing.account_closed_for_terms_of_service_violation"
AccountNoticeReasonIssuingApplicationRejectedForFailureToVerify AccountNoticeReason = "issuing.application_rejected_for_failure_to_verify"
AccountNoticeReasonIssuingCreditApplicationRejected AccountNoticeReason = "issuing.credit_application_rejected"
AccountNoticeReasonIssuingCreditIncreaseApplicationRejected AccountNoticeReason = "issuing.credit_increase_application_rejected"
AccountNoticeReasonIssuingCreditLimitDecreased AccountNoticeReason = "issuing.credit_limit_decreased"
AccountNoticeReasonIssuingCreditLineClosed AccountNoticeReason = "issuing.credit_line_closed"
AccountNoticeReasonIssuingDisputeLost AccountNoticeReason = "issuing.dispute_lost"
AccountNoticeReasonIssuingDisputeSubmitted AccountNoticeReason = "issuing.dispute_submitted"
AccountNoticeReasonIssuingDisputeWon AccountNoticeReason = "issuing.dispute_won"
AccountNoticeReasonIssuingAccountClosedForInactivity AccountNoticeReason = "issuing.account_closed_for_inactivity"
AccountNoticeReasonIssuingAccountClosedForNotProvidingBusinessModelClarification AccountNoticeReason = "issuing.account_closed_for_not_providing_business_model_clarification"
AccountNoticeReasonIssuingAccountClosedForNotProvidingURLClarification AccountNoticeReason = "issuing.account_closed_for_not_providing_url_clarification"
AccountNoticeReasonIssuingAccountClosedForNotProvidingUseCaseClarification AccountNoticeReason = "issuing.account_closed_for_not_providing_use_case_clarification"
AccountNoticeReasonIssuingAccountClosedForTermsOfServiceViolation AccountNoticeReason = "issuing.account_closed_for_terms_of_service_violation"
AccountNoticeReasonIssuingApplicationRejectedForFailureToVerify AccountNoticeReason = "issuing.application_rejected_for_failure_to_verify"
AccountNoticeReasonIssuingCreditApplicationRejected AccountNoticeReason = "issuing.credit_application_rejected"
AccountNoticeReasonIssuingCreditIncreaseApplicationRejected AccountNoticeReason = "issuing.credit_increase_application_rejected"
AccountNoticeReasonIssuingCreditLimitDecreased AccountNoticeReason = "issuing.credit_limit_decreased"
AccountNoticeReasonIssuingCreditLineClosed AccountNoticeReason = "issuing.credit_line_closed"
AccountNoticeReasonIssuingDisputeLost AccountNoticeReason = "issuing.dispute_lost"
AccountNoticeReasonIssuingDisputeSubmitted AccountNoticeReason = "issuing.dispute_submitted"
AccountNoticeReasonIssuingDisputeWon AccountNoticeReason = "issuing.dispute_won"
)

// Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
Expand Down
14 changes: 14 additions & 0 deletions accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,18 @@ type AccountSessionComponentsPayoutsList struct {
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsPayoutsListFeatures `json:"features"`
}
type AccountSessionComponentsTaxRegistrationsFeatures struct{}
type AccountSessionComponentsTaxRegistrations struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsTaxRegistrationsFeatures `json:"features"`
}
type AccountSessionComponentsTaxSettingsFeatures struct{}
type AccountSessionComponentsTaxSettings struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsTaxSettingsFeatures `json:"features"`
}
type AccountSessionComponents struct {
AccountManagement *AccountSessionComponentsAccountManagement `json:"account_management"`
AccountOnboarding *AccountSessionComponentsAccountOnboarding `json:"account_onboarding"`
Expand All @@ -425,6 +437,8 @@ type AccountSessionComponents struct {
Payments *AccountSessionComponentsPayments `json:"payments"`
Payouts *AccountSessionComponentsPayouts `json:"payouts"`
PayoutsList *AccountSessionComponentsPayoutsList `json:"payouts_list"`
TaxRegistrations *AccountSessionComponentsTaxRegistrations `json:"tax_registrations"`
TaxSettings *AccountSessionComponentsTaxSettings `json:"tax_settings"`
}

// An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components.
Expand Down
2 changes: 1 addition & 1 deletion api_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ package stripe

const (
apiVersion string = "2024-06-20"
previewVersion string = "2024-05-23.preview-v2"
previewVersion string = "2024-07-16.preview-v2"
)
Loading

0 comments on commit e3a741a

Please sign in to comment.