orb-billing 6.0.1 → 6.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 (263) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +1 -4
  3. package/bin/cli +52 -0
  4. package/bin/migration-config.json +238 -0
  5. package/client.d.mts +5 -10
  6. package/client.d.mts.map +1 -1
  7. package/client.d.ts +5 -10
  8. package/client.d.ts.map +1 -1
  9. package/client.js +140 -149
  10. package/client.js.map +1 -1
  11. package/client.mjs +138 -146
  12. package/client.mjs.map +1 -1
  13. package/core/api-promise.d.mts +2 -2
  14. package/core/api-promise.d.mts.map +1 -1
  15. package/core/api-promise.d.ts +2 -2
  16. package/core/api-promise.d.ts.map +1 -1
  17. package/core/api-promise.js.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/pagination.d.mts +4 -4
  20. package/core/pagination.d.mts.map +1 -1
  21. package/core/pagination.d.ts +4 -4
  22. package/core/pagination.d.ts.map +1 -1
  23. package/core/pagination.js.map +1 -1
  24. package/core/pagination.mjs.map +1 -1
  25. package/core/resource.d.mts +3 -3
  26. package/core/resource.d.mts.map +1 -1
  27. package/core/resource.d.ts +3 -3
  28. package/core/resource.d.ts.map +1 -1
  29. package/core/resource.js.map +1 -1
  30. package/core/resource.mjs.map +1 -1
  31. package/index.d.mts +1 -1
  32. package/index.d.mts.map +1 -1
  33. package/index.d.ts +1 -1
  34. package/index.d.ts.map +1 -1
  35. package/index.js +1 -2
  36. package/index.js.map +1 -1
  37. package/index.mjs +1 -1
  38. package/index.mjs.map +1 -1
  39. package/internal/parse.d.mts +2 -2
  40. package/internal/parse.d.mts.map +1 -1
  41. package/internal/parse.d.ts +2 -2
  42. package/internal/parse.d.ts.map +1 -1
  43. package/internal/parse.js.map +1 -1
  44. package/internal/parse.mjs.map +1 -1
  45. package/internal/uploads.d.mts +4 -4
  46. package/internal/uploads.d.mts.map +1 -1
  47. package/internal/uploads.d.ts +4 -4
  48. package/internal/uploads.d.ts.map +1 -1
  49. package/internal/uploads.js.map +1 -1
  50. package/internal/uploads.mjs.map +1 -1
  51. package/internal/utils/log.d.mts +3 -3
  52. package/internal/utils/log.d.mts.map +1 -1
  53. package/internal/utils/log.d.ts +3 -3
  54. package/internal/utils/log.d.ts.map +1 -1
  55. package/internal/utils/log.js.map +1 -1
  56. package/internal/utils/log.mjs.map +1 -1
  57. package/package.json +4 -1
  58. package/resources/alerts.d.mts +18 -7
  59. package/resources/alerts.d.mts.map +1 -1
  60. package/resources/alerts.d.ts +18 -7
  61. package/resources/alerts.d.ts.map +1 -1
  62. package/resources/alerts.js +31 -14
  63. package/resources/alerts.js.map +1 -1
  64. package/resources/alerts.mjs +31 -14
  65. package/resources/alerts.mjs.map +1 -1
  66. package/resources/beta/beta.d.mts +2 -2
  67. package/resources/beta/beta.d.ts +2 -2
  68. package/resources/beta/beta.js +6 -6
  69. package/resources/beta/beta.js.map +1 -1
  70. package/resources/beta/beta.mjs +6 -6
  71. package/resources/beta/beta.mjs.map +1 -1
  72. package/resources/beta/external-plan-id.d.mts +2 -2
  73. package/resources/beta/external-plan-id.d.ts +2 -2
  74. package/resources/beta/external-plan-id.js +6 -6
  75. package/resources/beta/external-plan-id.js.map +1 -1
  76. package/resources/beta/external-plan-id.mjs +6 -6
  77. package/resources/beta/external-plan-id.mjs.map +1 -1
  78. package/resources/coupons/coupons.d.mts +2 -2
  79. package/resources/coupons/coupons.d.ts +2 -2
  80. package/resources/coupons/coupons.js +4 -4
  81. package/resources/coupons/coupons.mjs +4 -4
  82. package/resources/coupons/subscriptions.d.mts +1 -1
  83. package/resources/coupons/subscriptions.d.ts +1 -1
  84. package/resources/coupons/subscriptions.js +2 -2
  85. package/resources/coupons/subscriptions.mjs +2 -2
  86. package/resources/credit-blocks.d.mts +3 -3
  87. package/resources/credit-blocks.d.ts +3 -3
  88. package/resources/credit-blocks.js +6 -6
  89. package/resources/credit-blocks.mjs +6 -6
  90. package/resources/credit-notes.d.mts +1 -1
  91. package/resources/credit-notes.d.ts +1 -1
  92. package/resources/credit-notes.js +2 -2
  93. package/resources/credit-notes.mjs +2 -2
  94. package/resources/customers/balance-transactions.d.mts +2 -2
  95. package/resources/customers/balance-transactions.d.ts +2 -2
  96. package/resources/customers/balance-transactions.js +4 -4
  97. package/resources/customers/balance-transactions.mjs +4 -4
  98. package/resources/customers/costs.d.mts +2 -2
  99. package/resources/customers/costs.d.ts +2 -2
  100. package/resources/customers/costs.js +4 -4
  101. package/resources/customers/costs.mjs +4 -4
  102. package/resources/customers/credits/credits.d.mts +2 -2
  103. package/resources/customers/credits/credits.d.ts +2 -2
  104. package/resources/customers/credits/credits.js +4 -4
  105. package/resources/customers/credits/credits.mjs +4 -4
  106. package/resources/customers/credits/ledger.d.mts +4 -4
  107. package/resources/customers/credits/ledger.d.ts +4 -4
  108. package/resources/customers/credits/ledger.js +8 -8
  109. package/resources/customers/credits/ledger.mjs +8 -8
  110. package/resources/customers/credits/top-ups.d.mts +6 -6
  111. package/resources/customers/credits/top-ups.d.ts +6 -6
  112. package/resources/customers/credits/top-ups.js +14 -14
  113. package/resources/customers/credits/top-ups.js.map +1 -1
  114. package/resources/customers/credits/top-ups.mjs +14 -14
  115. package/resources/customers/credits/top-ups.mjs.map +1 -1
  116. package/resources/customers/customers.d.mts +65 -7
  117. package/resources/customers/customers.d.mts.map +1 -1
  118. package/resources/customers/customers.d.ts +65 -7
  119. package/resources/customers/customers.d.ts.map +1 -1
  120. package/resources/customers/customers.js +35 -12
  121. package/resources/customers/customers.js.map +1 -1
  122. package/resources/customers/customers.mjs +35 -12
  123. package/resources/customers/customers.mjs.map +1 -1
  124. package/resources/customers/index.d.mts +1 -1
  125. package/resources/customers/index.d.mts.map +1 -1
  126. package/resources/customers/index.d.ts +1 -1
  127. package/resources/customers/index.d.ts.map +1 -1
  128. package/resources/customers/index.js.map +1 -1
  129. package/resources/customers/index.mjs.map +1 -1
  130. package/resources/dimensional-price-groups/dimensional-price-groups.d.mts +2 -2
  131. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +2 -2
  132. package/resources/dimensional-price-groups/dimensional-price-groups.js +4 -4
  133. package/resources/dimensional-price-groups/dimensional-price-groups.mjs +4 -4
  134. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.mts +2 -2
  135. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +2 -2
  136. package/resources/dimensional-price-groups/external-dimensional-price-group-id.js +4 -4
  137. package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs +4 -4
  138. package/resources/events/backfills.d.mts +3 -3
  139. package/resources/events/backfills.d.ts +3 -3
  140. package/resources/events/backfills.js +6 -6
  141. package/resources/events/backfills.mjs +6 -6
  142. package/resources/events/events.d.mts +2 -18
  143. package/resources/events/events.d.mts.map +1 -1
  144. package/resources/events/events.d.ts +2 -18
  145. package/resources/events/events.d.ts.map +1 -1
  146. package/resources/events/events.js +6 -6
  147. package/resources/events/events.js.map +1 -1
  148. package/resources/events/events.mjs +6 -6
  149. package/resources/events/events.mjs.map +1 -1
  150. package/resources/index.d.mts +1 -1
  151. package/resources/index.d.mts.map +1 -1
  152. package/resources/index.d.ts +1 -1
  153. package/resources/index.d.ts.map +1 -1
  154. package/resources/index.js.map +1 -1
  155. package/resources/index.mjs.map +1 -1
  156. package/resources/invoices.d.mts +74 -8
  157. package/resources/invoices.d.mts.map +1 -1
  158. package/resources/invoices.d.ts +74 -8
  159. package/resources/invoices.d.ts.map +1 -1
  160. package/resources/invoices.js +87 -17
  161. package/resources/invoices.js.map +1 -1
  162. package/resources/invoices.mjs +87 -17
  163. package/resources/invoices.mjs.map +1 -1
  164. package/resources/items.d.mts +3 -3
  165. package/resources/items.d.ts +3 -3
  166. package/resources/items.js +6 -6
  167. package/resources/items.mjs +6 -6
  168. package/resources/license-types.d.mts +1 -1
  169. package/resources/license-types.d.ts +1 -1
  170. package/resources/license-types.js +2 -2
  171. package/resources/license-types.mjs +2 -2
  172. package/resources/licenses/external-licenses.d.mts +1 -1
  173. package/resources/licenses/external-licenses.d.ts +1 -1
  174. package/resources/licenses/external-licenses.js +2 -2
  175. package/resources/licenses/external-licenses.mjs +2 -2
  176. package/resources/licenses/licenses.d.mts +3 -3
  177. package/resources/licenses/licenses.d.ts +3 -3
  178. package/resources/licenses/licenses.js +6 -6
  179. package/resources/licenses/licenses.mjs +6 -6
  180. package/resources/licenses/usage.d.mts +1 -1
  181. package/resources/licenses/usage.d.ts +1 -1
  182. package/resources/licenses/usage.js +2 -2
  183. package/resources/licenses/usage.mjs +2 -2
  184. package/resources/metrics.d.mts +2 -2
  185. package/resources/metrics.d.ts +2 -2
  186. package/resources/metrics.js +4 -4
  187. package/resources/metrics.mjs +4 -4
  188. package/resources/plans/external-plan-id.d.mts +2 -2
  189. package/resources/plans/external-plan-id.d.ts +2 -2
  190. package/resources/plans/external-plan-id.js +4 -4
  191. package/resources/plans/external-plan-id.mjs +4 -4
  192. package/resources/plans/migrations.d.mts +3 -3
  193. package/resources/plans/migrations.d.ts +3 -3
  194. package/resources/plans/migrations.js +8 -8
  195. package/resources/plans/migrations.js.map +1 -1
  196. package/resources/plans/migrations.mjs +8 -8
  197. package/resources/plans/migrations.mjs.map +1 -1
  198. package/resources/plans/plans.d.mts +2 -2
  199. package/resources/plans/plans.d.ts +2 -2
  200. package/resources/plans/plans.js +4 -4
  201. package/resources/plans/plans.mjs +4 -4
  202. package/resources/prices/external-price-id.d.mts +2 -2
  203. package/resources/prices/external-price-id.d.ts +2 -2
  204. package/resources/prices/external-price-id.js +4 -4
  205. package/resources/prices/external-price-id.mjs +4 -4
  206. package/resources/prices/prices.d.mts +3 -3
  207. package/resources/prices/prices.d.ts +3 -3
  208. package/resources/prices/prices.js +6 -6
  209. package/resources/prices/prices.mjs +6 -6
  210. package/resources/subscription-changes.d.mts +3 -3
  211. package/resources/subscription-changes.d.ts +3 -3
  212. package/resources/subscription-changes.js +6 -6
  213. package/resources/subscription-changes.mjs +6 -6
  214. package/resources/subscriptions.d.mts +15 -15
  215. package/resources/subscriptions.d.ts +15 -15
  216. package/resources/subscriptions.js +30 -30
  217. package/resources/subscriptions.mjs +30 -30
  218. package/src/client.ts +11 -8
  219. package/src/core/api-promise.ts +4 -7
  220. package/src/core/pagination.ts +5 -5
  221. package/src/core/resource.ts +3 -3
  222. package/src/index.ts +1 -1
  223. package/src/internal/parse.ts +2 -2
  224. package/src/internal/uploads.ts +5 -5
  225. package/src/internal/utils/log.ts +3 -3
  226. package/src/resources/alerts.ts +32 -14
  227. package/src/resources/beta/beta.ts +6 -6
  228. package/src/resources/beta/external-plan-id.ts +6 -6
  229. package/src/resources/coupons/coupons.ts +4 -4
  230. package/src/resources/coupons/subscriptions.ts +2 -2
  231. package/src/resources/credit-blocks.ts +6 -6
  232. package/src/resources/credit-notes.ts +2 -2
  233. package/src/resources/customers/balance-transactions.ts +4 -4
  234. package/src/resources/customers/costs.ts +4 -4
  235. package/src/resources/customers/credits/credits.ts +4 -4
  236. package/src/resources/customers/credits/ledger.ts +8 -8
  237. package/src/resources/customers/credits/top-ups.ts +14 -14
  238. package/src/resources/customers/customers.ts +105 -12
  239. package/src/resources/customers/index.ts +4 -0
  240. package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +4 -4
  241. package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +4 -4
  242. package/src/resources/events/backfills.ts +6 -6
  243. package/src/resources/events/events.ts +6 -26
  244. package/src/resources/index.ts +4 -0
  245. package/src/resources/invoices.ts +89 -17
  246. package/src/resources/items.ts +6 -6
  247. package/src/resources/license-types.ts +2 -2
  248. package/src/resources/licenses/external-licenses.ts +2 -2
  249. package/src/resources/licenses/licenses.ts +6 -6
  250. package/src/resources/licenses/usage.ts +2 -2
  251. package/src/resources/metrics.ts +4 -4
  252. package/src/resources/plans/external-plan-id.ts +4 -4
  253. package/src/resources/plans/migrations.ts +8 -8
  254. package/src/resources/plans/plans.ts +4 -4
  255. package/src/resources/prices/external-price-id.ts +4 -4
  256. package/src/resources/prices/prices.ts +6 -6
  257. package/src/resources/subscription-changes.ts +6 -6
  258. package/src/resources/subscriptions.ts +30 -30
  259. package/src/version.ts +1 -1
  260. package/version.d.mts +1 -1
  261. package/version.d.ts +1 -1
  262. package/version.js +1 -1
  263. package/version.mjs +1 -1
@@ -28,8 +28,8 @@ export class Items extends APIResource {
28
28
  * const item = await client.items.update('item_id');
29
29
  * ```
30
30
  */
31
- update(itemId, body, options) {
32
- return this._client.put(path `/items/${itemId}`, { body, ...options });
31
+ update(itemID, body, options) {
32
+ return this._client.put(path `/items/${itemID}`, { body, ...options });
33
33
  }
34
34
  /**
35
35
  * This endpoint returns a list of all Items, ordered in descending order by
@@ -54,8 +54,8 @@ export class Items extends APIResource {
54
54
  * const item = await client.items.archive('item_id');
55
55
  * ```
56
56
  */
57
- archive(itemId, options) {
58
- return this._client.post(path `/items/${itemId}/archive`, options);
57
+ archive(itemID, options) {
58
+ return this._client.post(path `/items/${itemID}/archive`, options);
59
59
  }
60
60
  /**
61
61
  * This endpoint returns an item identified by its item_id.
@@ -65,8 +65,8 @@ export class Items extends APIResource {
65
65
  * const item = await client.items.fetch('item_id');
66
66
  * ```
67
67
  */
68
- fetch(itemId, options) {
69
- return this._client.get(path `/items/${itemId}`, options);
68
+ fetch(itemID, options) {
69
+ return this._client.get(path `/items/${itemID}`, options);
70
70
  }
71
71
  }
72
72
  //# sourceMappingURL=items.mjs.map
@@ -21,7 +21,7 @@ export declare class LicenseTypes extends APIResource {
21
21
  * Use this endpoint to retrieve details about a specific license type, including
22
22
  * its name and grouping key.
23
23
  */
24
- retrieve(licenseTypeId: string, options?: RequestOptions): APIPromise<LicenseTypeRetrieveResponse>;
24
+ retrieve(licenseTypeID: string, options?: RequestOptions): APIPromise<LicenseTypeRetrieveResponse>;
25
25
  /**
26
26
  * This endpoint returns a list of all license types configured for the account,
27
27
  * ordered in ascending order by creation time.
@@ -21,7 +21,7 @@ export declare class LicenseTypes extends APIResource {
21
21
  * Use this endpoint to retrieve details about a specific license type, including
22
22
  * its name and grouping key.
23
23
  */
24
- retrieve(licenseTypeId: string, options?: RequestOptions): APIPromise<LicenseTypeRetrieveResponse>;
24
+ retrieve(licenseTypeID: string, options?: RequestOptions): APIPromise<LicenseTypeRetrieveResponse>;
25
25
  /**
26
26
  * This endpoint returns a list of all license types configured for the account,
27
27
  * ordered in ascending order by creation time.
@@ -26,8 +26,8 @@ class LicenseTypes extends resource_1.APIResource {
26
26
  * Use this endpoint to retrieve details about a specific license type, including
27
27
  * its name and grouping key.
28
28
  */
29
- retrieve(licenseTypeId, options) {
30
- return this._client.get((0, path_1.path) `/license_types/${licenseTypeId}`, options);
29
+ retrieve(licenseTypeID, options) {
30
+ return this._client.get((0, path_1.path) `/license_types/${licenseTypeID}`, options);
31
31
  }
32
32
  /**
33
33
  * This endpoint returns a list of all license types configured for the account,
@@ -23,8 +23,8 @@ export class LicenseTypes extends APIResource {
23
23
  * Use this endpoint to retrieve details about a specific license type, including
24
24
  * its name and grouping key.
25
25
  */
26
- retrieve(licenseTypeId, options) {
27
- return this._client.get(path `/license_types/${licenseTypeId}`, options);
26
+ retrieve(licenseTypeID, options) {
27
+ return this._client.get(path `/license_types/${licenseTypeID}`, options);
28
28
  }
29
29
  /**
30
30
  * This endpoint returns a list of all license types configured for the account,
@@ -21,7 +21,7 @@ export declare class ExternalLicenses extends APIResource {
21
21
  * );
22
22
  * ```
23
23
  */
24
- getUsage(externalLicenseId: string, query: ExternalLicenseGetUsageParams, options?: RequestOptions): APIPromise<ExternalLicenseGetUsageResponse>;
24
+ getUsage(externalLicenseID: string, query: ExternalLicenseGetUsageParams, options?: RequestOptions): APIPromise<ExternalLicenseGetUsageResponse>;
25
25
  }
26
26
  export interface ExternalLicenseGetUsageResponse {
27
27
  data: Array<ExternalLicenseGetUsageResponse.Data>;
@@ -21,7 +21,7 @@ export declare class ExternalLicenses extends APIResource {
21
21
  * );
22
22
  * ```
23
23
  */
24
- getUsage(externalLicenseId: string, query: ExternalLicenseGetUsageParams, options?: RequestOptions): APIPromise<ExternalLicenseGetUsageResponse>;
24
+ getUsage(externalLicenseID: string, query: ExternalLicenseGetUsageParams, options?: RequestOptions): APIPromise<ExternalLicenseGetUsageResponse>;
25
25
  }
26
26
  export interface ExternalLicenseGetUsageResponse {
27
27
  data: Array<ExternalLicenseGetUsageResponse.Data>;
@@ -23,8 +23,8 @@ class ExternalLicenses extends resource_1.APIResource {
23
23
  * );
24
24
  * ```
25
25
  */
26
- getUsage(externalLicenseId, query, options) {
27
- return this._client.get((0, path_1.path) `/licenses/external_licenses/${externalLicenseId}/usage`, {
26
+ getUsage(externalLicenseID, query, options) {
27
+ return this._client.get((0, path_1.path) `/licenses/external_licenses/${externalLicenseID}/usage`, {
28
28
  query,
29
29
  ...options,
30
30
  });
@@ -20,8 +20,8 @@ export class ExternalLicenses extends APIResource {
20
20
  * );
21
21
  * ```
22
22
  */
23
- getUsage(externalLicenseId, query, options) {
24
- return this._client.get(path `/licenses/external_licenses/${externalLicenseId}/usage`, {
23
+ getUsage(externalLicenseID, query, options) {
24
+ return this._client.get(path `/licenses/external_licenses/${externalLicenseID}/usage`, {
25
25
  query,
26
26
  ...options,
27
27
  });
@@ -36,7 +36,7 @@ export declare class Licenses extends APIResource {
36
36
  * );
37
37
  * ```
38
38
  */
39
- retrieve(licenseId: string, options?: RequestOptions): APIPromise<LicenseRetrieveResponse>;
39
+ retrieve(licenseID: string, options?: RequestOptions): APIPromise<LicenseRetrieveResponse>;
40
40
  /**
41
41
  * This endpoint returns a list of all licenses for a subscription.
42
42
  *
@@ -65,7 +65,7 @@ export declare class Licenses extends APIResource {
65
65
  * );
66
66
  * ```
67
67
  */
68
- deactivate(licenseId: string, body: LicenseDeactivateParams, options?: RequestOptions): APIPromise<LicenseDeactivateResponse>;
68
+ deactivate(licenseID: string, body: LicenseDeactivateParams, options?: RequestOptions): APIPromise<LicenseDeactivateResponse>;
69
69
  /**
70
70
  * This endpoint is used to fetch a license given an external license identifier.
71
71
  *
@@ -80,7 +80,7 @@ export declare class Licenses extends APIResource {
80
80
  * );
81
81
  * ```
82
82
  */
83
- retrieveByExternalID(externalLicenseId: string, query: LicenseRetrieveByExternalIDParams, options?: RequestOptions): APIPromise<LicenseRetrieveByExternalIDResponse>;
83
+ retrieveByExternalID(externalLicenseID: string, query: LicenseRetrieveByExternalIDParams, options?: RequestOptions): APIPromise<LicenseRetrieveByExternalIDResponse>;
84
84
  }
85
85
  export type LicenseListResponsesPage = Page<LicenseListResponse>;
86
86
  export interface LicenseCreateResponse {
@@ -36,7 +36,7 @@ export declare class Licenses extends APIResource {
36
36
  * );
37
37
  * ```
38
38
  */
39
- retrieve(licenseId: string, options?: RequestOptions): APIPromise<LicenseRetrieveResponse>;
39
+ retrieve(licenseID: string, options?: RequestOptions): APIPromise<LicenseRetrieveResponse>;
40
40
  /**
41
41
  * This endpoint returns a list of all licenses for a subscription.
42
42
  *
@@ -65,7 +65,7 @@ export declare class Licenses extends APIResource {
65
65
  * );
66
66
  * ```
67
67
  */
68
- deactivate(licenseId: string, body: LicenseDeactivateParams, options?: RequestOptions): APIPromise<LicenseDeactivateResponse>;
68
+ deactivate(licenseID: string, body: LicenseDeactivateParams, options?: RequestOptions): APIPromise<LicenseDeactivateResponse>;
69
69
  /**
70
70
  * This endpoint is used to fetch a license given an external license identifier.
71
71
  *
@@ -80,7 +80,7 @@ export declare class Licenses extends APIResource {
80
80
  * );
81
81
  * ```
82
82
  */
83
- retrieveByExternalID(externalLicenseId: string, query: LicenseRetrieveByExternalIDParams, options?: RequestOptions): APIPromise<LicenseRetrieveByExternalIDResponse>;
83
+ retrieveByExternalID(externalLicenseID: string, query: LicenseRetrieveByExternalIDParams, options?: RequestOptions): APIPromise<LicenseRetrieveByExternalIDResponse>;
84
84
  }
85
85
  export type LicenseListResponsesPage = Page<LicenseListResponse>;
86
86
  export interface LicenseCreateResponse {
@@ -45,8 +45,8 @@ class Licenses extends resource_1.APIResource {
45
45
  * );
46
46
  * ```
47
47
  */
48
- retrieve(licenseId, options) {
49
- return this._client.get((0, path_1.path) `/licenses/${licenseId}`, options);
48
+ retrieve(licenseID, options) {
49
+ return this._client.get((0, path_1.path) `/licenses/${licenseID}`, options);
50
50
  }
51
51
  /**
52
52
  * This endpoint returns a list of all licenses for a subscription.
@@ -78,8 +78,8 @@ class Licenses extends resource_1.APIResource {
78
78
  * );
79
79
  * ```
80
80
  */
81
- deactivate(licenseId, body, options) {
82
- return this._client.post((0, path_1.path) `/licenses/${licenseId}/deactivate`, { body, ...options });
81
+ deactivate(licenseID, body, options) {
82
+ return this._client.post((0, path_1.path) `/licenses/${licenseID}/deactivate`, { body, ...options });
83
83
  }
84
84
  /**
85
85
  * This endpoint is used to fetch a license given an external license identifier.
@@ -95,8 +95,8 @@ class Licenses extends resource_1.APIResource {
95
95
  * );
96
96
  * ```
97
97
  */
98
- retrieveByExternalID(externalLicenseId, query, options) {
99
- return this._client.get((0, path_1.path) `/licenses/external_license_id/${externalLicenseId}`, { query, ...options });
98
+ retrieveByExternalID(externalLicenseID, query, options) {
99
+ return this._client.get((0, path_1.path) `/licenses/external_license_id/${externalLicenseID}`, { query, ...options });
100
100
  }
101
101
  }
102
102
  exports.Licenses = Licenses;
@@ -41,8 +41,8 @@ export class Licenses extends APIResource {
41
41
  * );
42
42
  * ```
43
43
  */
44
- retrieve(licenseId, options) {
45
- return this._client.get(path `/licenses/${licenseId}`, options);
44
+ retrieve(licenseID, options) {
45
+ return this._client.get(path `/licenses/${licenseID}`, options);
46
46
  }
47
47
  /**
48
48
  * This endpoint returns a list of all licenses for a subscription.
@@ -74,8 +74,8 @@ export class Licenses extends APIResource {
74
74
  * );
75
75
  * ```
76
76
  */
77
- deactivate(licenseId, body, options) {
78
- return this._client.post(path `/licenses/${licenseId}/deactivate`, { body, ...options });
77
+ deactivate(licenseID, body, options) {
78
+ return this._client.post(path `/licenses/${licenseID}/deactivate`, { body, ...options });
79
79
  }
80
80
  /**
81
81
  * This endpoint is used to fetch a license given an external license identifier.
@@ -91,8 +91,8 @@ export class Licenses extends APIResource {
91
91
  * );
92
92
  * ```
93
93
  */
94
- retrieveByExternalID(externalLicenseId, query, options) {
95
- return this._client.get(path `/licenses/external_license_id/${externalLicenseId}`, { query, ...options });
94
+ retrieveByExternalID(externalLicenseID, query, options) {
95
+ return this._client.get(path `/licenses/external_license_id/${externalLicenseID}`, { query, ...options });
96
96
  }
97
97
  }
98
98
  Licenses.ExternalLicenses = ExternalLicenses;
@@ -30,7 +30,7 @@ export declare class Usage extends APIResource {
30
30
  * );
31
31
  * ```
32
32
  */
33
- getUsage(licenseId: string, query?: UsageGetUsageParams | null | undefined, options?: RequestOptions): APIPromise<UsageGetUsageResponse>;
33
+ getUsage(licenseID: string, query?: UsageGetUsageParams | null | undefined, options?: RequestOptions): APIPromise<UsageGetUsageResponse>;
34
34
  }
35
35
  export interface UsageGetAllUsageResponse {
36
36
  data: Array<UsageGetAllUsageResponse.Data>;
@@ -30,7 +30,7 @@ export declare class Usage extends APIResource {
30
30
  * );
31
31
  * ```
32
32
  */
33
- getUsage(licenseId: string, query?: UsageGetUsageParams | null | undefined, options?: RequestOptions): APIPromise<UsageGetUsageResponse>;
33
+ getUsage(licenseID: string, query?: UsageGetUsageParams | null | undefined, options?: RequestOptions): APIPromise<UsageGetUsageResponse>;
34
34
  }
35
35
  export interface UsageGetAllUsageResponse {
36
36
  data: Array<UsageGetAllUsageResponse.Data>;
@@ -34,8 +34,8 @@ class Usage extends resource_1.APIResource {
34
34
  * );
35
35
  * ```
36
36
  */
37
- getUsage(licenseId, query = {}, options) {
38
- return this._client.get((0, path_1.path) `/licenses/${licenseId}/usage`, { query, ...options });
37
+ getUsage(licenseID, query = {}, options) {
38
+ return this._client.get((0, path_1.path) `/licenses/${licenseID}/usage`, { query, ...options });
39
39
  }
40
40
  }
41
41
  exports.Usage = Usage;
@@ -31,8 +31,8 @@ export class Usage extends APIResource {
31
31
  * );
32
32
  * ```
33
33
  */
34
- getUsage(licenseId, query = {}, options) {
35
- return this._client.get(path `/licenses/${licenseId}/usage`, { query, ...options });
34
+ getUsage(licenseID, query = {}, options) {
35
+ return this._client.get(path `/licenses/${licenseID}/usage`, { query, ...options });
36
36
  }
37
37
  }
38
38
  //# sourceMappingURL=usage.mjs.map
@@ -36,7 +36,7 @@ export declare class Metrics extends APIResource {
36
36
  * );
37
37
  * ```
38
38
  */
39
- update(metricId: string, body: MetricUpdateParams, options?: RequestOptions): APIPromise<BillableMetric>;
39
+ update(metricID: string, body: MetricUpdateParams, options?: RequestOptions): APIPromise<BillableMetric>;
40
40
  /**
41
41
  * This endpoint is used to list [metrics](/core-concepts#metric). It returns
42
42
  * information about the metrics including its name, description, and item.
@@ -62,7 +62,7 @@ export declare class Metrics extends APIResource {
62
62
  * );
63
63
  * ```
64
64
  */
65
- fetch(metricId: string, options?: RequestOptions): APIPromise<BillableMetric>;
65
+ fetch(metricID: string, options?: RequestOptions): APIPromise<BillableMetric>;
66
66
  }
67
67
  export type BillableMetricsPage = Page<BillableMetric>;
68
68
  /**
@@ -36,7 +36,7 @@ export declare class Metrics extends APIResource {
36
36
  * );
37
37
  * ```
38
38
  */
39
- update(metricId: string, body: MetricUpdateParams, options?: RequestOptions): APIPromise<BillableMetric>;
39
+ update(metricID: string, body: MetricUpdateParams, options?: RequestOptions): APIPromise<BillableMetric>;
40
40
  /**
41
41
  * This endpoint is used to list [metrics](/core-concepts#metric). It returns
42
42
  * information about the metrics including its name, description, and item.
@@ -62,7 +62,7 @@ export declare class Metrics extends APIResource {
62
62
  * );
63
63
  * ```
64
64
  */
65
- fetch(metricId: string, options?: RequestOptions): APIPromise<BillableMetric>;
65
+ fetch(metricID: string, options?: RequestOptions): APIPromise<BillableMetric>;
66
66
  }
67
67
  export type BillableMetricsPage = Page<BillableMetric>;
68
68
  /**
@@ -40,8 +40,8 @@ class Metrics extends resource_1.APIResource {
40
40
  * );
41
41
  * ```
42
42
  */
43
- update(metricId, body, options) {
44
- return this._client.put((0, path_1.path) `/metrics/${metricId}`, { body, ...options });
43
+ update(metricID, body, options) {
44
+ return this._client.put((0, path_1.path) `/metrics/${metricID}`, { body, ...options });
45
45
  }
46
46
  /**
47
47
  * This endpoint is used to list [metrics](/core-concepts#metric). It returns
@@ -70,8 +70,8 @@ class Metrics extends resource_1.APIResource {
70
70
  * );
71
71
  * ```
72
72
  */
73
- fetch(metricId, options) {
74
- return this._client.get((0, path_1.path) `/metrics/${metricId}`, options);
73
+ fetch(metricID, options) {
74
+ return this._client.get((0, path_1.path) `/metrics/${metricID}`, options);
75
75
  }
76
76
  }
77
77
  exports.Metrics = Metrics;
@@ -37,8 +37,8 @@ export class Metrics extends APIResource {
37
37
  * );
38
38
  * ```
39
39
  */
40
- update(metricId, body, options) {
41
- return this._client.put(path `/metrics/${metricId}`, { body, ...options });
40
+ update(metricID, body, options) {
41
+ return this._client.put(path `/metrics/${metricID}`, { body, ...options });
42
42
  }
43
43
  /**
44
44
  * This endpoint is used to list [metrics](/core-concepts#metric). It returns
@@ -67,8 +67,8 @@ export class Metrics extends APIResource {
67
67
  * );
68
68
  * ```
69
69
  */
70
- fetch(metricId, options) {
71
- return this._client.get(path `/metrics/${metricId}`, options);
70
+ fetch(metricID, options) {
71
+ return this._client.get(path `/metrics/${metricID}`, options);
72
72
  }
73
73
  }
74
74
  //# sourceMappingURL=metrics.mjs.map
@@ -14,7 +14,7 @@ export declare class ExternalPlanID extends APIResource {
14
14
  *
15
15
  * Other fields on a plan are currently immutable.
16
16
  */
17
- update(otherExternalPlanId: string, body: ExternalPlanIDUpdateParams, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
17
+ update(otherExternalPlanID: string, body: ExternalPlanIDUpdateParams, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
18
18
  /**
19
19
  * This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details
20
20
  * given an external_plan_id identifier. It returns information about the prices
@@ -33,7 +33,7 @@ export declare class ExternalPlanID extends APIResource {
33
33
  * that is present. A detailed explanation of price types can be found in the
34
34
  * [Price schema](/core-concepts#plan-and-price). "
35
35
  */
36
- fetch(externalPlanId: string, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
36
+ fetch(externalPlanID: string, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
37
37
  }
38
38
  export interface ExternalPlanIDUpdateParams {
39
39
  /**
@@ -14,7 +14,7 @@ export declare class ExternalPlanID extends APIResource {
14
14
  *
15
15
  * Other fields on a plan are currently immutable.
16
16
  */
17
- update(otherExternalPlanId: string, body: ExternalPlanIDUpdateParams, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
17
+ update(otherExternalPlanID: string, body: ExternalPlanIDUpdateParams, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
18
18
  /**
19
19
  * This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details
20
20
  * given an external_plan_id identifier. It returns information about the prices
@@ -33,7 +33,7 @@ export declare class ExternalPlanID extends APIResource {
33
33
  * that is present. A detailed explanation of price types can be found in the
34
34
  * [Price schema](/core-concepts#plan-and-price). "
35
35
  */
36
- fetch(externalPlanId: string, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
36
+ fetch(externalPlanID: string, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
37
37
  }
38
38
  export interface ExternalPlanIDUpdateParams {
39
39
  /**
@@ -16,8 +16,8 @@ class ExternalPlanID extends resource_1.APIResource {
16
16
  *
17
17
  * Other fields on a plan are currently immutable.
18
18
  */
19
- update(otherExternalPlanId, body, options) {
20
- return this._client.put((0, path_1.path) `/plans/external_plan_id/${otherExternalPlanId}`, { body, ...options });
19
+ update(otherExternalPlanID, body, options) {
20
+ return this._client.put((0, path_1.path) `/plans/external_plan_id/${otherExternalPlanID}`, { body, ...options });
21
21
  }
22
22
  /**
23
23
  * This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details
@@ -37,8 +37,8 @@ class ExternalPlanID extends resource_1.APIResource {
37
37
  * that is present. A detailed explanation of price types can be found in the
38
38
  * [Price schema](/core-concepts#plan-and-price). "
39
39
  */
40
- fetch(externalPlanId, options) {
41
- return this._client.get((0, path_1.path) `/plans/external_plan_id/${externalPlanId}`, options);
40
+ fetch(externalPlanID, options) {
41
+ return this._client.get((0, path_1.path) `/plans/external_plan_id/${externalPlanID}`, options);
42
42
  }
43
43
  }
44
44
  exports.ExternalPlanID = ExternalPlanID;
@@ -13,8 +13,8 @@ export class ExternalPlanID extends APIResource {
13
13
  *
14
14
  * Other fields on a plan are currently immutable.
15
15
  */
16
- update(otherExternalPlanId, body, options) {
17
- return this._client.put(path `/plans/external_plan_id/${otherExternalPlanId}`, { body, ...options });
16
+ update(otherExternalPlanID, body, options) {
17
+ return this._client.put(path `/plans/external_plan_id/${otherExternalPlanID}`, { body, ...options });
18
18
  }
19
19
  /**
20
20
  * This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details
@@ -34,8 +34,8 @@ export class ExternalPlanID extends APIResource {
34
34
  * that is present. A detailed explanation of price types can be found in the
35
35
  * [Price schema](/core-concepts#plan-and-price). "
36
36
  */
37
- fetch(externalPlanId, options) {
38
- return this._client.get(path `/plans/external_plan_id/${externalPlanId}`, options);
37
+ fetch(externalPlanID, options) {
38
+ return this._client.get(path `/plans/external_plan_id/${externalPlanID}`, options);
39
39
  }
40
40
  }
41
41
  //# sourceMappingURL=external-plan-id.mjs.map
@@ -11,18 +11,18 @@ export declare class Migrations extends APIResource {
11
11
  /**
12
12
  * Fetch migration
13
13
  */
14
- retrieve(migrationId: string, params: MigrationRetrieveParams, options?: RequestOptions): APIPromise<MigrationRetrieveResponse>;
14
+ retrieve(migrationID: string, params: MigrationRetrieveParams, options?: RequestOptions): APIPromise<MigrationRetrieveResponse>;
15
15
  /**
16
16
  * This endpoint returns a list of all migrations for a plan. The list of
17
17
  * migrations is ordered starting from the most recently created migration. The
18
18
  * response also includes pagination_metadata, which lets the caller retrieve the
19
19
  * next page of results if they exist.
20
20
  */
21
- list(planId: string, query?: MigrationListParams | null | undefined, options?: RequestOptions): PagePromise<MigrationListResponsesPage, MigrationListResponse>;
21
+ list(planID: string, query?: MigrationListParams | null | undefined, options?: RequestOptions): PagePromise<MigrationListResponsesPage, MigrationListResponse>;
22
22
  /**
23
23
  * This endpoint cancels a migration.
24
24
  */
25
- cancel(migrationId: string, params: MigrationCancelParams, options?: RequestOptions): APIPromise<MigrationCancelResponse>;
25
+ cancel(migrationID: string, params: MigrationCancelParams, options?: RequestOptions): APIPromise<MigrationCancelResponse>;
26
26
  }
27
27
  export type MigrationListResponsesPage = Page<MigrationListResponse>;
28
28
  export interface MigrationRetrieveResponse {
@@ -11,18 +11,18 @@ export declare class Migrations extends APIResource {
11
11
  /**
12
12
  * Fetch migration
13
13
  */
14
- retrieve(migrationId: string, params: MigrationRetrieveParams, options?: RequestOptions): APIPromise<MigrationRetrieveResponse>;
14
+ retrieve(migrationID: string, params: MigrationRetrieveParams, options?: RequestOptions): APIPromise<MigrationRetrieveResponse>;
15
15
  /**
16
16
  * This endpoint returns a list of all migrations for a plan. The list of
17
17
  * migrations is ordered starting from the most recently created migration. The
18
18
  * response also includes pagination_metadata, which lets the caller retrieve the
19
19
  * next page of results if they exist.
20
20
  */
21
- list(planId: string, query?: MigrationListParams | null | undefined, options?: RequestOptions): PagePromise<MigrationListResponsesPage, MigrationListResponse>;
21
+ list(planID: string, query?: MigrationListParams | null | undefined, options?: RequestOptions): PagePromise<MigrationListResponsesPage, MigrationListResponse>;
22
22
  /**
23
23
  * This endpoint cancels a migration.
24
24
  */
25
- cancel(migrationId: string, params: MigrationCancelParams, options?: RequestOptions): APIPromise<MigrationCancelResponse>;
25
+ cancel(migrationID: string, params: MigrationCancelParams, options?: RequestOptions): APIPromise<MigrationCancelResponse>;
26
26
  }
27
27
  export type MigrationListResponsesPage = Page<MigrationListResponse>;
28
28
  export interface MigrationRetrieveResponse {
@@ -14,9 +14,9 @@ class Migrations extends resource_1.APIResource {
14
14
  /**
15
15
  * Fetch migration
16
16
  */
17
- retrieve(migrationId, params, options) {
18
- const { plan_id: planId } = params;
19
- return this._client.get((0, path_1.path) `/plans/${planId}/migrations/${migrationId}`, options);
17
+ retrieve(migrationID, params, options) {
18
+ const { plan_id } = params;
19
+ return this._client.get((0, path_1.path) `/plans/${plan_id}/migrations/${migrationID}`, options);
20
20
  }
21
21
  /**
22
22
  * This endpoint returns a list of all migrations for a plan. The list of
@@ -24,8 +24,8 @@ class Migrations extends resource_1.APIResource {
24
24
  * response also includes pagination_metadata, which lets the caller retrieve the
25
25
  * next page of results if they exist.
26
26
  */
27
- list(planId, query = {}, options) {
28
- return this._client.getAPIList((0, path_1.path) `/plans/${planId}/migrations`, (pagination_1.Page), {
27
+ list(planID, query = {}, options) {
28
+ return this._client.getAPIList((0, path_1.path) `/plans/${planID}/migrations`, (pagination_1.Page), {
29
29
  query,
30
30
  ...options,
31
31
  });
@@ -33,9 +33,9 @@ class Migrations extends resource_1.APIResource {
33
33
  /**
34
34
  * This endpoint cancels a migration.
35
35
  */
36
- cancel(migrationId, params, options) {
37
- const { plan_id: planId } = params;
38
- return this._client.post((0, path_1.path) `/plans/${planId}/migrations/${migrationId}/cancel`, options);
36
+ cancel(migrationID, params, options) {
37
+ const { plan_id } = params;
38
+ return this._client.post((0, path_1.path) `/plans/${plan_id}/migrations/${migrationID}/cancel`, options);
39
39
  }
40
40
  }
41
41
  exports.Migrations = Migrations;
@@ -1 +1 @@
1
- {"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../src/resources/plans/migrations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA2E;AAE3E,uDAAiD;AAEjD;;;;GAIG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,MAAc,EACd,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,aAAa,EAAE,CAAA,iBAA2B,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,eAAe,WAAW,SAAS,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;CACF;AAzCD,gCAyCC"}
1
+ {"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../src/resources/plans/migrations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA2E;AAE3E,uDAAiD;AAEjD;;;;GAIG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,MAAc,EACd,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,aAAa,EAAE,CAAA,iBAA2B,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,eAAe,WAAW,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF;AAzCD,gCAyCC"}
@@ -11,9 +11,9 @@ export class Migrations extends APIResource {
11
11
  /**
12
12
  * Fetch migration
13
13
  */
14
- retrieve(migrationId, params, options) {
15
- const { plan_id: planId } = params;
16
- return this._client.get(path `/plans/${planId}/migrations/${migrationId}`, options);
14
+ retrieve(migrationID, params, options) {
15
+ const { plan_id } = params;
16
+ return this._client.get(path `/plans/${plan_id}/migrations/${migrationID}`, options);
17
17
  }
18
18
  /**
19
19
  * This endpoint returns a list of all migrations for a plan. The list of
@@ -21,8 +21,8 @@ export class Migrations extends APIResource {
21
21
  * response also includes pagination_metadata, which lets the caller retrieve the
22
22
  * next page of results if they exist.
23
23
  */
24
- list(planId, query = {}, options) {
25
- return this._client.getAPIList(path `/plans/${planId}/migrations`, (Page), {
24
+ list(planID, query = {}, options) {
25
+ return this._client.getAPIList(path `/plans/${planID}/migrations`, (Page), {
26
26
  query,
27
27
  ...options,
28
28
  });
@@ -30,9 +30,9 @@ export class Migrations extends APIResource {
30
30
  /**
31
31
  * This endpoint cancels a migration.
32
32
  */
33
- cancel(migrationId, params, options) {
34
- const { plan_id: planId } = params;
35
- return this._client.post(path `/plans/${planId}/migrations/${migrationId}/cancel`, options);
33
+ cancel(migrationID, params, options) {
34
+ const { plan_id } = params;
35
+ return this._client.post(path `/plans/${plan_id}/migrations/${migrationID}/cancel`, options);
36
36
  }
37
37
  }
38
38
  //# sourceMappingURL=migrations.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrations.mjs","sourceRoot":"","sources":["../../src/resources/plans/migrations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,IAAI,EAAgC,kCAA8B;AAE3E,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,MAAc,EACd,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,UAAU,MAAM,aAAa,EAAE,CAAA,IAA2B,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,eAAe,WAAW,SAAS,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;CACF"}
1
+ {"version":3,"file":"migrations.mjs","sourceRoot":"","sources":["../../src/resources/plans/migrations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,IAAI,EAAgC,kCAA8B;AAE3E,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,OAAO,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,MAAc,EACd,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,UAAU,MAAM,aAAa,EAAE,CAAA,IAA2B,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,OAAO,eAAe,WAAW,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF"}
@@ -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
  /**