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

API Updates #1415

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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