Skip to content

Commit

Permalink
Merge pull request #909 from stripe/remi/codegen-5a7b6ad
Browse files Browse the repository at this point in the history
Multiple API changes
  • Loading branch information
remi-stripe authored Jun 3, 2020
2 parents b3587e0 + bb0a275 commit 381d2eb
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
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

0 comments on commit 381d2eb

Please sign in to comment.