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

Multiple API changes #909

Merged
merged 1 commit into from
Jun 3, 2020
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
9 changes: 9 additions & 0 deletions types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ declare module 'stripe' {
*/
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;

/**
* The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
*/
bacs_debit_payments?: Capabilities.BacsDebitPayments;

/**
* The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
*/
Expand Down Expand Up @@ -191,6 +196,8 @@ declare module 'stripe' {
namespace Capabilities {
type AuBecsDebitPayments = 'active' | 'inactive' | 'pending';

type BacsDebitPayments = 'active' | 'inactive' | 'pending';

type CardIssuing = 'active' | 'inactive' | 'pending';

type CardPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -1177,6 +1184,7 @@ declare module 'stripe' {

type RequestedCapability =
| 'au_becs_debit_payments'
| 'bacs_debit_payments'
| 'card_issuing'
| 'card_payments'
| 'jcb_payments'
Expand Down Expand Up @@ -1846,6 +1854,7 @@ declare module 'stripe' {

type RequestedCapability =
| 'au_becs_debit_payments'
| 'bacs_debit_payments'
| 'card_issuing'
| 'card_payments'
| 'jcb_payments'
Expand Down
4 changes: 2 additions & 2 deletions types/2020-03-02/BillingPortal/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ declare module 'stripe' {
return_url: string;

/**
* The short-lived URL of the session giving customers access to the self-serve portal.
* The short-lived URL of the session giving customers access to the customer portal.
*/
url: string;
}
Expand All @@ -60,7 +60,7 @@ declare module 'stripe' {

class SessionsResource {
/**
* Creates a session of the self-serve portal.
* Creates a session of the customer portal.
*/
create(
params: SessionCreateParams,
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ declare module 'stripe' {
}
}

type PaymentMethodType = 'card' | 'fpx' | 'ideal';
type PaymentMethodType = 'bacs_debit' | 'card' | 'fpx' | 'ideal';

interface SetupIntentData {
/**
Expand Down
9 changes: 9 additions & 0 deletions types/2020-03-02/Mandates.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,19 @@ declare module 'stripe' {
}

interface BacsDebit {
/**
* The status of the mandate on the Bacs network. Can be one of `pending`, `revoked`, `refused`, or `accepted`.
*/
network_status: BacsDebit.NetworkStatus;

/**
* The unique reference identifying the mandate on the Bacs network.
*/
reference: string;

/**
* The URL that will contain the mandate that the customer has signed.
*/
url: string;
}

Expand Down
1 change: 1 addition & 0 deletions types/2020-03-02/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ declare module 'stripe' {
namespace PaymentMethodListParams {
type Type =
| 'au_becs_debit'
| 'bacs_debit'
| 'bancontact'
| 'card'
| 'card_present'
Expand Down
4 changes: 4 additions & 0 deletions types/2020-03-02/WebhookEndpoints.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ declare module 'stripe' {
| 'charge.refunded'
| 'charge.succeeded'
| 'charge.updated'
| 'checkout.session.async_payment_failed'
| 'checkout.session.async_payment_succeeded'
| 'checkout.session.completed'
| 'coupon.created'
| 'coupon.deleted'
Expand Down Expand Up @@ -443,6 +445,8 @@ declare module 'stripe' {
| 'charge.refunded'
| 'charge.succeeded'
| 'charge.updated'
| 'checkout.session.async_payment_failed'
| 'checkout.session.async_payment_succeeded'
| 'checkout.session.completed'
| 'coupon.created'
| 'coupon.deleted'
Expand Down