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

Merged
merged 1 commit into from
Nov 24, 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: 3 additions & 1 deletion types/2020-08-27/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ declare module 'stripe' {
deleted?: void;

/**
* When the customer's latest invoice is billed by charging automatically, delinquent is true if the invoice's latest charge is failed. When the customer's latest invoice is billed by sending an invoice, delinquent is true if the invoice is not paid by its due date.
* When the customer's latest invoice is billed by charging automatically, `delinquent` is `true` if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, `delinquent` is `true` if the invoice isn't paid by its due date.
*
* If an invoice is marked uncollectible by [dunning](https://stripe.com/docs/billing/automatic-collection), `delinquent` doesn't get reset to `false`.
*/
delinquent: boolean | null;

Expand Down
15 changes: 15 additions & 0 deletions types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ declare module 'stripe' {
*/
account_name: string | null;

/**
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
*/
account_tax_ids?: Array<string | Stripe.TaxId | DeletedTaxId> | null;

/**
* Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`.
*/
Expand Down Expand Up @@ -646,6 +651,11 @@ declare module 'stripe' {
*/
customer: string;

/**
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
*/
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#invoices).
*/
Expand Down Expand Up @@ -780,6 +790,11 @@ declare module 'stripe' {
}

interface InvoiceUpdateParams {
/**
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
*/
account_tax_ids?: Stripe.Emptyable<Array<string>>;

/**
* A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#invoices).
*/
Expand Down
58 changes: 58 additions & 0 deletions types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ declare module 'stripe' {

p24?: PaymentMethodOptions.P24;

sepa_debit?: PaymentMethodOptions.SepaDebit;

sofort?: PaymentMethodOptions.Sofort;
}

Expand Down Expand Up @@ -521,6 +523,14 @@ declare module 'stripe' {

interface P24 {}

interface SepaDebit {
mandate_options?: SepaDebit.MandateOptions;
}

namespace SepaDebit {
interface MandateOptions {}
}

interface Sofort {
/**
* Preferred language of the SOFORT authorization page that the customer is redirected to.
Expand Down Expand Up @@ -1137,6 +1147,11 @@ declare module 'stripe' {
*/
p24?: Stripe.Emptyable<PaymentMethodOptions.P24>;

/**
* If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
*/
sepa_debit?: Stripe.Emptyable<PaymentMethodOptions.SepaDebit>;

/**
* If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
*/
Expand Down Expand Up @@ -1248,6 +1263,17 @@ declare module 'stripe' {

interface P24 {}

interface SepaDebit {
/**
* Additional fields for Mandate creation
*/
mandate_options?: SepaDebit.MandateOptions;
}

namespace SepaDebit {
interface MandateOptions {}
}

interface Sofort {
/**
* Language shown to the payer on redirect.
Expand Down Expand Up @@ -1776,6 +1802,11 @@ declare module 'stripe' {
*/
p24?: Stripe.Emptyable<PaymentMethodOptions.P24>;

/**
* If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
*/
sepa_debit?: Stripe.Emptyable<PaymentMethodOptions.SepaDebit>;

/**
* If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
*/
Expand Down Expand Up @@ -1887,6 +1918,17 @@ declare module 'stripe' {

interface P24 {}

interface SepaDebit {
/**
* Additional fields for Mandate creation
*/
mandate_options?: SepaDebit.MandateOptions;
}

namespace SepaDebit {
interface MandateOptions {}
}

interface Sofort {
/**
* Language shown to the payer on redirect.
Expand Down Expand Up @@ -2529,6 +2571,11 @@ declare module 'stripe' {
*/
p24?: Stripe.Emptyable<PaymentMethodOptions.P24>;

/**
* If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
*/
sepa_debit?: Stripe.Emptyable<PaymentMethodOptions.SepaDebit>;

/**
* If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
*/
Expand Down Expand Up @@ -2640,6 +2687,17 @@ declare module 'stripe' {

interface P24 {}

interface SepaDebit {
/**
* Additional fields for Mandate creation
*/
mandate_options?: SepaDebit.MandateOptions;
}

namespace SepaDebit {
interface MandateOptions {}
}

interface Sofort {
/**
* Language shown to the payer on redirect.
Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ declare module 'stripe' {
card?: PaymentMethodOptions.Card;

/**
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the Sepa Debit payment method options.
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
*/
sepa_debit?: PaymentMethodOptions.SepaDebit;
}
Expand Down Expand Up @@ -530,7 +530,7 @@ declare module 'stripe' {
card?: PaymentMethodOptions.Card;

/**
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the Sepa Debit payment method options.
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
*/
sepa_debit?: PaymentMethodOptions.SepaDebit;
}
Expand Down Expand Up @@ -731,7 +731,7 @@ declare module 'stripe' {
card?: PaymentMethodOptions.Card;

/**
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the Sepa Debit payment method options.
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
*/
sepa_debit?: PaymentMethodOptions.SepaDebit;
}
Expand Down