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

Multiple API changes #1016

Merged
merged 2 commits into from
Sep 24, 2020
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
5 changes: 3 additions & 2 deletions types/2020-08-27/BalanceTransactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -135,6 +135,7 @@ declare module 'stripe' {
| 'application_fee_refund'
| 'charge'
| 'connect_collection_transfer'
| 'contribution'
| 'issuing_authorization_hold'
| 'issuing_authorization_release'
| 'issuing_dispute'
Expand Down Expand Up @@ -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;
}
Expand Down
9 changes: 9 additions & 0 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ declare module 'stripe' {

multibanco?: PaymentMethodDetails.Multibanco;

oxxo?: PaymentMethodDetails.Oxxo;

p24?: PaymentMethodDetails.P24;

sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;
Expand Down Expand Up @@ -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.
Expand Down
88 changes: 88 additions & 0 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ declare module 'stripe' {
interface NextAction {
alipay_handle_redirect?: NextAction.AlipayHandleRedirect;

oxxo_display_details?: NextAction.OxxoDisplayDetails;

redirect_to_url?: NextAction.RedirectToUrl;

/**
Expand Down Expand Up @@ -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.
Expand All @@ -377,6 +396,8 @@ declare module 'stripe' {

card?: PaymentMethodOptions.Card;

oxxo?: PaymentMethodOptions.Oxxo;

sofort?: PaymentMethodOptions.Sofort;
}

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -990,6 +1023,8 @@ declare module 'stripe' {

interface InteracPresent {}

interface Oxxo {}

interface P24 {}

interface SepaDebit {
Expand Down Expand Up @@ -1019,6 +1054,7 @@ declare module 'stripe' {
| 'fpx'
| 'giropay'
| 'ideal'
| 'oxxo'
| 'p24'
| 'sepa_debit'
| 'sofort';
Expand All @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -1553,6 +1606,8 @@ declare module 'stripe' {

interface InteracPresent {}

interface Oxxo {}

interface P24 {}

interface SepaDebit {
Expand Down Expand Up @@ -1582,6 +1637,7 @@ declare module 'stripe' {
| 'fpx'
| 'giropay'
| 'ideal'
| 'oxxo'
| 'p24'
| 'sepa_debit'
| 'sofort';
Expand All @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -2230,6 +2303,8 @@ declare module 'stripe' {

interface InteracPresent {}

interface Oxxo {}

interface P24 {}

interface SepaDebit {
Expand Down Expand Up @@ -2259,6 +2334,7 @@ declare module 'stripe' {
| 'fpx'
| 'giropay'
| 'ideal'
| 'oxxo'
| 'p24'
| 'sepa_debit'
| 'sofort';
Expand All @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down
13 changes: 13 additions & 0 deletions types/2020-08-27/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ declare module 'stripe' {
*/
metadata: Metadata | null;

oxxo?: PaymentMethod.Oxxo;

p24?: PaymentMethod.P24;

sepa_debit?: PaymentMethod.SepaDebit;
Expand Down Expand Up @@ -416,6 +418,8 @@ declare module 'stripe' {

interface InteracPresent {}

interface Oxxo {}

interface P24 {}

interface SepaDebit {
Expand Down Expand Up @@ -462,6 +466,7 @@ declare module 'stripe' {
| 'fpx'
| 'giropay'
| 'ideal'
| 'oxxo'
| 'p24'
| 'sepa_debit'
| 'sofort';
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -742,6 +752,8 @@ declare module 'stripe' {

interface InteracPresent {}

interface Oxxo {}

interface P24 {}

interface SepaDebit {
Expand Down Expand Up @@ -772,6 +784,7 @@ declare module 'stripe' {
| 'fpx'
| 'giropay'
| 'ideal'
| 'oxxo'
| 'p24'
| 'sepa_debit'
| 'sofort';
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down