Skip to content

Commit

Permalink
Merge pull request #967 from stripe/remi/codegen-7b4a14e
Browse files Browse the repository at this point in the history
Multiple API changes
  • Loading branch information
remi-stripe authored Jul 25, 2020
2 parents 215fd72 + 4014c99 commit 64e6934
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 4 deletions.
33 changes: 33 additions & 0 deletions types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ declare module 'stripe' {
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
*/
fpx_payments?: Capabilities.FpxPayments;

/**
* The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
*/
Expand Down Expand Up @@ -209,6 +214,8 @@ declare module 'stripe' {

type CartesBancairesPayments = 'active' | 'inactive' | 'pending';

type FpxPayments = 'active' | 'inactive' | 'pending';

type JcbPayments = 'active' | 'inactive' | 'pending';

type LegacyPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -890,6 +897,11 @@ declare module 'stripe' {
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The fpx_payments capability.
*/
fpx_payments?: Capabilities.FpxPayments;

/**
* The jcb_payments capability.
*/
Expand Down Expand Up @@ -952,6 +964,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface FpxPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface JcbPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down Expand Up @@ -1331,6 +1350,7 @@ declare module 'stripe' {
| 'card_issuing'
| 'card_payments'
| 'cartes_bancaires_payments'
| 'fpx_payments'
| 'jcb_payments'
| 'legacy_payments'
| 'tax_reporting_us_1099_k'
Expand Down Expand Up @@ -1697,6 +1717,11 @@ declare module 'stripe' {
*/
cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;

/**
* The fpx_payments capability.
*/
fpx_payments?: Capabilities.FpxPayments;

/**
* The jcb_payments capability.
*/
Expand Down Expand Up @@ -1759,6 +1784,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface FpxPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface JcbPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down Expand Up @@ -2138,6 +2170,7 @@ declare module 'stripe' {
| 'card_issuing'
| 'card_payments'
| 'cartes_bancaires_payments'
| 'fpx_payments'
| 'jcb_payments'
| 'legacy_payments'
| 'tax_reporting_us_1099_k'
Expand Down
6 changes: 3 additions & 3 deletions types/2020-03-02/CreditNotes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ declare module 'stripe' {
| null;

/**
* The integer amount in **%s** representing the amount of the discount that was credited.
* The integer amount in **%s** representing the total amount of discount that was credited.
*/
discount_amount: number;

Expand Down Expand Up @@ -103,7 +103,7 @@ declare module 'stripe' {
status: CreditNote.Status;

/**
* The integer amount in **%s** representing the amount of the credit note, excluding tax and discount.
* The integer amount in **%s** representing the amount of the credit note, excluding tax and invoice level discounts.
*/
subtotal: number;

Expand All @@ -113,7 +113,7 @@ declare module 'stripe' {
tax_amounts: Array<CreditNote.TaxAmount>;

/**
* The integer amount in **%s** representing the total amount of the credit note, including tax and discount.
* The integer amount in **%s** representing the total amount of the credit note, including tax and all discount.
*/
total: number;

Expand Down
22 changes: 22 additions & 0 deletions types/2020-03-02/Discounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,32 @@ declare module 'stripe' {
*/
object: 'discount';

/**
* A coupon contains information about a percent-off or amount-off discount you
* might want to apply to a customer. Coupons may be applied to [invoices](https://stripe.com/docs/api#invoices) or
* [orders](https://stripe.com/docs/api#create_order-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge).
*/
coupon: Stripe.Coupon;

/**
* The ID of the customer associated with this discount.
*/
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;

/**
* Always true for a deleted object
*/
deleted: true;

/**
* Date that the coupon was applied.
*/
start: number;

/**
* The subscription that this coupon is applied to, if it is applied to a particular subscription.
*/
subscription: string | null;
}
}
}
2 changes: 1 addition & 1 deletion types/2020-03-02/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ declare module 'stripe' {
subscription_proration_date?: number;

/**
* Total of all subscriptions, invoice items, and prorations on the invoice before any discount or tax is applied.
* Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
*/
subtotal: number;

Expand Down

0 comments on commit 64e6934

Please sign in to comment.