orb-billing 6.0.2 → 6.2.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 (260) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +5 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +140 -149
  7. package/client.js.map +1 -1
  8. package/client.mjs +138 -146
  9. package/client.mjs.map +1 -1
  10. package/core/api-promise.d.mts +2 -2
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts +2 -2
  13. package/core/api-promise.d.ts.map +1 -1
  14. package/core/api-promise.js.map +1 -1
  15. package/core/api-promise.mjs.map +1 -1
  16. package/core/pagination.d.mts +4 -4
  17. package/core/pagination.d.mts.map +1 -1
  18. package/core/pagination.d.ts +4 -4
  19. package/core/pagination.d.ts.map +1 -1
  20. package/core/pagination.js.map +1 -1
  21. package/core/pagination.mjs.map +1 -1
  22. package/core/resource.d.mts +3 -3
  23. package/core/resource.d.mts.map +1 -1
  24. package/core/resource.d.ts +3 -3
  25. package/core/resource.d.ts.map +1 -1
  26. package/core/resource.js.map +1 -1
  27. package/core/resource.mjs.map +1 -1
  28. package/index.d.mts +1 -1
  29. package/index.d.mts.map +1 -1
  30. package/index.d.ts +1 -1
  31. package/index.d.ts.map +1 -1
  32. package/index.js +1 -2
  33. package/index.js.map +1 -1
  34. package/index.mjs +1 -1
  35. package/index.mjs.map +1 -1
  36. package/internal/parse.d.mts +2 -2
  37. package/internal/parse.d.mts.map +1 -1
  38. package/internal/parse.d.ts +2 -2
  39. package/internal/parse.d.ts.map +1 -1
  40. package/internal/parse.js.map +1 -1
  41. package/internal/parse.mjs.map +1 -1
  42. package/internal/uploads.d.mts +4 -4
  43. package/internal/uploads.d.mts.map +1 -1
  44. package/internal/uploads.d.ts +4 -4
  45. package/internal/uploads.d.ts.map +1 -1
  46. package/internal/uploads.js.map +1 -1
  47. package/internal/uploads.mjs.map +1 -1
  48. package/internal/utils/log.d.mts +3 -3
  49. package/internal/utils/log.d.mts.map +1 -1
  50. package/internal/utils/log.d.ts +3 -3
  51. package/internal/utils/log.d.ts.map +1 -1
  52. package/internal/utils/log.js.map +1 -1
  53. package/internal/utils/log.mjs.map +1 -1
  54. package/package.json +4 -4
  55. package/resources/alerts.d.mts +18 -7
  56. package/resources/alerts.d.mts.map +1 -1
  57. package/resources/alerts.d.ts +18 -7
  58. package/resources/alerts.d.ts.map +1 -1
  59. package/resources/alerts.js +31 -14
  60. package/resources/alerts.js.map +1 -1
  61. package/resources/alerts.mjs +31 -14
  62. package/resources/alerts.mjs.map +1 -1
  63. package/resources/beta/beta.d.mts +2 -2
  64. package/resources/beta/beta.d.ts +2 -2
  65. package/resources/beta/beta.js +6 -6
  66. package/resources/beta/beta.js.map +1 -1
  67. package/resources/beta/beta.mjs +6 -6
  68. package/resources/beta/beta.mjs.map +1 -1
  69. package/resources/beta/external-plan-id.d.mts +2 -2
  70. package/resources/beta/external-plan-id.d.ts +2 -2
  71. package/resources/beta/external-plan-id.js +6 -6
  72. package/resources/beta/external-plan-id.js.map +1 -1
  73. package/resources/beta/external-plan-id.mjs +6 -6
  74. package/resources/beta/external-plan-id.mjs.map +1 -1
  75. package/resources/coupons/coupons.d.mts +2 -2
  76. package/resources/coupons/coupons.d.ts +2 -2
  77. package/resources/coupons/coupons.js +4 -4
  78. package/resources/coupons/coupons.mjs +4 -4
  79. package/resources/coupons/subscriptions.d.mts +1 -1
  80. package/resources/coupons/subscriptions.d.ts +1 -1
  81. package/resources/coupons/subscriptions.js +2 -2
  82. package/resources/coupons/subscriptions.mjs +2 -2
  83. package/resources/credit-blocks.d.mts +3 -3
  84. package/resources/credit-blocks.d.ts +3 -3
  85. package/resources/credit-blocks.js +6 -6
  86. package/resources/credit-blocks.mjs +6 -6
  87. package/resources/credit-notes.d.mts +1 -1
  88. package/resources/credit-notes.d.ts +1 -1
  89. package/resources/credit-notes.js +2 -2
  90. package/resources/credit-notes.mjs +2 -2
  91. package/resources/customers/balance-transactions.d.mts +2 -2
  92. package/resources/customers/balance-transactions.d.ts +2 -2
  93. package/resources/customers/balance-transactions.js +4 -4
  94. package/resources/customers/balance-transactions.mjs +4 -4
  95. package/resources/customers/costs.d.mts +2 -2
  96. package/resources/customers/costs.d.ts +2 -2
  97. package/resources/customers/costs.js +4 -4
  98. package/resources/customers/costs.mjs +4 -4
  99. package/resources/customers/credits/credits.d.mts +2 -2
  100. package/resources/customers/credits/credits.d.ts +2 -2
  101. package/resources/customers/credits/credits.js +4 -4
  102. package/resources/customers/credits/credits.mjs +4 -4
  103. package/resources/customers/credits/ledger.d.mts +4 -4
  104. package/resources/customers/credits/ledger.d.ts +4 -4
  105. package/resources/customers/credits/ledger.js +8 -8
  106. package/resources/customers/credits/ledger.mjs +8 -8
  107. package/resources/customers/credits/top-ups.d.mts +6 -6
  108. package/resources/customers/credits/top-ups.d.ts +6 -6
  109. package/resources/customers/credits/top-ups.js +14 -14
  110. package/resources/customers/credits/top-ups.js.map +1 -1
  111. package/resources/customers/credits/top-ups.mjs +14 -14
  112. package/resources/customers/credits/top-ups.mjs.map +1 -1
  113. package/resources/customers/customers.d.mts +65 -7
  114. package/resources/customers/customers.d.mts.map +1 -1
  115. package/resources/customers/customers.d.ts +65 -7
  116. package/resources/customers/customers.d.ts.map +1 -1
  117. package/resources/customers/customers.js +35 -12
  118. package/resources/customers/customers.js.map +1 -1
  119. package/resources/customers/customers.mjs +35 -12
  120. package/resources/customers/customers.mjs.map +1 -1
  121. package/resources/customers/index.d.mts +1 -1
  122. package/resources/customers/index.d.mts.map +1 -1
  123. package/resources/customers/index.d.ts +1 -1
  124. package/resources/customers/index.d.ts.map +1 -1
  125. package/resources/customers/index.js.map +1 -1
  126. package/resources/customers/index.mjs.map +1 -1
  127. package/resources/dimensional-price-groups/dimensional-price-groups.d.mts +2 -2
  128. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +2 -2
  129. package/resources/dimensional-price-groups/dimensional-price-groups.js +4 -4
  130. package/resources/dimensional-price-groups/dimensional-price-groups.mjs +4 -4
  131. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.mts +2 -2
  132. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +2 -2
  133. package/resources/dimensional-price-groups/external-dimensional-price-group-id.js +4 -4
  134. package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs +4 -4
  135. package/resources/events/backfills.d.mts +3 -3
  136. package/resources/events/backfills.d.ts +3 -3
  137. package/resources/events/backfills.js +6 -6
  138. package/resources/events/backfills.mjs +6 -6
  139. package/resources/events/events.d.mts +2 -18
  140. package/resources/events/events.d.mts.map +1 -1
  141. package/resources/events/events.d.ts +2 -18
  142. package/resources/events/events.d.ts.map +1 -1
  143. package/resources/events/events.js +6 -6
  144. package/resources/events/events.js.map +1 -1
  145. package/resources/events/events.mjs +6 -6
  146. package/resources/events/events.mjs.map +1 -1
  147. package/resources/index.d.mts +1 -1
  148. package/resources/index.d.mts.map +1 -1
  149. package/resources/index.d.ts +1 -1
  150. package/resources/index.d.ts.map +1 -1
  151. package/resources/index.js.map +1 -1
  152. package/resources/index.mjs.map +1 -1
  153. package/resources/invoices.d.mts +81 -14
  154. package/resources/invoices.d.mts.map +1 -1
  155. package/resources/invoices.d.ts +81 -14
  156. package/resources/invoices.d.ts.map +1 -1
  157. package/resources/invoices.js +87 -17
  158. package/resources/invoices.js.map +1 -1
  159. package/resources/invoices.mjs +87 -17
  160. package/resources/invoices.mjs.map +1 -1
  161. package/resources/items.d.mts +3 -3
  162. package/resources/items.d.ts +3 -3
  163. package/resources/items.js +6 -6
  164. package/resources/items.mjs +6 -6
  165. package/resources/license-types.d.mts +1 -1
  166. package/resources/license-types.d.ts +1 -1
  167. package/resources/license-types.js +2 -2
  168. package/resources/license-types.mjs +2 -2
  169. package/resources/licenses/external-licenses.d.mts +1 -1
  170. package/resources/licenses/external-licenses.d.ts +1 -1
  171. package/resources/licenses/external-licenses.js +2 -2
  172. package/resources/licenses/external-licenses.mjs +2 -2
  173. package/resources/licenses/licenses.d.mts +3 -3
  174. package/resources/licenses/licenses.d.ts +3 -3
  175. package/resources/licenses/licenses.js +6 -6
  176. package/resources/licenses/licenses.mjs +6 -6
  177. package/resources/licenses/usage.d.mts +1 -1
  178. package/resources/licenses/usage.d.ts +1 -1
  179. package/resources/licenses/usage.js +2 -2
  180. package/resources/licenses/usage.mjs +2 -2
  181. package/resources/metrics.d.mts +2 -2
  182. package/resources/metrics.d.ts +2 -2
  183. package/resources/metrics.js +4 -4
  184. package/resources/metrics.mjs +4 -4
  185. package/resources/plans/external-plan-id.d.mts +2 -2
  186. package/resources/plans/external-plan-id.d.ts +2 -2
  187. package/resources/plans/external-plan-id.js +4 -4
  188. package/resources/plans/external-plan-id.mjs +4 -4
  189. package/resources/plans/migrations.d.mts +3 -3
  190. package/resources/plans/migrations.d.ts +3 -3
  191. package/resources/plans/migrations.js +8 -8
  192. package/resources/plans/migrations.js.map +1 -1
  193. package/resources/plans/migrations.mjs +8 -8
  194. package/resources/plans/migrations.mjs.map +1 -1
  195. package/resources/plans/plans.d.mts +2 -2
  196. package/resources/plans/plans.d.ts +2 -2
  197. package/resources/plans/plans.js +4 -4
  198. package/resources/plans/plans.mjs +4 -4
  199. package/resources/prices/external-price-id.d.mts +2 -2
  200. package/resources/prices/external-price-id.d.ts +2 -2
  201. package/resources/prices/external-price-id.js +4 -4
  202. package/resources/prices/external-price-id.mjs +4 -4
  203. package/resources/prices/prices.d.mts +3 -3
  204. package/resources/prices/prices.d.ts +3 -3
  205. package/resources/prices/prices.js +6 -6
  206. package/resources/prices/prices.mjs +6 -6
  207. package/resources/subscription-changes.d.mts +3 -3
  208. package/resources/subscription-changes.d.ts +3 -3
  209. package/resources/subscription-changes.js +6 -6
  210. package/resources/subscription-changes.mjs +6 -6
  211. package/resources/subscriptions.d.mts +15 -15
  212. package/resources/subscriptions.d.ts +15 -15
  213. package/resources/subscriptions.js +30 -30
  214. package/resources/subscriptions.mjs +30 -30
  215. package/src/client.ts +11 -8
  216. package/src/core/api-promise.ts +4 -7
  217. package/src/core/pagination.ts +5 -5
  218. package/src/core/resource.ts +3 -3
  219. package/src/index.ts +1 -1
  220. package/src/internal/parse.ts +2 -2
  221. package/src/internal/uploads.ts +5 -5
  222. package/src/internal/utils/log.ts +3 -3
  223. package/src/resources/alerts.ts +32 -14
  224. package/src/resources/beta/beta.ts +6 -6
  225. package/src/resources/beta/external-plan-id.ts +6 -6
  226. package/src/resources/coupons/coupons.ts +4 -4
  227. package/src/resources/coupons/subscriptions.ts +2 -2
  228. package/src/resources/credit-blocks.ts +6 -6
  229. package/src/resources/credit-notes.ts +2 -2
  230. package/src/resources/customers/balance-transactions.ts +4 -4
  231. package/src/resources/customers/costs.ts +4 -4
  232. package/src/resources/customers/credits/credits.ts +4 -4
  233. package/src/resources/customers/credits/ledger.ts +8 -8
  234. package/src/resources/customers/credits/top-ups.ts +14 -14
  235. package/src/resources/customers/customers.ts +105 -12
  236. package/src/resources/customers/index.ts +4 -0
  237. package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +4 -4
  238. package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +4 -4
  239. package/src/resources/events/backfills.ts +6 -6
  240. package/src/resources/events/events.ts +6 -26
  241. package/src/resources/index.ts +4 -0
  242. package/src/resources/invoices.ts +96 -23
  243. package/src/resources/items.ts +6 -6
  244. package/src/resources/license-types.ts +2 -2
  245. package/src/resources/licenses/external-licenses.ts +2 -2
  246. package/src/resources/licenses/licenses.ts +6 -6
  247. package/src/resources/licenses/usage.ts +2 -2
  248. package/src/resources/metrics.ts +4 -4
  249. package/src/resources/plans/external-plan-id.ts +4 -4
  250. package/src/resources/plans/migrations.ts +8 -8
  251. package/src/resources/plans/plans.ts +4 -4
  252. package/src/resources/prices/external-price-id.ts +4 -4
  253. package/src/resources/prices/prices.ts +6 -6
  254. package/src/resources/subscription-changes.ts +6 -6
  255. package/src/resources/subscriptions.ts +30 -30
  256. package/src/version.ts +1 -1
  257. package/version.d.mts +1 -1
  258. package/version.d.ts +1 -1
  259. package/version.js +1 -1
  260. package/version.mjs +1 -1
@@ -25,7 +25,7 @@ export declare class Plans extends APIResource {
25
25
  *
26
26
  * Other fields on a plan are currently immutable.
27
27
  */
28
- update(planId: string, body: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan>;
28
+ update(planID: string, body: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan>;
29
29
  /**
30
30
  * This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for
31
31
  * an account in a list format. The list of plans is ordered starting from the most
@@ -53,7 +53,7 @@ export declare class Plans extends APIResource {
53
53
  * Orb supports plan phases, also known as contract ramps. For plans with phases,
54
54
  * the serialized prices refer to all prices across all phases.
55
55
  */
56
- fetch(planId: string, options?: RequestOptions): APIPromise<Plan>;
56
+ fetch(planID: string, options?: RequestOptions): APIPromise<Plan>;
57
57
  }
58
58
  export type PlansPage = Page<Plan>;
59
59
  /**
@@ -25,7 +25,7 @@ export declare class Plans extends APIResource {
25
25
  *
26
26
  * Other fields on a plan are currently immutable.
27
27
  */
28
- update(planId: string, body: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan>;
28
+ update(planID: string, body: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan>;
29
29
  /**
30
30
  * This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for
31
31
  * an account in a list format. The list of plans is ordered starting from the most
@@ -53,7 +53,7 @@ export declare class Plans extends APIResource {
53
53
  * Orb supports plan phases, also known as contract ramps. For plans with phases,
54
54
  * the serialized prices refer to all prices across all phases.
55
55
  */
56
- fetch(planId: string, options?: RequestOptions): APIPromise<Plan>;
56
+ fetch(planID: string, options?: RequestOptions): APIPromise<Plan>;
57
57
  }
58
58
  export type PlansPage = Page<Plan>;
59
59
  /**
@@ -33,8 +33,8 @@ class Plans extends resource_1.APIResource {
33
33
  *
34
34
  * Other fields on a plan are currently immutable.
35
35
  */
36
- update(planId, body, options) {
37
- return this._client.put((0, path_1.path) `/plans/${planId}`, { body, ...options });
36
+ update(planID, body, options) {
37
+ return this._client.put((0, path_1.path) `/plans/${planID}`, { body, ...options });
38
38
  }
39
39
  /**
40
40
  * This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for
@@ -65,8 +65,8 @@ class Plans extends resource_1.APIResource {
65
65
  * Orb supports plan phases, also known as contract ramps. For plans with phases,
66
66
  * the serialized prices refer to all prices across all phases.
67
67
  */
68
- fetch(planId, options) {
69
- return this._client.get((0, path_1.path) `/plans/${planId}`, options);
68
+ fetch(planID, options) {
69
+ return this._client.get((0, path_1.path) `/plans/${planID}`, options);
70
70
  }
71
71
  }
72
72
  exports.Plans = Plans;
@@ -29,8 +29,8 @@ export class Plans extends APIResource {
29
29
  *
30
30
  * Other fields on a plan are currently immutable.
31
31
  */
32
- update(planId, body, options) {
33
- return this._client.put(path `/plans/${planId}`, { body, ...options });
32
+ update(planID, body, options) {
33
+ return this._client.put(path `/plans/${planID}`, { body, ...options });
34
34
  }
35
35
  /**
36
36
  * This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for
@@ -61,8 +61,8 @@ export class Plans extends APIResource {
61
61
  * Orb supports plan phases, also known as contract ramps. For plans with phases,
62
62
  * the serialized prices refer to all prices across all phases.
63
63
  */
64
- fetch(planId, options) {
65
- return this._client.get(path `/plans/${planId}`, options);
64
+ fetch(planID, options) {
65
+ return this._client.get(path `/plans/${planID}`, options);
66
66
  }
67
67
  }
68
68
  Plans.ExternalPlanID = ExternalPlanID;
@@ -24,7 +24,7 @@ export declare class ExternalPriceID extends APIResource {
24
24
  * );
25
25
  * ```
26
26
  */
27
- update(externalPriceId: string, body: ExternalPriceIDUpdateParams, options?: RequestOptions): APIPromise<Shared.Price>;
27
+ update(externalPriceID: string, body: ExternalPriceIDUpdateParams, options?: RequestOptions): APIPromise<Shared.Price>;
28
28
  /**
29
29
  * This endpoint returns a price given an external price id. See the
30
30
  * [price creation API](/api-reference/price/create-price) for more information
@@ -37,7 +37,7 @@ export declare class ExternalPriceID extends APIResource {
37
37
  * );
38
38
  * ```
39
39
  */
40
- fetch(externalPriceId: string, options?: RequestOptions): APIPromise<Shared.Price>;
40
+ fetch(externalPriceID: string, options?: RequestOptions): APIPromise<Shared.Price>;
41
41
  }
42
42
  export interface ExternalPriceIDUpdateParams {
43
43
  /**
@@ -24,7 +24,7 @@ export declare class ExternalPriceID extends APIResource {
24
24
  * );
25
25
  * ```
26
26
  */
27
- update(externalPriceId: string, body: ExternalPriceIDUpdateParams, options?: RequestOptions): APIPromise<Shared.Price>;
27
+ update(externalPriceID: string, body: ExternalPriceIDUpdateParams, options?: RequestOptions): APIPromise<Shared.Price>;
28
28
  /**
29
29
  * This endpoint returns a price given an external price id. See the
30
30
  * [price creation API](/api-reference/price/create-price) for more information
@@ -37,7 +37,7 @@ export declare class ExternalPriceID extends APIResource {
37
37
  * );
38
38
  * ```
39
39
  */
40
- fetch(externalPriceId: string, options?: RequestOptions): APIPromise<Shared.Price>;
40
+ fetch(externalPriceID: string, options?: RequestOptions): APIPromise<Shared.Price>;
41
41
  }
42
42
  export interface ExternalPriceIDUpdateParams {
43
43
  /**
@@ -26,8 +26,8 @@ class ExternalPriceID extends resource_1.APIResource {
26
26
  * );
27
27
  * ```
28
28
  */
29
- update(externalPriceId, body, options) {
30
- return this._client.put((0, path_1.path) `/prices/external_price_id/${externalPriceId}`, { body, ...options });
29
+ update(externalPriceID, body, options) {
30
+ return this._client.put((0, path_1.path) `/prices/external_price_id/${externalPriceID}`, { body, ...options });
31
31
  }
32
32
  /**
33
33
  * This endpoint returns a price given an external price id. See the
@@ -41,8 +41,8 @@ class ExternalPriceID extends resource_1.APIResource {
41
41
  * );
42
42
  * ```
43
43
  */
44
- fetch(externalPriceId, options) {
45
- return this._client.get((0, path_1.path) `/prices/external_price_id/${externalPriceId}`, options);
44
+ fetch(externalPriceID, options) {
45
+ return this._client.get((0, path_1.path) `/prices/external_price_id/${externalPriceID}`, options);
46
46
  }
47
47
  }
48
48
  exports.ExternalPriceID = ExternalPriceID;
@@ -23,8 +23,8 @@ export class ExternalPriceID extends APIResource {
23
23
  * );
24
24
  * ```
25
25
  */
26
- update(externalPriceId, body, options) {
27
- return this._client.put(path `/prices/external_price_id/${externalPriceId}`, { body, ...options });
26
+ update(externalPriceID, body, options) {
27
+ return this._client.put(path `/prices/external_price_id/${externalPriceID}`, { body, ...options });
28
28
  }
29
29
  /**
30
30
  * This endpoint returns a price given an external price id. See the
@@ -38,8 +38,8 @@ export class ExternalPriceID extends APIResource {
38
38
  * );
39
39
  * ```
40
40
  */
41
- fetch(externalPriceId, options) {
42
- return this._client.get(path `/prices/external_price_id/${externalPriceId}`, options);
41
+ fetch(externalPriceID, options) {
42
+ return this._client.get(path `/prices/external_price_id/${externalPriceID}`, options);
43
43
  }
44
44
  }
45
45
  //# sourceMappingURL=external-price-id.mjs.map
@@ -53,7 +53,7 @@ export declare class Prices extends APIResource {
53
53
  * const price = await client.prices.update('price_id');
54
54
  * ```
55
55
  */
56
- update(priceId: string, body: PriceUpdateParams, options?: RequestOptions): APIPromise<Shared.Price>;
56
+ update(priceID: string, body: PriceUpdateParams, options?: RequestOptions): APIPromise<Shared.Price>;
57
57
  /**
58
58
  * This endpoint is used to list all add-on prices created using the
59
59
  * [price creation endpoint](/api-reference/price/create-price).
@@ -102,7 +102,7 @@ export declare class Prices extends APIResource {
102
102
  * });
103
103
  * ```
104
104
  */
105
- evaluate(priceId: string, body: PriceEvaluateParams, options?: RequestOptions): APIPromise<PriceEvaluateResponse>;
105
+ evaluate(priceID: string, body: PriceEvaluateParams, options?: RequestOptions): APIPromise<PriceEvaluateResponse>;
106
106
  /**
107
107
  * This endpoint is used to evaluate the output of price(s) for a given customer
108
108
  * and time range over ingested events. It enables filtering and grouping the
@@ -180,7 +180,7 @@ export declare class Prices extends APIResource {
180
180
  * const price = await client.prices.fetch('price_id');
181
181
  * ```
182
182
  */
183
- fetch(priceId: string, options?: RequestOptions): APIPromise<Shared.Price>;
183
+ fetch(priceID: string, options?: RequestOptions): APIPromise<Shared.Price>;
184
184
  }
185
185
  export interface EvaluatePriceGroup {
186
186
  /**
@@ -53,7 +53,7 @@ export declare class Prices extends APIResource {
53
53
  * const price = await client.prices.update('price_id');
54
54
  * ```
55
55
  */
56
- update(priceId: string, body: PriceUpdateParams, options?: RequestOptions): APIPromise<Shared.Price>;
56
+ update(priceID: string, body: PriceUpdateParams, options?: RequestOptions): APIPromise<Shared.Price>;
57
57
  /**
58
58
  * This endpoint is used to list all add-on prices created using the
59
59
  * [price creation endpoint](/api-reference/price/create-price).
@@ -102,7 +102,7 @@ export declare class Prices extends APIResource {
102
102
  * });
103
103
  * ```
104
104
  */
105
- evaluate(priceId: string, body: PriceEvaluateParams, options?: RequestOptions): APIPromise<PriceEvaluateResponse>;
105
+ evaluate(priceID: string, body: PriceEvaluateParams, options?: RequestOptions): APIPromise<PriceEvaluateResponse>;
106
106
  /**
107
107
  * This endpoint is used to evaluate the output of price(s) for a given customer
108
108
  * and time range over ingested events. It enables filtering and grouping the
@@ -180,7 +180,7 @@ export declare class Prices extends APIResource {
180
180
  * const price = await client.prices.fetch('price_id');
181
181
  * ```
182
182
  */
183
- fetch(priceId: string, options?: RequestOptions): APIPromise<Shared.Price>;
183
+ fetch(priceID: string, options?: RequestOptions): APIPromise<Shared.Price>;
184
184
  }
185
185
  export interface EvaluatePriceGroup {
186
186
  /**
@@ -59,8 +59,8 @@ class Prices extends resource_1.APIResource {
59
59
  * const price = await client.prices.update('price_id');
60
60
  * ```
61
61
  */
62
- update(priceId, body, options) {
63
- return this._client.put((0, path_1.path) `/prices/${priceId}`, { body, ...options });
62
+ update(priceID, body, options) {
63
+ return this._client.put((0, path_1.path) `/prices/${priceID}`, { body, ...options });
64
64
  }
65
65
  /**
66
66
  * This endpoint is used to list all add-on prices created using the
@@ -112,8 +112,8 @@ class Prices extends resource_1.APIResource {
112
112
  * });
113
113
  * ```
114
114
  */
115
- evaluate(priceId, body, options) {
116
- return this._client.post((0, path_1.path) `/prices/${priceId}/evaluate`, { body, ...options });
115
+ evaluate(priceID, body, options) {
116
+ return this._client.post((0, path_1.path) `/prices/${priceID}/evaluate`, { body, ...options });
117
117
  }
118
118
  /**
119
119
  * This endpoint is used to evaluate the output of price(s) for a given customer
@@ -196,8 +196,8 @@ class Prices extends resource_1.APIResource {
196
196
  * const price = await client.prices.fetch('price_id');
197
197
  * ```
198
198
  */
199
- fetch(priceId, options) {
200
- return this._client.get((0, path_1.path) `/prices/${priceId}`, options);
199
+ fetch(priceID, options) {
200
+ return this._client.get((0, path_1.path) `/prices/${priceID}`, options);
201
201
  }
202
202
  }
203
203
  exports.Prices = Prices;
@@ -55,8 +55,8 @@ export class Prices extends APIResource {
55
55
  * const price = await client.prices.update('price_id');
56
56
  * ```
57
57
  */
58
- update(priceId, body, options) {
59
- return this._client.put(path `/prices/${priceId}`, { body, ...options });
58
+ update(priceID, body, options) {
59
+ return this._client.put(path `/prices/${priceID}`, { body, ...options });
60
60
  }
61
61
  /**
62
62
  * This endpoint is used to list all add-on prices created using the
@@ -108,8 +108,8 @@ export class Prices extends APIResource {
108
108
  * });
109
109
  * ```
110
110
  */
111
- evaluate(priceId, body, options) {
112
- return this._client.post(path `/prices/${priceId}/evaluate`, { body, ...options });
111
+ evaluate(priceID, body, options) {
112
+ return this._client.post(path `/prices/${priceID}/evaluate`, { body, ...options });
113
113
  }
114
114
  /**
115
115
  * This endpoint is used to evaluate the output of price(s) for a given customer
@@ -192,8 +192,8 @@ export class Prices extends APIResource {
192
192
  * const price = await client.prices.fetch('price_id');
193
193
  * ```
194
194
  */
195
- fetch(priceId, options) {
196
- return this._client.get(path `/prices/${priceId}`, options);
195
+ fetch(priceID, options) {
196
+ return this._client.get(path `/prices/${priceID}`, options);
197
197
  }
198
198
  }
199
199
  Prices.ExternalPriceID = ExternalPriceID;
@@ -17,7 +17,7 @@ export declare class SubscriptionChanges extends APIResource {
17
17
  * ...). The subscription change will be referenced by the
18
18
  * `pending_subscription_change` field in the response.
19
19
  */
20
- retrieve(subscriptionChangeId: string, options?: RequestOptions): APIPromise<SubscriptionChangeRetrieveResponse>;
20
+ retrieve(subscriptionChangeID: string, options?: RequestOptions): APIPromise<SubscriptionChangeRetrieveResponse>;
21
21
  /**
22
22
  * This endpoint returns a list of pending subscription changes for a customer. Use
23
23
  * the [Fetch Subscription Change](fetch-subscription-change) endpoint to retrieve
@@ -29,13 +29,13 @@ export declare class SubscriptionChanges extends APIResource {
29
29
  * is passed with a request to this endpoint, any eligible invoices that were
30
30
  * created will be issued immediately if they only contain in-advance fees.
31
31
  */
32
- apply(subscriptionChangeId: string, body?: SubscriptionChangeApplyParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionChangeApplyResponse>;
32
+ apply(subscriptionChangeID: string, body?: SubscriptionChangeApplyParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionChangeApplyResponse>;
33
33
  /**
34
34
  * Cancel a subscription change. The change can no longer be applied. A
35
35
  * subscription can only have one "pending" change at a time - use this endpoint to
36
36
  * cancel an existing change before creating a new one.
37
37
  */
38
- cancel(subscriptionChangeId: string, options?: RequestOptions): APIPromise<SubscriptionChangeCancelResponse>;
38
+ cancel(subscriptionChangeID: string, options?: RequestOptions): APIPromise<SubscriptionChangeCancelResponse>;
39
39
  }
40
40
  export type SubscriptionChangeListResponsesPage = Page<SubscriptionChangeListResponse>;
41
41
  export interface MutatedSubscription {
@@ -17,7 +17,7 @@ export declare class SubscriptionChanges extends APIResource {
17
17
  * ...). The subscription change will be referenced by the
18
18
  * `pending_subscription_change` field in the response.
19
19
  */
20
- retrieve(subscriptionChangeId: string, options?: RequestOptions): APIPromise<SubscriptionChangeRetrieveResponse>;
20
+ retrieve(subscriptionChangeID: string, options?: RequestOptions): APIPromise<SubscriptionChangeRetrieveResponse>;
21
21
  /**
22
22
  * This endpoint returns a list of pending subscription changes for a customer. Use
23
23
  * the [Fetch Subscription Change](fetch-subscription-change) endpoint to retrieve
@@ -29,13 +29,13 @@ export declare class SubscriptionChanges extends APIResource {
29
29
  * is passed with a request to this endpoint, any eligible invoices that were
30
30
  * created will be issued immediately if they only contain in-advance fees.
31
31
  */
32
- apply(subscriptionChangeId: string, body?: SubscriptionChangeApplyParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionChangeApplyResponse>;
32
+ apply(subscriptionChangeID: string, body?: SubscriptionChangeApplyParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionChangeApplyResponse>;
33
33
  /**
34
34
  * Cancel a subscription change. The change can no longer be applied. A
35
35
  * subscription can only have one "pending" change at a time - use this endpoint to
36
36
  * cancel an existing change before creating a new one.
37
37
  */
38
- cancel(subscriptionChangeId: string, options?: RequestOptions): APIPromise<SubscriptionChangeCancelResponse>;
38
+ cancel(subscriptionChangeID: string, options?: RequestOptions): APIPromise<SubscriptionChangeCancelResponse>;
39
39
  }
40
40
  export type SubscriptionChangeListResponsesPage = Page<SubscriptionChangeListResponse>;
41
41
  export interface MutatedSubscription {
@@ -17,8 +17,8 @@ class SubscriptionChanges extends resource_1.APIResource {
17
17
  * ...). The subscription change will be referenced by the
18
18
  * `pending_subscription_change` field in the response.
19
19
  */
20
- retrieve(subscriptionChangeId, options) {
21
- return this._client.get((0, path_1.path) `/subscription_changes/${subscriptionChangeId}`, options);
20
+ retrieve(subscriptionChangeID, options) {
21
+ return this._client.get((0, path_1.path) `/subscription_changes/${subscriptionChangeID}`, options);
22
22
  }
23
23
  /**
24
24
  * This endpoint returns a list of pending subscription changes for a customer. Use
@@ -36,16 +36,16 @@ class SubscriptionChanges extends resource_1.APIResource {
36
36
  * is passed with a request to this endpoint, any eligible invoices that were
37
37
  * created will be issued immediately if they only contain in-advance fees.
38
38
  */
39
- apply(subscriptionChangeId, body = {}, options) {
40
- return this._client.post((0, path_1.path) `/subscription_changes/${subscriptionChangeId}/apply`, { body, ...options });
39
+ apply(subscriptionChangeID, body = {}, options) {
40
+ return this._client.post((0, path_1.path) `/subscription_changes/${subscriptionChangeID}/apply`, { body, ...options });
41
41
  }
42
42
  /**
43
43
  * Cancel a subscription change. The change can no longer be applied. A
44
44
  * subscription can only have one "pending" change at a time - use this endpoint to
45
45
  * cancel an existing change before creating a new one.
46
46
  */
47
- cancel(subscriptionChangeId, options) {
48
- return this._client.post((0, path_1.path) `/subscription_changes/${subscriptionChangeId}/cancel`, options);
47
+ cancel(subscriptionChangeID, options) {
48
+ return this._client.post((0, path_1.path) `/subscription_changes/${subscriptionChangeID}/cancel`, options);
49
49
  }
50
50
  }
51
51
  exports.SubscriptionChanges = SubscriptionChanges;
@@ -14,8 +14,8 @@ export class SubscriptionChanges extends APIResource {
14
14
  * ...). The subscription change will be referenced by the
15
15
  * `pending_subscription_change` field in the response.
16
16
  */
17
- retrieve(subscriptionChangeId, options) {
18
- return this._client.get(path `/subscription_changes/${subscriptionChangeId}`, options);
17
+ retrieve(subscriptionChangeID, options) {
18
+ return this._client.get(path `/subscription_changes/${subscriptionChangeID}`, options);
19
19
  }
20
20
  /**
21
21
  * This endpoint returns a list of pending subscription changes for a customer. Use
@@ -33,16 +33,16 @@ export class SubscriptionChanges extends APIResource {
33
33
  * is passed with a request to this endpoint, any eligible invoices that were
34
34
  * created will be issued immediately if they only contain in-advance fees.
35
35
  */
36
- apply(subscriptionChangeId, body = {}, options) {
37
- return this._client.post(path `/subscription_changes/${subscriptionChangeId}/apply`, { body, ...options });
36
+ apply(subscriptionChangeID, body = {}, options) {
37
+ return this._client.post(path `/subscription_changes/${subscriptionChangeID}/apply`, { body, ...options });
38
38
  }
39
39
  /**
40
40
  * Cancel a subscription change. The change can no longer be applied. A
41
41
  * subscription can only have one "pending" change at a time - use this endpoint to
42
42
  * cancel an existing change before creating a new one.
43
43
  */
44
- cancel(subscriptionChangeId, options) {
45
- return this._client.post(path `/subscription_changes/${subscriptionChangeId}/cancel`, options);
44
+ cancel(subscriptionChangeID, options) {
45
+ return this._client.post(path `/subscription_changes/${subscriptionChangeID}/cancel`, options);
46
46
  }
47
47
  }
48
48
  //# sourceMappingURL=subscription-changes.mjs.map
@@ -289,7 +289,7 @@ export declare class Subscriptions extends APIResource {
289
289
  * );
290
290
  * ```
291
291
  */
292
- update(subscriptionId: string, body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription>;
292
+ update(subscriptionID: string, body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription>;
293
293
  /**
294
294
  * This endpoint returns a list of all subscriptions for an account as a
295
295
  * [paginated](/api-reference/pagination) list, ordered starting from the most
@@ -386,7 +386,7 @@ export declare class Subscriptions extends APIResource {
386
386
  * });
387
387
  * ```
388
388
  */
389
- cancel(subscriptionId: string, body: SubscriptionCancelParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
389
+ cancel(subscriptionID: string, body: SubscriptionCancelParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
390
390
  /**
391
391
  * This endpoint is used to fetch a [Subscription](/core-concepts##subscription)
392
392
  * given an identifier.
@@ -398,7 +398,7 @@ export declare class Subscriptions extends APIResource {
398
398
  * );
399
399
  * ```
400
400
  */
401
- fetch(subscriptionId: string, options?: RequestOptions): APIPromise<Subscription>;
401
+ fetch(subscriptionID: string, options?: RequestOptions): APIPromise<Subscription>;
402
402
  /**
403
403
  * This endpoint is used to fetch a day-by-day snapshot of a subscription's costs
404
404
  * in Orb, calculated by applying pricing information to the underlying usage (see
@@ -418,7 +418,7 @@ export declare class Subscriptions extends APIResource {
418
418
  * );
419
419
  * ```
420
420
  */
421
- fetchCosts(subscriptionId: string, query?: SubscriptionFetchCostsParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionFetchCostsResponse>;
421
+ fetchCosts(subscriptionID: string, query?: SubscriptionFetchCostsParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionFetchCostsResponse>;
422
422
  /**
423
423
  * This endpoint returns a [paginated](/api-reference/pagination) list of all plans
424
424
  * associated with a subscription along with their start and end dates. This list
@@ -435,7 +435,7 @@ export declare class Subscriptions extends APIResource {
435
435
  * }
436
436
  * ```
437
437
  */
438
- fetchSchedule(subscriptionId: string, query?: SubscriptionFetchScheduleParams | null | undefined, options?: RequestOptions): PagePromise<SubscriptionFetchScheduleResponsesPage, SubscriptionFetchScheduleResponse>;
438
+ fetchSchedule(subscriptionID: string, query?: SubscriptionFetchScheduleParams | null | undefined, options?: RequestOptions): PagePromise<SubscriptionFetchScheduleResponsesPage, SubscriptionFetchScheduleResponse>;
439
439
  /**
440
440
  * This endpoint is used to fetch a subscription's usage in Orb. Especially when
441
441
  * combined with optional query parameters, this endpoint is a powerful way to
@@ -638,7 +638,7 @@ export declare class Subscriptions extends APIResource {
638
638
  * await client.subscriptions.fetchUsage('subscription_id');
639
639
  * ```
640
640
  */
641
- fetchUsage(subscriptionId: string, query?: SubscriptionFetchUsageParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionUsage>;
641
+ fetchUsage(subscriptionID: string, query?: SubscriptionFetchUsageParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionUsage>;
642
642
  /**
643
643
  * This endpoint is used to add and edit subscription
644
644
  * [price intervals](/api-reference/price-interval/add-or-edit-price-intervals). By
@@ -721,7 +721,7 @@ export declare class Subscriptions extends APIResource {
721
721
  * );
722
722
  * ```
723
723
  */
724
- priceIntervals(subscriptionId: string, body: SubscriptionPriceIntervalsParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
724
+ priceIntervals(subscriptionID: string, body: SubscriptionPriceIntervalsParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
725
725
  /**
726
726
  * Redeem a coupon effective at a given time.
727
727
  *
@@ -734,7 +734,7 @@ export declare class Subscriptions extends APIResource {
734
734
  * );
735
735
  * ```
736
736
  */
737
- redeemCoupon(subscriptionId: string, body: SubscriptionRedeemCouponParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
737
+ redeemCoupon(subscriptionID: string, body: SubscriptionRedeemCouponParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
738
738
  /**
739
739
  * This endpoint can be used to change an existing subscription's plan. It returns
740
740
  * the serialized updated subscription object.
@@ -929,7 +929,7 @@ export declare class Subscriptions extends APIResource {
929
929
  * );
930
930
  * ```
931
931
  */
932
- schedulePlanChange(subscriptionId: string, body: SubscriptionSchedulePlanChangeParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
932
+ schedulePlanChange(subscriptionID: string, body: SubscriptionSchedulePlanChangeParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
933
933
  /**
934
934
  * Manually trigger a phase, effective the given date (or the current time, if not
935
935
  * specified).
@@ -942,7 +942,7 @@ export declare class Subscriptions extends APIResource {
942
942
  * );
943
943
  * ```
944
944
  */
945
- triggerPhase(subscriptionId: string, body: SubscriptionTriggerPhaseParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
945
+ triggerPhase(subscriptionID: string, body: SubscriptionTriggerPhaseParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
946
946
  /**
947
947
  * This endpoint can be used to unschedule any pending cancellations for a
948
948
  * subscription.
@@ -965,7 +965,7 @@ export declare class Subscriptions extends APIResource {
965
965
  * );
966
966
  * ```
967
967
  */
968
- unscheduleCancellation(subscriptionId: string, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
968
+ unscheduleCancellation(subscriptionID: string, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
969
969
  /**
970
970
  * This endpoint can be used to clear scheduled updates to the quantity for a fixed
971
971
  * fee.
@@ -982,7 +982,7 @@ export declare class Subscriptions extends APIResource {
982
982
  * );
983
983
  * ```
984
984
  */
985
- unscheduleFixedFeeQuantityUpdates(subscriptionId: string, body: SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
985
+ unscheduleFixedFeeQuantityUpdates(subscriptionID: string, body: SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
986
986
  /**
987
987
  * This endpoint can be used to unschedule any pending plan changes on an existing
988
988
  * subscription. When called, all upcoming plan changes will be unscheduled.
@@ -995,7 +995,7 @@ export declare class Subscriptions extends APIResource {
995
995
  * );
996
996
  * ```
997
997
  */
998
- unschedulePendingPlanChanges(subscriptionId: string, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
998
+ unschedulePendingPlanChanges(subscriptionID: string, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
999
999
  /**
1000
1000
  * This endpoint can be used to update the quantity for a fixed fee.
1001
1001
  *
@@ -1021,7 +1021,7 @@ export declare class Subscriptions extends APIResource {
1021
1021
  * );
1022
1022
  * ```
1023
1023
  */
1024
- updateFixedFeeQuantity(subscriptionId: string, body: SubscriptionUpdateFixedFeeQuantityParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
1024
+ updateFixedFeeQuantity(subscriptionID: string, body: SubscriptionUpdateFixedFeeQuantityParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
1025
1025
  /**
1026
1026
  * This endpoint is used to update the trial end date for a subscription. The new
1027
1027
  * trial end date must be within the time range of the current plan (i.e. the new
@@ -1051,7 +1051,7 @@ export declare class Subscriptions extends APIResource {
1051
1051
  * );
1052
1052
  * ```
1053
1053
  */
1054
- updateTrial(subscriptionId: string, body: SubscriptionUpdateTrialParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
1054
+ updateTrial(subscriptionID: string, body: SubscriptionUpdateTrialParams, options?: RequestOptions): APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
1055
1055
  }
1056
1056
  export type SubscriptionsPage = Page<Subscription>;
1057
1057
  export type SubscriptionFetchScheduleResponsesPage = Page<SubscriptionFetchScheduleResponse>;