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

Merged
merged 1 commit into from
Sep 9, 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
4 changes: 2 additions & 2 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* 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.
* A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-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 @@ -1563,7 +1563,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* 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.
* A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-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
2 changes: 1 addition & 1 deletion types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ declare module 'stripe' {
* Preferred language of the SOFORT authorization page that the customer is redirected to.
* Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
*/
preferred_language?: Sofort.PreferredLanguage | null;
preferred_language: Sofort.PreferredLanguage | null;

/**
* Owner's verified full name. Values are verified or provided by SOFORT directly
Expand Down
4 changes: 1 addition & 3 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1268,9 +1268,7 @@ declare module 'stripe' {
trial_end?: number;

/**
* Indicates if a plan's `trial_period_days` should be applied to the
* subscription. Setting `trial_end` on `subscription_data` is preferred.
* Defaults to `false`.
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` on `subscription_data` is preferred. Defaults to `false`.
*/
trial_from_plan?: boolean;

Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/Issuing/Disputes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ declare module 'stripe' {
transaction: string;

/**
* A hash containing all the evidence related to the dispute.
* Evidence provided for the dispute.
*/
evidence?: DisputeCreateParams.Evidence;

Expand Down Expand Up @@ -625,7 +625,7 @@ declare module 'stripe' {

interface DisputeUpdateParams {
/**
* A hash containing all the evidence related to the dispute.
* Evidence provided for the dispute.
*/
evidence?: DisputeUpdateParams.Evidence;

Expand Down
9 changes: 9 additions & 0 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,9 @@ declare module 'stripe' {
}

interface Sofort {
/**
* Language shown to the payer on redirect.
*/
preferred_language?: Sofort.PreferredLanguage;
}

Expand Down Expand Up @@ -1698,6 +1701,9 @@ declare module 'stripe' {
}

interface Sofort {
/**
* Language shown to the payer on redirect.
*/
preferred_language?: Sofort.PreferredLanguage;
}

Expand Down Expand Up @@ -2372,6 +2378,9 @@ declare module 'stripe' {
}

interface Sofort {
/**
* Language shown to the payer on redirect.
*/
preferred_language?: Sofort.PreferredLanguage;
}

Expand Down
3 changes: 2 additions & 1 deletion types/2020-08-27/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,8 @@ declare module 'stripe' {
| 'giropay'
| 'ideal'
| 'p24'
| 'sepa_debit';
| 'sepa_debit'
| 'sofort';
}

interface PaymentMethodAttachParams {
Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/TaxRates.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ declare module 'stripe' {
inclusive: boolean;

/**
* The jurisdiction for the tax rate.
* The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer's invoice.
*/
jurisdiction: string | null;

Expand Down Expand Up @@ -93,7 +93,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* The jurisdiction for the tax rate.
* The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer's invoice.
*/
jurisdiction?: string;

Expand Down Expand Up @@ -132,7 +132,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* The jurisdiction for the tax rate.
* The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer's invoice.
*/
jurisdiction?: string;

Expand Down
2 changes: 2 additions & 0 deletions types/2020-08-27/WebhookEndpoints.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ declare module 'stripe' {
| 'invoice.paid'
| 'invoice.payment_action_required'
| 'invoice.payment_failed'
| 'invoice.payment_succeeded'
| 'invoice.sent'
| 'invoice.upcoming'
| 'invoice.updated'
Expand Down Expand Up @@ -487,6 +488,7 @@ declare module 'stripe' {
| 'invoice.paid'
| 'invoice.payment_action_required'
| 'invoice.payment_failed'
| 'invoice.payment_succeeded'
| 'invoice.sent'
| 'invoice.upcoming'
| 'invoice.updated'
Expand Down