From 0bde1e0c196b55957ced3655eaa7f7fbca5692b3 Mon Sep 17 00:00:00 2001 From: yejia-stripe <90646909+yejia-stripe@users.noreply.github.com> Date: Tue, 8 Feb 2022 19:16:07 -0500 Subject: [PATCH] Codegen for openapi 7a9733e (#1415) --- checkout_session.go | 6 +----- issuing_card.go | 8 ++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/checkout_session.go b/checkout_session.go index c2341f7d87..e5a14f001d 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -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"` diff --git a/issuing_card.go b/issuing_card.go index 73e73ea2c6..614d7a4d8c 100644 --- a/issuing_card.go +++ b/issuing_card.go @@ -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. @@ -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"`