Skip to content

Commit

Permalink
Add ShippingRates and AmountShipping (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Mar 22, 2021
1 parent 3b636d2 commit a54b378
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ type CheckoutSessionParams struct {
PaymentMethodTypes []*string `form:"payment_method_types"`
SetupIntentData *CheckoutSessionSetupIntentDataParams `form:"setup_intent_data"`
ShippingAddressCollection *CheckoutSessionShippingAddressCollectionParams `form:"shipping_address_collection"`
SubscriptionData *CheckoutSessionSubscriptionDataParams `form:"subscription_data"`
ShippingRates []*string `form:"shipping_rates"`
SubmitType *string `form:"submit_type"`
SubscriptionData *CheckoutSessionSubscriptionDataParams `form:"subscription_data"`
SuccessURL *string `form:"success_url"`
}

Expand Down Expand Up @@ -292,6 +293,7 @@ type CheckoutSessionTotalDetailsBreakdown struct {
// CheckoutSessionTotalDetails is the set of properties detailing how the amounts were calculated.
type CheckoutSessionTotalDetails struct {
AmountDiscount int64 `json:"amount_discount"`
AmountShipping int64 `json:"amount_shipping"`
AmountTax int64 `json:"amount_tax"`
Breakdown *CheckoutSessionTotalDetailsBreakdown `json:"breakdown"`
}
Expand Down

0 comments on commit a54b378

Please sign in to comment.