stripe 16.9.0 → 16.10.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
+ ## 16.10.0 - 2024-09-05
4
+ * [#2158](https://github.com/stripe/stripe-node/pull/2158) Update generated code
5
+ * Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter`
6
+ * Change `Terminal.ReaderProcessSetupIntentParams.customer_consent_collected` to be optional
7
+
3
8
  ## 16.9.0 - 2024-08-29
4
9
  * [#2163](https://github.com/stripe/stripe-node/pull/2163) Generate SDK for OpenAPI spec version 1230
5
10
  * Change `AccountLinkCreateParams.collection_options.fields` and `LineItem.description` to be optional
package/VERSION CHANGED
@@ -1 +1 @@
1
- 16.9.0
1
+ 16.10.0
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
34
34
  ];
35
35
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
36
36
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
37
- Stripe.PACKAGE_VERSION = '16.9.0';
37
+ Stripe.PACKAGE_VERSION = '16.10.0';
38
38
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
39
39
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
40
40
  Stripe.resources = resources;
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
31
31
  ];
32
32
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
33
33
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
34
- Stripe.PACKAGE_VERSION = '16.9.0';
34
+ Stripe.PACKAGE_VERSION = '16.10.0';
35
35
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
36
36
  Stripe.StripeResource = StripeResource;
37
37
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "16.9.0",
3
+ "version": "16.10.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -36,6 +36,16 @@ declare module 'stripe' {
36
36
  * Limit the scope to this alert only to this customer.
37
37
  */
38
38
  customer?: string;
39
+
40
+ /**
41
+ * Limit the scope of this rated usage alert to this subscription.
42
+ */
43
+ subscription?: string;
44
+
45
+ /**
46
+ * Limit the scope of this rated usage alert to this subscription item.
47
+ */
48
+ subscription_item?: string;
39
49
  }
40
50
 
41
51
  interface UsageThresholdConfig {
@@ -219,7 +219,7 @@ declare module 'stripe' {
219
219
  recovered_from: string | null;
220
220
 
221
221
  /**
222
- * This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
222
+ * This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
223
223
  */
224
224
  redirect_on_completion?: Session.RedirectOnCompletion;
225
225
 
@@ -196,7 +196,7 @@ declare module 'stripe' {
196
196
  phone_number_collection?: SessionCreateParams.PhoneNumberCollection;
197
197
 
198
198
  /**
199
- * This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-redirect-behavior) of embedded sessions. Defaults to `always`.
199
+ * This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
200
200
  */
201
201
  redirect_on_completion?: SessionCreateParams.RedirectOnCompletion;
202
202
 
@@ -1753,7 +1753,7 @@ declare module 'stripe' {
1753
1753
  expand?: Array<string>;
1754
1754
 
1755
1755
  /**
1756
- * List of invoice items to add or update in the upcoming invoice preview.
1756
+ * List of invoice items to add or update in the upcoming invoice preview (up to 250).
1757
1757
  */
1758
1758
  invoice_items?: Array<InvoiceCreatePreviewParams.InvoiceItem>;
1759
1759
 
@@ -2867,7 +2867,7 @@ declare module 'stripe' {
2867
2867
  expand?: Array<string>;
2868
2868
 
2869
2869
  /**
2870
- * List of invoice items to add or update in the upcoming invoice preview.
2870
+ * List of invoice items to add or update in the upcoming invoice preview (up to 250).
2871
2871
  */
2872
2872
  invoice_items?: Array<InvoiceListUpcomingLinesParams.InvoiceItem>;
2873
2873
 
@@ -4253,7 +4253,7 @@ declare module 'stripe' {
4253
4253
  expand?: Array<string>;
4254
4254
 
4255
4255
  /**
4256
- * List of invoice items to add or update in the upcoming invoice preview.
4256
+ * List of invoice items to add or update in the upcoming invoice preview (up to 250).
4257
4257
  */
4258
4258
  invoice_items?: Array<InvoiceRetrieveUpcomingParams.InvoiceItem>;
4259
4259
 
@@ -7679,6 +7679,9 @@ declare module 'stripe' {
7679
7679
  * after those actions are completed. Your server needs to then
7680
7680
  * explicitly re-confirm the PaymentIntent to initiate the next payment
7681
7681
  * attempt.
7682
+ * There is a variable upper limit on how many times a PaymentIntent can be confirmed.
7683
+ * After this limit is reached, any further calls to this endpoint will
7684
+ * transition the PaymentIntent to the canceled state.
7682
7685
  */
7683
7686
  confirm(
7684
7687
  id: string,
@@ -151,14 +151,14 @@ declare module 'stripe' {
151
151
 
152
152
  interface ReaderProcessSetupIntentParams {
153
153
  /**
154
- * Customer Consent Collected
154
+ * SetupIntent ID
155
155
  */
156
- customer_consent_collected: boolean;
156
+ setup_intent: string;
157
157
 
158
158
  /**
159
- * SetupIntent ID
159
+ * Customer Consent Collected
160
160
  */
161
- setup_intent: string;
161
+ customer_consent_collected?: boolean;
162
162
 
163
163
  /**
164
164
  * Specifies which fields in the response should be expanded.
@@ -86,7 +86,7 @@ declare module 'stripe' {
86
86
  reversed: boolean;
87
87
 
88
88
  /**
89
- * ID of the charge or payment that was used to fund the transfer. If null, the transfer was funded from the available balance.
89
+ * ID of the charge that was used to fund the transfer. If null, the transfer was funded from the available balance.
90
90
  */
91
91
  source_transaction: string | Stripe.Charge | null;
92
92