@metronome/sdk 1.0.0 → 2.1.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.
Files changed (192) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/bin/cli +5 -12
  3. package/internal/to-file.d.mts +1 -1
  4. package/internal/to-file.d.ts +1 -1
  5. package/internal/to-file.js +1 -1
  6. package/internal/to-file.mjs +1 -1
  7. package/package.json +1 -1
  8. package/resources/shared.d.mts +157 -7
  9. package/resources/shared.d.mts.map +1 -1
  10. package/resources/shared.d.ts +157 -7
  11. package/resources/shared.d.ts.map +1 -1
  12. package/resources/v1/alerts.d.mts +68 -64
  13. package/resources/v1/alerts.d.mts.map +1 -1
  14. package/resources/v1/alerts.d.ts +68 -64
  15. package/resources/v1/alerts.d.ts.map +1 -1
  16. package/resources/v1/alerts.js +40 -39
  17. package/resources/v1/alerts.js.map +1 -1
  18. package/resources/v1/alerts.mjs +40 -39
  19. package/resources/v1/alerts.mjs.map +1 -1
  20. package/resources/v1/contracts/contracts.d.mts +56 -9
  21. package/resources/v1/contracts/contracts.d.mts.map +1 -1
  22. package/resources/v1/contracts/contracts.d.ts +56 -9
  23. package/resources/v1/contracts/contracts.d.ts.map +1 -1
  24. package/resources/v1/contracts/contracts.js +5 -4
  25. package/resources/v1/contracts/contracts.js.map +1 -1
  26. package/resources/v1/contracts/contracts.mjs +5 -4
  27. package/resources/v1/contracts/contracts.mjs.map +1 -1
  28. package/resources/v1/credit-grants.d.mts +10 -5
  29. package/resources/v1/credit-grants.d.mts.map +1 -1
  30. package/resources/v1/credit-grants.d.ts +10 -5
  31. package/resources/v1/credit-grants.d.ts.map +1 -1
  32. package/resources/v1/credit-grants.js +10 -5
  33. package/resources/v1/credit-grants.js.map +1 -1
  34. package/resources/v1/credit-grants.mjs +10 -5
  35. package/resources/v1/credit-grants.mjs.map +1 -1
  36. package/resources/v1/customers/alerts.d.mts +99 -78
  37. package/resources/v1/customers/alerts.d.mts.map +1 -1
  38. package/resources/v1/customers/alerts.d.ts +99 -78
  39. package/resources/v1/customers/alerts.d.ts.map +1 -1
  40. package/resources/v1/customers/alerts.js +65 -46
  41. package/resources/v1/customers/alerts.js.map +1 -1
  42. package/resources/v1/customers/alerts.mjs +65 -46
  43. package/resources/v1/customers/alerts.mjs.map +1 -1
  44. package/resources/v1/customers/billing-config.d.mts +15 -7
  45. package/resources/v1/customers/billing-config.d.mts.map +1 -1
  46. package/resources/v1/customers/billing-config.d.ts +15 -7
  47. package/resources/v1/customers/billing-config.d.ts.map +1 -1
  48. package/resources/v1/customers/billing-config.js +6 -3
  49. package/resources/v1/customers/billing-config.js.map +1 -1
  50. package/resources/v1/customers/billing-config.mjs +6 -3
  51. package/resources/v1/customers/billing-config.mjs.map +1 -1
  52. package/resources/v1/customers/commits.d.mts +3 -2
  53. package/resources/v1/customers/commits.d.mts.map +1 -1
  54. package/resources/v1/customers/commits.d.ts +3 -2
  55. package/resources/v1/customers/commits.d.ts.map +1 -1
  56. package/resources/v1/customers/commits.js +2 -1
  57. package/resources/v1/customers/commits.js.map +1 -1
  58. package/resources/v1/customers/commits.mjs +2 -1
  59. package/resources/v1/customers/commits.mjs.map +1 -1
  60. package/resources/v1/customers/customers.d.mts +35 -26
  61. package/resources/v1/customers/customers.d.mts.map +1 -1
  62. package/resources/v1/customers/customers.d.ts +35 -26
  63. package/resources/v1/customers/customers.d.ts.map +1 -1
  64. package/resources/v1/customers/customers.js +11 -5
  65. package/resources/v1/customers/customers.js.map +1 -1
  66. package/resources/v1/customers/customers.mjs +11 -5
  67. package/resources/v1/customers/customers.mjs.map +1 -1
  68. package/resources/v1/customers/index.d.mts +1 -1
  69. package/resources/v1/customers/index.d.mts.map +1 -1
  70. package/resources/v1/customers/index.d.ts +1 -1
  71. package/resources/v1/customers/index.d.ts.map +1 -1
  72. package/resources/v1/customers/index.js.map +1 -1
  73. package/resources/v1/customers/index.mjs.map +1 -1
  74. package/resources/v1/customers/invoices.d.mts +169 -5
  75. package/resources/v1/customers/invoices.d.mts.map +1 -1
  76. package/resources/v1/customers/invoices.d.ts +169 -5
  77. package/resources/v1/customers/invoices.d.ts.map +1 -1
  78. package/resources/v1/customers/invoices.js +51 -1
  79. package/resources/v1/customers/invoices.js.map +1 -1
  80. package/resources/v1/customers/invoices.mjs +51 -1
  81. package/resources/v1/customers/invoices.mjs.map +1 -1
  82. package/resources/v1/customers/plans.d.mts +8 -4
  83. package/resources/v1/customers/plans.d.mts.map +1 -1
  84. package/resources/v1/customers/plans.d.ts +8 -4
  85. package/resources/v1/customers/plans.d.ts.map +1 -1
  86. package/resources/v1/customers/plans.js +8 -4
  87. package/resources/v1/customers/plans.js.map +1 -1
  88. package/resources/v1/customers/plans.mjs +8 -4
  89. package/resources/v1/customers/plans.mjs.map +1 -1
  90. package/resources/v1/index.d.mts +2 -0
  91. package/resources/v1/index.d.mts.map +1 -1
  92. package/resources/v1/index.d.ts +2 -0
  93. package/resources/v1/index.d.ts.map +1 -1
  94. package/resources/v1/index.js +5 -1
  95. package/resources/v1/index.js.map +1 -1
  96. package/resources/v1/index.mjs +2 -0
  97. package/resources/v1/index.mjs.map +1 -1
  98. package/resources/v1/payments.d.mts +117 -0
  99. package/resources/v1/payments.d.mts.map +1 -0
  100. package/resources/v1/payments.d.ts +117 -0
  101. package/resources/v1/payments.d.ts.map +1 -0
  102. package/resources/v1/payments.js +71 -0
  103. package/resources/v1/payments.js.map +1 -0
  104. package/resources/v1/payments.mjs +67 -0
  105. package/resources/v1/payments.mjs.map +1 -0
  106. package/resources/v1/plans.d.mts +8 -4
  107. package/resources/v1/plans.d.mts.map +1 -1
  108. package/resources/v1/plans.d.ts +8 -4
  109. package/resources/v1/plans.d.ts.map +1 -1
  110. package/resources/v1/plans.js +8 -4
  111. package/resources/v1/plans.js.map +1 -1
  112. package/resources/v1/plans.mjs +8 -4
  113. package/resources/v1/plans.mjs.map +1 -1
  114. package/resources/v1/settings/billing-providers.d.mts +103 -0
  115. package/resources/v1/settings/billing-providers.d.mts.map +1 -0
  116. package/resources/v1/settings/billing-providers.d.ts +103 -0
  117. package/resources/v1/settings/billing-providers.d.ts.map +1 -0
  118. package/resources/v1/settings/billing-providers.js +48 -0
  119. package/resources/v1/settings/billing-providers.js.map +1 -0
  120. package/resources/v1/settings/billing-providers.mjs +44 -0
  121. package/resources/v1/settings/billing-providers.mjs.map +1 -0
  122. package/resources/v1/settings/index.d.mts +3 -0
  123. package/resources/v1/settings/index.d.mts.map +1 -0
  124. package/resources/v1/settings/index.d.ts +3 -0
  125. package/resources/v1/settings/index.d.ts.map +1 -0
  126. package/resources/v1/settings/index.js +9 -0
  127. package/resources/v1/settings/index.js.map +1 -0
  128. package/resources/v1/settings/index.mjs +4 -0
  129. package/resources/v1/settings/index.mjs.map +1 -0
  130. package/resources/v1/settings/settings.d.mts +54 -0
  131. package/resources/v1/settings/settings.d.mts.map +1 -0
  132. package/resources/v1/settings/settings.d.ts +54 -0
  133. package/resources/v1/settings/settings.d.ts.map +1 -0
  134. package/resources/v1/settings/settings.js +39 -0
  135. package/resources/v1/settings/settings.js.map +1 -0
  136. package/resources/v1/settings/settings.mjs +34 -0
  137. package/resources/v1/settings/settings.mjs.map +1 -0
  138. package/resources/v1/settings.d.mts +2 -0
  139. package/resources/v1/settings.d.mts.map +1 -0
  140. package/resources/v1/settings.d.ts +2 -0
  141. package/resources/v1/settings.d.ts.map +1 -0
  142. package/resources/v1/settings.js +6 -0
  143. package/resources/v1/settings.js.map +1 -0
  144. package/resources/v1/settings.mjs +3 -0
  145. package/resources/v1/settings.mjs.map +1 -0
  146. package/resources/v1/usage.d.mts +4 -2
  147. package/resources/v1/usage.d.mts.map +1 -1
  148. package/resources/v1/usage.d.ts +4 -2
  149. package/resources/v1/usage.d.ts.map +1 -1
  150. package/resources/v1/usage.js +4 -2
  151. package/resources/v1/usage.js.map +1 -1
  152. package/resources/v1/usage.mjs +4 -2
  153. package/resources/v1/usage.mjs.map +1 -1
  154. package/resources/v1/v1.d.mts +8 -0
  155. package/resources/v1/v1.d.mts.map +1 -1
  156. package/resources/v1/v1.d.ts +8 -0
  157. package/resources/v1/v1.d.ts.map +1 -1
  158. package/resources/v1/v1.js +8 -0
  159. package/resources/v1/v1.js.map +1 -1
  160. package/resources/v1/v1.mjs +8 -0
  161. package/resources/v1/v1.mjs.map +1 -1
  162. package/resources/v2/contracts.d.mts +120 -5
  163. package/resources/v2/contracts.d.mts.map +1 -1
  164. package/resources/v2/contracts.d.ts +120 -5
  165. package/resources/v2/contracts.d.ts.map +1 -1
  166. package/src/internal/to-file.ts +1 -1
  167. package/src/resources/shared.ts +190 -7
  168. package/src/resources/v1/alerts.ts +68 -64
  169. package/src/resources/v1/contracts/contracts.ts +61 -9
  170. package/src/resources/v1/credit-grants.ts +10 -5
  171. package/src/resources/v1/customers/alerts.ts +99 -77
  172. package/src/resources/v1/customers/billing-config.ts +18 -7
  173. package/src/resources/v1/customers/commits.ts +3 -2
  174. package/src/resources/v1/customers/customers.ts +39 -25
  175. package/src/resources/v1/customers/index.ts +1 -0
  176. package/src/resources/v1/customers/invoices.ts +210 -4
  177. package/src/resources/v1/customers/plans.ts +8 -4
  178. package/src/resources/v1/index.ts +16 -0
  179. package/src/resources/v1/payments.ts +172 -0
  180. package/src/resources/v1/plans.ts +8 -4
  181. package/src/resources/v1/settings/billing-providers.ts +139 -0
  182. package/src/resources/v1/settings/index.ts +14 -0
  183. package/src/resources/v1/settings/settings.ts +87 -0
  184. package/src/resources/v1/settings.ts +3 -0
  185. package/src/resources/v1/usage.ts +4 -2
  186. package/src/resources/v1/v1.ts +40 -0
  187. package/src/resources/v2/contracts.ts +156 -5
  188. package/src/version.ts +1 -1
  189. package/version.d.mts +1 -1
  190. package/version.d.ts +1 -1
  191. package/version.js +1 -1
  192. package/version.mjs +1 -1
@@ -4,17 +4,26 @@ import { CursorPageWithoutLimit, } from "../../../core/pagination.mjs";
4
4
  import { buildHeaders } from "../../../internal/headers.mjs";
5
5
  export class Alerts extends APIResource {
6
6
  /**
7
- * Retrieve the real-time evaluation status for a specific alert-customer pair.
8
- * This endpoint provides instant visibility into whether a customer has triggered
9
- * an alert condition, enabling you to monitor account health and take proactive
10
- * action based on current alert states.
7
+ * Retrieve the real-time evaluation status for a specific threshold
8
+ * notification-customer pair. This endpoint provides instant visibility into
9
+ * whether a customer has triggered a threshold notification condition, enabling
10
+ * you to monitor account health and take proactive action based on current
11
+ * threshold notification states.
11
12
  *
12
13
  * ### Use this endpoint to:
13
14
  *
14
- * - Check if a specific customer is currently violating an alert threshold
15
+ * - Check if a specific customer is currently violating an threshold notification
15
16
  * (`in_alarm` status)
16
- * - Verify alert configuration details and threshold values for a customer
17
- * - Integrate alert status checks into customer support tools or admin interfaces
17
+ * - Verify threshold notification configuration details and threshold values for a
18
+ * customer
19
+ * - Monitor the evaluation state of newly created or recently modified threshold
20
+ * notification
21
+ * - Build dashboards or automated workflows that respond to specific threshold
22
+ * notification conditions
23
+ * - Validate threshold notification behavior before deploying to production
24
+ * customers
25
+ * - Integrate threshold notification status checks into customer support tools or
26
+ * admin interfaces
18
27
  *
19
28
  * ### Key response fields:
20
29
  *
@@ -23,29 +32,32 @@ export class Alerts extends APIResource {
23
32
  * - `customer_status`: The current evaluation state
24
33
  *
25
34
  * - `ok` - Customer is within acceptable thresholds
26
- * - `in_alarm`- Customer has breached the alert threshold
27
- * - `evaluating` - Alert has yet to be evaluated (typically due to a customer or
28
- * alert having just been created)
29
- * - `null` - Alert has been archived
30
- * - `triggered_by`: Additional context about what caused the alert to trigger
31
- * (when applicable)
32
- * - alert: Complete alert configuration including:
33
- * - Alert ID, name, and type
35
+ * - `in_alarm` - Customer has breached the threshold for the notification
36
+ * - `evaluating` - Notification is currently being evaluated (typically during
37
+ * initial setup)
38
+ * - `null` - Notification has been archived
39
+ * - `triggered_by`: Additional context about what caused the notification to
40
+ * trigger (when applicable)
41
+ * - alert: Complete threshold notification configuration including:
42
+ * - Notification ID, name, and type
34
43
  * - Current threshold values and credit type information
35
- * - Alert status (enabled, disabled, or archived)
44
+ * - Notification status (enabled, disabled, or archived)
36
45
  * - Last update timestamp
37
46
  * - Any applied filters (credit grant types, custom fields, group values)
38
47
  *
39
48
  * ### Usage guidelines:
40
49
  *
41
50
  * - Customer status: Returns the current evaluation state, not historical data.
42
- * For alert history, use webhook notifications or event logs
43
- * - Archived alerts: Returns null for customer_status if the alert has been
44
- * archived, but still includes the alert configuration details
45
- * - Integration patterns: This endpoint can be used to check a customer's alert
46
- * status, but shouldn't be scraped. You should instead rely on the webhook
47
- * notification to understand when customers are moved to IN_ALARM.
48
- * - Error handling: Returns 404 if either the customer or alert ID doesn't exist
51
+ * For threshold notification history, use webhook notifications or event logs
52
+ * - Required parameters: Both customer_id and alert_id must be valid UUIDs that
53
+ * exist in your organization
54
+ * - Archived notifications: Returns null for customer_status if the notification
55
+ * has been archived, but still includes the notification configuration details
56
+ * - Performance considerations: This endpoint queries live evaluation state,
57
+ * making it ideal for real-time monitoring but not for bulk status checks
58
+ * - Integration patterns: Best used for on-demand status checks in response to
59
+ * user actions or as part of targeted monitoring workflows
60
+ * - Error handling: Returns 404 if either the customer or alert_id doesn't exist
49
61
  * or isn't accessible to your organization
50
62
  *
51
63
  * @example
@@ -60,31 +72,37 @@ export class Alerts extends APIResource {
60
72
  return this._client.post('/v1/customer-alerts/get', { body, ...options });
61
73
  }
62
74
  /**
63
- * Retrieve all alert configurations and their current statuses for a specific
64
- * customer in a single API call. This endpoint provides a comprehensive view of
65
- * all alerts monitoring a customer account.
75
+ * Retrieve all threshold notification configurations and their current statuses
76
+ * for a specific customer in a single API call. This endpoint provides a
77
+ * comprehensive view of all threshold notification monitoring a customer account.
66
78
  *
67
79
  * ### Use this endpoint to:
68
80
  *
69
- * - Display all active alerts for a customer in dashboards or admin panels
70
- * - Quickly identify which alerts a customer is currently triggering
71
- * - Audit alert coverage for specific accounts
72
- * - Filter alerts by status (enabled, disabled, or archived)
81
+ * - Display all active threshold notifications for a customer in dashboards or
82
+ * admin panels
83
+ * - Quickly identify which threshold notifications a customer is currently
84
+ * triggering
85
+ * - Audit threshold notification coverage for specific accounts
86
+ * - Filter threshold notifications by status (enabled, disabled, or archived)
73
87
  *
74
88
  * ### Key response fields:
75
89
  *
76
90
  * - data: Array of CustomerAlert objects, each containing:
77
91
  * - Current evaluation status (`ok`, `in_alarm`, `evaluating`, or `null`)
78
- * - Complete alert configuration and threshold details
79
- * - Alert metadata including type, name, and last update time
80
- * - `next_page`: Pagination cursor for retrieving additional results
92
+ * - Complete threshold notification configuration and threshold details
93
+ * - Threshold notification metadata including type, name, and last update time
94
+ * - next_page: Pagination cursor for retrieving additional results
81
95
  *
82
96
  * ### Usage guidelines:
83
97
  *
84
- * - Default behavior: Returns only enabled alerts unless alert_statuses filter is
85
- * specified
98
+ * - Default behavior: Returns only enabled threshold notifications unless
99
+ * `alert_statuses` filter is specified
86
100
  * - Pagination: Use the `next_page` cursor to retrieve all results for customers
87
- * with many alerts
101
+ * with many notifications
102
+ * - Performance: Efficiently retrieves multiple threshold notification statuses in
103
+ * a single request instead of making individual calls
104
+ * - Filtering: Pass the `alert_statuses` array to include disabled or archived
105
+ * threshold notifications in results
88
106
  *
89
107
  * @example
90
108
  * ```ts
@@ -106,23 +124,24 @@ export class Alerts extends APIResource {
106
124
  });
107
125
  }
108
126
  /**
109
- * Force an immediate re-evaluation of a specific alert for a customer, clearing
110
- * any previous state and triggering a fresh assessment against current thresholds.
111
- * This endpoint ensures alert accuracy after configuration changes or data
112
- * corrections.
127
+ * Force an immediate re-evaluation of a specific threshold notification for a
128
+ * customer, clearing any previous state and triggering a fresh assessment against
129
+ * current thresholds. This endpoint ensures threshold notification accuracy after
130
+ * configuration changes or data corrections.
113
131
  *
114
132
  * ### Use this endpoint to:
115
133
  *
116
- * - Clear false positive alerts after fixing data issues
117
- * - Re-evaluate alerts after adjusting customer balances or credits
118
- * - Test alert behavior during development and debugging
119
- * - Resolve stuck alerts that may be in an incorrect state
134
+ * - Clear false positive threshold notifications after fixing data issues
135
+ * - Re-evaluate threshold notifications after adjusting customer balances or
136
+ * credits
137
+ * - Test threshold notification behavior during development and debugging
138
+ * - Resolve stuck threshold notification that may be in an incorrect state
120
139
  * - Trigger immediate evaluation after threshold modifications
121
140
  *
122
141
  * ### Key response fields:
123
142
  *
124
- * - 200 Success: Confirmation that the alert has been reset and re-evaluation
125
- * initiated
143
+ * - 200 Success: Confirmation that the threshold notification has been reset and
144
+ * re-evaluation initiated
126
145
  * - No response body is returned - the operation completes asynchronously
127
146
  *
128
147
  * ### Usage guidelines:
@@ -1 +1 @@
1
- {"version":3,"file":"alerts.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/alerts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EACL,sBAAsB,GAGvB;OACM,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,IAAI,CACF,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAA,sBAAqC,CAAA,EAAE;YAChG,KAAK,EAAE,EAAE,SAAS,EAAE;YACpB,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,KAAK,CAAC,I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EAAE;YACpD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -3,7 +3,8 @@ import { APIPromise } from "../../../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../../../internal/request-options.mjs";
4
4
  export declare class BillingConfig extends APIResource {
5
5
  /**
6
- * Set the billing configuration for a given customer.
6
+ * Set the billing configuration for a given customer. This is a Plans (deprecated)
7
+ * endpoint. New clients should implement using Contracts.
7
8
  *
8
9
  * @example
9
10
  * ```ts
@@ -17,7 +18,8 @@ export declare class BillingConfig extends APIResource {
17
18
  */
18
19
  create(params: BillingConfigCreateParams, options?: RequestOptions): APIPromise<void>;
19
20
  /**
20
- * Fetch the billing configuration for the given customer.
21
+ * Fetch the billing configuration for the given customer. This is a Plans
22
+ * (deprecated) endpoint. New clients should implement using Contracts.
21
23
  *
22
24
  * @example
23
25
  * ```ts
@@ -31,7 +33,8 @@ export declare class BillingConfig extends APIResource {
31
33
  retrieve(params: BillingConfigRetrieveParams, options?: RequestOptions): APIPromise<BillingConfigRetrieveResponse>;
32
34
  /**
33
35
  * Delete the billing configuration for a given customer. Note: this is unsupported
34
- * for Azure and AWS Marketplace customers.
36
+ * for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
37
+ * New clients should implement using Contracts.
35
38
  *
36
39
  * @example
37
40
  * ```ts
@@ -75,6 +78,10 @@ export declare namespace BillingConfigRetrieveResponse {
75
78
  azure_start_date?: string;
76
79
  azure_subscription_status?: 'Subscribed' | 'Unsubscribed' | 'Suspended' | 'PendingFulfillmentStart';
77
80
  billing_provider_customer_id?: string;
81
+ /**
82
+ * The collection method for the customer's invoices. NOTE:
83
+ * `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
84
+ */
78
85
  stripe_collection_method?: 'charge_automatically' | 'send_invoice' | 'auto_charge_payment_intent' | 'manually_charge_payment_intent';
79
86
  }
80
87
  }
@@ -86,7 +93,7 @@ export interface BillingConfigCreateParams {
86
93
  /**
87
94
  * Path param: The billing provider (e.g. stripe)
88
95
  */
89
- billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
96
+ billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
90
97
  /**
91
98
  * Body param: The customer ID in the billing provider's system. For Azure, this is
92
99
  * the subscription ID.
@@ -101,7 +108,8 @@ export interface BillingConfigCreateParams {
101
108
  */
102
109
  aws_region?: 'af-south-1' | 'ap-east-1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ca-central-1' | 'cn-north-1' | 'cn-northwest-1' | 'eu-central-1' | 'eu-north-1' | 'eu-south-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'me-south-1' | 'sa-east-1' | 'us-east-1' | 'us-east-2' | 'us-gov-east-1' | 'us-gov-west-1' | 'us-west-1' | 'us-west-2';
103
110
  /**
104
- * Body param:
111
+ * Body param: The collection method for the customer's invoices. NOTE:
112
+ * `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
105
113
  */
106
114
  stripe_collection_method?: 'charge_automatically' | 'send_invoice' | 'auto_charge_payment_intent' | 'manually_charge_payment_intent';
107
115
  }
@@ -110,14 +118,14 @@ export interface BillingConfigRetrieveParams {
110
118
  /**
111
119
  * The billing provider (e.g. stripe)
112
120
  */
113
- billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
121
+ billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
114
122
  }
115
123
  export interface BillingConfigDeleteParams {
116
124
  customer_id: string;
117
125
  /**
118
126
  * The billing provider (e.g. stripe)
119
127
  */
120
- billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
128
+ billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
121
129
  }
122
130
  export declare namespace BillingConfig {
123
131
  export { type BillingConfigRetrieveResponse as BillingConfigRetrieveResponse, type BillingConfigCreateParams as BillingConfigCreateParams, type BillingConfigRetrieveParams as BillingConfigRetrieveParams, type BillingConfigDeleteParams as BillingConfigDeleteParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"billing-config.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IASrF;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAQ5C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOtF;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,6BAA6B,CAAC,IAAI,CAAC;CAC1C;AAED,yBAAiB,6BAA6B,CAAC;IAC7C,UAAiB,IAAI;QACn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,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,GACX,eAAe,GACf,eAAe,GACf,WAAW,GACX,WAAW,CAAC;IAEhB;;OAEG;IACH,wBAAwB,CAAC,EACrB,sBAAsB,GACtB,cAAc,GACd,4BAA4B,GAC5B,gCAAgC,CAAC;CACtC;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,EACjB,iBAAiB,GACjB,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,GACT,iBAAiB,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,EACjB,iBAAiB,GACjB,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,GACT,iBAAiB,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
1
+ {"version":3,"file":"billing-config.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAA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C;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -3,7 +3,8 @@ import { APIPromise } from "../../../core/api-promise.js";
3
3
  import { RequestOptions } from "../../../internal/request-options.js";
4
4
  export declare class BillingConfig extends APIResource {
5
5
  /**
6
- * Set the billing configuration for a given customer.
6
+ * Set the billing configuration for a given customer. This is a Plans (deprecated)
7
+ * endpoint. New clients should implement using Contracts.
7
8
  *
8
9
  * @example
9
10
  * ```ts
@@ -17,7 +18,8 @@ export declare class BillingConfig extends APIResource {
17
18
  */
18
19
  create(params: BillingConfigCreateParams, options?: RequestOptions): APIPromise<void>;
19
20
  /**
20
- * Fetch the billing configuration for the given customer.
21
+ * Fetch the billing configuration for the given customer. This is a Plans
22
+ * (deprecated) endpoint. New clients should implement using Contracts.
21
23
  *
22
24
  * @example
23
25
  * ```ts
@@ -31,7 +33,8 @@ export declare class BillingConfig extends APIResource {
31
33
  retrieve(params: BillingConfigRetrieveParams, options?: RequestOptions): APIPromise<BillingConfigRetrieveResponse>;
32
34
  /**
33
35
  * Delete the billing configuration for a given customer. Note: this is unsupported
34
- * for Azure and AWS Marketplace customers.
36
+ * for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
37
+ * New clients should implement using Contracts.
35
38
  *
36
39
  * @example
37
40
  * ```ts
@@ -75,6 +78,10 @@ export declare namespace BillingConfigRetrieveResponse {
75
78
  azure_start_date?: string;
76
79
  azure_subscription_status?: 'Subscribed' | 'Unsubscribed' | 'Suspended' | 'PendingFulfillmentStart';
77
80
  billing_provider_customer_id?: string;
81
+ /**
82
+ * The collection method for the customer's invoices. NOTE:
83
+ * `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
84
+ */
78
85
  stripe_collection_method?: 'charge_automatically' | 'send_invoice' | 'auto_charge_payment_intent' | 'manually_charge_payment_intent';
79
86
  }
80
87
  }
@@ -86,7 +93,7 @@ export interface BillingConfigCreateParams {
86
93
  /**
87
94
  * Path param: The billing provider (e.g. stripe)
88
95
  */
89
- billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
96
+ billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
90
97
  /**
91
98
  * Body param: The customer ID in the billing provider's system. For Azure, this is
92
99
  * the subscription ID.
@@ -101,7 +108,8 @@ export interface BillingConfigCreateParams {
101
108
  */
102
109
  aws_region?: 'af-south-1' | 'ap-east-1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ca-central-1' | 'cn-north-1' | 'cn-northwest-1' | 'eu-central-1' | 'eu-north-1' | 'eu-south-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'me-south-1' | 'sa-east-1' | 'us-east-1' | 'us-east-2' | 'us-gov-east-1' | 'us-gov-west-1' | 'us-west-1' | 'us-west-2';
103
110
  /**
104
- * Body param:
111
+ * Body param: The collection method for the customer's invoices. NOTE:
112
+ * `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
105
113
  */
106
114
  stripe_collection_method?: 'charge_automatically' | 'send_invoice' | 'auto_charge_payment_intent' | 'manually_charge_payment_intent';
107
115
  }
@@ -110,14 +118,14 @@ export interface BillingConfigRetrieveParams {
110
118
  /**
111
119
  * The billing provider (e.g. stripe)
112
120
  */
113
- billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
121
+ billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
114
122
  }
115
123
  export interface BillingConfigDeleteParams {
116
124
  customer_id: string;
117
125
  /**
118
126
  * The billing provider (e.g. stripe)
119
127
  */
120
- billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
128
+ billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
121
129
  }
122
130
  export declare namespace BillingConfig {
123
131
  export { type BillingConfigRetrieveResponse as BillingConfigRetrieveResponse, type BillingConfigCreateParams as BillingConfigCreateParams, type BillingConfigRetrieveParams as BillingConfigRetrieveParams, type BillingConfigDeleteParams as BillingConfigDeleteParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"billing-config.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IASrF;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAQ5C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOtF;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,6BAA6B,CAAC,IAAI,CAAC;CAC1C;AAED,yBAAiB,6BAA6B,CAAC;IAC7C,UAAiB,IAAI;QACnB;;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Z,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,GACX,eAAe,GACf,eAAe,GACf,WAAW,GACX,WAAW,CAAC;IAEhB;;OAEG;IACH,wBAAwB,CAAC,EACrB,sBAAsB,GACtB,cAAc,GACd,4BAA4B,GAC5B,gCAAgC,CAAC;CACtC;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,EACjB,iBAAiB,GACjB,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,GACT,iBAAiB,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,EACjB,iBAAiB,GACjB,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,GACT,iBAAiB,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
1
+ {"version":3,"file":"billing-config.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,U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ACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -7,7 +7,8 @@ const headers_1 = require("../../../internal/headers.js");
7
7
  const path_1 = require("../../../internal/utils/path.js");
8
8
  class BillingConfig extends resource_1.APIResource {
9
9
  /**
10
- * Set the billing configuration for a given customer.
10
+ * Set the billing configuration for a given customer. This is a Plans (deprecated)
11
+ * endpoint. New clients should implement using Contracts.
11
12
  *
12
13
  * @example
13
14
  * ```ts
@@ -28,7 +29,8 @@ class BillingConfig extends resource_1.APIResource {
28
29
  });
29
30
  }
30
31
  /**
31
- * Fetch the billing configuration for the given customer.
32
+ * Fetch the billing configuration for the given customer. This is a Plans
33
+ * (deprecated) endpoint. New clients should implement using Contracts.
32
34
  *
33
35
  * @example
34
36
  * ```ts
@@ -45,7 +47,8 @@ class BillingConfig extends resource_1.APIResource {
45
47
  }
46
48
  /**
47
49
  * Delete the billing configuration for a given customer. Note: this is unsupported
48
- * for Azure and AWS Marketplace customers.
50
+ * for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
51
+ * New clients should implement using Contracts.
49
52
  *
50
53
  * @example
51
54
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"billing-config.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAC1E,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACrG,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAjED,sCAiEC"}
1
+ {"version":3,"file":"billing-config.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAC1E,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACrG,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AApED,sCAoEC"}
@@ -4,7 +4,8 @@ import { buildHeaders } from "../../../internal/headers.mjs";
4
4
  import { path } from "../../../internal/utils/path.mjs";
5
5
  export class BillingConfig extends APIResource {
6
6
  /**
7
- * Set the billing configuration for a given customer.
7
+ * Set the billing configuration for a given customer. This is a Plans (deprecated)
8
+ * endpoint. New clients should implement using Contracts.
8
9
  *
9
10
  * @example
10
11
  * ```ts
@@ -25,7 +26,8 @@ export class BillingConfig extends APIResource {
25
26
  });
26
27
  }
27
28
  /**
28
- * Fetch the billing configuration for the given customer.
29
+ * Fetch the billing configuration for the given customer. This is a Plans
30
+ * (deprecated) endpoint. New clients should implement using Contracts.
29
31
  *
30
32
  * @example
31
33
  * ```ts
@@ -42,7 +44,8 @@ export class BillingConfig extends APIResource {
42
44
  }
43
45
  /**
44
46
  * Delete the billing configuration for a given customer. Note: this is unsupported
45
- * for Azure and AWS Marketplace customers.
47
+ * for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
48
+ * New clients should implement using Contracts.
46
49
  *
47
50
  * @example
48
51
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"billing-config.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAC1E,OAAO,CACR,CAAC;IACJ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,EAC1E,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACrG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -35,7 +35,8 @@ export declare class Commits extends APIResource {
35
35
  * #### Billing configuration:
36
36
  *
37
37
  * - invoice_contract_id is required for postpaid commits and for prepaid commits
38
- * with billing (only optional for free prepaid commits)
38
+ * with billing (only optional for free prepaid commits) unless do_not_invoice is
39
+ * set to true
39
40
  * - For postpaid commits: access_schedule and invoice_schedule must have matching
40
41
  * amounts
41
42
  * - For postpaid commits: only one schedule item is allowed in both schedules.
@@ -242,7 +243,7 @@ export interface CommitCreateParams {
242
243
  /**
243
244
  * The contract that this commit will be billed on. This is required for "POSTPAID"
244
245
  * commits and for "PREPAID" commits unless there is no invoice schedule above
245
- * (i.e., the commit is 'free').
246
+ * (i.e., the commit is 'free'), or if do_not_invoice is set to true.
246
247
  */
247
248
  invoice_contract_id?: string;
248
249
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"commits.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,qBAAqB,EAAE;OACzB,EAAE,UAAU,EAAE;OACd,EAAkB,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;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AIG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB;KACF;CACF;AAED,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
@@ -35,7 +35,8 @@ export declare class Commits extends APIResource {
35
35
  * #### Billing configuration:
36
36
  *
37
37
  * - invoice_contract_id is required for postpaid commits and for prepaid commits
38
- * with billing (only optional for free prepaid commits)
38
+ * with billing (only optional for free prepaid commits) unless do_not_invoice is
39
+ * set to true
39
40
  * - For postpaid commits: access_schedule and invoice_schedule must have matching
40
41
  * amounts
41
42
  * - For postpaid commits: only one schedule item is allowed in both schedules.
@@ -242,7 +243,7 @@ export interface CommitCreateParams {
242
243
  /**
243
244
  * The contract that this commit will be billed on. This is required for "POSTPAID"
244
245
  * commits and for "PREPAID" commits unless there is no invoice schedule above
245
- * (i.e., the commit is 'free').
246
+ * (i.e., the commit is 'free'), or if do_not_invoice is set to true.
246
247
  */
247
248
  invoice_contract_id?: string;
248
249
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"commits.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,qBAAqB,EAAE;OACzB,EAAE,UAAU,EAAE;OACd,EAAkB,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiGG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,IAAI,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC;IAQzG;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,aAAa,CACX,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAG3C;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC,EAA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WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
@@ -35,7 +35,8 @@ class Commits extends resource_1.APIResource {
35
35
  * #### Billing configuration:
36
36
  *
37
37
  * - invoice_contract_id is required for postpaid commits and for prepaid commits
38
- * with billing (only optional for free prepaid commits)
38
+ * with billing (only optional for free prepaid commits) unless do_not_invoice is
39
+ * set to true
39
40
  * - For postpaid commits: access_schedule and invoice_schedule must have matching
40
41
  * amounts
41
42
  * - For postpaid commits: only one schedule item is allowed in both schedules.
@@ -1 +1 @@
1
- {"version":3,"file":"commits.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,4DAAkG;AAGlG,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAvMD,0BAuMC"}
@@ -32,7 +32,8 @@ export class Commits extends APIResource {
32
32
  * #### Billing configuration:
33
33
  *
34
34
  * - invoice_contract_id is required for postpaid commits and for prepaid commits
35
- * with billing (only optional for free prepaid commits)
35
+ * with billing (only optional for free prepaid commits) unless do_not_invoice is
36
+ * set to true
36
37
  * - For postpaid commits: access_schedule and invoice_schedule must have matching
37
38
  * amounts
38
39
  * - For postpaid commits: only one schedule item is allowed in both schedules.
@@ -1 +1 @@
1
- {"version":3,"file":"commits.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,cAAc,EAA0C;AAGjE,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,IAAI,CAAC,IAAsB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oCAAoC,EAAE,CAAA,cAA6B,CAAA,EAAE;YAClG,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;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