Skip to content

Commit

Permalink
Merge pull request #1012 from stripe/remi/codegen-3c6f846
Browse files Browse the repository at this point in the history
Multiple API changes
  • Loading branch information
remi-stripe authored Sep 21, 2020
2 parents 9bab8b6 + 48dde4c commit 85d1bb4
Show file tree
Hide file tree
Showing 21 changed files with 37 additions and 20 deletions.
2 changes: 1 addition & 1 deletion types/2020-08-27/BitcoinReceivers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion types/2020-08-27/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/
Expand Down
3 changes: 1 addition & 2 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Coupons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/CreditNotes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions types/2020-08-27/Discounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/FeeRefunds.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/InvoiceItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Orders.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Payouts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Plans.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/PromotionCodes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Refunds.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/TaxRates.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/TransferReversals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 85d1bb4

Please sign in to comment.