orb-billing 4.33.0 → 4.47.1

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 (252) hide show
  1. package/CHANGELOG.md +175 -0
  2. package/LICENSE +1 -1
  3. package/README.md +10 -1
  4. package/core.d.ts +4 -5
  5. package/core.d.ts.map +1 -1
  6. package/core.js +16 -11
  7. package/core.js.map +1 -1
  8. package/core.mjs +16 -11
  9. package/core.mjs.map +1 -1
  10. package/error.d.ts +30 -36
  11. package/error.d.ts.map +1 -1
  12. package/error.js +24 -43
  13. package/error.js.map +1 -1
  14. package/error.mjs +24 -43
  15. package/error.mjs.map +1 -1
  16. package/index.d.mts +43 -109
  17. package/index.d.ts +43 -109
  18. package/index.d.ts.map +1 -1
  19. package/index.js +71 -33
  20. package/index.js.map +1 -1
  21. package/index.mjs +43 -32
  22. package/index.mjs.map +1 -1
  23. package/package.json +1 -1
  24. package/resources/alerts.d.ts +58 -19
  25. package/resources/alerts.d.ts.map +1 -1
  26. package/resources/alerts.js +19 -37
  27. package/resources/alerts.js.map +1 -1
  28. package/resources/alerts.mjs +19 -14
  29. package/resources/alerts.mjs.map +1 -1
  30. package/resources/coupons/coupons.d.ts +3 -7
  31. package/resources/coupons/coupons.d.ts.map +1 -1
  32. package/resources/coupons/coupons.js +3 -5
  33. package/resources/coupons/coupons.js.map +1 -1
  34. package/resources/coupons/coupons.mjs +3 -5
  35. package/resources/coupons/coupons.mjs.map +1 -1
  36. package/resources/coupons/index.d.ts +2 -2
  37. package/resources/coupons/index.d.ts.map +1 -1
  38. package/resources/coupons/index.js.map +1 -1
  39. package/resources/coupons/index.mjs.map +1 -1
  40. package/resources/coupons/subscriptions.d.ts +1 -2
  41. package/resources/coupons/subscriptions.d.ts.map +1 -1
  42. package/resources/coupons/subscriptions.js +0 -2
  43. package/resources/coupons/subscriptions.js.map +1 -1
  44. package/resources/coupons/subscriptions.mjs +0 -2
  45. package/resources/coupons/subscriptions.mjs.map +1 -1
  46. package/resources/credit-notes.d.ts +29 -4
  47. package/resources/credit-notes.d.ts.map +1 -1
  48. package/resources/credit-notes.js +8 -27
  49. package/resources/credit-notes.js.map +1 -1
  50. package/resources/credit-notes.mjs +8 -4
  51. package/resources/credit-notes.mjs.map +1 -1
  52. package/resources/customers/balance-transactions.d.ts +1 -6
  53. package/resources/customers/balance-transactions.d.ts.map +1 -1
  54. package/resources/customers/balance-transactions.js +1 -27
  55. package/resources/customers/balance-transactions.js.map +1 -1
  56. package/resources/customers/balance-transactions.mjs +1 -4
  57. package/resources/customers/balance-transactions.mjs.map +1 -1
  58. package/resources/customers/costs.d.ts +1 -5
  59. package/resources/customers/costs.d.ts.map +1 -1
  60. package/resources/customers/costs.js +0 -2
  61. package/resources/customers/costs.js.map +1 -1
  62. package/resources/customers/costs.mjs +0 -2
  63. package/resources/customers/costs.mjs.map +1 -1
  64. package/resources/customers/credits/credits.d.ts +15 -31
  65. package/resources/customers/credits/credits.d.ts.map +1 -1
  66. package/resources/customers/credits/credits.js +10 -11
  67. package/resources/customers/credits/credits.js.map +1 -1
  68. package/resources/customers/credits/credits.mjs +10 -11
  69. package/resources/customers/credits/credits.mjs.map +1 -1
  70. package/resources/customers/credits/index.d.ts +3 -3
  71. package/resources/customers/credits/index.d.ts.map +1 -1
  72. package/resources/customers/credits/index.js.map +1 -1
  73. package/resources/customers/credits/index.mjs.map +1 -1
  74. package/resources/customers/credits/ledger.d.ts +15 -23
  75. package/resources/customers/credits/ledger.d.ts.map +1 -1
  76. package/resources/customers/credits/ledger.js +12 -36
  77. package/resources/customers/credits/ledger.js.map +1 -1
  78. package/resources/customers/credits/ledger.mjs +12 -13
  79. package/resources/customers/credits/ledger.mjs.map +1 -1
  80. package/resources/customers/credits/top-ups.d.ts +1 -11
  81. package/resources/customers/credits/top-ups.d.ts.map +1 -1
  82. package/resources/customers/credits/top-ups.js +2 -28
  83. package/resources/customers/credits/top-ups.js.map +1 -1
  84. package/resources/customers/credits/top-ups.mjs +2 -5
  85. package/resources/customers/credits/top-ups.mjs.map +1 -1
  86. package/resources/customers/customers.d.ts +7 -25
  87. package/resources/customers/customers.d.ts.map +1 -1
  88. package/resources/customers/customers.js +10 -10
  89. package/resources/customers/customers.js.map +1 -1
  90. package/resources/customers/customers.mjs +10 -10
  91. package/resources/customers/customers.mjs.map +1 -1
  92. package/resources/customers/index.d.ts +4 -4
  93. package/resources/customers/index.d.ts.map +1 -1
  94. package/resources/customers/index.js.map +1 -1
  95. package/resources/customers/index.mjs.map +1 -1
  96. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +90 -0
  97. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts.map +1 -0
  98. package/resources/dimensional-price-groups/dimensional-price-groups.js +73 -0
  99. package/resources/dimensional-price-groups/dimensional-price-groups.js.map +1 -0
  100. package/resources/dimensional-price-groups/dimensional-price-groups.mjs +45 -0
  101. package/resources/dimensional-price-groups/dimensional-price-groups.mjs.map +1 -0
  102. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +10 -0
  103. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -0
  104. package/resources/dimensional-price-groups/external-dimensional-price-group-id.js +15 -0
  105. package/resources/dimensional-price-groups/external-dimensional-price-group-id.js.map +1 -0
  106. package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs +11 -0
  107. package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs.map +1 -0
  108. package/resources/dimensional-price-groups/index.d.ts +3 -0
  109. package/resources/dimensional-price-groups/index.d.ts.map +1 -0
  110. package/resources/dimensional-price-groups/index.js +9 -0
  111. package/resources/dimensional-price-groups/index.js.map +1 -0
  112. package/resources/dimensional-price-groups/index.mjs +4 -0
  113. package/resources/dimensional-price-groups/index.mjs.map +1 -0
  114. package/resources/events/backfills.d.ts +5 -11
  115. package/resources/events/backfills.d.ts.map +1 -1
  116. package/resources/events/backfills.js +5 -29
  117. package/resources/events/backfills.js.map +1 -1
  118. package/resources/events/backfills.mjs +5 -6
  119. package/resources/events/backfills.mjs.map +1 -1
  120. package/resources/events/events.d.ts +7 -22
  121. package/resources/events/events.d.ts.map +1 -1
  122. package/resources/events/events.js +7 -7
  123. package/resources/events/events.js.map +1 -1
  124. package/resources/events/events.mjs +7 -7
  125. package/resources/events/events.mjs.map +1 -1
  126. package/resources/events/index.d.ts +3 -3
  127. package/resources/events/index.d.ts.map +1 -1
  128. package/resources/events/index.js.map +1 -1
  129. package/resources/events/index.mjs.map +1 -1
  130. package/resources/events/volume.d.ts +1 -3
  131. package/resources/events/volume.d.ts.map +1 -1
  132. package/resources/events/volume.js +0 -2
  133. package/resources/events/volume.js.map +1 -1
  134. package/resources/events/volume.mjs +0 -2
  135. package/resources/events/volume.mjs.map +1 -1
  136. package/resources/index.d.ts +14 -13
  137. package/resources/index.d.ts.map +1 -1
  138. package/resources/index.js +10 -7
  139. package/resources/index.js.map +1 -1
  140. package/resources/index.mjs +8 -7
  141. package/resources/index.mjs.map +1 -1
  142. package/resources/invoice-line-items.d.ts +1 -3
  143. package/resources/invoice-line-items.d.ts.map +1 -1
  144. package/resources/invoice-line-items.js +0 -2
  145. package/resources/invoice-line-items.js.map +1 -1
  146. package/resources/invoice-line-items.mjs +0 -2
  147. package/resources/invoice-line-items.mjs.map +1 -1
  148. package/resources/invoices.d.ts +78 -13
  149. package/resources/invoices.d.ts.map +1 -1
  150. package/resources/invoices.js +8 -27
  151. package/resources/invoices.js.map +1 -1
  152. package/resources/invoices.mjs +8 -4
  153. package/resources/invoices.mjs.map +1 -1
  154. package/resources/items.d.ts +1 -6
  155. package/resources/items.d.ts.map +1 -1
  156. package/resources/items.js +1 -27
  157. package/resources/items.js.map +1 -1
  158. package/resources/items.mjs +1 -4
  159. package/resources/items.mjs.map +1 -1
  160. package/resources/metrics.d.ts +1 -6
  161. package/resources/metrics.d.ts.map +1 -1
  162. package/resources/metrics.js +1 -27
  163. package/resources/metrics.js.map +1 -1
  164. package/resources/metrics.mjs +1 -4
  165. package/resources/metrics.mjs.map +1 -1
  166. package/resources/plans/external-plan-id.d.ts +1 -2
  167. package/resources/plans/external-plan-id.d.ts.map +1 -1
  168. package/resources/plans/external-plan-id.js +0 -2
  169. package/resources/plans/external-plan-id.js.map +1 -1
  170. package/resources/plans/external-plan-id.mjs +0 -2
  171. package/resources/plans/external-plan-id.mjs.map +1 -1
  172. package/resources/plans/index.d.ts +2 -2
  173. package/resources/plans/index.d.ts.map +1 -1
  174. package/resources/plans/index.js.map +1 -1
  175. package/resources/plans/index.mjs +1 -1
  176. package/resources/plans/index.mjs.map +1 -1
  177. package/resources/plans/plans.d.ts +331 -9
  178. package/resources/plans/plans.d.ts.map +1 -1
  179. package/resources/plans/plans.js +3 -5
  180. package/resources/plans/plans.js.map +1 -1
  181. package/resources/plans/plans.mjs +3 -5
  182. package/resources/plans/plans.mjs.map +1 -1
  183. package/resources/prices/external-price-id.d.ts +1 -2
  184. package/resources/prices/external-price-id.d.ts.map +1 -1
  185. package/resources/prices/external-price-id.js +0 -2
  186. package/resources/prices/external-price-id.js.map +1 -1
  187. package/resources/prices/external-price-id.mjs +0 -2
  188. package/resources/prices/external-price-id.mjs.map +1 -1
  189. package/resources/prices/index.d.ts +2 -2
  190. package/resources/prices/index.d.ts.map +1 -1
  191. package/resources/prices/index.js +3 -3
  192. package/resources/prices/index.js.map +1 -1
  193. package/resources/prices/index.mjs +1 -1
  194. package/resources/prices/index.mjs.map +1 -1
  195. package/resources/prices/prices.d.ts +339 -13
  196. package/resources/prices/prices.d.ts.map +1 -1
  197. package/resources/prices/prices.js +3 -5
  198. package/resources/prices/prices.js.map +1 -1
  199. package/resources/prices/prices.mjs +3 -5
  200. package/resources/prices/prices.mjs.map +1 -1
  201. package/resources/subscriptions.d.ts +7629 -191
  202. package/resources/subscriptions.d.ts.map +1 -1
  203. package/resources/subscriptions.js +2 -29
  204. package/resources/subscriptions.js.map +1 -1
  205. package/resources/subscriptions.mjs +2 -6
  206. package/resources/subscriptions.mjs.map +1 -1
  207. package/resources/top-level.d.ts +1 -2
  208. package/resources/top-level.d.ts.map +1 -1
  209. package/resources/top-level.js +0 -2
  210. package/resources/top-level.js.map +1 -1
  211. package/resources/top-level.mjs +0 -2
  212. package/resources/top-level.mjs.map +1 -1
  213. package/src/core.ts +23 -19
  214. package/src/error.ts +82 -125
  215. package/src/index.ts +334 -130
  216. package/src/resources/alerts.ts +117 -24
  217. package/src/resources/coupons/coupons.ts +13 -8
  218. package/src/resources/coupons/index.ts +2 -2
  219. package/src/resources/coupons/subscriptions.ts +2 -3
  220. package/src/resources/credit-notes.ts +45 -5
  221. package/src/resources/customers/balance-transactions.ts +10 -7
  222. package/src/resources/customers/costs.ts +7 -6
  223. package/src/resources/customers/credits/credits.ts +82 -32
  224. package/src/resources/customers/credits/index.ts +20 -20
  225. package/src/resources/customers/credits/ledger.ts +30 -24
  226. package/src/resources/customers/credits/top-ups.ts +16 -12
  227. package/src/resources/customers/customers.ts +68 -26
  228. package/src/resources/customers/index.ts +17 -17
  229. package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +146 -0
  230. package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +20 -0
  231. package/src/resources/dimensional-price-groups/index.ts +10 -0
  232. package/src/resources/events/backfills.ts +17 -12
  233. package/src/resources/events/events.ts +42 -23
  234. package/src/resources/events/index.ts +15 -15
  235. package/src/resources/events/volume.ts +2 -4
  236. package/src/resources/index.ts +113 -67
  237. package/src/resources/invoice-line-items.ts +5 -4
  238. package/src/resources/invoices.ts +108 -14
  239. package/src/resources/items.ts +10 -7
  240. package/src/resources/metrics.ts +10 -7
  241. package/src/resources/plans/external-plan-id.ts +2 -3
  242. package/src/resources/plans/index.ts +9 -2
  243. package/src/resources/plans/plans.ts +424 -9
  244. package/src/resources/prices/external-price-id.ts +2 -3
  245. package/src/resources/prices/index.ts +8 -8
  246. package/src/resources/prices/prices.ts +470 -14
  247. package/src/resources/subscriptions.ts +9231 -400
  248. package/src/resources/top-level.ts +2 -3
  249. package/src/version.ts +1 -1
  250. package/version.d.ts +1 -1
  251. package/version.js +1 -1
  252. package/version.mjs +1 -1
@@ -1,7 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../resource.mjs";
3
3
  import * as BackfillsAPI from "./backfills.mjs";
4
+ import { BackfillListResponsesPage, Backfills, } from "./backfills.mjs";
4
5
  import * as VolumeAPI from "./volume.mjs";
6
+ import { Volume } from "./volume.mjs";
5
7
  export class Events extends APIResource {
6
8
  constructor() {
7
9
  super(...arguments);
@@ -74,8 +76,8 @@ export class Events extends APIResource {
74
76
  * call to a payment gateway failed and the user should not be billed)
75
77
  *
76
78
  * If you want to only change specific properties of an event, but keep the event
77
- * as part of the billing calculation, use the [Amend single event](amend-event)
78
- * endpoint instead.
79
+ * as part of the billing calculation, use the [Amend event](amend-event) endpoint
80
+ * instead.
79
81
  *
80
82
  * This API is always audit-safe. The process will still retain the deprecated
81
83
  * event, though it will be ignored for billing calculations. For auditing and data
@@ -332,9 +334,7 @@ export class Events extends APIResource {
332
334
  return this._client.post('/events/search', { body, ...options });
333
335
  }
334
336
  }
335
- (function (Events) {
336
- Events.Backfills = BackfillsAPI.Backfills;
337
- Events.BackfillListResponsesPage = BackfillsAPI.BackfillListResponsesPage;
338
- Events.Volume = VolumeAPI.Volume;
339
- })(Events || (Events = {}));
337
+ Events.Backfills = Backfills;
338
+ Events.BackfillListResponsesPage = BackfillListResponsesPage;
339
+ Events.Volume = Volume;
340
340
  //# sourceMappingURL=events.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,YAAY;OACjB,KAAK,SAAS;AAErB,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2MG;IACH,MAAM,CAAC,MAAyB,EAAE,OAA6B;QAC7D,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AA8ND,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;AAC7B,MAAM,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;AAC7D,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -1,4 +1,4 @@
1
- export { BackfillCreateResponse, BackfillListResponse, BackfillCloseResponse, BackfillFetchResponse, BackfillRevertResponse, BackfillCreateParams, BackfillListParams, BackfillListResponsesPage, Backfills, } from "./backfills.js";
2
- export { EventUpdateResponse, EventDeprecateResponse, EventIngestResponse, EventSearchResponse, EventUpdateParams, EventIngestParams, EventSearchParams, Events, } from "./events.js";
3
- export { EventVolumes, VolumeListParams, Volume } from "./volume.js";
1
+ export { BackfillListResponsesPage, Backfills, type BackfillCreateResponse, type BackfillListResponse, type BackfillCloseResponse, type BackfillFetchResponse, type BackfillRevertResponse, type BackfillCreateParams, type BackfillListParams, } from "./backfills.js";
2
+ export { Events, type EventUpdateResponse, type EventDeprecateResponse, type EventIngestResponse, type EventSearchResponse, type EventUpdateParams, type EventIngestParams, type EventSearchParams, } from "./events.js";
3
+ export { Volume, type EventVolumes, type VolumeListParams } from "./volume.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,yBAAyB,EACzB,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAUqB;AAFnB,sHAAA,yBAAyB,OAAA;AACzB,sGAAA,SAAS,OAAA;AAEX,sCASkB;AADhB,gGAAA,MAAM,OAAA;AAER,sCAAkE;AAAzB,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAUqB;AATnB,sHAAA,yBAAyB,OAAA;AACzB,sGAAA,SAAS,OAAA;AASX,sCASkB;AARhB,gGAAA,MAAM,OAAA;AASR,sCAA4E;AAAnE,gGAAA,MAAM,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAQL,yBAAyB,EACzB,SAAS,GACV;OACM,EAQL,MAAM,GACP;OACM,EAAkC,MAAM,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,yBAAyB,EACzB,SAAS,GAQV;OACM,EACL,MAAM,GAQP;OACM,EAAE,MAAM,EAA4C"}
@@ -1,6 +1,5 @@
1
1
  import { APIResource } from "../../resource.js";
2
2
  import * as Core from "../../core.js";
3
- import * as VolumeAPI from "./volume.js";
4
3
  export declare class Volume extends APIResource {
5
4
  /**
6
5
  * This endpoint returns the event volume for an account in a
@@ -62,7 +61,6 @@ export interface VolumeListParams {
62
61
  timeframe_end?: string;
63
62
  }
64
63
  export declare namespace Volume {
65
- export import EventVolumes = VolumeAPI.EventVolumes;
66
- export import VolumeListParams = VolumeAPI.VolumeListParams;
64
+ export { type EventVolumes as EventVolumes, type VolumeListParams as VolumeListParams };
67
65
  }
68
66
  //# sourceMappingURL=volume.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"volume.d.ts","sourceRoot":"","sources":["../../src/resources/events/volume.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AAEtC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;CAG5F;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;CAChC;AAED,yBAAiB,YAAY,CAAC;IAC5B;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd,aAAa,EAAE,MAAM,CAAC;QAEtB,eAAe,EAAE,MAAM,CAAC;KACzB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,yBAAiB,MAAM,CAAC;IACtB,MAAM,QAAQ,YAAY,GAAG,SAAS,CAAC,YAAY,CAAC;IACpD,MAAM,QAAQ,gBAAgB,GAAG,SAAS,CAAC,gBAAgB,CAAC;CAC7D"}
1
+ {"version":3,"file":"volume.d.ts","sourceRoot":"","sources":["../../src/resources/events/volume.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;CAG5F;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;CAChC;AAED,yBAAiB,YAAY,CAAC;IAC5B;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd,aAAa,EAAE,MAAM,CAAC;QAEtB,eAAe,EAAE,MAAM,CAAC;KACzB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACzF"}
@@ -24,6 +24,4 @@ class Volume extends resource_1.APIResource {
24
24
  }
25
25
  }
26
26
  exports.Volume = Volume;
27
- (function (Volume) {
28
- })(Volume = exports.Volume || (exports.Volume = {}));
29
27
  //# sourceMappingURL=volume.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"volume.js","sourceRoot":"","sources":["../../src/resources/events/volume.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,KAAuB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAnBD,wBAmBC;AAoDD,WAAiB,MAAM;AAGvB,CAAC,EAHgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAGtB"}
1
+ {"version":3,"file":"volume.js","sourceRoot":"","sources":["../../src/resources/events/volume.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,KAAuB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAnBD,wBAmBC"}
@@ -20,6 +20,4 @@ export class Volume extends APIResource {
20
20
  return this._client.get('/events/volume', { query, ...options });
21
21
  }
22
22
  }
23
- (function (Volume) {
24
- })(Volume || (Volume = {}));
25
23
  //# sourceMappingURL=volume.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"volume.mjs","sourceRoot":"","sources":["../../src/resources/events/volume.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,KAAuB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAoDD,WAAiB,MAAM;AAGvB,CAAC,EAHgB,MAAM,KAAN,MAAM,QAGtB"}
1
+ {"version":3,"file":"volume.mjs","sourceRoot":"","sources":["../../src/resources/events/volume.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,KAAuB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
@@ -1,16 +1,17 @@
1
1
  export * from "./shared.js";
2
- export { Alert, AlertUpdateParams, AlertListParams, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, AlertCreateForSubscriptionParams, AlertsPage, Alerts, } from "./alerts.js";
3
- export { BillableMetric, MetricCreateParams, MetricUpdateParams, MetricListParams, BillableMetricsPage, Metrics, } from "./metrics.js";
4
- export { Coupon, CouponCreateParams, CouponListParams, CouponsPage, Coupons } from "./coupons/coupons.js";
5
- export { CreditNote, CreditNoteListParams, CreditNotesPage, CreditNotes } from "./credit-notes.js";
6
- export { Customer, CustomerCreateParams, CustomerUpdateParams, CustomerListParams, CustomerUpdateByExternalIDParams, CustomersPage, Customers, } from "./customers/customers.js";
7
- export { EvaluatePriceGroup, Price, PriceEvaluateResponse, PriceCreateParams, PriceUpdateParams, PriceListParams, PriceEvaluateParams, PricesPage, Prices, } from "./prices/prices.js";
8
- export { EventUpdateResponse, EventDeprecateResponse, EventIngestResponse, EventSearchResponse, EventUpdateParams, EventIngestParams, EventSearchParams, Events, } from "./events/events.js";
9
- export { Invoice, InvoiceFetchUpcomingResponse, InvoiceCreateParams, InvoiceUpdateParams, InvoiceListParams, InvoiceFetchUpcomingParams, InvoiceIssueParams, InvoiceMarkPaidParams, InvoicesPage, Invoices, } from "./invoices.js";
10
- export { InvoiceLineItemCreateResponse, InvoiceLineItemCreateParams, InvoiceLineItems, } from "./invoice-line-items.js";
11
- export { Item, ItemCreateParams, ItemUpdateParams, ItemListParams, ItemsPage, Items } from "./items.js";
12
- export { Plan, PlanCreateParams, PlanUpdateParams, PlanListParams, PlansPage, Plans } from "./plans/plans.js";
13
- export { Subscription, SubscriptionUsage, Subscriptions, SubscriptionFetchCostsResponse, SubscriptionFetchScheduleResponse, SubscriptionCreateParams, SubscriptionUpdateParams, SubscriptionListParams, SubscriptionCancelParams, SubscriptionFetchCostsParams, SubscriptionFetchScheduleParams, SubscriptionFetchUsageParams, SubscriptionPriceIntervalsParams, SubscriptionSchedulePlanChangeParams, SubscriptionTriggerPhaseParams, SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, SubscriptionUpdateFixedFeeQuantityParams, SubscriptionUpdateTrialParams, SubscriptionsPage, SubscriptionFetchScheduleResponsesPage, } from "./subscriptions.js";
14
- export { TopLevelPingResponse, TopLevel } from "./top-level.js";
2
+ export { AlertsPage, Alerts, type Alert, type AlertUpdateParams, type AlertListParams, type AlertCreateForCustomerParams, type AlertCreateForExternalCustomerParams, type AlertCreateForSubscriptionParams, type AlertDisableParams, type AlertEnableParams, } from "./alerts.js";
3
+ export { BillableMetricsPage, Metrics, type BillableMetric, type MetricCreateParams, type MetricUpdateParams, type MetricListParams, } from "./metrics.js";
4
+ export { CouponsPage, Coupons, type Coupon, type CouponCreateParams, type CouponListParams, } from "./coupons/coupons.js";
5
+ export { CreditNotesPage, CreditNotes, type CreditNote, type CreditNoteCreateParams, type CreditNoteListParams, } from "./credit-notes.js";
6
+ export { CustomersPage, Customers, type Customer, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerUpdateByExternalIDParams, } from "./customers/customers.js";
7
+ export { DimensionalPriceGroupsPage, DimensionalPriceGroups, type DimensionalPriceGroup, type DimensionalPriceGroupCreateParams, type DimensionalPriceGroupListParams, } from "./dimensional-price-groups/dimensional-price-groups.js";
8
+ export { Events, type EventUpdateResponse, type EventDeprecateResponse, type EventIngestResponse, type EventSearchResponse, type EventUpdateParams, type EventIngestParams, type EventSearchParams, } from "./events/events.js";
9
+ export { InvoiceLineItems, type InvoiceLineItemCreateResponse, type InvoiceLineItemCreateParams, } from "./invoice-line-items.js";
10
+ export { InvoicesPage, Invoices, type Invoice, type InvoiceFetchUpcomingResponse, type InvoiceCreateParams, type InvoiceUpdateParams, type InvoiceListParams, type InvoiceFetchUpcomingParams, type InvoiceIssueParams, type InvoiceMarkPaidParams, } from "./invoices.js";
11
+ export { ItemsPage, Items, type Item, type ItemCreateParams, type ItemUpdateParams, type ItemListParams, } from "./items.js";
12
+ export { PlansPage, Plans, type Plan, type PlanCreateParams, type PlanUpdateParams, type PlanListParams, } from "./plans/plans.js";
13
+ export { PricesPage, Prices, type EvaluatePriceGroup, type Price, type PriceEvaluateResponse, type PriceCreateParams, type PriceUpdateParams, type PriceListParams, type PriceEvaluateParams, } from "./prices/prices.js";
14
+ export { SubscriptionsPage, SubscriptionFetchScheduleResponsesPage, Subscriptions, type Subscription, type SubscriptionUsage, type SubscriptionCreateResponse, type SubscriptionCancelResponse, type SubscriptionFetchCostsResponse, type SubscriptionFetchScheduleResponse, type SubscriptionPriceIntervalsResponse, type SubscriptionSchedulePlanChangeResponse, type SubscriptionTriggerPhaseResponse, type SubscriptionUnscheduleCancellationResponse, type SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, type SubscriptionUnschedulePendingPlanChangesResponse, type SubscriptionUpdateFixedFeeQuantityResponse, type SubscriptionUpdateTrialResponse, type SubscriptionCreateParams, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionCancelParams, type SubscriptionFetchCostsParams, type SubscriptionFetchScheduleParams, type SubscriptionFetchUsageParams, type SubscriptionPriceIntervalsParams, type SubscriptionSchedulePlanChangeParams, type SubscriptionTriggerPhaseParams, type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, type SubscriptionUpdateFixedFeeQuantityParams, type SubscriptionUpdateTrialParams, } from "./subscriptions.js";
15
+ export { TopLevel, type TopLevelPingResponse } from "./top-level.js";
15
16
  export { Webhooks } from "./webhooks.js";
16
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UA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EAAE,MAAM,SAAS,CAAC;AACrG,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3G,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,8BAA8B,EAC9B,iCAAiC,EACjC,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,4BAA4B,EAC5B,gCAAgC,EAChC,oCAAoC,EACpC,8BAA8B,EAC9B,mDAAmD,EACnD,wCAAwC,EACxC,6BAA6B,EAC7B,iBAAiB,EACjB,sCAAsC,GACvC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,UAAU,EACV,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACjC,KAAK,oCAAoC,EACzC,KAAK,gCAAgC,EACrC,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,mBAAmB,EACnB,OAAO,EACP,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,OAAO,EACP,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,oB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ACtB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iBAAiB,EACjB,sCAAsC,EACtC,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,sCAAsC,EAC3C,KAAK,gCAAgC,EACrC,KAAK,0CAA0C,EAC/C,KAAK,qDAAqD,EAC1D,KAAK,gDAAgD,EACrD,KAAK,0CAA0C,EAC/C,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,8BAA8B,EACnC,KAAK,mDAAmD,EACxD,KAAK,wCAAwC,EAC7C,KAAK,6BAA6B,GACnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Webhooks = exports.TopLevel = exports.SubscriptionFetchScheduleResponsesPage = exports.SubscriptionsPage = exports.Subscriptions = exports.Plans = exports.PlansPage = exports.Items = exports.ItemsPage = exports.InvoiceLineItems = exports.Invoices = exports.InvoicesPage = exports.Events = exports.Prices = exports.PricesPage = exports.Customers = exports.CustomersPage = exports.CreditNotes = exports.CreditNotesPage = exports.Coupons = exports.CouponsPage = exports.Metrics = exports.BillableMetricsPage = exports.Alerts = exports.AlertsPage = void 0;
18
+ exports.Webhooks = exports.TopLevel = exports.Subscriptions = exports.SubscriptionFetchScheduleResponsesPage = exports.SubscriptionsPage = exports.Prices = exports.PricesPage = exports.Plans = exports.PlansPage = exports.Items = exports.ItemsPage = exports.Invoices = exports.InvoicesPage = exports.InvoiceLineItems = exports.Events = exports.DimensionalPriceGroups = exports.DimensionalPriceGroupsPage = exports.Customers = exports.CustomersPage = exports.CreditNotes = exports.CreditNotesPage = exports.Coupons = exports.CouponsPage = exports.Metrics = exports.BillableMetricsPage = exports.Alerts = exports.AlertsPage = void 0;
19
19
  __exportStar(require("./shared.js"), exports);
20
20
  var alerts_1 = require("./alerts.js");
21
21
  Object.defineProperty(exports, "AlertsPage", { enumerable: true, get: function () { return alerts_1.AlertsPage; } });
@@ -32,26 +32,29 @@ Object.defineProperty(exports, "CreditNotes", { enumerable: true, get: function
32
32
  var customers_1 = require("./customers/customers.js");
33
33
  Object.defineProperty(exports, "CustomersPage", { enumerable: true, get: function () { return customers_1.CustomersPage; } });
34
34
  Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
35
- var prices_1 = require("./prices/prices.js");
36
- Object.defineProperty(exports, "PricesPage", { enumerable: true, get: function () { return prices_1.PricesPage; } });
37
- Object.defineProperty(exports, "Prices", { enumerable: true, get: function () { return prices_1.Prices; } });
35
+ var dimensional_price_groups_1 = require("./dimensional-price-groups/dimensional-price-groups.js");
36
+ Object.defineProperty(exports, "DimensionalPriceGroupsPage", { enumerable: true, get: function () { return dimensional_price_groups_1.DimensionalPriceGroupsPage; } });
37
+ Object.defineProperty(exports, "DimensionalPriceGroups", { enumerable: true, get: function () { return dimensional_price_groups_1.DimensionalPriceGroups; } });
38
38
  var events_1 = require("./events/events.js");
39
39
  Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
40
+ var invoice_line_items_1 = require("./invoice-line-items.js");
41
+ Object.defineProperty(exports, "InvoiceLineItems", { enumerable: true, get: function () { return invoice_line_items_1.InvoiceLineItems; } });
40
42
  var invoices_1 = require("./invoices.js");
41
43
  Object.defineProperty(exports, "InvoicesPage", { enumerable: true, get: function () { return invoices_1.InvoicesPage; } });
42
44
  Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return invoices_1.Invoices; } });
43
- var invoice_line_items_1 = require("./invoice-line-items.js");
44
- Object.defineProperty(exports, "InvoiceLineItems", { enumerable: true, get: function () { return invoice_line_items_1.InvoiceLineItems; } });
45
45
  var items_1 = require("./items.js");
46
46
  Object.defineProperty(exports, "ItemsPage", { enumerable: true, get: function () { return items_1.ItemsPage; } });
47
47
  Object.defineProperty(exports, "Items", { enumerable: true, get: function () { return items_1.Items; } });
48
48
  var plans_1 = require("./plans/plans.js");
49
49
  Object.defineProperty(exports, "PlansPage", { enumerable: true, get: function () { return plans_1.PlansPage; } });
50
50
  Object.defineProperty(exports, "Plans", { enumerable: true, get: function () { return plans_1.Plans; } });
51
+ var prices_1 = require("./prices/prices.js");
52
+ Object.defineProperty(exports, "PricesPage", { enumerable: true, get: function () { return prices_1.PricesPage; } });
53
+ Object.defineProperty(exports, "Prices", { enumerable: true, get: function () { return prices_1.Prices; } });
51
54
  var subscriptions_1 = require("./subscriptions.js");
52
- Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return subscriptions_1.Subscriptions; } });
53
55
  Object.defineProperty(exports, "SubscriptionsPage", { enumerable: true, get: function () { return subscriptions_1.SubscriptionsPage; } });
54
56
  Object.defineProperty(exports, "SubscriptionFetchScheduleResponsesPage", { enumerable: true, get: function () { return subscriptions_1.SubscriptionFetchScheduleResponsesPage; } });
57
+ Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return subscriptions_1.Subscriptions; } });
55
58
  var top_level_1 = require("./top-level.js");
56
59
  Object.defineProperty(exports, "TopLevel", { enumerable: true, get: function () { return top_level_1.TopLevel; } });
57
60
  var webhooks_1 = require("./webhooks.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,sCASkB;AAFhB,oGAAA,UAAU,OAAA;AACV,gGAAA,MAAM,OAAA;AAER,wCAOmB;AAFjB,8GAAA,mBAAmB,OAAA;AACnB,kGAAA,OAAO,OAAA;AAET,gDAAuG;AAAhD,sGAAA,WAAW,OAAA;AAAE,kGAAA,OAAO,OAAA;AAC3E,kDAAgG;AAArD,+GAAA,eAAe,OAAA;AAAE,2GAAA,WAAW,OAAA;AACvE,sDAQ+B;AAF7B,0GAAA,aAAa,OAAA;AACb,sGAAA,SAAS,OAAA;AAEX,6CAUyB;AAFvB,oGAAA,UAAU,OAAA;AACV,gGAAA,MAAM,OAAA;AAER,6CASyB;AADvB,gGAAA,MAAM,OAAA;AAER,0CAWoB;AAFlB,wGAAA,YAAY,OAAA;AACZ,oGAAA,QAAQ,OAAA;AAEV,8DAI8B;AAD5B,sHAAA,gBAAgB,OAAA;AAElB,oCAAqG;AAAlC,kGAAA,SAAS,OAAA;AAAE,8FAAA,KAAK,OAAA;AACnF,0CAA2G;AAAxC,kGAAA,SAAS,OAAA;AAAE,8FAAA,KAAK,OAAA;AACnF,oDAqByB;AAlBvB,8GAAA,aAAa,OAAA;AAgBb,kHAAA,iBAAiB,OAAA;AACjB,uIAAA,sCAAsC,OAAA;AAExC,4CAA6D;AAA9B,qGAAA,QAAQ,OAAA;AACvC,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,sCAWkB;AAVhB,oGAAA,UAAU,OAAA;AACV,gGAAA,MAAM,OAAA;AAUR,wCAOmB;AANjB,8GAAA,mBAAmB,OAAA;AACnB,kGAAA,OAAO,OAAA;AAMT,gDAM2B;AALzB,sGAAA,WAAW,OAAA;AACX,kGAAA,OAAO,OAAA;AAKT,kDAMwB;AALtB,+GAAA,eAAe,OAAA;AACf,2GAAA,WAAW,OAAA;AAKb,sDAQ+B;AAP7B,0GAAA,aAAa,OAAA;AACb,sGAAA,SAAS,OAAA;AAOX,mGAM6D;AAL3D,sIAAA,0BAA0B,OAAA;AAC1B,kIAAA,sBAAsB,OAAA;AAKxB,6CASyB;AARvB,gGAAA,MAAM,OAAA;AASR,8DAI8B;AAH5B,sHAAA,gBAAgB,OAAA;AAIlB,0CAWoB;AAVlB,wGAAA,YAAY,OAAA;AACZ,oGAAA,QAAQ,OAAA;AAUV,oCAOiB;AANf,kGAAA,SAAS,OAAA;AACT,8FAAA,KAAK,OAAA;AAMP,0CAOuB;AANrB,kGAAA,SAAS,OAAA;AACT,8FAAA,KAAK,OAAA;AAMP,6CAUyB;AATvB,oGAAA,UAAU,OAAA;AACV,gGAAA,MAAM,OAAA;AASR,oDA+ByB;AA9BvB,kHAAA,iBAAiB,OAAA;AACjB,uIAAA,sCAAsC,OAAA;AACtC,8GAAA,aAAa,OAAA;AA6Bf,4CAAkE;AAAzD,qGAAA,QAAQ,OAAA;AAEjB,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
@@ -2,16 +2,17 @@
2
2
  export * from "./shared.mjs";
3
3
  export { AlertsPage, Alerts, } from "./alerts.mjs";
4
4
  export { BillableMetricsPage, Metrics, } from "./metrics.mjs";
5
- export { CouponsPage, Coupons } from "./coupons/coupons.mjs";
6
- export { CreditNotesPage, CreditNotes } from "./credit-notes.mjs";
5
+ export { CouponsPage, Coupons, } from "./coupons/coupons.mjs";
6
+ export { CreditNotesPage, CreditNotes, } from "./credit-notes.mjs";
7
7
  export { CustomersPage, Customers, } from "./customers/customers.mjs";
8
- export { PricesPage, Prices, } from "./prices/prices.mjs";
8
+ export { DimensionalPriceGroupsPage, DimensionalPriceGroups, } from "./dimensional-price-groups/dimensional-price-groups.mjs";
9
9
  export { Events, } from "./events/events.mjs";
10
- export { InvoicesPage, Invoices, } from "./invoices.mjs";
11
10
  export { InvoiceLineItems, } from "./invoice-line-items.mjs";
12
- export { ItemsPage, Items } from "./items.mjs";
13
- export { PlansPage, Plans } from "./plans/plans.mjs";
14
- export { Subscriptions, SubscriptionsPage, SubscriptionFetchScheduleResponsesPage, } from "./subscriptions.mjs";
11
+ export { InvoicesPage, Invoices, } from "./invoices.mjs";
12
+ export { ItemsPage, Items, } from "./items.mjs";
13
+ export { PlansPage, Plans, } from "./plans/plans.mjs";
14
+ export { PricesPage, Prices, } from "./prices/prices.mjs";
15
+ export { SubscriptionsPage, SubscriptionFetchScheduleResponsesPage, Subscriptions, } from "./subscriptions.mjs";
15
16
  export { TopLevel } from "./top-level.mjs";
16
17
  export { Webhooks } from "./webhooks.mjs";
17
18
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAOL,UAAU,EACV,MAAM,GACP;OACM,EAKL,mBAAmB,EACnB,OAAO,GACR;OACM,EAAgD,WAAW,EAAE,OAAO,EAAE;OACtE,EAAoC,eAAe,EAAE,WAAW,EAAE;OAClE,EAML,aAAa,EACb,SAAS,GACV;OACM,EAQL,UAAU,EACV,MAAM,GACP;OACM,EAQL,MAAM,GACP;OACM,EASL,YAAY,EACZ,QAAQ,GACT;OACM,EAGL,gBAAgB,GACjB;OACM,EAA4D,SAAS,EAAE,KAAK,EAAE;OAC9E,EAA4D,SAAS,EAAE,KAAK,EAAE;OAC9E,EAGL,aAAa,EAgBb,iBAAiB,EACjB,sCAAsC,GACvC;OACM,EAAwB,QAAQ,EAAE;OAClC,EAAE,QAAQ,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,UAAU,EACV,MAAM,GASP;OACM,EACL,mBAAmB,EACnB,OAAO,GAKR;OACM,EACL,WAAW,EACX,OAAO,GAIR;OACM,EACL,eAAe,EACf,WAAW,GAIZ;OACM,EACL,aAAa,EACb,SAAS,GAMV;OACM,EACL,0BAA0B,EAC1B,sBAAsB,GAIvB;OACM,EACL,MAAM,GAQP;OACM,EACL,gBAAgB,GAGjB;OACM,EACL,YAAY,EACZ,QAAQ,GAST;OACM,EACL,SAAS,EACT,KAAK,GAKN;OACM,EACL,SAAS,EACT,KAAK,GAKN;OACM,EACL,UAAU,EACV,MAAM,GAQP;OACM,EACL,iBAAiB,EACjB,sCAAsC,EACtC,aAAa,GA4Bd;OACM,EAAE,QAAQ,EAA6B;OAEvC,EAAE,QAAQ,EAAE"}
@@ -1,6 +1,5 @@
1
1
  import { APIResource } from "../resource.js";
2
2
  import * as Core from "../core.js";
3
- import * as InvoiceLineItemsAPI from "./invoice-line-items.js";
4
3
  import * as Shared from "./shared.js";
5
4
  import * as PricesAPI from "./prices/prices.js";
6
5
  export declare class InvoiceLineItems extends APIResource {
@@ -428,7 +427,6 @@ export interface InvoiceLineItemCreateParams {
428
427
  start_date: string;
429
428
  }
430
429
  export declare namespace InvoiceLineItems {
431
- export import InvoiceLineItemCreateResponse = InvoiceLineItemsAPI.InvoiceLineItemCreateResponse;
432
- export import InvoiceLineItemCreateParams = InvoiceLineItemsAPI.InvoiceLineItemCreateParams;
430
+ export { type InvoiceLineItemCreateResponse as InvoiceLineItemCreateResponse, type InvoiceLineItemCreateParams as InvoiceLineItemCreateParams, };
433
431
  }
434
432
  //# sourceMappingURL=invoice-line-items.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-line-items.d.ts","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,mBAAmB,MAAM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AM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -13,6 +13,4 @@ class InvoiceLineItems extends resource_1.APIResource {
13
13
  }
14
14
  }
15
15
  exports.InvoiceLineItems = InvoiceLineItems;
16
- (function (InvoiceLineItems) {
17
- })(InvoiceLineItems = exports.InvoiceLineItems || (exports.InvoiceLineItems = {}));
18
16
  //# sourceMappingURL=invoice-line-items.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-line-items.js","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAM1C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;OAGG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAXD,4CAWC;AA+dD,WAAiB,gBAAgB;AAGjC,CAAC,EAHgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAGhC"}
1
+ {"version":3,"file":"invoice-line-items.js","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAK1C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;OAGG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAXD,4CAWC"}
@@ -9,6 +9,4 @@ export class InvoiceLineItems extends APIResource {
9
9
  return this._client.post('/invoice_line_items', { body, ...options });
10
10
  }
11
11
  }
12
- (function (InvoiceLineItems) {
13
- })(InvoiceLineItems || (InvoiceLineItems = {}));
14
12
  //# sourceMappingURL=invoice-line-items.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoice-line-items.mjs","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;OAGG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AA+dD,WAAiB,gBAAgB;AAGjC,CAAC,EAHgB,gBAAgB,KAAhB,gBAAgB,QAGhC"}
1
+ {"version":3,"file":"invoice-line-items.mjs","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;OAGG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -1,6 +1,5 @@
1
1
  import { APIResource } from "../resource.js";
2
2
  import * as Core from "../core.js";
3
- import * as InvoicesAPI from "./invoices.js";
4
3
  import * as Shared from "./shared.js";
5
4
  import * as PricesAPI from "./prices/prices.js";
6
5
  import { Page, type PageParams } from "../pagination.js";
@@ -60,6 +59,11 @@ export declare class Invoices extends APIResource {
60
59
  * only be done to invoices that are in the `issued` status.
61
60
  */
62
61
  markPaid(invoiceId: string, body: InvoiceMarkPaidParams, options?: Core.RequestOptions): Core.APIPromise<Invoice>;
62
+ /**
63
+ * This endpoint collects payment for an invoice using the customer's default
64
+ * payment method. This action can only be taken on invoices with status "issued".
65
+ */
66
+ pay(invoiceId: string, options?: Core.RequestOptions): Core.APIPromise<Invoice>;
63
67
  /**
64
68
  * This endpoint allows an invoice's status to be set the `void` status. This can
65
69
  * only be done to invoices that are in the `issued` status.
@@ -216,7 +220,7 @@ export interface Invoice {
216
220
  * list is provided, the first discount in the list will be returned. If the list
217
221
  * is empty, `None` will be returned.
218
222
  */
219
- discount: unknown | null;
223
+ discount: unknown;
220
224
  discounts: Array<Shared.InvoiceLevelDiscount>;
221
225
  /**
222
226
  * When the invoice payment is due.
@@ -282,6 +286,10 @@ export interface Invoice {
282
286
  * was paid.
283
287
  */
284
288
  paid_at: string | null;
289
+ /**
290
+ * A list of payment attempts associated with the invoice
291
+ */
292
+ payment_attempts: Array<Invoice.PaymentAttempt>;
285
293
  /**
286
294
  * If payment was attempted on this invoice but failed, this will be the time of
287
295
  * the most recent attempt.
@@ -950,6 +958,32 @@ export declare namespace Invoice {
950
958
  */
951
959
  minimum_amount: string;
952
960
  }
961
+ interface PaymentAttempt {
962
+ /**
963
+ * The ID of the payment attempt.
964
+ */
965
+ id: string;
966
+ /**
967
+ * The amount of the payment attempt.
968
+ */
969
+ amount: string;
970
+ /**
971
+ * The time at which the payment attempt was created.
972
+ */
973
+ created_at: string;
974
+ /**
975
+ * The payment provider that attempted to collect the payment.
976
+ */
977
+ payment_provider: 'stripe' | null;
978
+ /**
979
+ * The ID of the payment attempt in the payment provider.
980
+ */
981
+ payment_provider_id: string | null;
982
+ /**
983
+ * Whether the payment attempt succeeded.
984
+ */
985
+ succeeded: boolean;
986
+ }
953
987
  interface ShippingAddress {
954
988
  city: string | null;
955
989
  country: string | null;
@@ -1098,7 +1132,7 @@ export interface InvoiceFetchUpcomingResponse {
1098
1132
  * list is provided, the first discount in the list will be returned. If the list
1099
1133
  * is empty, `None` will be returned.
1100
1134
  */
1101
- discount: unknown | null;
1135
+ discount: unknown;
1102
1136
  discounts: Array<Shared.InvoiceLevelDiscount>;
1103
1137
  /**
1104
1138
  * When the invoice payment is due.
@@ -1160,6 +1194,10 @@ export interface InvoiceFetchUpcomingResponse {
1160
1194
  * was paid.
1161
1195
  */
1162
1196
  paid_at: string | null;
1197
+ /**
1198
+ * A list of payment attempts associated with the invoice
1199
+ */
1200
+ payment_attempts: Array<InvoiceFetchUpcomingResponse.PaymentAttempt>;
1163
1201
  /**
1164
1202
  * If payment was attempted on this invoice but failed, this will be the time of
1165
1203
  * the most recent attempt.
@@ -1832,6 +1870,32 @@ export declare namespace InvoiceFetchUpcomingResponse {
1832
1870
  */
1833
1871
  minimum_amount: string;
1834
1872
  }
1873
+ interface PaymentAttempt {
1874
+ /**
1875
+ * The ID of the payment attempt.
1876
+ */
1877
+ id: string;
1878
+ /**
1879
+ * The amount of the payment attempt.
1880
+ */
1881
+ amount: string;
1882
+ /**
1883
+ * The time at which the payment attempt was created.
1884
+ */
1885
+ created_at: string;
1886
+ /**
1887
+ * The payment provider that attempted to collect the payment.
1888
+ */
1889
+ payment_provider: 'stripe' | null;
1890
+ /**
1891
+ * The ID of the payment attempt in the payment provider.
1892
+ */
1893
+ payment_provider_id: string | null;
1894
+ /**
1895
+ * Whether the payment attempt succeeded.
1896
+ */
1897
+ succeeded: boolean;
1898
+ }
1835
1899
  interface ShippingAddress {
1836
1900
  city: string | null;
1837
1901
  country: string | null;
@@ -1939,6 +2003,12 @@ export interface InvoiceListParams extends PageParams {
1939
2003
  customer_id?: string | null;
1940
2004
  date_type?: 'due_date' | 'invoice_date' | null;
1941
2005
  due_date?: string | null;
2006
+ /**
2007
+ * Filters invoices by their due dates within a specific time range in the past.
2008
+ * Specify the range as a number followed by 'd' (days) or 'm' (months). For
2009
+ * example, '7d' filters invoices due in the last 7 days, and '2m' filters those
2010
+ * due in the last 2 months.
2011
+ */
1942
2012
  due_date_window?: string | null;
1943
2013
  'due_date[gt]'?: string | null;
1944
2014
  'due_date[lt]'?: string | null;
@@ -1957,7 +2027,10 @@ export interface InvoiceFetchUpcomingParams {
1957
2027
  export interface InvoiceIssueParams {
1958
2028
  /**
1959
2029
  * If true, the invoice will be issued synchronously. If false, the invoice will be
1960
- * issued asynchronously.
2030
+ * issued asynchronously. The synchronous option is only available for invoices
2031
+ * containin no usage fees. If the invoice is configured to sync to an external
2032
+ * provider, a successful response from this endpoint guarantees the invoice is
2033
+ * present in the provider.
1961
2034
  */
1962
2035
  synchronous?: boolean;
1963
2036
  }
@@ -1976,14 +2049,6 @@ export interface InvoiceMarkPaidParams {
1976
2049
  notes?: string | null;
1977
2050
  }
1978
2051
  export declare namespace Invoices {
1979
- export import Invoice = InvoicesAPI.Invoice;
1980
- export import InvoiceFetchUpcomingResponse = InvoicesAPI.InvoiceFetchUpcomingResponse;
1981
- export import InvoicesPage = InvoicesAPI.InvoicesPage;
1982
- export import InvoiceCreateParams = InvoicesAPI.InvoiceCreateParams;
1983
- export import InvoiceUpdateParams = InvoicesAPI.InvoiceUpdateParams;
1984
- export import InvoiceListParams = InvoicesAPI.InvoiceListParams;
1985
- export import InvoiceFetchUpcomingParams = InvoicesAPI.InvoiceFetchUpcomingParams;
1986
- export import InvoiceIssueParams = InvoicesAPI.InvoiceIssueParams;
1987
- export import InvoiceMarkPaidParams = InvoicesAPI.InvoiceMarkPaidParams;
2052
+ export { type Invoice as Invoice, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, InvoicesPage as InvoicesPage, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
1988
2053
  }
1989
2054
  //# sourceMappingURL=invoices.d.ts.map