Skip to content

Commit

Permalink
API Updates (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe authored Mar 18, 2022
1 parent a063f10 commit 348dd29
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions card.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ type Card struct {
Name string `json:"name"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
// For external accounts, possible values are `new` and `errored`. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
Status string `json:"status"`
// If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
TokenizationMethod CardTokenizationMethod `json:"tokenization_method"`
}
Expand Down
2 changes: 1 addition & 1 deletion order.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ type Shipping struct {
// defined [products](https://stripe.com/docs/api#products). You can create, retrieve, and pay individual orders, as well
// as list all orders. Orders are identified by a unique, random ID.
//
// Related guide: [Tax, Shipping, and Inventory](https://stripe.com/docs/orders).
// Related guide: [Tax, Shipping, and Inventory](https://stripe.com/docs/orders-legacy).
type Order struct {
APIResource
// A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order.
Expand Down
4 changes: 3 additions & 1 deletion paymentintent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,8 @@ type PaymentIntentConfirmParams struct {
// A PaymentIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action, or processing.
//
// Once canceled, no additional charges will be made by the PaymentIntent and any operations on the PaymentIntent will fail with an error. For PaymentIntents with status='requires_capture', the remaining amount_capturable will automatically be refunded.
//
// You cannot cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead
type PaymentIntentCancelParams struct {
Params `form:"*"`
// Reason for canceling this PaymentIntent. Possible values are `duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`
Expand Down Expand Up @@ -1318,7 +1320,7 @@ type PaymentIntentPaymentMethodOptionsACSSDebit struct {
VerificationMethod PaymentIntentPaymentMethodOptionsACSSDebitVerificationMethod `json:"verification_method"`
}
type PaymentIntentPaymentMethodOptionsAfterpayClearpay struct {
// Order identifier shown to the merchant in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about
// Order identifier shown to the customer in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about
// the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
Reference string `json:"reference"`
// Indicates that you intend to make future payments with this PaymentIntent's payment method.
Expand Down
2 changes: 1 addition & 1 deletion sku.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type Inventory struct {
//
// Can also be used to manage inventory.
//
// Related guide: [Tax, Shipping, and Inventory](https://stripe.com/docs/orders).
// Related guide: [Tax, Shipping, and Inventory](https://stripe.com/docs/orders-legacy).
type SKU struct {
APIResource
// Whether the SKU is available for purchase.
Expand Down

0 comments on commit 348dd29

Please sign in to comment.