Skip to content

Commit

Permalink
Merge pull request #1776 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 Dec 8, 2023
2 parents 9d2c825 + aea3816 commit 75e0380
Show file tree
Hide file tree
Showing 14 changed files with 321 additions and 111 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
# Changelog

## 76.8.0 - 2023-12-07
* [#1775](https://github.com/stripe/stripe-go/pull/1775) Update generated code
* Add support for `PaymentDetails`, `Payments`, and `Payouts` on `AccountSessionComponentsParams` and `AccountSessionComponents`
* Add support for `Features` on `AccountSessionComponentsAccountOnboardingParams` and `AccountSessionComponentsAccountOnboarding`
* Add support for new values `customer_tax_location_invalid` and `financial_connections_no_successful_transaction_refresh` on enums `InvoiceLastFinalizationErrorCode`, `PaymentIntentLastPaymentErrorCode`, `SetupAttemptSetupErrorCode`, `SetupIntentLastSetupErrorCode`, and `StripeErrorCode`
* Add support for new values `payment_network_reserve_hold` and `payment_network_reserve_release` on enum `BalanceTransactionType`
* Remove support for value `various` from enum `ClimateSupplierRemovalPathway`
* Remove support for values `challenge_only` and `challenge` from enum `PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure`
* Add support for `InactiveMessage` and `Restrictions` on `PaymentLinkParams` and `PaymentLink`
* Add support for `TransferGroup` on `PaymentLinkPaymentIntentDataParams` and `PaymentLinkPaymentIntentData`
* Add support for `TrialSettings` on `PaymentLinkSubscriptionDataParams` and `PaymentLinkSubscriptionData`
* [#1777](https://github.com/stripe/stripe-go/pull/1777) Add back PlanParams.ProductID
* Add back `PlanParams.ProductID`, which was mistakenly removed starting in v73.0.0. `ProductID` allows creation of a plan for an existing product by serializing `product` as a string .

## 76.8.0-beta.1 - 2023-11-30
* [#1773](https://github.com/stripe/stripe-go/pull/1773) Update generated code for beta

## 76.7.0 - 2023-11-30
* [#1772](https://github.com/stripe/stripe-go/pull/1772) Update generated code
* Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
* Add support for `Cancel`, `Get`, `List`, `New`, and `Update` methods on resource `Order`
* Add support for `Get` and `List` methods on resources `Product` and `Supplier`
* Add support for new value `financial_connections_account_inactive` on enums `InvoiceLastFinalizationErrorCode`, `PaymentIntentLastPaymentErrorCode`, `SetupAttemptSetupErrorCode`, `SetupIntentLastSetupErrorCode`, and `StripeErrorCode`
* Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `BalanceTransactionType`
* Add support for `Created` on `CheckoutSessionListParams`
* Add support for `ValidateLocation` on `CustomerTaxParams`
* Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enum `EventType`
* Add support for new value `challenge` on enums `PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure` and `SetupIntentPaymentMethodOptionsCardRequestThreeDSecure`

## 76.7.0-beta.1 - 2023-11-21
* [#1770](https://github.com/stripe/stripe-go/pull/1770) Update generated code for beta
* Rename `Receipient` to `Recipient` beneath `PaymentDetails` on `Charge` and `PaymentIntent` APIs.
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v691
v708
30 changes: 3 additions & 27 deletions accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,6 @@ 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 @@ -90,10 +68,6 @@ 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 All @@ -118,9 +92,11 @@ func (p *AccountSessionParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}

type AccountSessionComponentsAccountOnboardingFeatures struct{}
type AccountSessionComponentsAccountOnboarding struct {
// Whether the embedded component is enabled.
Enabled bool `json:"enabled"`
Enabled bool `json:"enabled"`
Features *AccountSessionComponentsAccountOnboardingFeatures `json:"features"`
}
type AccountSessionComponentsPaymentDetailsFeatures struct {
// Whether to allow capturing and cancelling payment intents. This is `true` by default.
Expand Down
Loading

0 comments on commit 75e0380

Please sign in to comment.