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 #1354

Merged
merged 1 commit into from Feb 23, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions test/resources/generated_examples_test.spec.js
Expand Up @@ -240,6 +240,13 @@ describe('PaymentIntent', function() {
});
expect(paymentIntent).not.to.be.null;
});

it('verifyMicrodeposits method', async function() {
const paymentIntent = await stripe.paymentIntents.verifyMicrodeposits(
'pi_xxxxxxxxxxxxx'
);
expect(paymentIntent).not.to.be.null;
});
});

describe('SetupIntent', function() {
Expand Down Expand Up @@ -281,6 +288,13 @@ describe('SetupIntent', function() {
const setupIntents = await stripe.setupIntents.list({limit: 3});
expect(setupIntents).not.to.be.null;
});

it('verifyMicrodeposits method', async function() {
const setupIntent = await stripe.setupIntents.verifyMicrodeposits(
'seti_xxxxxxxxxxxxx'
);
expect(setupIntent).not.to.be.null;
});
});

describe('SetupAttempt', function() {
Expand Down
6 changes: 2 additions & 4 deletions types/2020-08-27/Checkout/Sessions.d.ts
Expand Up @@ -1172,9 +1172,7 @@ declare module 'stripe' {
currency?: string;

/**
* The description for the line item, to be displayed on the Checkout page.
*
* If using `price` or `price_data`, will default to the name of the associated product.
* [Deprecated] The description for the line item, to be displayed on the Checkout page.
*/
description?: string;

Expand Down Expand Up @@ -1514,7 +1512,7 @@ declare module 'stripe' {
oxxo?: PaymentMethodOptions.Oxxo;

/**
* contains details about the Wechat Pay payment method options.
* contains details about the WeChat Pay payment method options.
*/
wechat_pay?: PaymentMethodOptions.WechatPay;
}
Expand Down
6 changes: 6 additions & 0 deletions types/2020-08-27/ExternalAccounts.d.ts
Expand Up @@ -121,6 +121,12 @@ declare module 'stripe' {
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;

object?: ExternalAccountListParams.Object;
}

namespace ExternalAccountListParams {
type Object = 'bank_account' | 'card';
}

interface ExternalAccountDeleteParams {}
Expand Down