diff --git a/types/2020-08-27/BalanceTransactions.d.ts b/types/2020-08-27/BalanceTransactions.d.ts index 6c3ec6bc99..eb8ca8d622 100644 --- a/types/2020-08-27/BalanceTransactions.d.ts +++ b/types/2020-08-27/BalanceTransactions.d.ts @@ -93,7 +93,7 @@ declare module 'stripe' { status: string; /** - * Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `connect_collection_transfer`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `payment`, `payment_failure_refund`, `payment_refund`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. [Learn more](https://stripe.com/docs/reports/balance-transaction-types) about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider `reporting_category` instead. + * Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `payment`, `payment_failure_refund`, `payment_refund`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. [Learn more](https://stripe.com/docs/reports/balance-transaction-types) about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider `reporting_category` instead. */ type: BalanceTransaction.Type; } @@ -135,6 +135,7 @@ declare module 'stripe' { | 'application_fee_refund' | 'charge' | 'connect_collection_transfer' + | 'contribution' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'issuing_dispute' @@ -193,7 +194,7 @@ declare module 'stripe' { source?: string; /** - * Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `connect_collection_transfer`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `payment`, `payment_failure_refund`, `payment_refund`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. + * Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `payment`, `payment_failure_refund`, `payment_refund`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. */ type?: string; } diff --git a/types/2020-08-27/Charges.d.ts b/types/2020-08-27/Charges.d.ts index 89f9f1fe0b..997090a77d 100644 --- a/types/2020-08-27/Charges.d.ts +++ b/types/2020-08-27/Charges.d.ts @@ -413,6 +413,8 @@ declare module 'stripe' { multibanco?: PaymentMethodDetails.Multibanco; + oxxo?: PaymentMethodDetails.Oxxo; + p24?: PaymentMethodDetails.P24; sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer; @@ -1277,6 +1279,13 @@ declare module 'stripe' { reference: string | null; } + interface Oxxo { + /** + * OXXO reference number + */ + number: string | null; + } + interface P24 { /** * Unique reference for this Przelewy24 payment. diff --git a/types/2020-08-27/PaymentIntents.d.ts b/types/2020-08-27/PaymentIntents.d.ts index 3430ac81e3..abd1f117b6 100644 --- a/types/2020-08-27/PaymentIntents.d.ts +++ b/types/2020-08-27/PaymentIntents.d.ts @@ -319,6 +319,8 @@ declare module 'stripe' { interface NextAction { alipay_handle_redirect?: NextAction.AlipayHandleRedirect; + oxxo_display_details?: NextAction.OxxoDisplayDetails; + redirect_to_url?: NextAction.RedirectToUrl; /** @@ -355,6 +357,23 @@ declare module 'stripe' { url: string | null; } + interface OxxoDisplayDetails { + /** + * The timestamp after which the OXXO voucher expires. + */ + expires_after: number | null; + + /** + * The URL for the hosted OXXO voucher page, which allows customers to view and print an OXXO voucher. + */ + hosted_voucher_url: string | null; + + /** + * OXXO reference number. + */ + number: string | null; + } + interface RedirectToUrl { /** * If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. @@ -377,6 +396,8 @@ declare module 'stripe' { card?: PaymentMethodOptions.Card; + oxxo?: PaymentMethodOptions.Oxxo; + sofort?: PaymentMethodOptions.Sofort; } @@ -484,6 +505,13 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic' | 'challenge_only'; } + interface Oxxo { + /** + * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. + */ + expires_after_days: number; + } + interface Sofort { /** * Preferred language of the SOFORT authorization page that the customer is redirected to. @@ -817,6 +845,11 @@ declare module 'stripe' { */ metadata?: MetadataParam; + /** + * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + */ + oxxo?: PaymentMethodData.Oxxo; + /** * If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. */ @@ -990,6 +1023,8 @@ declare module 'stripe' { interface InteracPresent {} + interface Oxxo {} + interface P24 {} interface SepaDebit { @@ -1019,6 +1054,7 @@ declare module 'stripe' { | 'fpx' | 'giropay' | 'ideal' + | 'oxxo' | 'p24' | 'sepa_debit' | 'sofort'; @@ -1040,6 +1076,11 @@ declare module 'stripe' { */ card?: PaymentMethodOptions.Card | null; + /** + * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + */ + oxxo?: PaymentMethodOptions.Oxxo | null; + /** * If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. */ @@ -1137,6 +1178,13 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic'; } + interface Oxxo { + /** + * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. + */ + expires_after_days?: number; + } + interface Sofort { /** * Language shown to the payer on redirect. @@ -1380,6 +1428,11 @@ declare module 'stripe' { */ metadata?: MetadataParam; + /** + * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + */ + oxxo?: PaymentMethodData.Oxxo; + /** * If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. */ @@ -1553,6 +1606,8 @@ declare module 'stripe' { interface InteracPresent {} + interface Oxxo {} + interface P24 {} interface SepaDebit { @@ -1582,6 +1637,7 @@ declare module 'stripe' { | 'fpx' | 'giropay' | 'ideal' + | 'oxxo' | 'p24' | 'sepa_debit' | 'sofort'; @@ -1603,6 +1659,11 @@ declare module 'stripe' { */ card?: PaymentMethodOptions.Card | null; + /** + * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + */ + oxxo?: PaymentMethodOptions.Oxxo | null; + /** * If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. */ @@ -1700,6 +1761,13 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic'; } + interface Oxxo { + /** + * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. + */ + expires_after_days?: number; + } + interface Sofort { /** * Language shown to the payer on redirect. @@ -2057,6 +2125,11 @@ declare module 'stripe' { */ metadata?: MetadataParam; + /** + * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + */ + oxxo?: PaymentMethodData.Oxxo; + /** * If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. */ @@ -2230,6 +2303,8 @@ declare module 'stripe' { interface InteracPresent {} + interface Oxxo {} + interface P24 {} interface SepaDebit { @@ -2259,6 +2334,7 @@ declare module 'stripe' { | 'fpx' | 'giropay' | 'ideal' + | 'oxxo' | 'p24' | 'sepa_debit' | 'sofort'; @@ -2280,6 +2356,11 @@ declare module 'stripe' { */ card?: PaymentMethodOptions.Card | null; + /** + * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. + */ + oxxo?: PaymentMethodOptions.Oxxo | null; + /** * If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. */ @@ -2377,6 +2458,13 @@ declare module 'stripe' { type RequestThreeDSecure = 'any' | 'automatic'; } + interface Oxxo { + /** + * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. + */ + expires_after_days?: number; + } + interface Sofort { /** * Language shown to the payer on redirect. diff --git a/types/2020-08-27/PaymentMethods.d.ts b/types/2020-08-27/PaymentMethods.d.ts index 63f754f7bc..6a94d67c5e 100644 --- a/types/2020-08-27/PaymentMethods.d.ts +++ b/types/2020-08-27/PaymentMethods.d.ts @@ -59,6 +59,8 @@ declare module 'stripe' { */ metadata: Metadata | null; + oxxo?: PaymentMethod.Oxxo; + p24?: PaymentMethod.P24; sepa_debit?: PaymentMethod.SepaDebit; @@ -416,6 +418,8 @@ declare module 'stripe' { interface InteracPresent {} + interface Oxxo {} + interface P24 {} interface SepaDebit { @@ -462,6 +466,7 @@ declare module 'stripe' { | 'fpx' | 'giropay' | 'ideal' + | 'oxxo' | 'p24' | 'sepa_debit' | 'sofort'; @@ -538,6 +543,11 @@ declare module 'stripe' { */ metadata?: MetadataParam; + /** + * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. + */ + oxxo?: PaymentMethodCreateParams.Oxxo; + /** * If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. */ @@ -742,6 +752,8 @@ declare module 'stripe' { interface InteracPresent {} + interface Oxxo {} + interface P24 {} interface SepaDebit { @@ -772,6 +784,7 @@ declare module 'stripe' { | 'fpx' | 'giropay' | 'ideal' + | 'oxxo' | 'p24' | 'sepa_debit' | 'sofort'; diff --git a/types/2020-08-27/Subscriptions.d.ts b/types/2020-08-27/Subscriptions.d.ts index a7322005f9..fd51d1bda6 100644 --- a/types/2020-08-27/Subscriptions.d.ts +++ b/types/2020-08-27/Subscriptions.d.ts @@ -992,7 +992,7 @@ declare module 'stripe' { price?: string; /** - * The status of the subscriptions to retrieve. One of: `incomplete`, `incomplete_expired`, `trialing`, `active`, `past_due`, `unpaid`, `canceled`, or `all`. Passing in a value of `canceled` will return all canceled subscriptions, including those belonging to deleted customers. Passing in a value of `all` will return subscriptions of all statuses. + * The status of the subscriptions to retrieve. Passing in a value of `canceled` will return all canceled subscriptions, including those belonging to deleted customers. Pass `ended` to find subscriptions that are canceled and subscriptions that are expired due to [incomplete payment](https://stripe.com/docs/billing/subscriptions/overview#subscription-statuses). Passing in a value of `all` will return subscriptions of all statuses. */ status?: SubscriptionListParams.Status; }