Skip to content

Commit

Permalink
Update generated code for beta (#1658)
Browse files Browse the repository at this point in the history
* Update generated code for v339

* Update generated code for v340

* Update generated code for v341

* Update generated code for v342

* Update generated code for v343

* Update generated code for v344

* Update generated code for v345

* Update generated code for v346

* Update generated code for v347

* Update generated code for v348

* Update generated code for v349

* Update generated code for v350

* Update generated code (#1657)

* Update generated code for v339

* Update generated code for v340

* Update generated code for v342

* Update generated code for v343

* Update generated code for v344

* Update generated code for v345

* Update generated code for v349

* Update generated code for v350

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* Bump version to 74.19.0

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Pavel Krymets <pakrym@stripe.com>
  • Loading branch information
stripe-openapi[bot] and pakrym-stripe committed May 19, 2023
1 parent 6af642a commit 3779dae
Show file tree
Hide file tree
Showing 65 changed files with 281 additions and 104 deletions.
28 changes: 18 additions & 10 deletions CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog

## 74.19.0 - 2023-05-19
* [#1657](https://github.com/stripe/stripe-go/pull/1657) Update generated code
* Add support for `SubscriptionUpdateConfirm` and `SubscriptionUpdate` on `BillingPortalSessionFlowDataParams` and `BillingPortalSessionFlow`
* Add support for new values `subscription_update_confirm` and `subscription_update` on enum `BillingPortalSessionFlowType`
* Add support for `Link` on `ChargePaymentMethodDetailsCardWallet` and `PaymentMethodCardWallet`
* Add support for `BuyerID` and `Cashtag` on `ChargePaymentMethodDetailsCashapp` and `PaymentMethodCashapp`
* Add support for new values `amusement_tax` and `communications_tax` on enum `TaxRateTaxType`

## 74.19.0-beta.1 - 2023-05-11
* [#1654](https://github.com/stripe/stripe-go/pull/1654) Update generated code for beta
* Add support for `PayerEmail`, `PayerName`, and `SellerProtection` on `ChargePaymentMethodDetailsPaypal`
Expand All @@ -15,16 +23,16 @@
* [#1656](https://github.com/stripe/stripe-go/pull/1656) Update generated code
Release specs are identical.
* [#1653](https://github.com/stripe/stripe-go/pull/1653) Update generated code
* Add support for `Paypal` on `ChargePaymentMethodDetails`, `CheckoutSessionPaymentMethodOptionsParams`, `MandatePaymentMethodDetails`, `PaymentIntentConfirmPaymentMethodDataParams`, `PaymentIntentConfirmPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodDataParams`, `PaymentIntentPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodParams`, `PaymentMethod`, `SetupAttemptPaymentMethodDetails`, `SetupIntentConfirmPaymentMethodDataParams`, `SetupIntentConfirmPaymentMethodOptionsParams`, `SetupIntentPaymentMethodDataParams`, `SetupIntentPaymentMethodOptionsParams`, and `SetupIntentPaymentMethodOptions`
* Add support for `NetworkToken` on `ChargePaymentMethodDetailsCard`
* Add support for `TaxabilityReason` and `TaxableAmount` on `CheckoutSessionShippingCostTaxes`, `CheckoutSessionTotalDetailsBreakdownTaxes`, `CreditNoteShippingCostTaxes`, `CreditNoteTaxAmounts`, `InvoiceShippingCostTaxes`, `InvoiceTotalTaxAmounts`, `LineItemTaxes`, `QuoteComputedRecurringTotalDetailsBreakdownTaxes`, `QuoteComputedUpfrontTotalDetailsBreakdownTaxes`, and `QuoteTotalDetailsBreakdownTaxes`
* Add support for new value `paypal` on enums `InvoicePaymentSettingsPaymentMethodTypes` and `SubscriptionPaymentSettingsPaymentMethodTypes`
* Add support for new value `eftpos_au` on enums `PaymentIntentPaymentMethodOptionsCardNetwork`, `SetupIntentPaymentMethodOptionsCardNetwork`, and `SubscriptionPaymentSettingsPaymentMethodOptionsCardNetwork`
* Add support for new value `paypal` on enum `PaymentLinkPaymentMethodTypes`
* Add support for `Brand`, `CardholderName`, `Country`, `ExpMonth`, `ExpYear`, `Fingerprint`, `Funding`, `Last4`, `Networks`, and `ReadMethod` on `PaymentMethodCardPresent` and `PaymentMethodInteracPresent`
* Add support for `PreferredLocales` on `PaymentMethodInteracPresent`
* Add support for new value `paypal` on enum `PaymentMethodType`
* Add support for `EffectivePercentage` on `TaxRate`
* Add support for `Paypal` on `ChargePaymentMethodDetails`, `CheckoutSessionPaymentMethodOptionsParams`, `MandatePaymentMethodDetails`, `PaymentIntentConfirmPaymentMethodDataParams`, `PaymentIntentConfirmPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodDataParams`, `PaymentIntentPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodParams`, `PaymentMethod`, `SetupAttemptPaymentMethodDetails`, `SetupIntentConfirmPaymentMethodDataParams`, `SetupIntentConfirmPaymentMethodOptionsParams`, `SetupIntentPaymentMethodDataParams`, `SetupIntentPaymentMethodOptionsParams`, and `SetupIntentPaymentMethodOptions`
* Add support for `NetworkToken` on `ChargePaymentMethodDetailsCard`
* Add support for `TaxabilityReason` and `TaxableAmount` on `CheckoutSessionShippingCostTaxes`, `CheckoutSessionTotalDetailsBreakdownTaxes`, `CreditNoteShippingCostTaxes`, `CreditNoteTaxAmounts`, `InvoiceShippingCostTaxes`, `InvoiceTotalTaxAmounts`, `LineItemTaxes`, `QuoteComputedRecurringTotalDetailsBreakdownTaxes`, `QuoteComputedUpfrontTotalDetailsBreakdownTaxes`, and `QuoteTotalDetailsBreakdownTaxes`
* Add support for new value `paypal` on enums `InvoicePaymentSettingsPaymentMethodTypes` and `SubscriptionPaymentSettingsPaymentMethodTypes`
* Add support for new value `eftpos_au` on enums `PaymentIntentPaymentMethodOptionsCardNetwork`, `SetupIntentPaymentMethodOptionsCardNetwork`, and `SubscriptionPaymentSettingsPaymentMethodOptionsCardNetwork`
* Add support for new value `paypal` on enum `PaymentLinkPaymentMethodTypes`
* Add support for `Brand`, `CardholderName`, `Country`, `ExpMonth`, `ExpYear`, `Fingerprint`, `Funding`, `Last4`, `Networks`, and `ReadMethod` on `PaymentMethodCardPresent` and `PaymentMethodInteracPresent`
* Add support for `PreferredLocales` on `PaymentMethodInteracPresent`
* Add support for new value `paypal` on enum `PaymentMethodType`
* Add support for `EffectivePercentage` on `TaxRate`
* Add support for `GBBankTransfer` and `JPBankTransfer` on `CustomerCashBalanceTransactionFundedBankTransfer `

## 74.18.0-beta.1 - 2023-05-04
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v338
v351
2 changes: 1 addition & 1 deletion account.go
Expand Up @@ -1313,7 +1313,7 @@ type Account struct {
// A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
// See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform pre-filling and account onboarding steps.
//
// Related guide: [Handling Identity Verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information).
// Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information)
Individual *Person `json:"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.
Metadata map[string]string `json:"metadata"`
Expand Down
2 changes: 1 addition & 1 deletion accountlink.go
Expand Up @@ -42,7 +42,7 @@ type AccountLinkParams struct {
// Account Links are the means by which a Connect platform grants a connected account permission to access
// Stripe-hosted applications, such as Connect Onboarding.
//
// Related guide: [Connect Onboarding](https://stripe.com/docs/connect/connect-onboarding).
// Related guide: [Connect Onboarding](https://stripe.com/docs/connect/connect-onboarding)
type AccountLink struct {
APIResource
// Time at which the object was created. Measured in seconds since the Unix epoch.
Expand Down
2 changes: 1 addition & 1 deletion accountsession.go
Expand Up @@ -19,7 +19,7 @@ type AccountSessionParams struct {
// to your user. Do not save AccountSessions to your database as they expire relatively
// quickly, and cannot be used more than once.
//
// Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components).
// Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)
type AccountSession struct {
APIResource
// The ID of the account the AccountSession was created for
Expand Down
2 changes: 1 addition & 1 deletion apps_secret.go
Expand Up @@ -99,7 +99,7 @@ type AppsSecretScope struct {
//
// A `user` scoped secret is accessible by the app backend and one specific Dashboard user. Use the `user` scope for per-user secrets like per-user OAuth tokens, where different users might have different permissions.
//
// Related guide: [Store data between page reloads](https://stripe.com/docs/stripe-apps/store-auth-data-custom-objects).
// Related guide: [Store data between page reloads](https://stripe.com/docs/stripe-apps/store-auth-data-custom-objects)
type AppsSecret struct {
APIResource
// Time at which the object was created. Measured in seconds since the Unix epoch.
Expand Down
2 changes: 1 addition & 1 deletion balance.go
Expand Up @@ -46,7 +46,7 @@ type BalanceIssuing struct {
// The available and pending amounts for each currency are broken down further by
// payment source types.
//
// Related guide: [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances).
// Related guide: [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
type Balance struct {
APIResource
// Funds that are available to be transferred or paid out, whether automatically by Stripe or explicitly via the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). The available balance for each currency and payment type can be found in the `source_types` property.
Expand Down
2 changes: 1 addition & 1 deletion balancetransaction.go
Expand Up @@ -153,7 +153,7 @@ type BalanceTransactionFeeDetail struct {
// Balance transactions represent funds moving through your Stripe account.
// They're created for every type of transaction that comes into or flows out of your Stripe account balance.
//
// Related guide: [Balance Transaction Types](https://stripe.com/docs/reports/balance-transaction-types).
// Related guide: [Balance transaction types](https://stripe.com/docs/reports/balance-transaction-types)
type BalanceTransaction struct {
APIResource
// Gross amount of the transaction, in %s.
Expand Down
2 changes: 1 addition & 1 deletion bankaccount.go
Expand Up @@ -351,7 +351,7 @@ type BankAccountRequirements struct {
// destinations on `Account` objects for [Custom accounts](https://stripe.com/docs/connect/custom-accounts).
// They can be bank accounts or debit cards as well, and are documented in the links above.
//
// Related guide: [Bank Debits and Transfers](https://stripe.com/docs/payments/bank-debits-transfers).
// Related guide: [Bank debits and transfers](https://stripe.com/docs/payments/bank-debits-transfers)
type BankAccount struct {
APIResource
// The ID of the account that the bank account is associated with.
Expand Down
82 changes: 80 additions & 2 deletions billingportal_session.go
Expand Up @@ -21,8 +21,10 @@ type BillingPortalSessionFlowType string

// List of values that BillingPortalSessionFlowType can take
const (
BillingPortalSessionFlowTypePaymentMethodUpdate BillingPortalSessionFlowType = "payment_method_update"
BillingPortalSessionFlowTypeSubscriptionCancel BillingPortalSessionFlowType = "subscription_cancel"
BillingPortalSessionFlowTypePaymentMethodUpdate BillingPortalSessionFlowType = "payment_method_update"
BillingPortalSessionFlowTypeSubscriptionCancel BillingPortalSessionFlowType = "subscription_cancel"
BillingPortalSessionFlowTypeSubscriptionUpdate BillingPortalSessionFlowType = "subscription_update"
BillingPortalSessionFlowTypeSubscriptionUpdateConfirm BillingPortalSessionFlowType = "subscription_update_confirm"
)

// Configuration when `after_completion.type=hosted_confirmation`.
Expand Down Expand Up @@ -53,12 +55,50 @@ type BillingPortalSessionFlowDataSubscriptionCancelParams struct {
Subscription *string `form:"subscription"`
}

// Configuration when `flow_data.type=subscription_update`.
type BillingPortalSessionFlowDataSubscriptionUpdateParams struct {
// The ID of the subscription to be updated.
Subscription *string `form:"subscription"`
}

// The coupon or promotion code to apply to this subscription update. Currently, only up to one may be specified.
type BillingPortalSessionFlowDataSubscriptionUpdateConfirmDiscountParams struct {
// The ID of the coupon to apply to this subscription update.
Coupon *string `form:"coupon"`
// The ID of a promotion code to apply to this subscription update.
PromotionCode *string `form:"promotion_code"`
}

// The [subscription item](https://stripe.com/docs/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.
type BillingPortalSessionFlowDataSubscriptionUpdateConfirmItemParams struct {
// The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated.
ID *string `form:"id"`
// The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products).
Price *string `form:"price"`
// [Quantity](https://stripe.com/docs/subscriptions/quantities) for this item that the customer should subscribe to through this flow.
Quantity *int64 `form:"quantity"`
}

// Configuration when `flow_data.type=subscription_update_confirm`.
type BillingPortalSessionFlowDataSubscriptionUpdateConfirmParams struct {
// The coupon or promotion code to apply to this subscription update. Currently, only up to one may be specified.
Discounts []*BillingPortalSessionFlowDataSubscriptionUpdateConfirmDiscountParams `form:"discounts"`
// The [subscription item](https://stripe.com/docs/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.
Items []*BillingPortalSessionFlowDataSubscriptionUpdateConfirmItemParams `form:"items"`
// The ID of the subscription to be updated.
Subscription *string `form:"subscription"`
}

// Information about a specific flow for the customer to go through. See the [docs](https://stripe.com/docs/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.
type BillingPortalSessionFlowDataParams struct {
// Behavior after the flow is completed.
AfterCompletion *BillingPortalSessionFlowDataAfterCompletionParams `form:"after_completion"`
// Configuration when `flow_data.type=subscription_cancel`.
SubscriptionCancel *BillingPortalSessionFlowDataSubscriptionCancelParams `form:"subscription_cancel"`
// Configuration when `flow_data.type=subscription_update`.
SubscriptionUpdate *BillingPortalSessionFlowDataSubscriptionUpdateParams `form:"subscription_update"`
// Configuration when `flow_data.type=subscription_update_confirm`.
SubscriptionUpdateConfirm *BillingPortalSessionFlowDataSubscriptionUpdateConfirmParams `form:"subscription_update_confirm"`
// Type of flow that the customer will go through.
Type *string `form:"type"`
}
Expand Down Expand Up @@ -106,11 +146,49 @@ type BillingPortalSessionFlowSubscriptionCancel struct {
Subscription string `json:"subscription"`
}

// Configuration when `flow.type=subscription_update`.
type BillingPortalSessionFlowSubscriptionUpdate struct {
// The ID of the subscription to be updated.
Subscription string `json:"subscription"`
}

// The coupon or promotion code to apply to this subscription update. Currently, only up to one may be specified.
type BillingPortalSessionFlowSubscriptionUpdateConfirmDiscount struct {
// The ID of the coupon to apply to this subscription update.
Coupon string `json:"coupon"`
// The ID of a promotion code to apply to this subscription update.
PromotionCode string `json:"promotion_code"`
}

// The [subscription item](https://stripe.com/docs/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.
type BillingPortalSessionFlowSubscriptionUpdateConfirmItem struct {
// The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated.
ID string `json:"id"`
// The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products).
Price string `json:"price"`
// [Quantity](https://stripe.com/docs/subscriptions/quantities) for this item that the customer should subscribe to through this flow.
Quantity int64 `json:"quantity"`
}

// Configuration when `flow.type=subscription_update_confirm`.
type BillingPortalSessionFlowSubscriptionUpdateConfirm struct {
// The coupon or promotion code to apply to this subscription update. Currently, only up to one may be specified.
Discounts []*BillingPortalSessionFlowSubscriptionUpdateConfirmDiscount `json:"discounts"`
// The [subscription item](https://stripe.com/docs/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.
Items []*BillingPortalSessionFlowSubscriptionUpdateConfirmItem `json:"items"`
// The ID of the subscription to be updated.
Subscription string `json:"subscription"`
}

// Information about a specific flow for the customer to go through. See the [docs](https://stripe.com/docs/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.
type BillingPortalSessionFlow struct {
AfterCompletion *BillingPortalSessionFlowAfterCompletion `json:"after_completion"`
// Configuration when `flow.type=subscription_cancel`.
SubscriptionCancel *BillingPortalSessionFlowSubscriptionCancel `json:"subscription_cancel"`
// Configuration when `flow.type=subscription_update`.
SubscriptionUpdate *BillingPortalSessionFlowSubscriptionUpdate `json:"subscription_update"`
// Configuration when `flow.type=subscription_update_confirm`.
SubscriptionUpdateConfirm *BillingPortalSessionFlowSubscriptionUpdateConfirm `json:"subscription_update_confirm"`
// Type of flow that the customer will go through.
Type BillingPortalSessionFlowType `json:"type"`
}
Expand Down
2 changes: 1 addition & 1 deletion capability.go
Expand Up @@ -121,7 +121,7 @@ type CapabilityRequirements struct {

// This is an object representing a capability for a Stripe account.
//
// Related guide: [Account capabilities](https://stripe.com/docs/connect/account-capabilities).
// Related guide: [Account capabilities](https://stripe.com/docs/connect/account-capabilities)
type Capability struct {
APIResource
// The account for which the capability enables functionality.
Expand Down
2 changes: 1 addition & 1 deletion card.go
Expand Up @@ -269,7 +269,7 @@ func (p *CardListParams) AppendTo(body *form.Values, keyParts []string) {
// later. You can also store multiple debit cards on a recipient in order to
// transfer to those cards later.
//
// Related guide: [Card Payments with Sources](https://stripe.com/docs/sources/cards).
// Related guide: [Card payments with Sources](https://stripe.com/docs/sources/cards)
type Card struct {
APIResource
// The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead.
Expand Down

0 comments on commit 3779dae

Please sign in to comment.