Skip to content

Commit

Permalink
Codegen for openapi 7a9733e (#1415)
Browse files Browse the repository at this point in the history
  • Loading branch information
yejia-stripe authored Feb 9, 2022
1 parent 1d520b9 commit 0bde1e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 1 addition & 5 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,7 @@ type CheckoutSessionPaymentIntentDataTransferDataParams struct {
// A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
type CheckoutSessionPaymentIntentDataParams struct {
Params `form:"*"`
// The amount of the application fee (if any) that will be requested to be applied to the payment and
// transferred to the application owner's Stripe account. The amount of the application fee collected
// will be capped at the total payment amount. To use an application fee, the request must be made on
// behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information,
// see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
// The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
ApplicationFeeAmount *int64 `form:"application_fee_amount"`
// Controls when the funds will be captured from the customer's account.
CaptureMethod *string `form:"capture_method"`
Expand Down
8 changes: 8 additions & 0 deletions issuing_card.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ type IssuingCardParams struct {
Cardholder *string `form:"cardholder"`
// The currency for the card.
Currency *string `form:"currency"`
// The desired new PIN for this card.
PIN *IssuingCardPINParams `form:"pin"`
// The card this is meant to be a replacement for (if any).
ReplacementFor *string `form:"replacement_for"`
// If `replacement_for` is specified, this should indicate why that card is being replaced.
Expand All @@ -201,6 +203,12 @@ type IssuingCardParams struct {
CancellationReason *string `form:"cancellation_reason"`
}

// The desired new PIN for this card.
type IssuingCardPINParams struct {
// The card's desired new PIN, encrypted under Stripe's public key.
EncryptedNumber *string `form:"encrypted_number"`
}

// Where and how the card will be shipped.
type IssuingCardShipping struct {
Address *Address `json:"address"`
Expand Down

0 comments on commit 0bde1e0

Please sign in to comment.