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

API Updates #1331

Merged
merged 1 commit into from
Jan 19, 2022
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
4 changes: 3 additions & 1 deletion types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ declare module 'stripe' {
/**
* The status of the payment is either `succeeded`, `pending`, or `failed`.
*/
status: string;
status: Charge.Status;

/**
* ID of the transfer to the `destination` account (only applicable if the charge was created using the `destination` parameter).
Expand Down Expand Up @@ -1641,6 +1641,8 @@ declare module 'stripe' {
tracking_number?: string | null;
}

type Status = 'failed' | 'pending' | 'succeeded';

interface TransferData {
/**
* The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
Expand Down
60 changes: 60 additions & 0 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,16 @@ declare module 'stripe' {
* The base64 image data for a pre-generated QR code
*/
image_data_url: string;

/**
* The image_url_png string used to render QR code, can be used as <img src="…" />
*/
image_url_png: string;

/**
* The image_url_svg string used to render QR code, can be used as <img src="…" />
*/
image_url_svg: string;
}

interface WechatPayRedirectToAndroidApp {
Expand Down Expand Up @@ -518,6 +528,8 @@ declare module 'stripe' {

au_becs_debit?: PaymentMethodOptions.AuBecsDebit;

bacs_debit?: PaymentMethodOptions.BacsDebit;

bancontact?: PaymentMethodOptions.Bancontact;

boleto?: PaymentMethodOptions.Boleto;
Expand All @@ -526,6 +538,8 @@ declare module 'stripe' {

card_present?: PaymentMethodOptions.CardPresent;

eps?: PaymentMethodOptions.Eps;

fpx?: PaymentMethodOptions.Fpx;

giropay?: PaymentMethodOptions.Giropay;
Expand Down Expand Up @@ -603,6 +617,8 @@ declare module 'stripe' {

interface AuBecsDebit {}

interface BacsDebit {}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand Down Expand Up @@ -724,6 +740,8 @@ declare module 'stripe' {

interface CardPresent {}

interface Eps {}

interface Fpx {}

interface Giropay {}
Expand Down Expand Up @@ -1506,6 +1524,11 @@ declare module 'stripe' {
*/
au_becs_debit?: Stripe.Emptyable<PaymentMethodOptions.AuBecsDebit>;

/**
* If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
*/
bacs_debit?: Stripe.Emptyable<PaymentMethodOptions.BacsDebit>;

/**
* If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
*/
Expand All @@ -1526,6 +1549,11 @@ declare module 'stripe' {
*/
card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;

/**
* If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
*/
eps?: Stripe.Emptyable<PaymentMethodOptions.Eps>;

/**
* If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
*/
Expand Down Expand Up @@ -1641,6 +1669,8 @@ declare module 'stripe' {

interface AuBecsDebit {}

interface BacsDebit {}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand Down Expand Up @@ -1756,6 +1786,8 @@ declare module 'stripe' {

interface CardPresent {}

interface Eps {}

interface Fpx {}

interface Giropay {}
Expand Down Expand Up @@ -2471,6 +2503,11 @@ declare module 'stripe' {
*/
au_becs_debit?: Stripe.Emptyable<PaymentMethodOptions.AuBecsDebit>;

/**
* If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
*/
bacs_debit?: Stripe.Emptyable<PaymentMethodOptions.BacsDebit>;

/**
* If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
*/
Expand All @@ -2491,6 +2528,11 @@ declare module 'stripe' {
*/
card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;

/**
* If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
*/
eps?: Stripe.Emptyable<PaymentMethodOptions.Eps>;

/**
* If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
*/
Expand Down Expand Up @@ -2606,6 +2648,8 @@ declare module 'stripe' {

interface AuBecsDebit {}

interface BacsDebit {}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand Down Expand Up @@ -2721,6 +2765,8 @@ declare module 'stripe' {

interface CardPresent {}

interface Eps {}

interface Fpx {}

interface Giropay {}
Expand Down Expand Up @@ -3550,6 +3596,11 @@ declare module 'stripe' {
*/
au_becs_debit?: Stripe.Emptyable<PaymentMethodOptions.AuBecsDebit>;

/**
* If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
*/
bacs_debit?: Stripe.Emptyable<PaymentMethodOptions.BacsDebit>;

/**
* If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
*/
Expand All @@ -3570,6 +3621,11 @@ declare module 'stripe' {
*/
card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;

/**
* If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
*/
eps?: Stripe.Emptyable<PaymentMethodOptions.Eps>;

/**
* If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
*/
Expand Down Expand Up @@ -3685,6 +3741,8 @@ declare module 'stripe' {

interface AuBecsDebit {}

interface BacsDebit {}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand Down Expand Up @@ -3800,6 +3858,8 @@ declare module 'stripe' {

interface CardPresent {}

interface Eps {}

interface Fpx {}

interface Giropay {}
Expand Down