Skip to content

Commit

Permalink
Merge pull request #1950 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 Nov 14, 2024
2 parents 9dc872e + 80603b0 commit 6ca321d
Show file tree
Hide file tree
Showing 25 changed files with 165 additions and 49 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1333
v1356
2 changes: 1 addition & 1 deletion account.go
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ type AccountFutureRequirementsError struct {
type AccountFutureRequirements struct {
// Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
Alternatives []*AccountFutureRequirementsAlternative `json:"alternatives"`
// Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
// Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
CurrentDeadline int64 `json:"current_deadline"`
// Fields that need to be collected to keep the account enabled. If not collected by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash.
CurrentlyDue []string `json:"currently_due"`
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 = "2024-10-28.acacia"
apiVersion string = "2024-11-20.acacia"
)
2 changes: 1 addition & 1 deletion capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type CapabilityFutureRequirementsError struct {
type CapabilityFutureRequirements struct {
// Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
Alternatives []*CapabilityFutureRequirementsAlternative `json:"alternatives"`
// Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
// Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
CurrentDeadline int64 `json:"current_deadline"`
// Fields that need to be collected to keep the capability enabled. If not collected by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash.
CurrentlyDue []string `json:"currently_due"`
Expand Down
9 changes: 5 additions & 4 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1178,10 +1178,11 @@ type CheckoutSessionSubmitType string

// List of values that CheckoutSessionSubmitType can take
const (
CheckoutSessionSubmitTypeAuto CheckoutSessionSubmitType = "auto"
CheckoutSessionSubmitTypeBook CheckoutSessionSubmitType = "book"
CheckoutSessionSubmitTypeDonate CheckoutSessionSubmitType = "donate"
CheckoutSessionSubmitTypePay CheckoutSessionSubmitType = "pay"
CheckoutSessionSubmitTypeAuto CheckoutSessionSubmitType = "auto"
CheckoutSessionSubmitTypeBook CheckoutSessionSubmitType = "book"
CheckoutSessionSubmitTypeDonate CheckoutSessionSubmitType = "donate"
CheckoutSessionSubmitTypePay CheckoutSessionSubmitType = "pay"
CheckoutSessionSubmitTypeSubscribe CheckoutSessionSubmitType = "subscribe"
)

// Indicates whether a tax ID is required on the payment page
Expand Down
1 change: 1 addition & 0 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const (
FilePurposeDisputeEvidence FilePurpose = "dispute_evidence"
FilePurposeDocumentProviderIdentityDocument FilePurpose = "document_provider_identity_document"
FilePurposeFinanceReportRun FilePurpose = "finance_report_run"
FilePurposeFinancialAccountStatement FilePurpose = "financial_account_statement"
FilePurposeIdentityDocument FilePurpose = "identity_document"
FilePurposeIdentityDocumentDownloadable FilePurpose = "identity_document_downloadable"
FilePurposeIssuingRegulatoryReporting FilePurpose = "issuing_regulatory_reporting"
Expand Down
2 changes: 1 addition & 1 deletion filelink.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type FileLinkParams struct {
// A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately.
ExpiresAt *int64 `form:"expires_at"`
ExpiresAtNow *bool `form:"-"` // See custom AppendTo
// The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
// The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
File *string `form:"file"`
// 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"`
Expand Down
16 changes: 13 additions & 3 deletions fundinginstructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ type FundingInstructionsBankTransferFinancialAddressABA struct {

// Iban Records contain E.U. bank account details per the SEPA format.
type FundingInstructionsBankTransferFinancialAddressIBAN struct {
AccountHolderAddress *Address `json:"account_holder_address"`
// The name of the person or business that owns the bank account
AccountHolderName string `json:"account_holder_name"`
AccountHolderName string `json:"account_holder_name"`
BankAddress *Address `json:"bank_address"`
// The BIC/SWIFT code of the account.
BIC string `json:"bic"`
// Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Expand All @@ -81,16 +83,22 @@ type FundingInstructionsBankTransferFinancialAddressIBAN struct {

// Sort Code Records contain U.K. bank account details per the sort code format.
type FundingInstructionsBankTransferFinancialAddressSortCode struct {
AccountHolderAddress *Address `json:"account_holder_address"`
// The name of the person or business that owns the bank account
AccountHolderName string `json:"account_holder_name"`
// The account number
AccountNumber string `json:"account_number"`
AccountNumber string `json:"account_number"`
BankAddress *Address `json:"bank_address"`
// The six-digit sort code
SortCode string `json:"sort_code"`
}

// SPEI Records contain Mexico bank account details per the SPEI format.
type FundingInstructionsBankTransferFinancialAddressSpei struct {
AccountHolderAddress *Address `json:"account_holder_address"`
// The account holder name
AccountHolderName string `json:"account_holder_name"`
BankAddress *Address `json:"bank_address"`
// The three-digit bank code
BankCode string `json:"bank_code"`
// The short banking institution name
Expand All @@ -117,12 +125,14 @@ type FundingInstructionsBankTransferFinancialAddressSwift struct {

// Zengin Records contain Japan bank account details per the Zengin format.
type FundingInstructionsBankTransferFinancialAddressZengin struct {
AccountHolderAddress *Address `json:"account_holder_address"`
// The account holder name
AccountHolderName string `json:"account_holder_name"`
// The account number
AccountNumber string `json:"account_number"`
// The bank account type. In Japan, this can only be `futsu` or `toza`.
AccountType string `json:"account_type"`
AccountType string `json:"account_type"`
BankAddress *Address `json:"bank_address"`
// The bank code of the account
BankCode string `json:"bank_code"`
// The bank name of the account
Expand Down
16 changes: 8 additions & 8 deletions invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ func (p *InvoiceUpcomingScheduleDetailsPhaseItemParams) AddMetadata(key string,
p.Metadata[key] = value
}

// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
type InvoiceUpcomingScheduleDetailsPhasePauseCollectionParams struct {
// The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
Behavior *string `form:"behavior"`
Expand Down Expand Up @@ -1461,7 +1461,7 @@ type InvoiceUpcomingScheduleDetailsPhaseParams struct {
Metadata map[string]string `form:"metadata"`
// The account on behalf of which to charge, for each of the associated subscription's invoices.
OnBehalfOf *string `form:"on_behalf_of"`
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
PauseCollection *InvoiceUpcomingScheduleDetailsPhasePauseCollectionParams `form:"pause_collection"`
// Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase.
ProrationBehavior *string `form:"proration_behavior"`
Expand Down Expand Up @@ -2518,7 +2518,7 @@ func (p *InvoiceUpcomingLinesScheduleDetailsPhaseItemParams) AddMetadata(key str
p.Metadata[key] = value
}

// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
type InvoiceUpcomingLinesScheduleDetailsPhasePauseCollectionParams struct {
// The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
Behavior *string `form:"behavior"`
Expand Down Expand Up @@ -2583,7 +2583,7 @@ type InvoiceUpcomingLinesScheduleDetailsPhaseParams struct {
Metadata map[string]string `form:"metadata"`
// The account on behalf of which to charge, for each of the associated subscription's invoices.
OnBehalfOf *string `form:"on_behalf_of"`
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
PauseCollection *InvoiceUpcomingLinesScheduleDetailsPhasePauseCollectionParams `form:"pause_collection"`
// Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase.
ProrationBehavior *string `form:"proration_behavior"`
Expand Down Expand Up @@ -4246,7 +4246,7 @@ func (p *InvoiceCreatePreviewScheduleDetailsPhaseItemParams) AddMetadata(key str
p.Metadata[key] = value
}

// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
type InvoiceCreatePreviewScheduleDetailsPhasePauseCollectionParams struct {
// The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
Behavior *string `form:"behavior"`
Expand Down Expand Up @@ -4311,7 +4311,7 @@ type InvoiceCreatePreviewScheduleDetailsPhaseParams struct {
Metadata map[string]string `form:"metadata"`
// The account on behalf of which to charge, for each of the associated subscription's invoices.
OnBehalfOf *string `form:"on_behalf_of"`
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
PauseCollection *InvoiceCreatePreviewScheduleDetailsPhasePauseCollectionParams `form:"pause_collection"`
// Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase.
ProrationBehavior *string `form:"proration_behavior"`
Expand Down Expand Up @@ -4830,7 +4830,7 @@ type InvoiceStatusTransitions struct {
VoidedAt int64 `json:"voided_at"`
}

// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
type InvoiceSubscriptionDetailsPauseCollection struct {
// The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
Behavior InvoiceSubscriptionDetailsPauseCollectionBehavior `json:"behavior"`
Expand All @@ -4843,7 +4843,7 @@ type InvoiceSubscriptionDetails struct {
// Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
// *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
Metadata map[string]string `json:"metadata"`
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
PauseCollection *InvoiceSubscriptionDetailsPauseCollection `json:"pause_collection"`
}

Expand Down
Loading

0 comments on commit 6ca321d

Please sign in to comment.