Skip to content
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

Update generated code for beta #1645

Merged
merged 13 commits into from
Apr 27, 2023
Merged
30 changes: 21 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# Changelog

## 74.16.0 - 2023-04-27
* [#1644](https://github.com/stripe/stripe-go/pull/1644) Update generated code
* Add support for `BillingCycleAnchor` and `ProrationBehavior` on `CheckoutSessionSubscriptionDataParams`
* Add support for `TerminalID` on `IssuingAuthorizationMerchantData` and `IssuingTransactionMerchantData`
* Add support for `Metadata` on `PaymentIntentCaptureParams`
* Add support for `Checks` on `SetupAttemptPaymentMethodDetailsCard`
* Add support for `TaxBreakdown` on `TaxCalculationShippingCost` and `TaxTransactionShippingCost`
* [#1643](https://github.com/stripe/stripe-go/pull/1643) Update generated code

* [#1640](https://github.com/stripe/stripe-go/pull/1640) Update generated code
* Release specs are identical.

## 74.16.0-beta.3 - 2023-04-20
* [#1642](https://github.com/stripe/stripe-go/pull/1642) Update generated code for beta
* Add support for `Zip` on `PaymentIntentConfirmPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodOptionsParams`, and `PaymentIntentPaymentMethodOptions`
* Add support for `CountryOptions` on `TaxRegistrationParams` and `TaxRegistration`
* Remove support for `State` and `Type` on `TaxRegistrationParams` and `TaxRegistration`
* Remove support for `State` and `Type` on `TaxRegistrationParams` and `TaxRegistration`

## 74.16.0-beta.2 - 2023-04-13
* [#1639](https://github.com/stripe/stripe-go/pull/1639) Update generated code for beta
Expand All @@ -23,8 +35,8 @@

## 74.15.0 - 2023-04-06
* [#1638](https://github.com/stripe/stripe-go/pull/1638) Update generated code
* Add support for new value `link` on enum `PaymentMethodCardWalletType`
* Add support for `Country` on `PaymentMethodLink`
* Add support for new value `link` on enum `PaymentMethodCardWalletType`
* Add support for `Country` on `PaymentMethodLink`
* Add support for `StatusDetails` on `PaymentMethodUsBankAccount`

## 74.15.0-beta.1 - 2023-03-30
Expand All @@ -33,12 +45,12 @@

## 74.14.0 - 2023-03-30
* [#1635](https://github.com/stripe/stripe-go/pull/1635) Update generated code
* Remove support for `New` method on resource `Tax.Transaction`
* This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `CreateFromCalculation` method.
* Add support for `ExportLicenseID` and `ExportPurposeCode` on `AccountCompanyParams`, `AccountCompany`, and `TokenAccountCompanyParams`
* Remove support for value `deleted` from enum `InvoiceStatus`
* This is not a breaking change, as the value was never returned or accepted as input.
* Add support for `AmountTip` on `TestHelpersTerminalReaderPresentPaymentMethodParams`
* Remove support for `New` method on resource `Tax.Transaction`
* This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `CreateFromCalculation` method.
* Add support for `ExportLicenseID` and `ExportPurposeCode` on `AccountCompanyParams`, `AccountCompany`, and `TokenAccountCompanyParams`
* Remove support for value `deleted` from enum `InvoiceStatus`
* This is not a breaking change, as the value was never returned or accepted as input.
* Add support for `AmountTip` on `TestHelpersTerminalReaderPresentPaymentMethodParams`
* [#1633](https://github.com/stripe/stripe-go/pull/1633) Trigger workflow for tags
* [#1632](https://github.com/stripe/stripe-go/pull/1632) Update generated code (new)
Release specs are identical.
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v306
v316
4 changes: 4 additions & 0 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,8 @@ type CheckoutSessionSubscriptionDataTrialSettingsParams struct {
type CheckoutSessionSubscriptionDataParams struct {
// A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
ApplicationFeePercent *float64 `form:"application_fee_percent"`
// A future timestamp to anchor the subscription's billing cycle for new subscriptions.
BillingCycleAnchor *int64 `form:"billing_cycle_anchor"`
// The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription.
Coupon *string `form:"coupon"`
// The tax rates that will apply to any subscription item that does not have
Expand All @@ -1462,6 +1464,8 @@ type CheckoutSessionSubscriptionDataParams struct {
Metadata map[string]string `form:"metadata"`
// The account on behalf of which to charge, for each of the subscription's invoices.
OnBehalfOf *string `form:"on_behalf_of"`
// Determines how to handle prorations resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
ProrationBehavior *string `form:"proration_behavior"`
// If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
TransferData *CheckoutSessionSubscriptionDataTransferDataParams `form:"transfer_data"`
// Unix timestamp representing the end of the trial period the customer
Expand Down
Loading