Skip to content

Commit

Permalink
Merge pull request stripe#972 from stripe/remi/codegen-655c295
Browse files Browse the repository at this point in the history
Multiple API changes
  • Loading branch information
remi-stripe authored Aug 4, 2020
2 parents 9cae451 + bc66bc5 commit 71b3335
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
4 changes: 2 additions & 2 deletions types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* A card or bank account to attach to the account. You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/stripe.js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.
* A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/payouts) (you won't be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/stripe.js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.
*
* By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the bank account or card creation API.
*/
Expand Down Expand Up @@ -1577,7 +1577,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* A card or bank account to attach to the account. You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/stripe.js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.
* A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/payouts) (you won't be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/stripe.js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.
*
* By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the bank account or card creation API.
*/
Expand Down
17 changes: 15 additions & 2 deletions types/2020-03-02/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,11 @@ declare module 'stripe' {

namespace CardPresent {
interface Receipt {
/**
* The type of account being debited or credited
*/
account_type?: Receipt.AccountType;

/**
* EMV tag 9F26, cryptogram generated by the integrated circuit chip.
*/
Expand Down Expand Up @@ -1005,6 +1010,10 @@ declare module 'stripe' {
*/
transaction_status_information: string | null;
}

namespace Receipt {
type AccountType = 'checking' | 'credit' | 'prepaid' | 'unknown';
}
}

interface Eps {
Expand Down Expand Up @@ -1206,9 +1215,9 @@ declare module 'stripe' {
namespace InteracPresent {
interface Receipt {
/**
* For Interac transactions - the source account type of the funds
* The type of account being debited or credited
*/
account_type?: string;
account_type?: Receipt.AccountType;

/**
* EMV tag 9F26, cryptogram generated by the integrated circuit chip.
Expand Down Expand Up @@ -1250,6 +1259,10 @@ declare module 'stripe' {
*/
transaction_status_information: string | null;
}

namespace Receipt {
type AccountType = 'checking' | 'savings' | 'unknown';
}
}

interface Klarna {}
Expand Down
8 changes: 6 additions & 2 deletions types/2020-03-02/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ declare module 'stripe' {
| 'sl'
| 'sv'
| 'tr'
| 'zh';
| 'zh'
| 'zh-HK'
| 'zh-TW';

type Mode = 'payment' | 'setup' | 'subscription';

Expand Down Expand Up @@ -869,7 +871,9 @@ declare module 'stripe' {
| 'sl'
| 'sv'
| 'tr'
| 'zh';
| 'zh'
| 'zh-HK'
| 'zh-TW';

type Mode = 'payment' | 'setup' | 'subscription';

Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Plans.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ declare module 'stripe' {
nickname?: string;

/**
* The product the plan belongs to. Note that after updating, statement descriptors and line items of the plan in active subscriptions will be affected.
* The product the plan belongs to. This cannot be changed once it has been used in a subscription or subscription schedule.
*/
product?: string;

Expand Down

0 comments on commit 71b3335

Please sign in to comment.