Skip to content

Commit

Permalink
API Updates (#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe committed Mar 18, 2022
1 parent 63c5cbf commit c8f42de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions types/2020-08-27/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ declare module 'stripe' {
*/
recipient?: string | Stripe.Recipient | null;

/**
* 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 | null;

/**
* 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.
*/
Expand Down
4 changes: 3 additions & 1 deletion types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ declare module 'stripe' {

interface AfterpayClearpay {
/**
* 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 | null;
Expand Down Expand Up @@ -5471,6 +5471,8 @@ declare module 'stripe' {
* 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
*/
cancel(
id: string,
Expand Down

0 comments on commit c8f42de

Please sign in to comment.