Skip to content

Commit 0a1cea9

Browse files
authored
Merge pull request #1354 from stripe/latest-codegen
API Updates
2 parents de6652f + 2fd7c6a commit 0a1cea9

6 files changed

Lines changed: 986 additions & 90 deletions

File tree

test/resources/generated_examples_test.spec.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,13 @@ describe('PaymentIntent', function() {
240240
});
241241
expect(paymentIntent).not.to.be.null;
242242
});
243+
244+
it('verifyMicrodeposits method', async function() {
245+
const paymentIntent = await stripe.paymentIntents.verifyMicrodeposits(
246+
'pi_xxxxxxxxxxxxx'
247+
);
248+
expect(paymentIntent).not.to.be.null;
249+
});
243250
});
244251

245252
describe('SetupIntent', function() {
@@ -281,6 +288,13 @@ describe('SetupIntent', function() {
281288
const setupIntents = await stripe.setupIntents.list({limit: 3});
282289
expect(setupIntents).not.to.be.null;
283290
});
291+
292+
it('verifyMicrodeposits method', async function() {
293+
const setupIntent = await stripe.setupIntents.verifyMicrodeposits(
294+
'seti_xxxxxxxxxxxxx'
295+
);
296+
expect(setupIntent).not.to.be.null;
297+
});
284298
});
285299

286300
describe('SetupAttempt', function() {

types/2020-08-27/Checkout/Sessions.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,9 +1172,7 @@ declare module 'stripe' {
11721172
currency?: string;
11731173

11741174
/**
1175-
* The description for the line item, to be displayed on the Checkout page.
1176-
*
1177-
* If using `price` or `price_data`, will default to the name of the associated product.
1175+
* [Deprecated] The description for the line item, to be displayed on the Checkout page.
11781176
*/
11791177
description?: string;
11801178

@@ -1514,7 +1512,7 @@ declare module 'stripe' {
15141512
oxxo?: PaymentMethodOptions.Oxxo;
15151513

15161514
/**
1517-
* contains details about the Wechat Pay payment method options.
1515+
* contains details about the WeChat Pay payment method options.
15181516
*/
15191517
wechat_pay?: PaymentMethodOptions.WechatPay;
15201518
}

types/2020-08-27/ExternalAccounts.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ declare module 'stripe' {
121121
* Specifies which fields in the response should be expanded.
122122
*/
123123
expand?: Array<string>;
124+
125+
object?: ExternalAccountListParams.Object;
126+
}
127+
128+
namespace ExternalAccountListParams {
129+
type Object = 'bank_account' | 'card';
124130
}
125131

126132
interface ExternalAccountDeleteParams {}

0 commit comments

Comments
 (0)