orb-billing 5.48.0 → 5.76.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 (205) hide show
  1. package/CHANGELOG.md +249 -0
  2. package/core.js +2 -2
  3. package/core.js.map +1 -1
  4. package/core.mjs +2 -2
  5. package/core.mjs.map +1 -1
  6. package/index.d.ts.map +1 -1
  7. package/index.js +11 -0
  8. package/index.js.map +1 -1
  9. package/index.mjs +11 -0
  10. package/index.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/alerts.d.ts +140 -3
  13. package/resources/alerts.d.ts.map +1 -1
  14. package/resources/alerts.js.map +1 -1
  15. package/resources/alerts.mjs.map +1 -1
  16. package/resources/beta/beta.d.ts +738 -7570
  17. package/resources/beta/beta.d.ts.map +1 -1
  18. package/resources/beta/beta.js.map +1 -1
  19. package/resources/beta/beta.mjs.map +1 -1
  20. package/resources/beta/external-plan-id.d.ts +664 -7572
  21. package/resources/beta/external-plan-id.d.ts.map +1 -1
  22. package/resources/coupons/coupons.d.ts +29 -0
  23. package/resources/coupons/coupons.d.ts.map +1 -1
  24. package/resources/coupons/coupons.js +21 -0
  25. package/resources/coupons/coupons.js.map +1 -1
  26. package/resources/coupons/coupons.mjs +21 -0
  27. package/resources/coupons/coupons.mjs.map +1 -1
  28. package/resources/coupons/subscriptions.d.ts +10 -0
  29. package/resources/coupons/subscriptions.d.ts.map +1 -1
  30. package/resources/coupons/subscriptions.js.map +1 -1
  31. package/resources/coupons/subscriptions.mjs.map +1 -1
  32. package/resources/credit-blocks.d.ts +138 -7
  33. package/resources/credit-blocks.d.ts.map +1 -1
  34. package/resources/credit-blocks.js +10 -7
  35. package/resources/credit-blocks.js.map +1 -1
  36. package/resources/credit-blocks.mjs +10 -7
  37. package/resources/credit-blocks.mjs.map +1 -1
  38. package/resources/credit-notes.d.ts +28 -0
  39. package/resources/credit-notes.d.ts.map +1 -1
  40. package/resources/credit-notes.js +20 -0
  41. package/resources/credit-notes.js.map +1 -1
  42. package/resources/credit-notes.mjs +20 -0
  43. package/resources/credit-notes.mjs.map +1 -1
  44. package/resources/customers/credits/credits.d.ts +129 -0
  45. package/resources/customers/credits/credits.d.ts.map +1 -1
  46. package/resources/customers/credits/credits.js.map +1 -1
  47. package/resources/customers/credits/credits.mjs.map +1 -1
  48. package/resources/customers/credits/ledger.d.ts +34 -20
  49. package/resources/customers/credits/ledger.d.ts.map +1 -1
  50. package/resources/customers/credits/ledger.js +28 -14
  51. package/resources/customers/credits/ledger.js.map +1 -1
  52. package/resources/customers/credits/ledger.mjs +28 -14
  53. package/resources/customers/credits/ledger.mjs.map +1 -1
  54. package/resources/customers/customers.d.ts +89 -6
  55. package/resources/customers/customers.d.ts.map +1 -1
  56. package/resources/customers/customers.js.map +1 -1
  57. package/resources/customers/customers.mjs.map +1 -1
  58. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +35 -1
  59. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts.map +1 -1
  60. package/resources/dimensional-price-groups/dimensional-price-groups.js +26 -0
  61. package/resources/dimensional-price-groups/dimensional-price-groups.js.map +1 -1
  62. package/resources/dimensional-price-groups/dimensional-price-groups.mjs +26 -0
  63. package/resources/dimensional-price-groups/dimensional-price-groups.mjs.map +1 -1
  64. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +16 -0
  65. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -1
  66. package/resources/dimensional-price-groups/external-dimensional-price-group-id.js +16 -0
  67. package/resources/dimensional-price-groups/external-dimensional-price-group-id.js.map +1 -1
  68. package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs +16 -0
  69. package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs.map +1 -1
  70. package/resources/events/backfills.d.ts +37 -0
  71. package/resources/events/backfills.d.ts.map +1 -1
  72. package/resources/events/backfills.js +29 -0
  73. package/resources/events/backfills.js.map +1 -1
  74. package/resources/events/backfills.mjs +29 -0
  75. package/resources/events/backfills.mjs.map +1 -1
  76. package/resources/events/events.d.ts +41 -33
  77. package/resources/events/events.d.ts.map +1 -1
  78. package/resources/events/events.js +39 -31
  79. package/resources/events/events.js.map +1 -1
  80. package/resources/events/events.mjs +39 -31
  81. package/resources/events/events.mjs.map +1 -1
  82. package/resources/events/volume.d.ts +7 -0
  83. package/resources/events/volume.d.ts.map +1 -1
  84. package/resources/events/volume.js +7 -0
  85. package/resources/events/volume.js.map +1 -1
  86. package/resources/events/volume.mjs +7 -0
  87. package/resources/events/volume.mjs.map +1 -1
  88. package/resources/invoice-line-items.d.ts +89 -1
  89. package/resources/invoice-line-items.d.ts.map +1 -1
  90. package/resources/invoice-line-items.js +12 -0
  91. package/resources/invoice-line-items.js.map +1 -1
  92. package/resources/invoice-line-items.mjs +12 -0
  93. package/resources/invoice-line-items.mjs.map +1 -1
  94. package/resources/invoices.d.ts +200 -12
  95. package/resources/invoices.d.ts.map +1 -1
  96. package/resources/invoices.js +64 -0
  97. package/resources/invoices.js.map +1 -1
  98. package/resources/invoices.mjs +64 -0
  99. package/resources/invoices.mjs.map +1 -1
  100. package/resources/items.d.ts +30 -0
  101. package/resources/items.d.ts.map +1 -1
  102. package/resources/items.js +22 -0
  103. package/resources/items.js.map +1 -1
  104. package/resources/items.mjs +22 -0
  105. package/resources/items.mjs.map +1 -1
  106. package/resources/licenses/external-licenses.d.ts +13 -1
  107. package/resources/licenses/external-licenses.d.ts.map +1 -1
  108. package/resources/licenses/external-licenses.js +12 -0
  109. package/resources/licenses/external-licenses.js.map +1 -1
  110. package/resources/licenses/external-licenses.mjs +12 -0
  111. package/resources/licenses/external-licenses.mjs.map +1 -1
  112. package/resources/licenses/licenses.d.ts +44 -0
  113. package/resources/licenses/licenses.d.ts.map +1 -1
  114. package/resources/licenses/licenses.js +44 -0
  115. package/resources/licenses/licenses.js.map +1 -1
  116. package/resources/licenses/licenses.mjs +44 -0
  117. package/resources/licenses/licenses.mjs.map +1 -1
  118. package/resources/licenses/usage.d.ts +17 -2
  119. package/resources/licenses/usage.d.ts.map +1 -1
  120. package/resources/licenses/usage.js +8 -0
  121. package/resources/licenses/usage.js.map +1 -1
  122. package/resources/licenses/usage.mjs +8 -0
  123. package/resources/licenses/usage.mjs.map +1 -1
  124. package/resources/metrics.d.ts +42 -5
  125. package/resources/metrics.d.ts.map +1 -1
  126. package/resources/metrics.js +27 -2
  127. package/resources/metrics.js.map +1 -1
  128. package/resources/metrics.mjs +27 -2
  129. package/resources/metrics.mjs.map +1 -1
  130. package/resources/plans/external-plan-id.d.ts +6 -2
  131. package/resources/plans/external-plan-id.d.ts.map +1 -1
  132. package/resources/plans/external-plan-id.js +2 -2
  133. package/resources/plans/external-plan-id.mjs +2 -2
  134. package/resources/plans/migrations.d.ts +42 -0
  135. package/resources/plans/migrations.d.ts.map +1 -1
  136. package/resources/plans/migrations.js.map +1 -1
  137. package/resources/plans/migrations.mjs.map +1 -1
  138. package/resources/plans/plans.d.ts +382 -3754
  139. package/resources/plans/plans.d.ts.map +1 -1
  140. package/resources/plans/plans.js +2 -2
  141. package/resources/plans/plans.js.map +1 -1
  142. package/resources/plans/plans.mjs +2 -2
  143. package/resources/plans/plans.mjs.map +1 -1
  144. package/resources/prices/external-price-id.d.ts +14 -0
  145. package/resources/prices/external-price-id.d.ts.map +1 -1
  146. package/resources/prices/external-price-id.js +14 -0
  147. package/resources/prices/external-price-id.js.map +1 -1
  148. package/resources/prices/external-price-id.mjs +14 -0
  149. package/resources/prices/external-price-id.mjs.map +1 -1
  150. package/resources/prices/prices.d.ts +1632 -393
  151. package/resources/prices/prices.d.ts.map +1 -1
  152. package/resources/prices/prices.js +46 -0
  153. package/resources/prices/prices.js.map +1 -1
  154. package/resources/prices/prices.mjs +46 -0
  155. package/resources/prices/prices.mjs.map +1 -1
  156. package/resources/shared.d.ts +922 -52
  157. package/resources/shared.d.ts.map +1 -1
  158. package/resources/shared.js.map +1 -1
  159. package/resources/shared.mjs.map +1 -1
  160. package/resources/subscription-changes.d.ts +72 -1
  161. package/resources/subscription-changes.d.ts.map +1 -1
  162. package/resources/subscription-changes.js.map +1 -1
  163. package/resources/subscription-changes.mjs.map +1 -1
  164. package/resources/subscriptions.d.ts +3075 -464
  165. package/resources/subscriptions.d.ts.map +1 -1
  166. package/resources/subscriptions.js +111 -0
  167. package/resources/subscriptions.js.map +1 -1
  168. package/resources/subscriptions.mjs +111 -0
  169. package/resources/subscriptions.mjs.map +1 -1
  170. package/src/core.ts +2 -2
  171. package/src/index.ts +12 -0
  172. package/src/resources/alerts.ts +161 -3
  173. package/src/resources/beta/beta.ts +828 -8988
  174. package/src/resources/beta/external-plan-id.ts +745 -8997
  175. package/src/resources/coupons/coupons.ts +29 -0
  176. package/src/resources/coupons/subscriptions.ts +10 -0
  177. package/src/resources/credit-blocks.ts +166 -7
  178. package/src/resources/credit-notes.ts +28 -0
  179. package/src/resources/customers/credits/credits.ts +157 -0
  180. package/src/resources/customers/credits/ledger.ts +34 -20
  181. package/src/resources/customers/customers.ts +99 -6
  182. package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +35 -1
  183. package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +16 -0
  184. package/src/resources/events/backfills.ts +37 -0
  185. package/src/resources/events/events.ts +41 -33
  186. package/src/resources/events/volume.ts +7 -0
  187. package/src/resources/invoice-line-items.ts +104 -0
  188. package/src/resources/invoices.ts +215 -11
  189. package/src/resources/items.ts +30 -0
  190. package/src/resources/licenses/external-licenses.ts +13 -1
  191. package/src/resources/licenses/licenses.ts +44 -0
  192. package/src/resources/licenses/usage.ts +17 -2
  193. package/src/resources/metrics.ts +43 -5
  194. package/src/resources/plans/external-plan-id.ts +7 -2
  195. package/src/resources/plans/migrations.ts +42 -0
  196. package/src/resources/plans/plans.ts +456 -4482
  197. package/src/resources/prices/external-price-id.ts +14 -0
  198. package/src/resources/prices/prices.ts +1743 -264
  199. package/src/resources/shared.ts +1172 -50
  200. package/src/resources/subscription-changes.ts +88 -1
  201. package/src/resources/subscriptions.ts +4707 -1585
  202. package/src/version.ts +1 -1
  203. package/version.d.ts +1 -1
  204. package/version.js +1 -1
  205. package/version.mjs +1 -1
@@ -10,6 +10,18 @@ export class ExternalLicenses extends APIResource {
10
10
  * license ID.
11
11
  *
12
12
  * Date range defaults to the current billing period if not specified.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response =
17
+ * await client.licenses.externalLicenses.getUsage(
18
+ * 'external_license_id',
19
+ * {
20
+ * license_type_id: 'license_type_id',
21
+ * subscription_id: 'subscription_id',
22
+ * },
23
+ * );
24
+ * ```
13
25
  */
14
26
  getUsage(
15
27
  externalLicenseId: string,
@@ -125,7 +137,7 @@ export interface ExternalLicenseGetUsageParams {
125
137
  * How to group the results. Valid values: 'license', 'day'. Can be combined (e.g.,
126
138
  * 'license,day').
127
139
  */
128
- group_by?: Array<string> | null;
140
+ group_by?: string | null;
129
141
 
130
142
  /**
131
143
  * Maximum number of rows in the response data (default 20, max 100).
@@ -30,6 +30,15 @@ export class Licenses extends APIResource {
30
30
  * If a start date is provided, the license will be activated at the **start** of
31
31
  * the specified date in the customer's timezone. Otherwise, the activation time
32
32
  * will default to the **start** of the current day in the customer's timezone.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const license = await client.licenses.create({
37
+ * external_license_id: 'external_license_id',
38
+ * license_type_id: 'license_type_id',
39
+ * subscription_id: 'subscription_id',
40
+ * });
41
+ * ```
33
42
  */
34
43
  create(body: LicenseCreateParams, options?: Core.RequestOptions): Core.APIPromise<LicenseCreateResponse> {
35
44
  return this._client.post('/licenses', { body, ...options });
@@ -37,6 +46,13 @@ export class Licenses extends APIResource {
37
46
 
38
47
  /**
39
48
  * This endpoint is used to fetch a license given an identifier.
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * const license = await client.licenses.retrieve(
53
+ * 'license_id',
54
+ * );
55
+ * ```
40
56
  */
41
57
  retrieve(licenseId: string, options?: Core.RequestOptions): Core.APIPromise<LicenseRetrieveResponse> {
42
58
  return this._client.get(`/licenses/${licenseId}`, options);
@@ -44,6 +60,16 @@ export class Licenses extends APIResource {
44
60
 
45
61
  /**
46
62
  * This endpoint returns a list of all licenses for a subscription.
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * // Automatically fetches more pages as needed.
67
+ * for await (const licenseListResponse of client.licenses.list(
68
+ * { subscription_id: 'subscription_id' },
69
+ * )) {
70
+ * // ...
71
+ * }
72
+ * ```
47
73
  */
48
74
  list(
49
75
  query: LicenseListParams,
@@ -58,6 +84,13 @@ export class Licenses extends APIResource {
58
84
  * If an end date is provided, the license will be deactivated at the **start** of
59
85
  * the specified date in the customer's timezone. Otherwise, the deactivation time
60
86
  * will default to the **end** of the current day in the customer's timezone.
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * const response = await client.licenses.deactivate(
91
+ * 'license_id',
92
+ * );
93
+ * ```
61
94
  */
62
95
  deactivate(
63
96
  licenseId: string,
@@ -69,6 +102,17 @@ export class Licenses extends APIResource {
69
102
 
70
103
  /**
71
104
  * This endpoint is used to fetch a license given an external license identifier.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * const response = await client.licenses.retrieveByExternalId(
109
+ * 'external_license_id',
110
+ * {
111
+ * license_type_id: 'license_type_id',
112
+ * subscription_id: 'subscription_id',
113
+ * },
114
+ * );
115
+ * ```
72
116
  */
73
117
  retrieveByExternalId(
74
118
  externalLicenseId: string,
@@ -11,6 +11,14 @@ export class Usage extends APIResource {
11
11
  * subscription.
12
12
  *
13
13
  * Date range defaults to the current billing period if not specified.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const response = await client.licenses.usage.getAllUsage({
18
+ * license_type_id: 'license_type_id',
19
+ * subscription_id: 'subscription_id',
20
+ * });
21
+ * ```
14
22
  */
15
23
  getAllUsage(
16
24
  query: UsageGetAllUsageParams,
@@ -23,6 +31,13 @@ export class Usage extends APIResource {
23
31
  * Returns usage and remaining credits for a specific license over a date range.
24
32
  *
25
33
  * Date range defaults to the current billing period if not specified.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const response = await client.licenses.usage.getUsage(
38
+ * 'license_id',
39
+ * );
40
+ * ```
26
41
  */
27
42
  getUsage(
28
43
  licenseId: string,
@@ -226,7 +241,7 @@ export interface UsageGetAllUsageParams {
226
241
  * How to group the results. Valid values: 'license', 'day'. Can be combined (e.g.,
227
242
  * 'license,day').
228
243
  */
229
- group_by?: Array<string> | null;
244
+ group_by?: string | null;
230
245
 
231
246
  /**
232
247
  * Maximum number of rows in the response data (default 20, max 100).
@@ -256,7 +271,7 @@ export interface UsageGetUsageParams {
256
271
  * How to group the results. Valid values: 'license', 'day'. Can be combined (e.g.,
257
272
  * 'license,day').
258
273
  */
259
- group_by?: Array<string> | null;
274
+ group_by?: string | null;
260
275
 
261
276
  /**
262
277
  * Maximum number of rows in the response data (default 20, max 100).
@@ -15,6 +15,16 @@ export class Metrics extends APIResource {
15
15
  * This endpoint is used to create a [metric](/core-concepts###metric) using a SQL
16
16
  * string. See [SQL support](/extensibility/advanced-metrics#sql-support) for a
17
17
  * description of constructing SQL queries with examples.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const billableMetric = await client.metrics.create({
22
+ * description: 'Sum of bytes downloaded in fast mode',
23
+ * item_id: 'item_id',
24
+ * name: 'Bytes downloaded',
25
+ * sql: "SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'",
26
+ * });
27
+ * ```
18
28
  */
19
29
  create(body: MetricCreateParams, options?: Core.RequestOptions): Core.APIPromise<BillableMetric> {
20
30
  return this._client.post('/metrics', { body, ...options });
@@ -24,6 +34,13 @@ export class Metrics extends APIResource {
24
34
  * This endpoint allows you to update the `metadata` property on a metric. If you
25
35
  * pass `null` for the metadata value, it will clear any existing metadata for that
26
36
  * invoice.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const billableMetric = await client.metrics.update(
41
+ * 'metric_id',
42
+ * );
43
+ * ```
27
44
  */
28
45
  update(
29
46
  metricId: string,
@@ -34,9 +51,16 @@ export class Metrics extends APIResource {
34
51
  }
35
52
 
36
53
  /**
37
- * This endpoint is used to fetch [metric](/core-concepts##metric) details given a
38
- * metric identifier. It returns information about the metrics including its name,
39
- * description, and item.
54
+ * This endpoint is used to list [metrics](/core-concepts#metric). It returns
55
+ * information about the metrics including its name, description, and item.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * // Automatically fetches more pages as needed.
60
+ * for await (const billableMetric of client.metrics.list()) {
61
+ * // ...
62
+ * }
63
+ * ```
40
64
  */
41
65
  list(
42
66
  query?: MetricListParams,
@@ -54,8 +78,16 @@ export class Metrics extends APIResource {
54
78
  }
55
79
 
56
80
  /**
57
- * This endpoint is used to list [metrics](/core-concepts#metric). It returns
58
- * information about the metrics including its name, description, and item.
81
+ * This endpoint is used to fetch [metric](/core-concepts#metric) details given a
82
+ * metric identifier. It returns information about the metrics including its name,
83
+ * description, and item.
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * const billableMetric = await client.metrics.fetch(
88
+ * 'metric_id',
89
+ * );
90
+ * ```
59
91
  */
60
92
  fetch(metricId: string, options?: Core.RequestOptions): Core.APIPromise<BillableMetric> {
61
93
  return this._client.get(`/metrics/${metricId}`, options);
@@ -91,6 +123,12 @@ export interface BillableMetric {
91
123
 
92
124
  name: string;
93
125
 
126
+ /**
127
+ * The SQL definition of the metric. For metrics defined via configuration rather
128
+ * than SQL, this is a derived SQL representation.
129
+ */
130
+ sql: string;
131
+
94
132
  status: 'active' | 'draft' | 'archived';
95
133
 
96
134
  parameter_definitions?: Array<{ [key: string]: unknown }> | null;
@@ -11,8 +11,8 @@ import * as PlansAPI from './plans';
11
11
  */
12
12
  export class ExternalPlanID extends APIResource {
13
13
  /**
14
- * This endpoint can be used to update the `external_plan_id`, and `metadata` of an
15
- * existing plan.
14
+ * This endpoint can be used to update the `external_plan_id`, `description`, and
15
+ * `metadata` of an existing plan.
16
16
  *
17
17
  * Other fields on a plan are currently immutable.
18
18
  */
@@ -48,6 +48,11 @@ export class ExternalPlanID extends APIResource {
48
48
  }
49
49
 
50
50
  export interface ExternalPlanIDUpdateParams {
51
+ /**
52
+ * An optional user-defined description of the plan.
53
+ */
54
+ description?: string | null;
55
+
51
56
  /**
52
57
  * An optional user-defined ID for this plan resource, used throughout the system
53
58
  * as an alias for this Plan. Use this field to identify a plan by an existing
@@ -66,32 +66,74 @@ export class Migrations extends APIResource {
66
66
  export class MigrationListResponsesPage extends Page<MigrationListResponse> {}
67
67
 
68
68
  export interface MigrationRetrieveResponse {
69
+ /**
70
+ * Unique identifier for this plan version change.
71
+ */
69
72
  id: string;
70
73
 
74
+ /**
75
+ * When the migration takes effect. Can be a specific date/time, or 'end_of_term'
76
+ * when scheduled to be at the end of the current billing period.
77
+ */
71
78
  effective_time: (string & {}) | (string & {}) | 'end_of_term' | null;
72
79
 
80
+ /**
81
+ * The ID of the plan being migrated.
82
+ */
73
83
  plan_id: string;
74
84
 
85
+ /**
86
+ * Current status of the migration: 'not_started', 'in_progress', 'completed',
87
+ * 'action_needed', or 'canceled'.
88
+ */
75
89
  status: 'not_started' | 'in_progress' | 'completed' | 'action_needed' | 'canceled';
76
90
  }
77
91
 
78
92
  export interface MigrationListResponse {
93
+ /**
94
+ * Unique identifier for this plan version change.
95
+ */
79
96
  id: string;
80
97
 
98
+ /**
99
+ * When the migration takes effect. Can be a specific date/time, or 'end_of_term'
100
+ * when scheduled to be at the end of the current billing period.
101
+ */
81
102
  effective_time: (string & {}) | (string & {}) | 'end_of_term' | null;
82
103
 
104
+ /**
105
+ * The ID of the plan being migrated.
106
+ */
83
107
  plan_id: string;
84
108
 
109
+ /**
110
+ * Current status of the migration: 'not_started', 'in_progress', 'completed',
111
+ * 'action_needed', or 'canceled'.
112
+ */
85
113
  status: 'not_started' | 'in_progress' | 'completed' | 'action_needed' | 'canceled';
86
114
  }
87
115
 
88
116
  export interface MigrationCancelResponse {
117
+ /**
118
+ * Unique identifier for this plan version change.
119
+ */
89
120
  id: string;
90
121
 
122
+ /**
123
+ * When the migration takes effect. Can be a specific date/time, or 'end_of_term'
124
+ * when scheduled to be at the end of the current billing period.
125
+ */
91
126
  effective_time: (string & {}) | (string & {}) | 'end_of_term' | null;
92
127
 
128
+ /**
129
+ * The ID of the plan being migrated.
130
+ */
93
131
  plan_id: string;
94
132
 
133
+ /**
134
+ * Current status of the migration: 'not_started', 'in_progress', 'completed',
135
+ * 'action_needed', or 'canceled'.
136
+ */
95
137
  status: 'not_started' | 'in_progress' | 'completed' | 'action_needed' | 'canceled';
96
138
  }
97
139