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

Merged
merged 1 commit into from
Oct 14, 2021
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
11 changes: 11 additions & 0 deletions test/resources/generated_examples_test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,17 @@ describe('PaymentMethod', function() {
});
});

describe('CustomerSource', function() {
it('verifySource method', async function() {
const bankAccount = await stripe.customers.verifySource(
'cus_xxxxxxxxxxxxx',
'ba_xxxxxxxxxxxxx',
{amounts: [32, 45]}
);
expect(bankAccount).not.to.be.null;
});
});

describe('Source', function() {
it('retrieve method', async function() {
const source = await stripe.sources.retrieve('src_xxxxxxxxxxxxx');
Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1409,13 +1409,13 @@ declare module 'stripe' {
* The Klarna payment method used for this transaction.
* Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
*/
payment_method_category?: string | null;
payment_method_category: string | null;

/**
* Preferred language of the Klarna authorization page that the customer is redirected to.
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `it-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `fr-FR`, or `en-FR`
*/
preferred_locale?: string | null;
preferred_locale: string | null;
}

interface Multibanco {
Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ declare module 'stripe' {
/**
* The customer's phone number at the time of checkout
*/
phone?: string | null;
phone: string | null;

/**
* The customer's tax exempt status at time of checkout.
Expand Down Expand Up @@ -1561,6 +1561,7 @@ declare module 'stripe' {
| 'giropay'
| 'grabpay'
| 'ideal'
| 'klarna'
| 'oxxo'
| 'p24'
| 'sepa_debit'
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ declare module 'stripe' {
/**
* The customer's date of birth, if provided.
*/
dob?: Klarna.Dob | null;
dob: Klarna.Dob | null;
}

namespace Klarna {
Expand Down