Skip to content

Commit

Permalink
Merge pull request #1354 from stripe/latest-codegen
Browse files Browse the repository at this point in the history
API Updates
  • Loading branch information
yejia-stripe committed Feb 23, 2022
2 parents de6652f + 2fd7c6a commit 0a1cea9
Show file tree
Hide file tree
Showing 6 changed files with 986 additions and 90 deletions.
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

0 comments on commit 0a1cea9

Please sign in to comment.