From 48dde4c782b0babdf975f734a8d953feb980153b Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Mon, 21 Sep 2020 12:54:28 -0700 Subject: [PATCH] Codegen for openapi 3c6f846 --- types/2020-08-27/BitcoinReceivers.d.ts | 2 +- types/2020-08-27/Cards.d.ts | 5 ++++- types/2020-08-27/Charges.d.ts | 5 +++++ types/2020-08-27/Checkout/Sessions.d.ts | 3 +-- types/2020-08-27/Coupons.d.ts | 2 +- types/2020-08-27/CreditNotes.d.ts | 2 +- types/2020-08-27/Discounts.d.ts | 10 ++++++++++ types/2020-08-27/FeeRefunds.d.ts | 2 +- types/2020-08-27/InvoiceItems.d.ts | 2 +- types/2020-08-27/Orders.d.ts | 2 +- types/2020-08-27/PaymentMethods.d.ts | 2 +- types/2020-08-27/Payouts.d.ts | 2 +- types/2020-08-27/Plans.d.ts | 2 +- types/2020-08-27/PromotionCodes.d.ts | 2 +- types/2020-08-27/Refunds.d.ts | 2 +- types/2020-08-27/SetupIntents.d.ts | 2 +- types/2020-08-27/SubscriptionSchedules.d.ts | 2 +- types/2020-08-27/Subscriptions.d.ts | 2 +- types/2020-08-27/TaxRates.d.ts | 2 +- types/2020-08-27/Tokens.d.ts | 2 +- types/2020-08-27/TransferReversals.d.ts | 2 +- 21 files changed, 37 insertions(+), 20 deletions(-) diff --git a/types/2020-08-27/BitcoinReceivers.d.ts b/types/2020-08-27/BitcoinReceivers.d.ts index 5434135b22..cca1c3d519 100644 --- a/types/2020-08-27/BitcoinReceivers.d.ts +++ b/types/2020-08-27/BitcoinReceivers.d.ts @@ -90,7 +90,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * The ID of the payment created from the receiver, if any. Hidden when viewing the receiver with a publishable key. diff --git a/types/2020-08-27/Cards.d.ts b/types/2020-08-27/Cards.d.ts index 858273a8ee..23c6ec937b 100644 --- a/types/2020-08-27/Cards.d.ts +++ b/types/2020-08-27/Cards.d.ts @@ -75,6 +75,9 @@ declare module 'stripe' { */ country: string | null; + /** + * Three-letter [ISO code for currency](https://stripe.com/docs/payouts). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. + */ currency?: string | null; /** @@ -142,7 +145,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * Cardholder name. diff --git a/types/2020-08-27/Charges.d.ts b/types/2020-08-27/Charges.d.ts index e83d3316ff..89f9f1fe0b 100644 --- a/types/2020-08-27/Charges.d.ts +++ b/types/2020-08-27/Charges.d.ts @@ -22,6 +22,11 @@ declare module 'stripe' { */ amount: number; + /** + * Amount in %s captured (can be less than the amount attribute on the charge if a partial capture was made). + */ + amount_captured: number; + /** * Amount in %s refunded (can be less than the amount attribute on the charge if a partial refund was issued). */ diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index 3c8e3b2dbb..399a1c1133 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -557,8 +557,7 @@ declare module 'stripe' { * The URL to which Stripe should send customers when payment or setup * is complete. * If you'd like access to the Checkout Session for the successful - * payment, read more about it in our guide on [fulfilling your payments - * with webhooks](https://stripe.com/docs/payments/checkout/accept-a-payment#payment-success). + * payment, read more about it in the guide on [fulfilling orders](https://stripe.com/docs/payments/checkout/fulfill-orders). */ success_url: string; diff --git a/types/2020-08-27/Coupons.d.ts b/types/2020-08-27/Coupons.d.ts index a44dba09c2..299a4a154d 100644 --- a/types/2020-08-27/Coupons.d.ts +++ b/types/2020-08-27/Coupons.d.ts @@ -57,7 +57,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * Name of the coupon displayed to customers on for instance invoices or receipts. diff --git a/types/2020-08-27/CreditNotes.d.ts b/types/2020-08-27/CreditNotes.d.ts index a06b83e8ae..64fe083f79 100644 --- a/types/2020-08-27/CreditNotes.d.ts +++ b/types/2020-08-27/CreditNotes.d.ts @@ -76,7 +76,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice. diff --git a/types/2020-08-27/Discounts.d.ts b/types/2020-08-27/Discounts.d.ts index 4db37e6eae..9c98cca46e 100644 --- a/types/2020-08-27/Discounts.d.ts +++ b/types/2020-08-27/Discounts.d.ts @@ -15,6 +15,11 @@ declare module 'stripe' { */ object: 'discount'; + /** + * The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode. + */ + checkout_session: string | null; + /** * 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 @@ -74,6 +79,11 @@ declare module 'stripe' { */ object: 'discount'; + /** + * The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode. + */ + checkout_session: string | null; + /** * 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 diff --git a/types/2020-08-27/FeeRefunds.d.ts b/types/2020-08-27/FeeRefunds.d.ts index 906b933814..353036738a 100644 --- a/types/2020-08-27/FeeRefunds.d.ts +++ b/types/2020-08-27/FeeRefunds.d.ts @@ -43,7 +43,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; } interface FeeRefundCreateParams { diff --git a/types/2020-08-27/InvoiceItems.d.ts b/types/2020-08-27/InvoiceItems.d.ts index b03de82775..bd4a2d7485 100644 --- a/types/2020-08-27/InvoiceItems.d.ts +++ b/types/2020-08-27/InvoiceItems.d.ts @@ -65,7 +65,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; period: InvoiceItem.Period; diff --git a/types/2020-08-27/Orders.d.ts b/types/2020-08-27/Orders.d.ts index 2c2b0cffc2..5a2210a4e6 100644 --- a/types/2020-08-27/Orders.d.ts +++ b/types/2020-08-27/Orders.d.ts @@ -78,7 +78,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * A list of returns that have taken place for this order. diff --git a/types/2020-08-27/PaymentMethods.d.ts b/types/2020-08-27/PaymentMethods.d.ts index 089ddce94b..63f754f7bc 100644 --- a/types/2020-08-27/PaymentMethods.d.ts +++ b/types/2020-08-27/PaymentMethods.d.ts @@ -57,7 +57,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; p24?: PaymentMethod.P24; diff --git a/types/2020-08-27/Payouts.d.ts b/types/2020-08-27/Payouts.d.ts index c21439ae72..64f3b655dc 100644 --- a/types/2020-08-27/Payouts.d.ts +++ b/types/2020-08-27/Payouts.d.ts @@ -84,7 +84,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * The method used to send this payout, which can be `standard` or `instant`. `instant` is only supported for payouts to debit cards. (See [Instant payouts for marketplaces](https://stripe.com/blog/instant-payouts-for-marketplaces) for more information.) diff --git a/types/2020-08-27/Plans.d.ts b/types/2020-08-27/Plans.d.ts index a4469cf608..7adb587ca9 100644 --- a/types/2020-08-27/Plans.d.ts +++ b/types/2020-08-27/Plans.d.ts @@ -70,7 +70,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * A brief description of the plan, hidden from customers. diff --git a/types/2020-08-27/PromotionCodes.d.ts b/types/2020-08-27/PromotionCodes.d.ts index c3011ba056..75acfedfa4 100644 --- a/types/2020-08-27/PromotionCodes.d.ts +++ b/types/2020-08-27/PromotionCodes.d.ts @@ -60,7 +60,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; restrictions: PromotionCode.Restrictions; diff --git a/types/2020-08-27/Refunds.d.ts b/types/2020-08-27/Refunds.d.ts index 1075f2c424..af26ce1f9b 100644 --- a/types/2020-08-27/Refunds.d.ts +++ b/types/2020-08-27/Refunds.d.ts @@ -58,7 +58,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * ID of the PaymentIntent that was refunded. diff --git a/types/2020-08-27/SetupIntents.d.ts b/types/2020-08-27/SetupIntents.d.ts index fd272e8e91..0ef87b1ef9 100644 --- a/types/2020-08-27/SetupIntents.d.ts +++ b/types/2020-08-27/SetupIntents.d.ts @@ -67,7 +67,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * If present, this property tells you what actions you need to take in order for your customer to continue payment setup. diff --git a/types/2020-08-27/SubscriptionSchedules.d.ts b/types/2020-08-27/SubscriptionSchedules.d.ts index a3c9a4b1ae..0d66d9a769 100644 --- a/types/2020-08-27/SubscriptionSchedules.d.ts +++ b/types/2020-08-27/SubscriptionSchedules.d.ts @@ -1146,7 +1146,7 @@ declare module 'stripe' { class SubscriptionSchedulesResource { /** - * Creates a new subscription schedule object. Each customer can have up to 25 active or scheduled subscriptions. + * Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions. */ create( params?: SubscriptionScheduleCreateParams, diff --git a/types/2020-08-27/Subscriptions.d.ts b/types/2020-08-27/Subscriptions.d.ts index bf23db8254..b11dcb801e 100644 --- a/types/2020-08-27/Subscriptions.d.ts +++ b/types/2020-08-27/Subscriptions.d.ts @@ -1033,7 +1033,7 @@ declare module 'stripe' { class SubscriptionsResource { /** - * Creates a new subscription on an existing customer. Each customer can have up to 25 active or scheduled subscriptions. + * Creates a new subscription on an existing customer. Each customer can have up to 500 active or scheduled subscriptions. */ create( params: SubscriptionCreateParams, diff --git a/types/2020-08-27/TaxRates.d.ts b/types/2020-08-27/TaxRates.d.ts index 1c7d9b7aa3..7e5c823e95 100644 --- a/types/2020-08-27/TaxRates.d.ts +++ b/types/2020-08-27/TaxRates.d.ts @@ -53,7 +53,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * This represents the tax rate percent out of 100. diff --git a/types/2020-08-27/Tokens.d.ts b/types/2020-08-27/Tokens.d.ts index 6c8f9f7b59..46dc260aba 100644 --- a/types/2020-08-27/Tokens.d.ts +++ b/types/2020-08-27/Tokens.d.ts @@ -485,7 +485,7 @@ declare module 'stripe' { country: string; /** - * The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) + * The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](https://stripe.com/docs/payouts) */ currency?: string; diff --git a/types/2020-08-27/TransferReversals.d.ts b/types/2020-08-27/TransferReversals.d.ts index d2604d7eb0..bdb83ca968 100644 --- a/types/2020-08-27/TransferReversals.d.ts +++ b/types/2020-08-27/TransferReversals.d.ts @@ -43,7 +43,7 @@ declare module 'stripe' { /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata: Metadata; + metadata: Metadata | null; /** * ID of the refund responsible for the transfer reversal.