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

Merged
merged 1 commit into from
Aug 4, 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
Codegen for openapi 655c295
  • Loading branch information
remi-stripe committed Aug 4, 2020
commit a3ef5522d8ec27af16459b5eef108fb20dd5523a
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