Skip to content

Commit

Permalink
Merge pull request #1765 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 17, 2023
2 parents 1301008 + 149f295 commit bd86691
Show file tree
Hide file tree
Showing 12 changed files with 1,195 additions and 13 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 76.5.0 - 2023-11-16
* [#1768](https://github.com/stripe/stripe-go/pull/1768) Update generated code
* Add support for `Status` on `CheckoutSessionListParams`
* [#1767](https://github.com/stripe/stripe-go/pull/1767) Update generated code
* Add support for `BACSDebitPayments` on `AccountSettingsParams`
* Add support for `ServiceUserNumber` on `AccountSettingsBacsDebitPayments`
* Add support for `CaptureBefore` on `ChargePaymentMethodDetailsCard`
* Add support for `Paypal` on `CheckoutSessionPaymentMethodOptions`
* Add support for `TaxAmounts` on `CreditNoteLinesParams`, `CreditNotePreviewLinesLinesParams`, and `CreditNotePreviewLinesParams`
* Add support for `NetworkData` on `IssuingTransaction`
* [#1764](https://github.com/stripe/stripe-go/pull/1764) Fix TestDo_RetryOnTimeout flakiness

## 76.5.0-beta.1 - 2023-11-10
* [#1763](https://github.com/stripe/stripe-go/pull/1763) Update generated code for beta
* Add support for new value `quote.reestimate_failed` on enum `EventType`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v655
v669
14 changes: 10 additions & 4 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,12 @@ type AccountDocumentsParams struct {
ProofOfRegistration *AccountDocumentsProofOfRegistrationParams `form:"proof_of_registration"`
}

// Settings specific to Bacs Direct Debit payments.
type AccountSettingsBACSDebitPaymentsParams struct {
// The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
DisplayName *string `form:"display_name"`
}

// Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
type AccountSettingsBrandingParams struct {
// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
Expand Down Expand Up @@ -820,12 +826,10 @@ type AccountSettingsTreasuryParams struct {
// Details on the account's acceptance of the Stripe Treasury Services Agreement.
TOSAcceptance *AccountSettingsTreasuryTOSAcceptanceParams `form:"tos_acceptance"`
}
type AccountSettingsBACSDebitPaymentsParams struct {
DisplayName *string `form:"display_name"`
}

// Options for customizing how the account functions within Stripe.
type AccountSettingsParams struct {
// Settings specific to Bacs Direct Debit payments.
BACSDebitPayments *AccountSettingsBACSDebitPaymentsParams `form:"bacs_debit_payments"`
// Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
Branding *AccountSettingsBrandingParams `form:"branding"`
Expand Down Expand Up @@ -1230,8 +1234,10 @@ type AccountRequirements struct {
PendingVerification []string `json:"pending_verification"`
}
type AccountSettingsBACSDebitPayments struct {
// The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this will appear on the mandate, and as the statement descriptor.
// The Bacs Direct Debit display name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. The fee appears 5 business days after requesting Bacs. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
DisplayName string `json:"display_name"`
// The Bacs Direct Debit Service user number for this account. For payments made with Bacs Direct Debit, this number is a unique identifier of the account with our banking partners.
ServiceUserNumber string `json:"service_user_number"`
}
type AccountSettingsBranding struct {
// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
Expand Down
26 changes: 26 additions & 0 deletions accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@ type AccountSessionComponentsAccountOnboardingParams struct {
Features *AccountSessionComponentsAccountOnboardingFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsIssuingCardFeaturesParams struct{}

// Configuration for the issuing card component.
type AccountSessionComponentsIssuingCardParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsIssuingCardFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsIssuingCardsListFeaturesParams struct{}

// Configuration for the issuing cards list component.
type AccountSessionComponentsIssuingCardsListParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsIssuingCardsListFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsPaymentDetailsFeaturesParams struct {
// Whether to allow capturing and cancelling payment intents. This is `true` by default.
Expand Down Expand Up @@ -68,6 +90,10 @@ type AccountSessionComponentsPayoutsParams struct {
type AccountSessionComponentsParams struct {
// Configuration for the account onboarding embedded component.
AccountOnboarding *AccountSessionComponentsAccountOnboardingParams `form:"account_onboarding"`
// Configuration for the issuing card component.
IssuingCard *AccountSessionComponentsIssuingCardParams `form:"issuing_card"`
// Configuration for the issuing cards list component.
IssuingCardsList *AccountSessionComponentsIssuingCardsListParams `form:"issuing_cards_list"`
// Configuration for the payment details embedded component.
PaymentDetails *AccountSessionComponentsPaymentDetailsParams `form:"payment_details"`
// Configuration for the payments embedded component.
Expand Down
Loading

0 comments on commit bd86691

Please sign in to comment.