Skip to content

Commit

Permalink
API Updates (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe authored Mar 9, 2022
1 parent 44cd140 commit c753002
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ declare module 'stripe' {
product_data?: PriceData.ProductData;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring?: PriceData.Recurring;

Expand Down
5 changes: 5 additions & 0 deletions types/2020-08-27/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,11 @@ declare module 'stripe' {
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;

/**
* Provides a list of customers that are associated with the specified test clock. The response will not include customers with test clocks if this parameter is not set.
*/
test_clock?: string;
}

interface CustomerDeleteParams {}
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 @@ -108,7 +108,7 @@ declare module 'stripe' {
/**
* ID of the test clock this invoice item belongs to.
*/
test_clock?: string | Stripe.TestHelpers.TestClock | null;
test_clock: string | Stripe.TestHelpers.TestClock | null;

/**
* Unit amount (in the `currency` specified) of the invoice item.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ declare module 'stripe' {
product: string;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring: PriceData.Recurring;

Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ declare module 'stripe' {
/**
* ID of the test clock this invoice belongs to.
*/
test_clock?: string | Stripe.TestHelpers.TestClock | null;
test_clock: string | Stripe.TestHelpers.TestClock | null;

threshold_reason?: Invoice.ThresholdReason;

Expand Down Expand Up @@ -900,7 +900,7 @@ declare module 'stripe' {
payment_settings?: InvoiceCreateParams.PaymentSettings;

/**
* How to handle pending invoice items on invoice creation. One of `include`, `include_and_require`, or `exclude`. `include` will include any pending invoice items, and will create an empty draft invoice if no pending invoice items exist. `include_and_require` will include any pending invoice items, if no pending invoice items exist then the request will fail. `exclude` will always create an empty invoice draft regardless if there are pending invoice items or not. Defaults to `include_and_require` if the parameter is omitted.
* How to handle pending invoice items on invoice creation. One of `include`, `exclude`, or `include_and_require`. `include` will include any pending invoice items, and will create an empty draft invoice if no pending invoice items exist. `include_and_require` will include any pending invoice items, if no pending invoice items exist then the request will fail. `exclude` will always create an empty invoice draft regardless if there are pending invoice items or not. Defaults to `include_and_require` if the parameter is omitted.
*/
pending_invoice_items_behavior?: InvoiceCreateParams.PendingInvoiceItemsBehavior;

Expand Down Expand Up @@ -1900,7 +1900,7 @@ declare module 'stripe' {
product: string;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring: PriceData.Recurring;

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 @@ -1344,7 +1344,7 @@ declare module 'stripe' {
): Promise<Stripe.Response<Stripe.PaymentMethod>>;

/**
* Detaches a PaymentMethod object from a Customer.
* Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
*/
detach(
id: string,
Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/Quotes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ declare module 'stripe' {
/**
* ID of the test clock this quote belongs to.
*/
test_clock?: string | Stripe.TestHelpers.TestClock | null;
test_clock: string | Stripe.TestHelpers.TestClock | null;

total_details: Quote.TotalDetails;

Expand Down Expand Up @@ -682,7 +682,7 @@ declare module 'stripe' {
product: string;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring?: PriceData.Recurring;

Expand Down Expand Up @@ -921,7 +921,7 @@ declare module 'stripe' {
product: string;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring?: PriceData.Recurring;

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

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring: PriceData.Recurring;

Expand Down Expand Up @@ -350,7 +350,7 @@ declare module 'stripe' {
product: string;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring: PriceData.Recurring;

Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ declare module 'stripe' {
/**
* ID of the test clock this subscription schedule belongs to.
*/
test_clock?: string | Stripe.TestHelpers.TestClock | null;
test_clock: string | Stripe.TestHelpers.TestClock | null;
}

namespace SubscriptionSchedule {
Expand Down Expand Up @@ -734,7 +734,7 @@ declare module 'stripe' {
product: string;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring: PriceData.Recurring;

Expand Down Expand Up @@ -1154,7 +1154,7 @@ declare module 'stripe' {
product: string;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring: PriceData.Recurring;

Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ declare module 'stripe' {
/**
* ID of the test clock this subscription belongs to.
*/
test_clock?: string | Stripe.TestHelpers.TestClock | null;
test_clock: string | Stripe.TestHelpers.TestClock | null;

/**
* The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
Expand Down Expand Up @@ -716,7 +716,7 @@ declare module 'stripe' {
product: string;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring: PriceData.Recurring;

Expand Down Expand Up @@ -1241,7 +1241,7 @@ declare module 'stripe' {
product: string;

/**
* The recurring components of a price such as `interval` and `usage_type`.
* The recurring components of a price such as `interval` and `interval_count`.
*/
recurring: PriceData.Recurring;

Expand Down

0 comments on commit c753002

Please sign in to comment.