stripe 8.207.0 → 8.208.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 8.208.0 - 2022-03-09
4
+ * [#1366](https://github.com/stripe/stripe-node/pull/1366) API Updates
5
+ * Add support for `test_clock` on `CustomerListParams`
6
+ * Change `Invoice.test_clock`, `InvoiceItem.test_clock`, `Quote.test_clock`, `Subscription.test_clock`, and `SubscriptionSchedule.test_clock` to be required
7
+
3
8
  ## 8.207.0 - 2022-03-02
4
9
  * [#1363](https://github.com/stripe/stripe-node/pull/1363) API Updates
5
10
  * Add support for new resources `CreditedItems` and `ProrationDetails`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.207.0
1
+ 8.208.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "8.207.0",
3
+ "version": "8.208.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -1256,7 +1256,7 @@ declare module 'stripe' {
1256
1256
  product_data?: PriceData.ProductData;
1257
1257
 
1258
1258
  /**
1259
- * The recurring components of a price such as `interval` and `usage_type`.
1259
+ * The recurring components of a price such as `interval` and `interval_count`.
1260
1260
  */
1261
1261
  recurring?: PriceData.Recurring;
1262
1262
 
@@ -671,6 +671,11 @@ declare module 'stripe' {
671
671
  * Specifies which fields in the response should be expanded.
672
672
  */
673
673
  expand?: Array<string>;
674
+
675
+ /**
676
+ * 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.
677
+ */
678
+ test_clock?: string;
674
679
  }
675
680
 
676
681
  interface CustomerDeleteParams {}
@@ -108,7 +108,7 @@ declare module 'stripe' {
108
108
  /**
109
109
  * ID of the test clock this invoice item belongs to.
110
110
  */
111
- test_clock?: string | Stripe.TestHelpers.TestClock | null;
111
+ test_clock: string | Stripe.TestHelpers.TestClock | null;
112
112
 
113
113
  /**
114
114
  * Unit amount (in the `currency` specified) of the invoice item.
@@ -647,7 +647,7 @@ declare module 'stripe' {
647
647
  product: string;
648
648
 
649
649
  /**
650
- * The recurring components of a price such as `interval` and `usage_type`.
650
+ * The recurring components of a price such as `interval` and `interval_count`.
651
651
  */
652
652
  recurring: PriceData.Recurring;
653
653
 
@@ -321,7 +321,7 @@ declare module 'stripe' {
321
321
  /**
322
322
  * ID of the test clock this invoice belongs to.
323
323
  */
324
- test_clock?: string | Stripe.TestHelpers.TestClock | null;
324
+ test_clock: string | Stripe.TestHelpers.TestClock | null;
325
325
 
326
326
  threshold_reason?: Invoice.ThresholdReason;
327
327
 
@@ -900,7 +900,7 @@ declare module 'stripe' {
900
900
  payment_settings?: InvoiceCreateParams.PaymentSettings;
901
901
 
902
902
  /**
903
- * 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.
903
+ * 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.
904
904
  */
905
905
  pending_invoice_items_behavior?: InvoiceCreateParams.PendingInvoiceItemsBehavior;
906
906
 
@@ -1900,7 +1900,7 @@ declare module 'stripe' {
1900
1900
  product: string;
1901
1901
 
1902
1902
  /**
1903
- * The recurring components of a price such as `interval` and `usage_type`.
1903
+ * The recurring components of a price such as `interval` and `interval_count`.
1904
1904
  */
1905
1905
  recurring: PriceData.Recurring;
1906
1906
 
@@ -1344,7 +1344,7 @@ declare module 'stripe' {
1344
1344
  ): Promise<Stripe.Response<Stripe.PaymentMethod>>;
1345
1345
 
1346
1346
  /**
1347
- * Detaches a PaymentMethod object from a Customer.
1347
+ * 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.
1348
1348
  */
1349
1349
  detach(
1350
1350
  id: string,
@@ -152,7 +152,7 @@ declare module 'stripe' {
152
152
  /**
153
153
  * ID of the test clock this quote belongs to.
154
154
  */
155
- test_clock?: string | Stripe.TestHelpers.TestClock | null;
155
+ test_clock: string | Stripe.TestHelpers.TestClock | null;
156
156
 
157
157
  total_details: Quote.TotalDetails;
158
158
 
@@ -682,7 +682,7 @@ declare module 'stripe' {
682
682
  product: string;
683
683
 
684
684
  /**
685
- * The recurring components of a price such as `interval` and `usage_type`.
685
+ * The recurring components of a price such as `interval` and `interval_count`.
686
686
  */
687
687
  recurring?: PriceData.Recurring;
688
688
 
@@ -921,7 +921,7 @@ declare module 'stripe' {
921
921
  product: string;
922
922
 
923
923
  /**
924
- * The recurring components of a price such as `interval` and `usage_type`.
924
+ * The recurring components of a price such as `interval` and `interval_count`.
925
925
  */
926
926
  recurring?: PriceData.Recurring;
927
927
 
@@ -200,7 +200,7 @@ declare module 'stripe' {
200
200
  product: string;
201
201
 
202
202
  /**
203
- * The recurring components of a price such as `interval` and `usage_type`.
203
+ * The recurring components of a price such as `interval` and `interval_count`.
204
204
  */
205
205
  recurring: PriceData.Recurring;
206
206
 
@@ -350,7 +350,7 @@ declare module 'stripe' {
350
350
  product: string;
351
351
 
352
352
  /**
353
- * The recurring components of a price such as `interval` and `usage_type`.
353
+ * The recurring components of a price such as `interval` and `interval_count`.
354
354
  */
355
355
  recurring: PriceData.Recurring;
356
356
 
@@ -86,7 +86,7 @@ declare module 'stripe' {
86
86
  /**
87
87
  * ID of the test clock this subscription schedule belongs to.
88
88
  */
89
- test_clock?: string | Stripe.TestHelpers.TestClock | null;
89
+ test_clock: string | Stripe.TestHelpers.TestClock | null;
90
90
  }
91
91
 
92
92
  namespace SubscriptionSchedule {
@@ -734,7 +734,7 @@ declare module 'stripe' {
734
734
  product: string;
735
735
 
736
736
  /**
737
- * The recurring components of a price such as `interval` and `usage_type`.
737
+ * The recurring components of a price such as `interval` and `interval_count`.
738
738
  */
739
739
  recurring: PriceData.Recurring;
740
740
 
@@ -1154,7 +1154,7 @@ declare module 'stripe' {
1154
1154
  product: string;
1155
1155
 
1156
1156
  /**
1157
- * The recurring components of a price such as `interval` and `usage_type`.
1157
+ * The recurring components of a price such as `interval` and `interval_count`.
1158
1158
  */
1159
1159
  recurring: PriceData.Recurring;
1160
1160
 
@@ -179,7 +179,7 @@ declare module 'stripe' {
179
179
  /**
180
180
  * ID of the test clock this subscription belongs to.
181
181
  */
182
- test_clock?: string | Stripe.TestHelpers.TestClock | null;
182
+ test_clock: string | Stripe.TestHelpers.TestClock | null;
183
183
 
184
184
  /**
185
185
  * 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.
@@ -716,7 +716,7 @@ declare module 'stripe' {
716
716
  product: string;
717
717
 
718
718
  /**
719
- * The recurring components of a price such as `interval` and `usage_type`.
719
+ * The recurring components of a price such as `interval` and `interval_count`.
720
720
  */
721
721
  recurring: PriceData.Recurring;
722
722
 
@@ -1241,7 +1241,7 @@ declare module 'stripe' {
1241
1241
  product: string;
1242
1242
 
1243
1243
  /**
1244
- * The recurring components of a price such as `interval` and `usage_type`.
1244
+ * The recurring components of a price such as `interval` and `interval_count`.
1245
1245
  */
1246
1246
  recurring: PriceData.Recurring;
1247
1247