orb-billing 1.0.1 → 1.19.5

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 (1258) hide show
  1. package/README.md +61 -41
  2. package/dist/internal/utils/requestbody.d.ts +1 -1
  3. package/dist/internal/utils/requestbody.js +1 -1
  4. package/dist/internal/utils/retries.d.ts +2 -2
  5. package/dist/internal/utils/security.d.ts +5 -2
  6. package/dist/internal/utils/security.js +28 -28
  7. package/dist/internal/utils/utils.js +1 -1
  8. package/dist/sdk/availability.d.ts +3 -4
  9. package/dist/sdk/availability.js +80 -10
  10. package/dist/sdk/coupon.d.ts +16 -7
  11. package/dist/sdk/coupon.js +396 -35
  12. package/dist/sdk/credit.d.ts +242 -36
  13. package/dist/sdk/credit.js +704 -77
  14. package/dist/sdk/creditnote.d.ts +8 -5
  15. package/dist/sdk/creditnote.js +160 -16
  16. package/dist/sdk/customer.d.ts +358 -93
  17. package/dist/sdk/customer.js +1351 -189
  18. package/dist/sdk/event.d.ts +198 -103
  19. package/dist/sdk/event.js +906 -157
  20. package/dist/sdk/invoice.d.ts +39 -10
  21. package/dist/sdk/invoice.js +727 -47
  22. package/dist/sdk/item.d.ts +27 -0
  23. package/dist/sdk/item.js +328 -0
  24. package/dist/sdk/metric.d.ts +39 -0
  25. package/dist/sdk/metric.js +475 -0
  26. package/dist/sdk/models/errors/index.d.ts +1 -0
  27. package/dist/sdk/models/errors/index.js +20 -0
  28. package/dist/sdk/models/errors/sdkerror.d.ts +7 -0
  29. package/dist/sdk/models/errors/sdkerror.js +40 -0
  30. package/dist/sdk/models/operations/addeditpriceintervals.d.ts +53 -0
  31. package/dist/sdk/models/operations/addeditpriceintervals.js +123 -0
  32. package/dist/sdk/models/operations/amendevent.d.ts +35 -5
  33. package/dist/sdk/models/operations/amendevent.js +28 -4
  34. package/dist/sdk/models/operations/amendusage.d.ts +36 -15
  35. package/dist/sdk/models/operations/amendusage.js +31 -22
  36. package/dist/sdk/models/operations/amendusageexternalcustomerid.d.ts +36 -15
  37. package/dist/sdk/models/operations/amendusageexternalcustomerid.js +31 -22
  38. package/dist/sdk/models/operations/archivecoupon.d.ts +37 -0
  39. package/dist/sdk/models/operations/archivecoupon.js +28 -0
  40. package/dist/sdk/models/operations/cancelsubscription.d.ts +38 -1
  41. package/dist/sdk/models/operations/cancelsubscription.js +30 -2
  42. package/dist/sdk/models/operations/closebackfill.d.ts +37 -0
  43. package/dist/sdk/models/operations/closebackfill.js +28 -0
  44. package/dist/sdk/models/operations/createbackfill.d.ts +37 -0
  45. package/dist/sdk/models/operations/createbackfill.js +28 -0
  46. package/dist/sdk/models/operations/createcoupon.d.ts +38 -1
  47. package/dist/sdk/models/operations/createcoupon.js +28 -0
  48. package/dist/sdk/models/operations/createcustomer.d.ts +37 -0
  49. package/dist/sdk/models/operations/createcustomer.js +28 -0
  50. package/dist/sdk/models/operations/createcustomerbalancetransaction.d.ts +38 -1
  51. package/dist/sdk/models/operations/createcustomerbalancetransaction.js +30 -2
  52. package/dist/sdk/models/operations/createinvoice.d.ts +49 -0
  53. package/dist/sdk/models/operations/createinvoice.js +107 -0
  54. package/dist/sdk/models/operations/createinvoicelineitem.d.ts +37 -0
  55. package/dist/sdk/models/operations/createinvoicelineitem.js +28 -0
  56. package/dist/sdk/models/operations/createledgerentry.d.ts +40 -3
  57. package/dist/sdk/models/operations/createledgerentry.js +31 -3
  58. package/dist/sdk/models/operations/createledgerentryexternalid.d.ts +53 -0
  59. package/dist/sdk/models/operations/createledgerentryexternalid.js +123 -0
  60. package/dist/sdk/models/operations/createmetric.d.ts +49 -0
  61. package/dist/sdk/models/operations/createmetric.js +107 -0
  62. package/dist/sdk/models/operations/createplan.d.ts +49 -0
  63. package/dist/sdk/models/operations/createplan.js +107 -0
  64. package/dist/sdk/models/operations/createprice.d.ts +49 -0
  65. package/dist/sdk/models/operations/{addledgerentryexternalid.js → createprice.js} +37 -25
  66. package/dist/sdk/models/operations/createsubscription.d.ts +38 -1
  67. package/dist/sdk/models/operations/createsubscription.js +28 -0
  68. package/dist/sdk/models/operations/deletecustomer.d.ts +41 -11
  69. package/dist/sdk/models/operations/deletecustomer.js +57 -16
  70. package/dist/sdk/models/operations/deprecateevent.d.ts +35 -5
  71. package/dist/sdk/models/operations/deprecateevent.js +28 -4
  72. package/dist/sdk/models/operations/fetchbackfill.d.ts +52 -0
  73. package/dist/sdk/models/operations/fetchbackfill.js +119 -0
  74. package/dist/sdk/models/operations/fetchcoupon.d.ts +37 -0
  75. package/dist/sdk/models/operations/fetchcoupon.js +28 -0
  76. package/dist/sdk/models/operations/fetchcreditnote.d.ts +37 -3
  77. package/dist/sdk/models/operations/fetchcreditnote.js +28 -0
  78. package/dist/sdk/models/operations/fetchcustomer.d.ts +38 -4
  79. package/dist/sdk/models/operations/fetchcustomer.js +28 -0
  80. package/dist/sdk/models/operations/fetchcustomercosts.d.ts +44 -12
  81. package/dist/sdk/models/operations/fetchcustomercosts.js +37 -1
  82. package/dist/sdk/models/operations/fetchcustomercostsexternalid.d.ts +45 -10
  83. package/dist/sdk/models/operations/fetchcustomercostsexternalid.js +37 -1
  84. package/dist/sdk/models/operations/fetchcustomercredits.d.ts +37 -9
  85. package/dist/sdk/models/operations/fetchcustomercredits.js +31 -3
  86. package/dist/sdk/models/operations/fetchcustomercreditsexternalid.d.ts +39 -8
  87. package/dist/sdk/models/operations/fetchcustomercreditsexternalid.js +31 -3
  88. package/dist/sdk/models/operations/fetchcustomercreditsledger.d.ts +53 -13
  89. package/dist/sdk/models/operations/fetchcustomercreditsledger.js +66 -3
  90. package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.d.ts +53 -13
  91. package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.js +66 -3
  92. package/dist/sdk/models/operations/fetchcustomerexternalid.d.ts +37 -0
  93. package/dist/sdk/models/operations/fetchcustomerexternalid.js +28 -0
  94. package/dist/sdk/models/operations/fetchinvoice.d.ts +37 -0
  95. package/dist/sdk/models/operations/fetchinvoice.js +28 -0
  96. package/dist/sdk/models/operations/fetchitem.d.ts +52 -0
  97. package/dist/sdk/models/operations/fetchitem.js +119 -0
  98. package/dist/sdk/models/operations/fetchmetric.d.ts +52 -0
  99. package/dist/sdk/models/operations/fetchmetric.js +119 -0
  100. package/dist/sdk/models/operations/fetchplan.d.ts +37 -0
  101. package/dist/sdk/models/operations/fetchplan.js +28 -0
  102. package/dist/sdk/models/operations/fetchplanexternalid.d.ts +37 -0
  103. package/dist/sdk/models/operations/fetchplanexternalid.js +28 -0
  104. package/dist/sdk/models/operations/fetchprice.d.ts +52 -0
  105. package/dist/sdk/models/operations/fetchprice.js +119 -0
  106. package/dist/sdk/models/operations/fetchpriceexternalid.d.ts +52 -0
  107. package/dist/sdk/models/operations/fetchpriceexternalid.js +119 -0
  108. package/dist/sdk/models/operations/fetchsubscription.d.ts +37 -0
  109. package/dist/sdk/models/operations/fetchsubscription.js +28 -0
  110. package/dist/sdk/models/operations/fetchsubscriptioncosts.d.ts +45 -10
  111. package/dist/sdk/models/operations/fetchsubscriptioncosts.js +37 -1
  112. package/dist/sdk/models/operations/fetchsubscriptionschedule.d.ts +43 -8
  113. package/dist/sdk/models/operations/fetchsubscriptionschedule.js +47 -3
  114. package/dist/sdk/models/operations/fetchsubscriptionusage.d.ts +60 -16
  115. package/dist/sdk/models/operations/fetchsubscriptionusage.js +69 -2
  116. package/dist/sdk/models/operations/fetchupcominginvoice.d.ts +38 -1
  117. package/dist/sdk/models/operations/fetchupcominginvoice.js +28 -0
  118. package/dist/sdk/models/operations/index.d.ts +20 -2
  119. package/dist/sdk/models/operations/index.js +20 -2
  120. package/dist/sdk/models/operations/ingest.d.ts +36 -12
  121. package/dist/sdk/models/operations/ingest.js +31 -22
  122. package/dist/sdk/models/operations/issueinvoice.d.ts +35 -2
  123. package/dist/sdk/models/operations/issueinvoice.js +28 -4
  124. package/dist/sdk/models/operations/listbackfills.d.ts +37 -6
  125. package/dist/sdk/models/operations/listbackfills.js +29 -1
  126. package/dist/sdk/models/operations/listbalancetransactions.d.ts +45 -10
  127. package/dist/sdk/models/operations/listbalancetransactions.js +49 -5
  128. package/dist/sdk/models/operations/listcoupons.d.ts +35 -10
  129. package/dist/sdk/models/operations/listcoupons.js +29 -1
  130. package/dist/sdk/models/operations/listcouponsubscriptions.d.ts +39 -0
  131. package/dist/sdk/models/operations/listcouponsubscriptions.js +36 -0
  132. package/dist/sdk/models/operations/listcreditnotes.d.ts +53 -0
  133. package/dist/sdk/models/operations/listcreditnotes.js +123 -0
  134. package/dist/sdk/models/operations/listcustomers.d.ts +41 -6
  135. package/dist/sdk/models/operations/listcustomers.js +45 -1
  136. package/dist/sdk/models/operations/listinvoices.d.ts +66 -14
  137. package/dist/sdk/models/operations/listinvoices.js +109 -3
  138. package/dist/sdk/models/operations/listitems.d.ts +53 -0
  139. package/dist/sdk/models/operations/{listcreditnote.js → listitems.js} +46 -30
  140. package/dist/sdk/models/operations/listmetrics.d.ts +57 -0
  141. package/dist/sdk/models/operations/listmetrics.js +139 -0
  142. package/dist/sdk/models/operations/listplans.d.ts +53 -6
  143. package/dist/sdk/models/operations/listplans.js +59 -2
  144. package/dist/sdk/models/operations/listprices.d.ts +53 -0
  145. package/dist/sdk/models/operations/listprices.js +123 -0
  146. package/dist/sdk/models/operations/listsubscriptions.d.ts +48 -7
  147. package/dist/sdk/models/operations/listsubscriptions.js +56 -2
  148. package/dist/sdk/models/operations/markinvoiceaspaid.d.ts +53 -0
  149. package/dist/sdk/models/operations/markinvoiceaspaid.js +123 -0
  150. package/dist/sdk/models/operations/ping.d.ts +39 -2
  151. package/dist/sdk/models/operations/ping.js +30 -2
  152. package/dist/sdk/models/operations/revertbackfill.d.ts +37 -0
  153. package/dist/sdk/models/operations/revertbackfill.js +28 -0
  154. package/dist/sdk/models/operations/scheduleplanchange.d.ts +37 -0
  155. package/dist/sdk/models/operations/scheduleplanchange.js +28 -0
  156. package/dist/sdk/models/operations/searchevents.d.ts +42 -7
  157. package/dist/sdk/models/operations/searchevents.js +47 -3
  158. package/dist/sdk/models/operations/triggerphase.d.ts +53 -0
  159. package/dist/sdk/models/operations/triggerphase.js +123 -0
  160. package/dist/sdk/models/operations/unschedulecancellation.d.ts +37 -0
  161. package/dist/sdk/models/operations/unschedulecancellation.js +28 -0
  162. package/dist/sdk/models/operations/unschedulefixedfeequantity.d.ts +53 -0
  163. package/dist/sdk/models/operations/unschedulefixedfeequantity.js +123 -0
  164. package/dist/sdk/models/operations/unscheduleplanchange.d.ts +37 -0
  165. package/dist/sdk/models/operations/unscheduleplanchange.js +28 -0
  166. package/dist/sdk/models/operations/updatecustomer.d.ts +38 -4
  167. package/dist/sdk/models/operations/updatecustomer.js +30 -2
  168. package/dist/sdk/models/operations/updatecustomerexternalid.d.ts +38 -1
  169. package/dist/sdk/models/operations/updatecustomerexternalid.js +30 -2
  170. package/dist/sdk/models/operations/updatefixedfeequantity.d.ts +37 -0
  171. package/dist/sdk/models/operations/updatefixedfeequantity.js +28 -0
  172. package/dist/sdk/models/operations/updateplan.d.ts +53 -0
  173. package/dist/sdk/models/operations/updateplan.js +123 -0
  174. package/dist/sdk/models/operations/updateplanexternal.d.ts +53 -0
  175. package/dist/sdk/models/operations/updateplanexternal.js +123 -0
  176. package/dist/sdk/models/operations/voidinvoice.d.ts +36 -3
  177. package/dist/sdk/models/operations/voidinvoice.js +28 -4
  178. package/dist/sdk/models/shared/accountingprovider.d.ts +9 -0
  179. package/dist/sdk/models/shared/accountingprovider.js +55 -0
  180. package/dist/sdk/models/shared/accountingproviderconfig.d.ts +5 -0
  181. package/dist/sdk/models/shared/{creditblock.js → accountingproviderconfig.js} +10 -18
  182. package/dist/sdk/models/shared/accountingsyncconfiguration.d.ts +6 -0
  183. package/dist/sdk/models/shared/accountingsyncconfiguration.js +52 -0
  184. package/dist/sdk/models/shared/addamendmentcreditledgerentryrequestparams.d.ts +28 -0
  185. package/dist/sdk/models/shared/addamendmentcreditledgerentryrequestparams.js +81 -0
  186. package/dist/sdk/models/shared/adddecrementcreditledgerentryrequestparams.d.ts +24 -0
  187. package/dist/sdk/models/shared/adddecrementcreditledgerentryrequestparams.js +76 -0
  188. package/dist/sdk/models/shared/addeditpriceintervalparams.d.ts +13 -0
  189. package/dist/sdk/models/shared/addeditpriceintervalparams.js +54 -0
  190. package/dist/sdk/models/shared/addexpirationchangecreditledgerentryrequestparams.d.ts +37 -0
  191. package/dist/sdk/models/shared/{newcreditledgerentry.js → addexpirationchangecreditledgerentryrequestparams.js} +27 -34
  192. package/dist/sdk/models/shared/addincrementcreditledgerentryrequestparams.d.ts +42 -0
  193. package/dist/sdk/models/shared/addincrementcreditledgerentryrequestparams.js +109 -0
  194. package/dist/sdk/models/shared/addpriceintervalparams.d.ts +54 -0
  195. package/dist/sdk/models/shared/addpriceintervalparams.js +103 -0
  196. package/dist/sdk/models/shared/address.d.ts +9 -0
  197. package/dist/sdk/models/shared/address.js +70 -0
  198. package/dist/sdk/models/shared/addressinput.d.ts +9 -0
  199. package/dist/sdk/models/shared/addressinput.js +70 -0
  200. package/dist/sdk/models/shared/addvoidcreditledgerentryrequestparams.d.ts +38 -0
  201. package/dist/sdk/models/shared/addvoidcreditledgerentryrequestparams.js +93 -0
  202. package/dist/sdk/models/shared/affectedblock.d.ts +6 -0
  203. package/dist/sdk/models/shared/{credit.js → affectedblock.js} +9 -14
  204. package/dist/sdk/models/shared/{subscriptioncost.d.ts → aggregatedcost.d.ts} +1 -1
  205. package/dist/sdk/models/shared/{customercost.js → aggregatedcost.js} +11 -11
  206. package/dist/sdk/models/shared/amendedusage.d.ts +2 -7
  207. package/dist/sdk/models/shared/amendedusage.js +2 -14
  208. package/dist/sdk/models/shared/amendeventresult.d.ts +1 -4
  209. package/dist/sdk/models/shared/amendeventresult.js +0 -3
  210. package/dist/sdk/models/shared/amendmentledgerentry.d.ts +27 -0
  211. package/dist/sdk/models/shared/amendmentledgerentry.js +120 -0
  212. package/dist/sdk/models/shared/amountdiscount.d.ts +15 -0
  213. package/dist/sdk/models/shared/amountdiscount.js +59 -0
  214. package/dist/sdk/models/shared/amountdiscountcreationparams.d.ts +11 -0
  215. package/dist/sdk/models/shared/amountdiscountcreationparams.js +54 -0
  216. package/dist/sdk/models/shared/amountdiscountinterval.d.ts +27 -0
  217. package/dist/sdk/models/shared/amountdiscountinterval.js +82 -0
  218. package/dist/sdk/models/shared/autocollection.d.ts +3 -6
  219. package/dist/sdk/models/shared/autocollection.js +0 -3
  220. package/dist/sdk/models/shared/backfill.d.ts +2 -2
  221. package/dist/sdk/models/shared/backfills.d.ts +2 -5
  222. package/dist/sdk/models/shared/backfills.js +0 -3
  223. package/dist/sdk/models/shared/billablemetric.d.ts +24 -1
  224. package/dist/sdk/models/shared/billablemetric.js +40 -1
  225. package/dist/sdk/models/shared/billablemetrics.d.ts +7 -0
  226. package/dist/sdk/models/shared/billablemetrics.js +54 -0
  227. package/dist/sdk/models/shared/billablemetricsimple.d.ts +5 -0
  228. package/dist/sdk/models/shared/{billablemetricminified.js → billablemetricsimple.js} +8 -8
  229. package/dist/sdk/models/shared/billablemetrictiny.d.ts +4 -0
  230. package/dist/sdk/models/shared/billablemetrictiny.js +45 -0
  231. package/dist/sdk/models/shared/billingcyclealignment.d.ts +8 -0
  232. package/dist/sdk/models/shared/billingcyclealignment.js +15 -0
  233. package/dist/sdk/models/shared/bpsconfig.d.ts +7 -4
  234. package/dist/sdk/models/shared/bpsconfig.js +1 -4
  235. package/dist/sdk/models/shared/bpsprice.d.ts +242 -0
  236. package/dist/sdk/models/shared/bpsprice.js +363 -0
  237. package/dist/sdk/models/shared/bpstier.d.ts +15 -3
  238. package/dist/sdk/models/shared/bpstier.js +1 -1
  239. package/dist/sdk/models/shared/bulkbpsconfig.d.ts +4 -4
  240. package/dist/sdk/models/shared/bulkbpsconfig.js +0 -3
  241. package/dist/sdk/models/shared/bulkbpsprice.d.ts +242 -0
  242. package/dist/sdk/models/shared/bulkbpsprice.js +363 -0
  243. package/dist/sdk/models/shared/bulkbpstier.d.ts +10 -1
  244. package/dist/sdk/models/shared/bulkbpstier.js +1 -1
  245. package/dist/sdk/models/shared/bulkconfig.d.ts +4 -4
  246. package/dist/sdk/models/shared/bulkconfig.js +0 -3
  247. package/dist/sdk/models/shared/bulkprice.d.ts +242 -0
  248. package/dist/sdk/models/shared/bulkprice.js +363 -0
  249. package/dist/sdk/models/shared/bulktier.d.ts +7 -1
  250. package/dist/sdk/models/shared/bulktier.js +1 -1
  251. package/dist/sdk/models/shared/cancelsubscriptionparams.d.ts +19 -0
  252. package/dist/sdk/models/shared/cancelsubscriptionparams.js +63 -0
  253. package/dist/sdk/models/shared/changeoption.d.ts +0 -3
  254. package/dist/sdk/models/shared/changeoption.js +0 -3
  255. package/dist/sdk/models/shared/coupon.d.ts +14 -10
  256. package/dist/sdk/models/shared/coupon.js +16 -6
  257. package/dist/sdk/models/shared/couponredemption.d.ts +6 -0
  258. package/dist/sdk/models/shared/{usageitem.js → couponredemption.js} +12 -12
  259. package/dist/sdk/models/shared/coupons.d.ts +2 -5
  260. package/dist/sdk/models/shared/coupons.js +0 -3
  261. package/dist/sdk/models/shared/{newinvoicelineitem.d.ts → createinvoicelineitemparams.d.ts} +5 -5
  262. package/dist/sdk/models/shared/{newinvoicelineitem.js → createinvoicelineitemparams.js} +15 -13
  263. package/dist/sdk/models/shared/createoneoffinvoiceparams.d.ts +33 -0
  264. package/dist/sdk/models/shared/createoneoffinvoiceparams.js +86 -0
  265. package/dist/sdk/models/shared/creditblockexpiryledgerentry.d.ts +27 -0
  266. package/dist/sdk/models/shared/creditblockexpiryledgerentry.js +120 -0
  267. package/dist/sdk/models/shared/creditledgerentries.d.ts +1 -5
  268. package/dist/sdk/models/shared/creditledgerentries.js +1 -6
  269. package/dist/sdk/models/shared/creditnote.d.ts +34 -22
  270. package/dist/sdk/models/shared/creditnote.js +44 -7
  271. package/dist/sdk/models/shared/creditnotelineitem.d.ts +12 -10
  272. package/dist/sdk/models/shared/creditnotelineitem.js +24 -10
  273. package/dist/sdk/models/shared/creditnoteminified.d.ts +7 -0
  274. package/dist/sdk/models/shared/creditnoteminified.js +45 -0
  275. package/dist/sdk/models/shared/creditnotes.d.ts +2 -5
  276. package/dist/sdk/models/shared/creditnotes.js +0 -3
  277. package/dist/sdk/models/shared/{sublineitem2.d.ts → creditnotesublineitem.d.ts} +1 -1
  278. package/dist/sdk/models/shared/{sublineitem2.js → creditnotesublineitem.js} +9 -9
  279. package/dist/sdk/models/shared/creditnotesummary.d.ts +9 -6
  280. package/dist/sdk/models/shared/customer.d.ts +30 -181
  281. package/dist/sdk/models/shared/customer.js +41 -223
  282. package/dist/sdk/models/shared/customerbalancetransaction.d.ts +13 -28
  283. package/dist/sdk/models/shared/customerbalancetransaction.js +18 -42
  284. package/dist/sdk/models/shared/{transactions.d.ts → customerbalancetransactions.d.ts} +3 -6
  285. package/dist/sdk/models/shared/{transactions.js → customerbalancetransactions.js} +8 -11
  286. package/dist/sdk/models/shared/customercosts.d.ts +2 -5
  287. package/dist/sdk/models/shared/customercosts.js +3 -6
  288. package/dist/sdk/models/shared/customercreditbalance.d.ts +7 -0
  289. package/dist/sdk/models/shared/customercreditbalance.js +64 -0
  290. package/dist/sdk/models/shared/customercreditbalances.d.ts +7 -0
  291. package/dist/sdk/models/shared/customercreditbalances.js +54 -0
  292. package/dist/sdk/models/shared/customerminified.d.ts +0 -3
  293. package/dist/sdk/models/shared/customerminified.js +0 -3
  294. package/dist/sdk/models/shared/customers.d.ts +0 -3
  295. package/dist/sdk/models/shared/customers.js +0 -3
  296. package/dist/sdk/models/shared/customertaxid.d.ts +6 -0
  297. package/dist/sdk/models/shared/{newtransaction.js → customertaxid.js} +12 -13
  298. package/dist/sdk/models/shared/debug.d.ts +2 -2
  299. package/dist/sdk/models/shared/decrementledgerentry.d.ts +30 -0
  300. package/dist/sdk/models/shared/{creditledgerentry.js → decrementledgerentry.js} +42 -51
  301. package/dist/sdk/models/shared/deletecustomerresponse.d.ts +3 -0
  302. package/dist/sdk/models/shared/deletecustomerresponse.js +30 -0
  303. package/dist/sdk/models/shared/deprecatedeventresult.d.ts +1 -4
  304. package/dist/sdk/models/shared/deprecatedeventresult.js +0 -3
  305. package/dist/sdk/models/shared/discount.d.ts +13 -5
  306. package/dist/sdk/models/shared/discount.js +13 -4
  307. package/dist/sdk/models/shared/duplicateconstraintviolationerror.d.ts +16 -0
  308. package/dist/sdk/models/shared/duplicateconstraintviolationerror.js +82 -0
  309. package/dist/sdk/models/shared/duplicateresourcecreationerror.d.ts +16 -0
  310. package/dist/sdk/models/shared/duplicateresourcecreationerror.js +82 -0
  311. package/dist/sdk/models/shared/editcustomer.d.ts +72 -0
  312. package/dist/sdk/models/shared/editcustomer.js +151 -0
  313. package/dist/sdk/models/shared/editplan.d.ts +10 -0
  314. package/dist/sdk/models/shared/editplan.js +59 -0
  315. package/dist/sdk/models/shared/editpriceintervalparams.d.ts +34 -0
  316. package/dist/sdk/models/shared/editpriceintervalparams.js +78 -0
  317. package/dist/sdk/models/shared/event.d.ts +11 -4
  318. package/dist/sdk/models/shared/event.js +14 -3
  319. package/dist/sdk/models/shared/{credits.d.ts → events.d.ts} +3 -6
  320. package/dist/sdk/models/shared/{eventsearchresults.js → events.js} +8 -11
  321. package/dist/sdk/models/shared/expirationchangeledgerentry.d.ts +28 -0
  322. package/dist/sdk/models/shared/expirationchangeledgerentry.js +129 -0
  323. package/dist/sdk/models/shared/featurenotavailableerror.d.ts +16 -0
  324. package/dist/sdk/models/shared/featurenotavailableerror.js +82 -0
  325. package/dist/sdk/models/shared/fivehundrederror.d.ts +13 -0
  326. package/dist/sdk/models/shared/fivehundrederror.js +78 -0
  327. package/dist/sdk/models/shared/fivetranexampleprice.d.ts +241 -0
  328. package/dist/sdk/models/shared/fivetranexampleprice.js +361 -0
  329. package/dist/sdk/models/shared/fixedfeequantitychange.d.ts +12 -5
  330. package/dist/sdk/models/shared/fixedfeequantitychange.js +12 -3
  331. package/dist/sdk/models/shared/fixedfeequantityscheduleentry.d.ts +7 -0
  332. package/dist/sdk/models/shared/{fixedfeequantityschedule.js → fixedfeequantityscheduleentry.js} +10 -10
  333. package/dist/sdk/models/shared/fixedfeequantitytransition.d.ts +6 -0
  334. package/dist/sdk/models/shared/fixedfeequantitytransition.js +59 -0
  335. package/dist/sdk/models/shared/fourhundredandoneerror.d.ts +16 -0
  336. package/dist/sdk/models/shared/fourhundredandoneerror.js +82 -0
  337. package/dist/sdk/models/shared/fourhundredandtwentynineerror.d.ts +16 -0
  338. package/dist/sdk/models/shared/fourhundredandtwentynineerror.js +82 -0
  339. package/dist/sdk/models/shared/groupedsubscriptionusage.d.ts +7 -0
  340. package/dist/sdk/models/shared/groupedsubscriptionusage.js +54 -0
  341. package/dist/sdk/models/shared/groupedsubscriptionusagerecord.d.ts +14 -0
  342. package/dist/sdk/models/shared/groupedsubscriptionusagerecord.js +71 -0
  343. package/dist/sdk/models/shared/idempotencyconflict.d.ts +16 -0
  344. package/dist/sdk/models/shared/idempotencyconflict.js +82 -0
  345. package/dist/sdk/models/shared/idempotencykeyvalidationerror.d.ts +17 -0
  346. package/dist/sdk/models/shared/idempotencykeyvalidationerror.js +87 -0
  347. package/dist/sdk/models/shared/idempotencyrequestmismatch.d.ts +16 -0
  348. package/dist/sdk/models/shared/idempotencyrequestmismatch.js +82 -0
  349. package/dist/sdk/models/shared/{invoicesettings.d.ts → incrementcreditledgerentryinvoicesettings.d.ts} +2 -2
  350. package/dist/sdk/models/shared/{invoicesettings.js → incrementcreditledgerentryinvoicesettings.js} +10 -10
  351. package/dist/sdk/models/shared/incrementledgerentry.d.ts +27 -0
  352. package/dist/sdk/models/shared/incrementledgerentry.js +120 -0
  353. package/dist/sdk/models/shared/index.d.ts +144 -54
  354. package/dist/sdk/models/shared/index.js +144 -54
  355. package/dist/sdk/models/shared/ingestevent.d.ts +32 -0
  356. package/dist/sdk/models/shared/ingestevent.js +86 -0
  357. package/dist/sdk/models/shared/ingestionresponse.d.ts +5 -5
  358. package/dist/sdk/models/shared/ingestionresponse.js +3 -6
  359. package/dist/sdk/models/shared/ingestrequestbody.d.ts +5 -0
  360. package/dist/sdk/models/shared/{tieredbpsconfig1.js → ingestrequestbody.js} +11 -11
  361. package/dist/sdk/models/shared/invoice.d.ts +46 -182
  362. package/dist/sdk/models/shared/invoice.js +70 -201
  363. package/dist/sdk/models/shared/invoicelineitem.d.ts +10 -168
  364. package/dist/sdk/models/shared/invoicelineitem.js +21 -303
  365. package/dist/sdk/models/shared/invoicelineitemparams.d.ts +27 -0
  366. package/dist/sdk/models/shared/invoicelineitemparams.js +92 -0
  367. package/dist/sdk/models/shared/invoiceminified.d.ts +7 -0
  368. package/dist/sdk/models/shared/invoiceminified.js +45 -0
  369. package/dist/sdk/models/shared/invoices.d.ts +2 -5
  370. package/dist/sdk/models/shared/invoices.js +0 -3
  371. package/dist/sdk/models/shared/item.d.ts +14 -0
  372. package/dist/sdk/models/shared/item.js +72 -0
  373. package/dist/sdk/models/shared/itemexternalconnection.d.ts +16 -0
  374. package/dist/sdk/models/shared/itemexternalconnection.js +63 -0
  375. package/dist/sdk/models/shared/items.d.ts +7 -0
  376. package/dist/sdk/models/shared/{credits.js → items.js} +11 -14
  377. package/dist/sdk/models/shared/itemslim.d.ts +5 -0
  378. package/dist/sdk/models/shared/itemslim.js +50 -0
  379. package/dist/sdk/models/shared/markaspaidrequestparams.d.ts +16 -0
  380. package/dist/sdk/models/shared/markaspaidrequestparams.js +61 -0
  381. package/dist/sdk/models/shared/matrixconfig.d.ts +12 -5
  382. package/dist/sdk/models/shared/matrixconfig.js +5 -3
  383. package/dist/sdk/models/shared/matrixprice.d.ts +242 -0
  384. package/dist/sdk/models/shared/matrixprice.js +363 -0
  385. package/dist/sdk/models/shared/matrixsublineitem.d.ts +17 -0
  386. package/dist/sdk/models/shared/matrixsublineitem.js +78 -0
  387. package/dist/sdk/models/shared/matrixvalue.d.ts +8 -1
  388. package/dist/sdk/models/shared/matrixvalue.js +5 -0
  389. package/dist/sdk/models/shared/maximum.d.ts +11 -0
  390. package/dist/sdk/models/shared/{subscriptionusage.js → maximum.js} +14 -14
  391. package/dist/sdk/models/shared/maximuminterval.d.ts +23 -0
  392. package/dist/sdk/models/shared/{subscriptioncost.js → maximuminterval.js} +21 -23
  393. package/dist/sdk/models/shared/metricgroup.d.ts +5 -0
  394. package/dist/sdk/models/shared/metricgroup.js +50 -0
  395. package/dist/sdk/models/shared/minimum.d.ts +11 -0
  396. package/dist/sdk/models/shared/minimum.js +50 -0
  397. package/dist/sdk/models/shared/minimuminterval.d.ts +23 -0
  398. package/dist/sdk/models/shared/minimuminterval.js +73 -0
  399. package/dist/sdk/models/shared/newaccountingsyncconfiguration.d.ts +6 -0
  400. package/dist/sdk/models/shared/newaccountingsyncconfiguration.js +52 -0
  401. package/dist/sdk/models/shared/newbackfill.d.ts +1 -1
  402. package/dist/sdk/models/shared/newbillablemetric.d.ts +28 -0
  403. package/dist/sdk/models/shared/newbillablemetric.js +77 -0
  404. package/dist/sdk/models/shared/newbpsprice.d.ts +53 -0
  405. package/dist/sdk/models/shared/newbpsprice.js +110 -0
  406. package/dist/sdk/models/shared/newbulkbpsprice.d.ts +53 -0
  407. package/dist/sdk/models/shared/newbulkbpsprice.js +110 -0
  408. package/dist/sdk/models/shared/newbulkprice.d.ts +53 -0
  409. package/dist/sdk/models/shared/newbulkprice.js +110 -0
  410. package/dist/sdk/models/shared/newcoupon.d.ts +4 -10
  411. package/dist/sdk/models/shared/newcoupon.js +11 -11
  412. package/dist/sdk/models/shared/newcustomer.d.ts +20 -154
  413. package/dist/sdk/models/shared/newcustomer.js +34 -206
  414. package/dist/sdk/models/shared/newcustomerbalancetransaction.d.ts +13 -0
  415. package/dist/sdk/models/shared/newcustomerbalancetransaction.js +60 -0
  416. package/dist/sdk/models/shared/newmatrixprice.d.ts +53 -0
  417. package/dist/sdk/models/shared/{sublineitem.js → newmatrixprice.js} +51 -43
  418. package/dist/sdk/models/shared/newpackageprice.d.ts +53 -0
  419. package/dist/sdk/models/shared/newpackageprice.js +110 -0
  420. package/dist/sdk/models/shared/newpackagewithallocationprice.d.ts +52 -0
  421. package/dist/sdk/models/shared/newpackagewithallocationprice.js +108 -0
  422. package/dist/sdk/models/shared/newplan.d.ts +26 -0
  423. package/dist/sdk/models/shared/newplan.js +93 -0
  424. package/dist/sdk/models/shared/newreportingconfiguration.d.ts +4 -0
  425. package/dist/sdk/models/shared/newreportingconfiguration.js +45 -0
  426. package/dist/sdk/models/shared/newsubscription.d.ts +18 -43
  427. package/dist/sdk/models/shared/newsubscription.js +50 -8
  428. package/dist/sdk/models/shared/newthresholdtotalamountprice.d.ts +52 -0
  429. package/dist/sdk/models/shared/newthresholdtotalamountprice.js +108 -0
  430. package/dist/sdk/models/shared/newtieredbpsprice.d.ts +53 -0
  431. package/dist/sdk/models/shared/newtieredbpsprice.js +110 -0
  432. package/dist/sdk/models/shared/newtieredpackageprice.d.ts +52 -0
  433. package/dist/sdk/models/shared/newtieredpackageprice.js +108 -0
  434. package/dist/sdk/models/shared/newtieredprice.d.ts +53 -0
  435. package/dist/sdk/models/shared/newtieredprice.js +110 -0
  436. package/dist/sdk/models/shared/newtieredwithminimumprice.d.ts +52 -0
  437. package/dist/sdk/models/shared/newtieredwithminimumprice.js +108 -0
  438. package/dist/sdk/models/shared/newunitprice.d.ts +53 -0
  439. package/dist/sdk/models/shared/newunitprice.js +110 -0
  440. package/dist/sdk/models/shared/othersublineitem.d.ts +15 -0
  441. package/dist/sdk/models/shared/othersublineitem.js +71 -0
  442. package/dist/sdk/models/shared/overridebpsprice.d.ts +27 -0
  443. package/dist/sdk/models/shared/{bpspriceoverride.js → overridebpsprice.js} +27 -18
  444. package/dist/sdk/models/shared/overridebulkbpsprice.d.ts +27 -0
  445. package/dist/sdk/models/shared/{bulkbpspriceoverride.js → overridebulkbpsprice.js} +27 -18
  446. package/dist/sdk/models/shared/overridebulkprice.d.ts +27 -0
  447. package/dist/sdk/models/shared/{bulkpriceoverride.js → overridebulkprice.js} +27 -18
  448. package/dist/sdk/models/shared/overridefivetranexampleprice.d.ts +26 -0
  449. package/dist/sdk/models/shared/overridefivetranexampleprice.js +81 -0
  450. package/dist/sdk/models/shared/overridematrixprice.d.ts +27 -0
  451. package/dist/sdk/models/shared/overridematrixprice.js +83 -0
  452. package/dist/sdk/models/shared/overridepackageprice.d.ts +27 -0
  453. package/dist/sdk/models/shared/{packagepriceoverride.js → overridepackageprice.js} +27 -18
  454. package/dist/sdk/models/shared/overridepackagewithallocationprice.d.ts +26 -0
  455. package/dist/sdk/models/shared/overridepackagewithallocationprice.js +81 -0
  456. package/dist/sdk/models/shared/overridetestratingfunctionprice.d.ts +26 -0
  457. package/dist/sdk/models/shared/overridetestratingfunctionprice.js +81 -0
  458. package/dist/sdk/models/shared/overridethresholdtotalamountprice.d.ts +26 -0
  459. package/dist/sdk/models/shared/overridethresholdtotalamountprice.js +81 -0
  460. package/dist/sdk/models/shared/overridetieredbpsprice.d.ts +27 -0
  461. package/dist/sdk/models/shared/{tieredbpspriceoverride.js → overridetieredbpsprice.js} +30 -21
  462. package/dist/sdk/models/shared/overridetieredpackageprice.d.ts +26 -0
  463. package/dist/sdk/models/shared/overridetieredpackageprice.js +81 -0
  464. package/dist/sdk/models/shared/overridetieredprice.d.ts +27 -0
  465. package/dist/sdk/models/shared/{tieredpriceoverride.js → overridetieredprice.js} +27 -18
  466. package/dist/sdk/models/shared/overridetieredwithminimumprice.d.ts +26 -0
  467. package/dist/sdk/models/shared/overridetieredwithminimumprice.js +81 -0
  468. package/dist/sdk/models/shared/overrideunitprice.d.ts +27 -0
  469. package/dist/sdk/models/shared/{unitpriceoverride.js → overrideunitprice.js} +27 -18
  470. package/dist/sdk/models/shared/packageconfig.d.ts +7 -4
  471. package/dist/sdk/models/shared/packageconfig.js +0 -3
  472. package/dist/sdk/models/shared/packageprice.d.ts +242 -0
  473. package/dist/sdk/models/shared/packageprice.js +363 -0
  474. package/dist/sdk/models/shared/packagewithallocationprice.d.ts +241 -0
  475. package/dist/sdk/models/shared/packagewithallocationprice.js +361 -0
  476. package/dist/sdk/models/shared/percentagediscount.d.ts +15 -0
  477. package/dist/sdk/models/shared/percentagediscount.js +59 -0
  478. package/dist/sdk/models/shared/percentagediscountcreationparams.d.ts +11 -0
  479. package/dist/sdk/models/shared/percentagediscountcreationparams.js +54 -0
  480. package/dist/sdk/models/shared/percentagediscountinterval.d.ts +27 -0
  481. package/dist/sdk/models/shared/percentagediscountinterval.js +82 -0
  482. package/dist/sdk/models/shared/perpricecost.d.ts +206 -6
  483. package/dist/sdk/models/shared/perpricecost.js +6 -6
  484. package/dist/sdk/models/shared/phaseoverride.d.ts +7 -30
  485. package/dist/sdk/models/shared/phaseoverride.js +4 -42
  486. package/dist/sdk/models/shared/{availability.d.ts → pingresponse.d.ts} +1 -4
  487. package/dist/sdk/models/shared/{availability.js → pingresponse.js} +7 -10
  488. package/dist/sdk/models/shared/plan.d.ts +29 -62
  489. package/dist/sdk/models/shared/plan.js +55 -108
  490. package/dist/sdk/models/shared/planminified.d.ts +6 -2
  491. package/dist/sdk/models/shared/planminified.js +5 -0
  492. package/dist/sdk/models/shared/planphase.d.ts +18 -58
  493. package/dist/sdk/models/shared/planphase.js +30 -86
  494. package/dist/sdk/models/shared/plans.d.ts +2 -5
  495. package/dist/sdk/models/shared/plans.js +0 -3
  496. package/dist/sdk/models/shared/pricegroup.d.ts +2 -2
  497. package/dist/sdk/models/shared/priceinterval.d.ts +239 -0
  498. package/dist/sdk/models/shared/priceinterval.js +104 -0
  499. package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.d.ts +11 -0
  500. package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.js +54 -0
  501. package/dist/sdk/models/shared/prices.d.ts +6 -0
  502. package/dist/sdk/models/shared/prices.js +52 -0
  503. package/dist/sdk/models/shared/reportingconfiguration.d.ts +4 -0
  504. package/dist/sdk/models/shared/reportingconfiguration.js +45 -0
  505. package/dist/sdk/models/shared/requesttoolargeerror.d.ts +16 -0
  506. package/dist/sdk/models/shared/requesttoolargeerror.js +82 -0
  507. package/dist/sdk/models/shared/requestvalidationerror.d.ts +14 -17
  508. package/dist/sdk/models/shared/requestvalidationerror.js +29 -7
  509. package/dist/sdk/models/shared/resourcenotfounderror.d.ts +16 -0
  510. package/dist/sdk/models/shared/resourcenotfounderror.js +82 -0
  511. package/dist/sdk/models/shared/resourcetoolargeerror.d.ts +16 -0
  512. package/dist/sdk/models/shared/resourcetoolargeerror.js +82 -0
  513. package/dist/sdk/models/shared/sublineitemgrouping.d.ts +8 -0
  514. package/dist/sdk/models/shared/{grouping.js → sublineitemgrouping.js} +8 -11
  515. package/dist/sdk/models/shared/sublineitemmatrixconfig.d.ts +7 -0
  516. package/dist/sdk/models/shared/{matrixconfig1.js → sublineitemmatrixconfig.js} +7 -10
  517. package/dist/sdk/models/shared/subscription.d.ts +64 -31
  518. package/dist/sdk/models/shared/subscription.js +61 -42
  519. package/dist/sdk/models/shared/subscriptioncosts.d.ts +2 -5
  520. package/dist/sdk/models/shared/subscriptioncosts.js +3 -6
  521. package/dist/sdk/models/shared/subscriptionminified.d.ts +0 -3
  522. package/dist/sdk/models/shared/subscriptionminified.js +0 -3
  523. package/dist/sdk/models/shared/subscriptionplanchange.d.ts +20 -15
  524. package/dist/sdk/models/shared/subscriptionplanchange.js +37 -15
  525. package/dist/sdk/models/shared/subscriptions.d.ts +2 -5
  526. package/dist/sdk/models/shared/subscriptions.js +0 -3
  527. package/dist/sdk/models/shared/subscriptionscheduleitem.d.ts +3 -3
  528. package/dist/sdk/models/shared/{subscriptionschedule.d.ts → subscriptionscheduleitems.d.ts} +3 -6
  529. package/dist/sdk/models/shared/{subscriptionschedule.js → subscriptionscheduleitems.js} +8 -11
  530. package/dist/sdk/models/shared/subscriptiontrialinfo.d.ts +4 -0
  531. package/dist/sdk/models/shared/{subscriptioncancellation.js → subscriptiontrialinfo.js} +8 -14
  532. package/dist/sdk/models/shared/testratingfunctionprice.d.ts +241 -0
  533. package/dist/sdk/models/shared/testratingfunctionprice.js +361 -0
  534. package/dist/sdk/models/shared/thresholdtotalamountprice.d.ts +241 -0
  535. package/dist/sdk/models/shared/thresholdtotalamountprice.js +361 -0
  536. package/dist/sdk/models/shared/tier.d.ts +11 -2
  537. package/dist/sdk/models/shared/tier.js +2 -2
  538. package/dist/sdk/models/shared/tierconfig.d.ts +2 -5
  539. package/dist/sdk/models/shared/tierconfig.js +2 -5
  540. package/dist/sdk/models/shared/tieredbpsconfig.d.ts +4 -4
  541. package/dist/sdk/models/shared/tieredbpsconfig.js +0 -3
  542. package/dist/sdk/models/shared/tieredbpsprice.d.ts +242 -0
  543. package/dist/sdk/models/shared/tieredbpsprice.js +363 -0
  544. package/dist/sdk/models/shared/tieredconfig.d.ts +4 -4
  545. package/dist/sdk/models/shared/tieredconfig.js +0 -3
  546. package/dist/sdk/models/shared/tieredpackageprice.d.ts +241 -0
  547. package/dist/sdk/models/shared/tieredpackageprice.js +361 -0
  548. package/dist/sdk/models/shared/tieredprice.d.ts +242 -0
  549. package/dist/sdk/models/shared/tieredprice.js +363 -0
  550. package/dist/sdk/models/shared/tieredwithminimumprice.d.ts +241 -0
  551. package/dist/sdk/models/shared/tieredwithminimumprice.js +361 -0
  552. package/dist/sdk/models/shared/tiersublineitem.d.ts +17 -0
  553. package/dist/sdk/models/shared/{sublineitem1.js → tiersublineitem.js} +21 -18
  554. package/dist/sdk/models/shared/trialconfig.d.ts +1 -1
  555. package/dist/sdk/models/shared/trialdiscount.d.ts +19 -0
  556. package/dist/sdk/models/shared/trialdiscount.js +64 -0
  557. package/dist/sdk/models/shared/triggersubscriptionphaseparams.d.ts +8 -0
  558. package/dist/sdk/models/shared/triggersubscriptionphaseparams.js +51 -0
  559. package/dist/sdk/models/shared/ungroupedsubscriptionusage.d.ts +5 -0
  560. package/dist/sdk/models/shared/ungroupedsubscriptionusage.js +47 -0
  561. package/dist/sdk/models/shared/ungroupedsubscriptionusagerecord.d.ts +12 -0
  562. package/dist/sdk/models/shared/ungroupedsubscriptionusagerecord.js +64 -0
  563. package/dist/sdk/models/shared/unitconfig.d.ts +8 -4
  564. package/dist/sdk/models/shared/unitconfig.js +5 -3
  565. package/dist/sdk/models/shared/unitprice.d.ts +242 -0
  566. package/dist/sdk/models/shared/unitprice.js +363 -0
  567. package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.d.ts +7 -0
  568. package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.js +45 -0
  569. package/dist/sdk/models/shared/upcominginvoice.d.ts +89 -54
  570. package/dist/sdk/models/shared/upcominginvoice.js +216 -88
  571. package/dist/sdk/models/shared/updateevent.d.ts +1 -1
  572. package/dist/sdk/models/shared/updateevent.js +5 -1
  573. package/dist/sdk/models/shared/urlnotfound.d.ts +16 -0
  574. package/dist/sdk/models/shared/urlnotfound.js +82 -0
  575. package/dist/sdk/models/shared/usage.d.ts +3 -10
  576. package/dist/sdk/models/shared/usage.js +18 -24
  577. package/dist/sdk/models/shared/usagediscount.d.ts +15 -0
  578. package/dist/sdk/models/shared/{tier7.js → usagediscount.js} +18 -19
  579. package/dist/sdk/models/shared/usagediscountcreationparams.d.ts +11 -0
  580. package/dist/sdk/models/shared/usagediscountcreationparams.js +54 -0
  581. package/dist/sdk/models/shared/usagediscountinterval.d.ts +27 -0
  582. package/dist/sdk/models/shared/usagediscountinterval.js +82 -0
  583. package/dist/sdk/models/shared/validationerror.d.ts +11 -0
  584. package/dist/sdk/models/shared/validationerror.js +50 -0
  585. package/dist/sdk/models/shared/voidinitiatedledgerentry.d.ts +30 -0
  586. package/dist/sdk/models/shared/voidinitiatedledgerentry.js +139 -0
  587. package/dist/sdk/models/shared/voidledgerentry.d.ts +29 -0
  588. package/dist/sdk/models/shared/voidledgerentry.js +130 -0
  589. package/dist/sdk/plan.d.ts +54 -186
  590. package/dist/sdk/plan.js +656 -202
  591. package/dist/sdk/price.d.ts +246 -0
  592. package/dist/sdk/price.js +790 -0
  593. package/dist/sdk/priceinterval.d.ts +65 -0
  594. package/dist/sdk/priceinterval.js +281 -0
  595. package/dist/sdk/sdk.d.ts +149 -58
  596. package/dist/sdk/sdk.js +23 -40
  597. package/dist/sdk/subscription.d.ts +435 -280
  598. package/dist/sdk/subscription.js +1516 -350
  599. package/docs/models/operations/addeditpriceintervalsrequest.md +9 -0
  600. package/docs/models/operations/addeditpriceintervalsresponse.md +18 -0
  601. package/docs/models/operations/amendeventrequest.md +9 -0
  602. package/docs/models/operations/amendeventresponse.md +18 -0
  603. package/docs/models/operations/amendusageexternalcustomeridrequest.md +11 -0
  604. package/docs/models/operations/amendusageexternalcustomeridresponse.md +18 -0
  605. package/docs/models/operations/amendusagerequest.md +11 -0
  606. package/docs/models/operations/amendusageresponse.md +18 -0
  607. package/docs/models/operations/archivecouponrequest.md +8 -0
  608. package/docs/models/operations/archivecouponresponse.md +18 -0
  609. package/docs/models/operations/cancelsubscriptionrequest.md +9 -0
  610. package/docs/models/operations/cancelsubscriptionresponse.md +18 -0
  611. package/docs/models/operations/closebackfillrequest.md +8 -0
  612. package/docs/models/operations/closebackfillresponse.md +18 -0
  613. package/docs/models/operations/createbackfillresponse.md +18 -0
  614. package/docs/models/operations/createcouponresponse.md +18 -0
  615. package/docs/models/operations/createcustomerbalancetransactionrequest.md +9 -0
  616. package/docs/models/operations/createcustomerbalancetransactionresponse.md +18 -0
  617. package/docs/models/operations/createcustomerresponse.md +18 -0
  618. package/docs/models/operations/createinvoicelineitemresponse.md +18 -0
  619. package/docs/models/operations/createinvoiceresponse.md +18 -0
  620. package/docs/models/operations/createledgerentryexternalidrequest.md +9 -0
  621. package/docs/models/operations/createledgerentryexternalidresponse.md +18 -0
  622. package/docs/models/operations/createledgerentryrequest.md +9 -0
  623. package/docs/models/operations/createledgerentryresponse.md +18 -0
  624. package/docs/models/operations/createmetricresponse.md +18 -0
  625. package/docs/models/operations/createplanresponse.md +18 -0
  626. package/docs/models/operations/createpriceresponse.md +18 -0
  627. package/docs/models/operations/createsubscriptionresponse.md +18 -0
  628. package/docs/models/operations/deletecustomerrequest.md +8 -0
  629. package/docs/models/operations/deletecustomerresponse.md +18 -0
  630. package/docs/models/operations/deprecateeventrequest.md +8 -0
  631. package/docs/models/operations/deprecateeventresponse.md +18 -0
  632. package/docs/models/operations/fetchbackfillrequest.md +8 -0
  633. package/docs/models/operations/fetchbackfillresponse.md +18 -0
  634. package/docs/models/operations/fetchcouponrequest.md +8 -0
  635. package/docs/models/operations/fetchcouponresponse.md +18 -0
  636. package/docs/models/operations/fetchcreditnoterequest.md +8 -0
  637. package/docs/models/operations/fetchcreditnoteresponse.md +18 -0
  638. package/docs/models/operations/fetchcustomercostsexternalidrequest.md +12 -0
  639. package/docs/models/operations/fetchcustomercostsexternalidresponse.md +18 -0
  640. package/docs/models/operations/fetchcustomercostsexternalidviewmodeviewmode.md +11 -0
  641. package/docs/models/operations/fetchcustomercostsrequest.md +12 -0
  642. package/docs/models/operations/fetchcustomercostsresponse.md +18 -0
  643. package/docs/models/operations/fetchcustomercostsviewmodeviewmode.md +11 -0
  644. package/docs/models/operations/fetchcustomercreditsexternalidrequest.md +10 -0
  645. package/docs/models/operations/fetchcustomercreditsexternalidresponse.md +18 -0
  646. package/docs/models/operations/fetchcustomercreditsledgerentrystatusentrystatus.md +9 -0
  647. package/docs/models/operations/fetchcustomercreditsledgerentrytypeentrytype.md +14 -0
  648. package/docs/models/operations/fetchcustomercreditsledgerexternalidentrystatusentrystatus.md +9 -0
  649. package/docs/models/operations/fetchcustomercreditsledgerexternalidentrytypeentrytype.md +14 -0
  650. package/docs/models/operations/fetchcustomercreditsledgerexternalidrequest.md +18 -0
  651. package/docs/models/operations/fetchcustomercreditsledgerexternalidresponse.md +18 -0
  652. package/docs/models/operations/fetchcustomercreditsledgerrequest.md +18 -0
  653. package/docs/models/operations/fetchcustomercreditsledgerresponse.md +18 -0
  654. package/docs/models/operations/fetchcustomercreditsrequest.md +10 -0
  655. package/docs/models/operations/fetchcustomercreditsresponse.md +18 -0
  656. package/docs/models/operations/fetchcustomerexternalidrequest.md +8 -0
  657. package/docs/models/operations/fetchcustomerexternalidresponse.md +18 -0
  658. package/docs/models/operations/fetchcustomerrequest.md +8 -0
  659. package/docs/models/operations/fetchcustomerresponse.md +18 -0
  660. package/docs/models/operations/fetchinvoicerequest.md +8 -0
  661. package/docs/models/operations/fetchinvoiceresponse.md +18 -0
  662. package/docs/models/operations/fetchitemrequest.md +8 -0
  663. package/docs/models/operations/fetchitemresponse.md +18 -0
  664. package/docs/models/operations/fetchmetricrequest.md +8 -0
  665. package/docs/models/operations/fetchmetricresponse.md +18 -0
  666. package/docs/models/operations/fetchplanexternalidrequest.md +8 -0
  667. package/docs/models/operations/fetchplanexternalidresponse.md +18 -0
  668. package/docs/models/operations/fetchplanrequest.md +8 -0
  669. package/docs/models/operations/fetchplanresponse.md +18 -0
  670. package/docs/models/operations/fetchpriceexternalidrequest.md +8 -0
  671. package/docs/models/operations/fetchpriceexternalidresponse.md +18 -0
  672. package/docs/models/operations/fetchpricerequest.md +8 -0
  673. package/docs/models/operations/fetchpriceresponse.md +18 -0
  674. package/docs/models/operations/fetchsubscriptioncostsrequest.md +12 -0
  675. package/docs/models/operations/fetchsubscriptioncostsresponse.md +18 -0
  676. package/docs/models/operations/fetchsubscriptioncostsviewmodeviewmode.md +11 -0
  677. package/docs/models/operations/fetchsubscriptionrequest.md +8 -0
  678. package/docs/models/operations/fetchsubscriptionresponse.md +18 -0
  679. package/docs/models/operations/fetchsubscriptionschedulerequest.md +14 -0
  680. package/docs/models/operations/fetchsubscriptionscheduleresponse.md +18 -0
  681. package/docs/models/operations/fetchsubscriptionusagegranularitygranularity.md +10 -0
  682. package/docs/models/operations/fetchsubscriptionusagerequest.md +20 -0
  683. package/docs/models/operations/fetchsubscriptionusageresponse.md +18 -0
  684. package/docs/models/operations/fetchsubscriptionusageviewmodeviewmode.md +11 -0
  685. package/docs/models/operations/fetchupcominginvoicerequest.md +8 -0
  686. package/docs/models/operations/fetchupcominginvoiceresponse.md +18 -0
  687. package/docs/models/operations/ingestrequest.md +10 -0
  688. package/docs/models/operations/ingestresponse.md +18 -0
  689. package/docs/models/operations/issueinvoicerequest.md +8 -0
  690. package/docs/models/operations/issueinvoiceresponse.md +18 -0
  691. package/docs/models/operations/listbackfillsrequest.md +9 -0
  692. package/docs/models/operations/listbackfillsresponse.md +18 -0
  693. package/docs/models/operations/listbalancetransactionsrequest.md +14 -0
  694. package/docs/models/operations/listbalancetransactionsresponse.md +18 -0
  695. package/docs/models/operations/listcouponsrequest.md +11 -0
  696. package/docs/models/operations/listcouponsresponse.md +18 -0
  697. package/docs/models/operations/listcouponsubscriptionsrequest.md +10 -0
  698. package/docs/models/operations/listcouponsubscriptionsresponse.md +18 -0
  699. package/docs/models/operations/listcreditnotesrequest.md +9 -0
  700. package/docs/models/operations/listcreditnotesresponse.md +18 -0
  701. package/docs/models/operations/listcustomersrequest.md +13 -0
  702. package/docs/models/operations/listcustomersresponse.md +18 -0
  703. package/docs/models/operations/listinvoicesdatetypedatetype.md +9 -0
  704. package/docs/models/operations/listinvoicesrequest.md +27 -0
  705. package/docs/models/operations/listinvoicesresponse.md +18 -0
  706. package/docs/models/operations/listinvoicesstatus.md +12 -0
  707. package/docs/models/operations/listinvoicesstatusstatus.md +12 -0
  708. package/docs/models/operations/listitemsrequest.md +9 -0
  709. package/docs/models/operations/listitemsresponse.md +18 -0
  710. package/docs/models/operations/listmetricsrequest.md +13 -0
  711. package/docs/models/operations/listmetricsresponse.md +18 -0
  712. package/docs/models/operations/listplansrequest.md +14 -0
  713. package/docs/models/operations/listplansresponse.md +18 -0
  714. package/docs/models/operations/listplansstatusstatus.md +12 -0
  715. package/docs/models/operations/listpricesrequest.md +9 -0
  716. package/docs/models/operations/listpricesresponse.md +18 -0
  717. package/docs/models/operations/listsubscriptionsrequest.md +16 -0
  718. package/docs/models/operations/listsubscriptionsresponse.md +18 -0
  719. package/docs/models/operations/listsubscriptionsstatusstatus.md +10 -0
  720. package/docs/models/operations/markinvoiceaspaidrequest.md +9 -0
  721. package/docs/models/operations/markinvoiceaspaidresponse.md +18 -0
  722. package/docs/models/operations/pingresponse.md +18 -0
  723. package/docs/models/operations/revertbackfillrequest.md +8 -0
  724. package/docs/models/operations/revertbackfillresponse.md +18 -0
  725. package/docs/models/operations/scheduleplanchangerequest.md +9 -0
  726. package/docs/models/operations/scheduleplanchangeresponse.md +18 -0
  727. package/docs/models/operations/searcheventsrequest.md +14 -0
  728. package/docs/models/operations/searcheventsresponse.md +18 -0
  729. package/docs/models/operations/triggerphaserequest.md +9 -0
  730. package/docs/models/operations/triggerphaseresponse.md +18 -0
  731. package/docs/models/operations/unschedulecancellationrequest.md +8 -0
  732. package/docs/models/operations/unschedulecancellationresponse.md +18 -0
  733. package/docs/models/operations/unschedulefixedfeequantityrequest.md +9 -0
  734. package/docs/models/operations/unschedulefixedfeequantityresponse.md +18 -0
  735. package/docs/models/operations/unscheduleplanchangerequest.md +8 -0
  736. package/docs/models/operations/unscheduleplanchangeresponse.md +18 -0
  737. package/docs/models/operations/updatecustomerexternalidrequest.md +9 -0
  738. package/docs/models/operations/updatecustomerexternalidresponse.md +18 -0
  739. package/docs/models/operations/updatecustomerrequest.md +9 -0
  740. package/docs/models/operations/updatecustomerresponse.md +18 -0
  741. package/docs/models/operations/updatefixedfeequantityrequest.md +9 -0
  742. package/docs/models/operations/updatefixedfeequantityresponse.md +18 -0
  743. package/docs/models/operations/updateplanexternalrequest.md +9 -0
  744. package/docs/models/operations/updateplanexternalresponse.md +18 -0
  745. package/docs/models/operations/updateplanrequest.md +9 -0
  746. package/docs/models/operations/updateplanresponse.md +18 -0
  747. package/docs/models/operations/voidinvoicerequest.md +8 -0
  748. package/docs/models/operations/voidinvoiceresponse.md +18 -0
  749. package/docs/models/shared/accountingprovider.md +9 -0
  750. package/docs/models/shared/accountingproviderconfig.md +9 -0
  751. package/docs/models/shared/accountingproviderprovidertype.md +9 -0
  752. package/docs/models/shared/accountingsyncconfiguration.md +9 -0
  753. package/docs/models/shared/addamendmentcreditledgerentryrequestparams.md +12 -0
  754. package/docs/models/shared/addamendmentcreditledgerentryrequestparamsentrytype.md +8 -0
  755. package/docs/models/shared/addamendmentcreditledgerentryrequestparamsmetadata.md +9 -0
  756. package/docs/models/shared/adddecrementcreditledgerentryrequestparams.md +11 -0
  757. package/docs/models/shared/adddecrementcreditledgerentryrequestparamsentrytype.md +8 -0
  758. package/docs/models/shared/adddecrementcreditledgerentryrequestparamsmetadata.md +9 -0
  759. package/docs/models/shared/addeditpriceintervalparams.md +9 -0
  760. package/docs/models/shared/addexpirationchangecreditledgerentryrequestparams.md +14 -0
  761. package/docs/models/shared/addexpirationchangecreditledgerentryrequestparamsentrytype.md +8 -0
  762. package/docs/models/shared/addexpirationchangecreditledgerentryrequestparamsmetadata.md +9 -0
  763. package/docs/models/shared/addincrementcreditledgerentryrequestparams.md +15 -0
  764. package/docs/models/shared/addincrementcreditledgerentryrequestparamsentrytype.md +8 -0
  765. package/docs/models/shared/addincrementcreditledgerentryrequestparamsmetadata.md +9 -0
  766. package/docs/models/shared/addpriceintervalparams.md +16 -0
  767. package/docs/models/shared/addpriceintervalparamsenddateenddate.md +11 -0
  768. package/docs/models/shared/addpriceintervalparamsstartdatestartdate.md +11 -0
  769. package/docs/models/shared/address.md +13 -0
  770. package/docs/models/shared/addressinput.md +13 -0
  771. package/docs/models/shared/addvoidcreditledgerentryrequestparams.md +13 -0
  772. package/docs/models/shared/addvoidcreditledgerentryrequestparamsentrytype.md +8 -0
  773. package/docs/models/shared/addvoidcreditledgerentryrequestparamsmetadata.md +9 -0
  774. package/docs/models/shared/addvoidcreditledgerentryrequestparamsvoidreason.md +10 -0
  775. package/docs/models/shared/affectedblock.md +10 -0
  776. package/docs/models/shared/aggregatedcost.md +12 -0
  777. package/docs/models/shared/amendedevent.md +12 -0
  778. package/docs/models/shared/amendedeventproperties.md +9 -0
  779. package/docs/models/shared/amendedusage.md +9 -0
  780. package/docs/models/shared/amendeventresult.md +8 -0
  781. package/docs/models/shared/amendmentledgerentry.md +21 -0
  782. package/docs/models/shared/amendmentledgerentryentrystatus.md +9 -0
  783. package/docs/models/shared/amendmentledgerentryentrytype.md +8 -0
  784. package/docs/models/shared/amountdiscount.md +10 -0
  785. package/docs/models/shared/amountdiscountcreationparams.md +9 -0
  786. package/docs/models/shared/amountdiscountcreationparamsdiscounttype.md +8 -0
  787. package/docs/models/shared/amountdiscountdiscounttype.md +8 -0
  788. package/docs/models/shared/amountdiscountinterval.md +13 -0
  789. package/docs/models/shared/amountdiscountintervaldiscounttype.md +8 -0
  790. package/docs/models/shared/autocollection.md +10 -0
  791. package/docs/models/shared/backfill.md +17 -0
  792. package/docs/models/shared/backfills.md +9 -0
  793. package/docs/models/shared/backfillstatus.md +13 -0
  794. package/docs/models/shared/billablemetric.md +16 -0
  795. package/docs/models/shared/billablemetrics.md +9 -0
  796. package/docs/models/shared/billablemetricsimple.md +9 -0
  797. package/docs/models/shared/billablemetricstatus.md +10 -0
  798. package/docs/models/shared/billablemetrictiny.md +8 -0
  799. package/docs/models/shared/billingcyclealignment.md +12 -0
  800. package/docs/models/shared/bpsconfig.md +9 -0
  801. package/docs/models/shared/bpsprice.md +225 -0
  802. package/docs/models/shared/bpspricecadence.md +11 -0
  803. package/docs/models/shared/bpspricemodeltype.md +8 -0
  804. package/docs/models/shared/bpspricepricetype.md +9 -0
  805. package/docs/models/shared/bpstier.md +11 -0
  806. package/docs/models/shared/bulkbpsconfig.md +8 -0
  807. package/docs/models/shared/bulkbpsprice.md +225 -0
  808. package/docs/models/shared/bulkbpspricecadence.md +11 -0
  809. package/docs/models/shared/bulkbpspricemodeltype.md +8 -0
  810. package/docs/models/shared/bulkbpspricepricetype.md +9 -0
  811. package/docs/models/shared/bulkbpstier.md +10 -0
  812. package/docs/models/shared/bulkconfig.md +8 -0
  813. package/docs/models/shared/bulkprice.md +225 -0
  814. package/docs/models/shared/bulkpricecadence.md +11 -0
  815. package/docs/models/shared/bulkpricemodeltype.md +8 -0
  816. package/docs/models/shared/bulkpricepricetype.md +9 -0
  817. package/docs/models/shared/bulktier.md +9 -0
  818. package/docs/models/shared/cancelsubscriptionparams.md +9 -0
  819. package/docs/models/shared/cancelsubscriptionparamscanceloption.md +12 -0
  820. package/docs/models/shared/changeoption.md +10 -0
  821. package/docs/models/shared/coupon.md +21 -0
  822. package/docs/models/shared/coupondiscount.md +7 -0
  823. package/docs/models/shared/couponredemption.md +10 -0
  824. package/docs/models/shared/coupons.md +9 -0
  825. package/docs/models/shared/createinvoicelineitemparams.md +13 -0
  826. package/docs/models/shared/createoneoffinvoiceparams.md +15 -0
  827. package/docs/models/shared/creditblockexpiryledgerentry.md +21 -0
  828. package/docs/models/shared/creditblockexpiryledgerentryentrystatus.md +9 -0
  829. package/docs/models/shared/creditblockexpiryledgerentryentrytype.md +8 -0
  830. package/docs/models/shared/creditledgerentries.md +9 -0
  831. package/docs/models/shared/creditnote.md +26 -0
  832. package/docs/models/shared/creditnotediscounts.md +7 -0
  833. package/docs/models/shared/creditnotelineitem.md +15 -0
  834. package/docs/models/shared/creditnotelineitemdiscounts.md +7 -0
  835. package/docs/models/shared/creditnotelineitemtaxamounts.md +7 -0
  836. package/docs/models/shared/creditnotemaximumamountadjustment.md +9 -0
  837. package/docs/models/shared/creditnoteminified.md +8 -0
  838. package/docs/models/shared/creditnotereason.md +11 -0
  839. package/docs/models/shared/creditnotes.md +9 -0
  840. package/docs/models/shared/creditnotesublineitem.md +10 -0
  841. package/docs/models/shared/creditnotesummary.md +13 -0
  842. package/docs/models/shared/creditnotetype.md +9 -0
  843. package/docs/models/shared/customer.md +42 -0
  844. package/docs/models/shared/customerbalancetransaction.md +17 -0
  845. package/docs/models/shared/customerbalancetransactionaction.md +10 -0
  846. package/docs/models/shared/customerbalancetransactions.md +9 -0
  847. package/docs/models/shared/customerbalancetransactiontype.md +9 -0
  848. package/docs/models/shared/customercosts.md +8 -0
  849. package/docs/models/shared/customercreditbalance.md +11 -0
  850. package/docs/models/shared/customercreditbalances.md +9 -0
  851. package/docs/models/shared/customerminified.md +9 -0
  852. package/docs/models/shared/customerpaymentprovider.md +14 -0
  853. package/docs/models/shared/customers.md +9 -0
  854. package/docs/models/shared/customertaxid.md +10 -0
  855. package/docs/models/shared/debug.md +11 -0
  856. package/docs/models/shared/decrementledgerentry.md +24 -0
  857. package/docs/models/shared/decrementledgerentryentrystatus.md +9 -0
  858. package/docs/models/shared/decrementledgerentryentrytype.md +8 -0
  859. package/docs/models/shared/deletecustomerresponse.md +7 -0
  860. package/docs/models/shared/deprecatedeventresult.md +8 -0
  861. package/docs/models/shared/discount.md +15 -0
  862. package/docs/models/shared/discountdiscounttype.md +11 -0
  863. package/docs/models/shared/duplicateconstraintviolationerror.md +12 -0
  864. package/docs/models/shared/duplicateconstraintviolationerrorheaders.md +7 -0
  865. package/docs/models/shared/duplicateconstraintviolationerrorstatus.md +8 -0
  866. package/docs/models/shared/duplicateconstraintviolationerrortype.md +8 -0
  867. package/docs/models/shared/duplicateresourcecreationerror.md +12 -0
  868. package/docs/models/shared/duplicateresourcecreationerrorheaders.md +7 -0
  869. package/docs/models/shared/duplicateresourcecreationerrorstatus.md +8 -0
  870. package/docs/models/shared/duplicateresourcecreationerrortype.md +8 -0
  871. package/docs/models/shared/editcustomer.md +22 -0
  872. package/docs/models/shared/editcustomermetadata.md +9 -0
  873. package/docs/models/shared/editcustomerpaymentprovider.md +16 -0
  874. package/docs/models/shared/editplan.md +9 -0
  875. package/docs/models/shared/editplanmetadata.md +7 -0
  876. package/docs/models/shared/editpriceintervalparams.md +11 -0
  877. package/docs/models/shared/editpriceintervalparamsenddateenddate.md +11 -0
  878. package/docs/models/shared/editpriceintervalparamsstartdatestartdate.md +11 -0
  879. package/docs/models/shared/event.md +17 -0
  880. package/docs/models/shared/eventproperties.md +9 -0
  881. package/docs/models/shared/events.md +9 -0
  882. package/docs/models/shared/eventsearchcriteria.md +9 -0
  883. package/docs/models/shared/expirationchangeledgerentry.md +22 -0
  884. package/docs/models/shared/expirationchangeledgerentryentrystatus.md +9 -0
  885. package/docs/models/shared/expirationchangeledgerentryentrytype.md +8 -0
  886. package/docs/models/shared/featurenotavailableerror.md +12 -0
  887. package/docs/models/shared/featurenotavailableerrorheaders.md +7 -0
  888. package/docs/models/shared/featurenotavailableerrorstatus.md +8 -0
  889. package/docs/models/shared/featurenotavailableerrortype.md +8 -0
  890. package/docs/models/shared/fivehundrederror.md +12 -0
  891. package/docs/models/shared/fivehundrederrorheaders.md +7 -0
  892. package/docs/models/shared/fivehundrederrortype.md +8 -0
  893. package/docs/models/shared/fivetranexampleprice.md +225 -0
  894. package/docs/models/shared/fivetranexamplepricecadence.md +11 -0
  895. package/docs/models/shared/fivetranexamplepricemodeltype.md +8 -0
  896. package/docs/models/shared/fivetranexamplepricepricetype.md +9 -0
  897. package/docs/models/shared/fixedfeequantitychange.md +11 -0
  898. package/docs/models/shared/fixedfeequantitychangechangeoption.md +12 -0
  899. package/docs/models/shared/fixedfeequantityscheduleentry.md +11 -0
  900. package/docs/models/shared/fixedfeequantitytransition.md +10 -0
  901. package/docs/models/shared/fourhundredandoneerror.md +12 -0
  902. package/docs/models/shared/fourhundredandoneerrorheaders.md +7 -0
  903. package/docs/models/shared/fourhundredandoneerrorstatus.md +8 -0
  904. package/docs/models/shared/fourhundredandoneerrortype.md +8 -0
  905. package/docs/models/shared/fourhundredandtwentynineerror.md +12 -0
  906. package/docs/models/shared/fourhundredandtwentynineerrorheaders.md +7 -0
  907. package/docs/models/shared/fourhundredandtwentynineerrorstatus.md +8 -0
  908. package/docs/models/shared/fourhundredandtwentynineerrortype.md +8 -0
  909. package/docs/models/shared/groupedsubscriptionusage.md +9 -0
  910. package/docs/models/shared/groupedsubscriptionusagerecord.md +11 -0
  911. package/docs/models/shared/groupedsubscriptionusagerecordviewmode.md +9 -0
  912. package/docs/models/shared/idempotencyconflict.md +12 -0
  913. package/docs/models/shared/idempotencyconflictheaders.md +7 -0
  914. package/docs/models/shared/idempotencyconflictstatus.md +8 -0
  915. package/docs/models/shared/idempotencyconflicttype.md +8 -0
  916. package/docs/models/shared/idempotencykeyvalidationerror.md +13 -0
  917. package/docs/models/shared/idempotencykeyvalidationerrorheaders.md +7 -0
  918. package/docs/models/shared/idempotencykeyvalidationerrorstatus.md +8 -0
  919. package/docs/models/shared/idempotencykeyvalidationerrortype.md +8 -0
  920. package/docs/models/shared/idempotencyrequestmismatch.md +12 -0
  921. package/docs/models/shared/idempotencyrequestmismatchheaders.md +7 -0
  922. package/docs/models/shared/idempotencyrequestmismatchstatus.md +8 -0
  923. package/docs/models/shared/idempotencyrequestmismatchtype.md +8 -0
  924. package/docs/models/shared/incrementcreditledgerentryinvoicesettings.md +12 -0
  925. package/docs/models/shared/incrementledgerentry.md +21 -0
  926. package/docs/models/shared/incrementledgerentryentrystatus.md +9 -0
  927. package/docs/models/shared/incrementledgerentryentrytype.md +8 -0
  928. package/docs/models/shared/ingestevent.md +13 -0
  929. package/docs/models/shared/ingesteventproperties.md +9 -0
  930. package/docs/models/shared/ingestionresponse.md +9 -0
  931. package/docs/models/shared/ingestrequestbody.md +8 -0
  932. package/docs/models/shared/invoice.md +51 -0
  933. package/docs/models/shared/invoicelineitem.md +23 -0
  934. package/docs/models/shared/invoicelineitemparams.md +14 -0
  935. package/docs/models/shared/invoicelineitemparamsmodeltype.md +8 -0
  936. package/docs/models/shared/invoicemetadata.md +7 -0
  937. package/docs/models/shared/invoiceminified.md +8 -0
  938. package/docs/models/shared/invoices.md +9 -0
  939. package/docs/models/shared/invoicestatus.md +12 -0
  940. package/docs/models/shared/item.md +14 -0
  941. package/docs/models/shared/itemexternalconnection.md +9 -0
  942. package/docs/models/shared/itemexternalconnectionexternalconnectionnameexternalconnectionname.md +11 -0
  943. package/docs/models/shared/itemexternalconnectionexternalconnectionnameexternalconnectionname1.md +10 -0
  944. package/docs/models/shared/items.md +9 -0
  945. package/docs/models/shared/itemslim.md +9 -0
  946. package/docs/models/shared/markaspaidrequestparams.md +10 -0
  947. package/docs/models/shared/matrixconfig.md +11 -0
  948. package/docs/models/shared/matrixprice.md +225 -0
  949. package/docs/models/shared/matrixpricecadence.md +11 -0
  950. package/docs/models/shared/matrixpricemodeltype.md +8 -0
  951. package/docs/models/shared/matrixpricepricetype.md +9 -0
  952. package/docs/models/shared/matrixsublineitem.md +13 -0
  953. package/docs/models/shared/matrixsublineitemtype.md +8 -0
  954. package/docs/models/shared/matrixvalue.md +10 -0
  955. package/docs/models/shared/maximum.md +9 -0
  956. package/docs/models/shared/maximuminterval.md +12 -0
  957. package/docs/models/shared/metricgroup.md +9 -0
  958. package/docs/models/shared/minimum.md +9 -0
  959. package/docs/models/shared/minimuminterval.md +12 -0
  960. package/docs/models/shared/newaccountingsyncconfiguration.md +9 -0
  961. package/docs/models/shared/newbackfill.md +13 -0
  962. package/docs/models/shared/newbillablemetric.md +12 -0
  963. package/docs/models/shared/newbillablemetricmetadata.md +9 -0
  964. package/docs/models/shared/newbpsprice.md +18 -0
  965. package/docs/models/shared/newbpspricecadence.md +12 -0
  966. package/docs/models/shared/newbpspricemodeltype.md +8 -0
  967. package/docs/models/shared/newbulkbpsprice.md +18 -0
  968. package/docs/models/shared/newbulkbpspricecadence.md +12 -0
  969. package/docs/models/shared/newbulkbpspricemodeltype.md +8 -0
  970. package/docs/models/shared/newbulkprice.md +18 -0
  971. package/docs/models/shared/newbulkpricecadence.md +12 -0
  972. package/docs/models/shared/newbulkpricemodeltype.md +8 -0
  973. package/docs/models/shared/newcoupon.md +11 -0
  974. package/docs/models/shared/newcoupondiscount.md +7 -0
  975. package/docs/models/shared/newcustomer.md +23 -0
  976. package/docs/models/shared/newcustomerbalancetransaction.md +10 -0
  977. package/docs/models/shared/newcustomerbalancetransactiontype.md +9 -0
  978. package/docs/models/shared/newcustomermetadata.md +9 -0
  979. package/docs/models/shared/newcustomerpaymentprovider.md +14 -0
  980. package/docs/models/shared/newmatrixprice.md +18 -0
  981. package/docs/models/shared/newmatrixpricecadence.md +12 -0
  982. package/docs/models/shared/newmatrixpricemodeltype.md +8 -0
  983. package/docs/models/shared/newpackageprice.md +18 -0
  984. package/docs/models/shared/newpackagepricecadence.md +12 -0
  985. package/docs/models/shared/newpackagepricemodeltype.md +8 -0
  986. package/docs/models/shared/newpackagewithallocationprice.md +18 -0
  987. package/docs/models/shared/newpackagewithallocationpricecadence.md +12 -0
  988. package/docs/models/shared/newpackagewithallocationpricemodeltype.md +8 -0
  989. package/docs/models/shared/newplan.md +14 -0
  990. package/docs/models/shared/newplanmetadata.md +7 -0
  991. package/docs/models/shared/newplanprices.md +7 -0
  992. package/docs/models/shared/newreportingconfiguration.md +8 -0
  993. package/docs/models/shared/newsubscription.md +31 -0
  994. package/docs/models/shared/newsubscriptionexternalmarketplace.md +10 -0
  995. package/docs/models/shared/newsubscriptionmetadata.md +7 -0
  996. package/docs/models/shared/newthresholdtotalamountprice.md +18 -0
  997. package/docs/models/shared/newthresholdtotalamountpricecadence.md +12 -0
  998. package/docs/models/shared/newthresholdtotalamountpricemodeltype.md +8 -0
  999. package/docs/models/shared/newtieredbpsprice.md +18 -0
  1000. package/docs/models/shared/newtieredbpspricecadence.md +12 -0
  1001. package/docs/models/shared/newtieredbpspricemodeltype.md +8 -0
  1002. package/docs/models/shared/newtieredpackageprice.md +18 -0
  1003. package/docs/models/shared/newtieredpackagepricecadence.md +12 -0
  1004. package/docs/models/shared/newtieredpackagepricemodeltype.md +8 -0
  1005. package/docs/models/shared/newtieredprice.md +18 -0
  1006. package/docs/models/shared/newtieredpricecadence.md +12 -0
  1007. package/docs/models/shared/newtieredpricemodeltype.md +8 -0
  1008. package/docs/models/shared/newtieredwithminimumprice.md +18 -0
  1009. package/docs/models/shared/newtieredwithminimumpricecadence.md +12 -0
  1010. package/docs/models/shared/newtieredwithminimumpricemodeltype.md +8 -0
  1011. package/docs/models/shared/newunitprice.md +18 -0
  1012. package/docs/models/shared/newunitpricecadence.md +12 -0
  1013. package/docs/models/shared/newunitpricemodeltype.md +8 -0
  1014. package/docs/models/shared/othersublineitem.md +12 -0
  1015. package/docs/models/shared/othersublineitemtype.md +8 -0
  1016. package/docs/models/shared/overridebpsprice.md +14 -0
  1017. package/docs/models/shared/overridebpspricemodeltype.md +8 -0
  1018. package/docs/models/shared/overridebulkbpsprice.md +14 -0
  1019. package/docs/models/shared/overridebulkbpspricemodeltype.md +8 -0
  1020. package/docs/models/shared/overridebulkprice.md +14 -0
  1021. package/docs/models/shared/overridebulkpricemodeltype.md +8 -0
  1022. package/docs/models/shared/overridefivetranexampleprice.md +14 -0
  1023. package/docs/models/shared/overridefivetranexamplepricemodeltype.md +8 -0
  1024. package/docs/models/shared/overridematrixprice.md +14 -0
  1025. package/docs/models/shared/overridematrixpricemodeltype.md +8 -0
  1026. package/docs/models/shared/overridepackageprice.md +14 -0
  1027. package/docs/models/shared/overridepackagepricemodeltype.md +8 -0
  1028. package/docs/models/shared/overridepackagewithallocationprice.md +14 -0
  1029. package/docs/models/shared/overridepackagewithallocationpricemodeltype.md +8 -0
  1030. package/docs/models/shared/overridetestratingfunctionprice.md +14 -0
  1031. package/docs/models/shared/overridetestratingfunctionpricemodeltype.md +8 -0
  1032. package/docs/models/shared/overridethresholdtotalamountprice.md +14 -0
  1033. package/docs/models/shared/overridethresholdtotalamountpricemodeltype.md +8 -0
  1034. package/docs/models/shared/overridetieredbpsprice.md +14 -0
  1035. package/docs/models/shared/overridetieredbpspricemodeltype.md +8 -0
  1036. package/docs/models/shared/overridetieredpackageprice.md +14 -0
  1037. package/docs/models/shared/overridetieredpackagepricemodeltype.md +8 -0
  1038. package/docs/models/shared/overridetieredprice.md +14 -0
  1039. package/docs/models/shared/overridetieredpricemodeltype.md +8 -0
  1040. package/docs/models/shared/overridetieredwithminimumprice.md +14 -0
  1041. package/docs/models/shared/overridetieredwithminimumpricemodeltype.md +8 -0
  1042. package/docs/models/shared/overrideunitprice.md +14 -0
  1043. package/docs/models/shared/overrideunitpricemodeltype.md +8 -0
  1044. package/docs/models/shared/packageconfig.md +9 -0
  1045. package/docs/models/shared/packageprice.md +225 -0
  1046. package/docs/models/shared/packagepricecadence.md +11 -0
  1047. package/docs/models/shared/packagepricemodeltype.md +8 -0
  1048. package/docs/models/shared/packagepricepricetype.md +9 -0
  1049. package/docs/models/shared/packagewithallocationprice.md +225 -0
  1050. package/docs/models/shared/packagewithallocationpricecadence.md +11 -0
  1051. package/docs/models/shared/packagewithallocationpricemodeltype.md +8 -0
  1052. package/docs/models/shared/packagewithallocationpricepricetype.md +9 -0
  1053. package/docs/models/shared/paginationmetadata.md +9 -0
  1054. package/docs/models/shared/percentagediscount.md +10 -0
  1055. package/docs/models/shared/percentagediscountcreationparams.md +9 -0
  1056. package/docs/models/shared/percentagediscountcreationparamsdiscounttype.md +8 -0
  1057. package/docs/models/shared/percentagediscountdiscounttype.md +8 -0
  1058. package/docs/models/shared/percentagediscountinterval.md +13 -0
  1059. package/docs/models/shared/percentagediscountintervaldiscounttype.md +8 -0
  1060. package/docs/models/shared/perpricecost.md +12 -0
  1061. package/docs/models/shared/phaseoverride.md +11 -0
  1062. package/docs/models/shared/pingresponse.md +8 -0
  1063. package/docs/models/shared/plan.md +33 -0
  1064. package/docs/models/shared/planmetadata.md +7 -0
  1065. package/docs/models/shared/planminified.md +10 -0
  1066. package/docs/models/shared/planphase.md +18 -0
  1067. package/docs/models/shared/planphasedurationunit.md +11 -0
  1068. package/docs/models/shared/planprices.md +7 -0
  1069. package/docs/models/shared/plans.md +9 -0
  1070. package/docs/models/shared/planstatus.md +10 -0
  1071. package/docs/models/shared/pricegroup.md +12 -0
  1072. package/docs/models/shared/priceinterval.md +18 -0
  1073. package/docs/models/shared/priceintervalfixedfeequantitytransitionparams.md +9 -0
  1074. package/docs/models/shared/prices.md +9 -0
  1075. package/docs/models/shared/product.md +10 -0
  1076. package/docs/models/shared/reportingconfiguration.md +8 -0
  1077. package/docs/models/shared/requesttoolargeerror.md +12 -0
  1078. package/docs/models/shared/requesttoolargeerrorheaders.md +7 -0
  1079. package/docs/models/shared/requesttoolargeerrorstatus.md +8 -0
  1080. package/docs/models/shared/requesttoolargeerrortype.md +8 -0
  1081. package/docs/models/shared/requestvalidationerror.md +13 -0
  1082. package/docs/models/shared/requestvalidationerrorheaders.md +7 -0
  1083. package/docs/models/shared/requestvalidationerrorstatus.md +8 -0
  1084. package/docs/models/shared/requestvalidationerrortype.md +8 -0
  1085. package/docs/models/shared/resourcenotfounderror.md +12 -0
  1086. package/docs/models/shared/resourcenotfounderrorheaders.md +7 -0
  1087. package/docs/models/shared/resourcenotfounderrorstatus.md +8 -0
  1088. package/docs/models/shared/resourcenotfounderrortype.md +8 -0
  1089. package/docs/models/shared/resourcetoolargeerror.md +12 -0
  1090. package/docs/models/shared/resourcetoolargeerrorheaders.md +7 -0
  1091. package/docs/models/shared/resourcetoolargeerrorstatus.md +8 -0
  1092. package/docs/models/shared/resourcetoolargeerrortype.md +8 -0
  1093. package/docs/models/shared/security.md +8 -0
  1094. package/docs/models/shared/sublineitemgrouping.md +9 -0
  1095. package/docs/models/shared/sublineitemmatrixconfig.md +8 -0
  1096. package/docs/models/shared/subscription.md +44 -0
  1097. package/docs/models/shared/subscriptioncosts.md +8 -0
  1098. package/docs/models/shared/subscriptionmetadata.md +9 -0
  1099. package/docs/models/shared/subscriptionminified.md +8 -0
  1100. package/docs/models/shared/subscriptionplanchange.md +23 -0
  1101. package/docs/models/shared/subscriptions.md +9 -0
  1102. package/docs/models/shared/subscriptionscheduleitem.md +10 -0
  1103. package/docs/models/shared/subscriptionscheduleitems.md +9 -0
  1104. package/docs/models/shared/subscriptionstatus.md +10 -0
  1105. package/docs/models/shared/subscriptiontrialinfo.md +8 -0
  1106. package/docs/models/shared/taxamount.md +10 -0
  1107. package/docs/models/shared/testratingfunctionprice.md +225 -0
  1108. package/docs/models/shared/testratingfunctionpricecadence.md +11 -0
  1109. package/docs/models/shared/testratingfunctionpricemodeltype.md +8 -0
  1110. package/docs/models/shared/testratingfunctionpricepricetype.md +9 -0
  1111. package/docs/models/shared/thresholdtotalamountprice.md +225 -0
  1112. package/docs/models/shared/thresholdtotalamountpricecadence.md +11 -0
  1113. package/docs/models/shared/thresholdtotalamountpricemodeltype.md +8 -0
  1114. package/docs/models/shared/thresholdtotalamountpricepricetype.md +9 -0
  1115. package/docs/models/shared/tier.md +10 -0
  1116. package/docs/models/shared/tierconfig.md +10 -0
  1117. package/docs/models/shared/tieredbpsconfig.md +8 -0
  1118. package/docs/models/shared/tieredbpsprice.md +225 -0
  1119. package/docs/models/shared/tieredbpspricecadence.md +11 -0
  1120. package/docs/models/shared/tieredbpspricemodeltype.md +8 -0
  1121. package/docs/models/shared/tieredbpspricepricetype.md +9 -0
  1122. package/docs/models/shared/tieredconfig.md +8 -0
  1123. package/docs/models/shared/tieredpackageprice.md +225 -0
  1124. package/docs/models/shared/tieredpackagepricecadence.md +11 -0
  1125. package/docs/models/shared/tieredpackagepricemodeltype.md +8 -0
  1126. package/docs/models/shared/tieredpackagepricepricetype.md +9 -0
  1127. package/docs/models/shared/tieredprice.md +225 -0
  1128. package/docs/models/shared/tieredpricecadence.md +11 -0
  1129. package/docs/models/shared/tieredpricemodeltype.md +8 -0
  1130. package/docs/models/shared/tieredpricepricetype.md +9 -0
  1131. package/docs/models/shared/tieredwithminimumprice.md +225 -0
  1132. package/docs/models/shared/tieredwithminimumpricecadence.md +11 -0
  1133. package/docs/models/shared/tieredwithminimumpricemodeltype.md +8 -0
  1134. package/docs/models/shared/tieredwithminimumpricepricetype.md +9 -0
  1135. package/docs/models/shared/tiersublineitem.md +13 -0
  1136. package/docs/models/shared/tiersublineitemtype.md +8 -0
  1137. package/docs/models/shared/trialconfig.md +9 -0
  1138. package/docs/models/shared/trialconfigtrialperiodunit.md +8 -0
  1139. package/docs/models/shared/trialdiscount.md +11 -0
  1140. package/docs/models/shared/trialdiscountdiscounttype.md +8 -0
  1141. package/docs/models/shared/triggersubscriptionphaseparams.md +8 -0
  1142. package/docs/models/shared/ungroupedsubscriptionusage.md +8 -0
  1143. package/docs/models/shared/ungroupedsubscriptionusagerecord.md +10 -0
  1144. package/docs/models/shared/ungroupedsubscriptionusagerecordviewmode.md +9 -0
  1145. package/docs/models/shared/unitconfig.md +9 -0
  1146. package/docs/models/shared/unitprice.md +225 -0
  1147. package/docs/models/shared/unitpricecadence.md +11 -0
  1148. package/docs/models/shared/unitpricemodeltype.md +8 -0
  1149. package/docs/models/shared/unitpricepricetype.md +9 -0
  1150. package/docs/models/shared/unschedulefixedfeequantitychangeparams.md +8 -0
  1151. package/docs/models/shared/upcominginvoice.md +46 -0
  1152. package/docs/models/shared/upcominginvoicemetadata.md +7 -0
  1153. package/docs/models/shared/upcominginvoicestatus.md +12 -0
  1154. package/docs/models/shared/updateevent.md +12 -0
  1155. package/docs/models/shared/updateeventproperties.md +9 -0
  1156. package/docs/models/shared/urlnotfound.md +12 -0
  1157. package/docs/models/shared/urlnotfoundheaders.md +7 -0
  1158. package/docs/models/shared/urlnotfoundstatus.md +8 -0
  1159. package/docs/models/shared/urlnotfoundtype.md +8 -0
  1160. package/docs/models/shared/usage.md +10 -0
  1161. package/docs/models/shared/usagediscount.md +10 -0
  1162. package/docs/models/shared/usagediscountcreationparams.md +9 -0
  1163. package/docs/models/shared/usagediscountcreationparamsdiscounttype.md +8 -0
  1164. package/docs/models/shared/usagediscountdiscounttype.md +8 -0
  1165. package/docs/models/shared/usagediscountinterval.md +13 -0
  1166. package/docs/models/shared/usagediscountintervaldiscounttype.md +8 -0
  1167. package/docs/models/shared/validationerror.md +9 -0
  1168. package/docs/models/shared/voidinitiatedledgerentry.md +24 -0
  1169. package/docs/models/shared/voidinitiatedledgerentryentrystatus.md +9 -0
  1170. package/docs/models/shared/voidinitiatedledgerentryentrytype.md +8 -0
  1171. package/docs/models/shared/voidledgerentry.md +23 -0
  1172. package/docs/models/shared/voidledgerentryentrystatus.md +9 -0
  1173. package/docs/models/shared/voidledgerentryentrytype.md +8 -0
  1174. package/docs/sdks/availability/README.md +45 -0
  1175. package/docs/sdks/coupon/README.md +226 -0
  1176. package/docs/sdks/credit/README.md +605 -0
  1177. package/docs/sdks/creditnote/README.md +91 -0
  1178. package/docs/sdks/customer/README.md +1129 -0
  1179. package/docs/sdks/event/README.md +674 -0
  1180. package/docs/sdks/invoice/README.md +402 -0
  1181. package/docs/sdks/item/README.md +89 -0
  1182. package/docs/sdks/metric/README.md +140 -0
  1183. package/docs/sdks/orb/README.md +21 -0
  1184. package/docs/sdks/plan/README.md +300 -0
  1185. package/docs/sdks/price/README.md +411 -0
  1186. package/docs/sdks/priceinterval/README.md +180 -0
  1187. package/docs/sdks/subscription/README.md +1412 -0
  1188. package/docs/types/rfcdate.md +11 -0
  1189. package/package.json +2 -1
  1190. package/dist/sdk/models/operations/addledgerentryexternalid.d.ts +0 -16
  1191. package/dist/sdk/models/operations/listcreditnote.d.ts +0 -34
  1192. package/dist/sdk/models/shared/action.d.ts +0 -8
  1193. package/dist/sdk/models/shared/action.js +0 -15
  1194. package/dist/sdk/models/shared/billablemetricminified.d.ts +0 -5
  1195. package/dist/sdk/models/shared/bpspriceoverride.d.ts +0 -24
  1196. package/dist/sdk/models/shared/bulkbpspriceoverride.d.ts +0 -24
  1197. package/dist/sdk/models/shared/bulkpriceoverride.d.ts +0 -24
  1198. package/dist/sdk/models/shared/cadence.d.ts +0 -5
  1199. package/dist/sdk/models/shared/cadence.js +0 -12
  1200. package/dist/sdk/models/shared/canceloption.d.ts +0 -8
  1201. package/dist/sdk/models/shared/canceloption.js +0 -15
  1202. package/dist/sdk/models/shared/changeoption1.d.ts +0 -8
  1203. package/dist/sdk/models/shared/changeoption1.js +0 -15
  1204. package/dist/sdk/models/shared/credit.d.ts +0 -16
  1205. package/dist/sdk/models/shared/creditblock.d.ts +0 -15
  1206. package/dist/sdk/models/shared/creditledgerentry.d.ts +0 -58
  1207. package/dist/sdk/models/shared/creditnotetype.d.ts +0 -7
  1208. package/dist/sdk/models/shared/creditnotetype.js +0 -14
  1209. package/dist/sdk/models/shared/customercost.d.ts +0 -15
  1210. package/dist/sdk/models/shared/discounttype.d.ts +0 -6
  1211. package/dist/sdk/models/shared/discounttype.js +0 -13
  1212. package/dist/sdk/models/shared/durationunit.d.ts +0 -8
  1213. package/dist/sdk/models/shared/durationunit.js +0 -15
  1214. package/dist/sdk/models/shared/entrystatus.d.ts +0 -7
  1215. package/dist/sdk/models/shared/entrystatus.js +0 -14
  1216. package/dist/sdk/models/shared/entrytype.d.ts +0 -9
  1217. package/dist/sdk/models/shared/entrytype.js +0 -16
  1218. package/dist/sdk/models/shared/eventsearchresults.d.ts +0 -10
  1219. package/dist/sdk/models/shared/externalmarketplace.d.ts +0 -8
  1220. package/dist/sdk/models/shared/externalmarketplace.js +0 -15
  1221. package/dist/sdk/models/shared/fixedfeequantityschedule.d.ts +0 -7
  1222. package/dist/sdk/models/shared/granularity.d.ts +0 -6
  1223. package/dist/sdk/models/shared/granularity.js +0 -13
  1224. package/dist/sdk/models/shared/grouping.d.ts +0 -8
  1225. package/dist/sdk/models/shared/invoicestatus.d.ts +0 -10
  1226. package/dist/sdk/models/shared/invoicestatus.js +0 -17
  1227. package/dist/sdk/models/shared/lineitem.d.ts +0 -58
  1228. package/dist/sdk/models/shared/lineitem.js +0 -147
  1229. package/dist/sdk/models/shared/matrixconfig1.d.ts +0 -10
  1230. package/dist/sdk/models/shared/modeltype.d.ts +0 -10
  1231. package/dist/sdk/models/shared/modeltype.js +0 -17
  1232. package/dist/sdk/models/shared/newcreditledgerentry.d.ts +0 -44
  1233. package/dist/sdk/models/shared/newtransaction.d.ts +0 -10
  1234. package/dist/sdk/models/shared/packagepriceoverride.d.ts +0 -24
  1235. package/dist/sdk/models/shared/price.d.ts +0 -114
  1236. package/dist/sdk/models/shared/price.js +0 -245
  1237. package/dist/sdk/models/shared/reason.d.ts +0 -9
  1238. package/dist/sdk/models/shared/reason.js +0 -16
  1239. package/dist/sdk/models/shared/sublineitem.d.ts +0 -32
  1240. package/dist/sdk/models/shared/sublineitem1.d.ts +0 -24
  1241. package/dist/sdk/models/shared/subscriptioncancellation.d.ts +0 -12
  1242. package/dist/sdk/models/shared/subscriptionstatus.d.ts +0 -5
  1243. package/dist/sdk/models/shared/subscriptionstatus.js +0 -12
  1244. package/dist/sdk/models/shared/subscriptionusage.d.ts +0 -8
  1245. package/dist/sdk/models/shared/tier7.d.ts +0 -7
  1246. package/dist/sdk/models/shared/tieredbpsconfig1.d.ts +0 -5
  1247. package/dist/sdk/models/shared/tieredbpspriceoverride.d.ts +0 -21
  1248. package/dist/sdk/models/shared/tieredpriceoverride.d.ts +0 -27
  1249. package/dist/sdk/models/shared/transactiontype.d.ts +0 -4
  1250. package/dist/sdk/models/shared/transactiontype.js +0 -11
  1251. package/dist/sdk/models/shared/type.d.ts +0 -7
  1252. package/dist/sdk/models/shared/type.js +0 -14
  1253. package/dist/sdk/models/shared/unitpriceoverride.d.ts +0 -24
  1254. package/dist/sdk/models/shared/usageitem.d.ts +0 -6
  1255. package/dist/sdk/models/shared/validationerrors.d.ts +0 -13
  1256. package/dist/sdk/models/shared/validationerrors.js +0 -59
  1257. package/dist/sdk/models/shared/viewmode.d.ts +0 -7
  1258. package/dist/sdk/models/shared/viewmode.js +0 -14
@@ -0,0 +1,1129 @@
1
+ # Customer
2
+ (*customer*)
3
+
4
+ ## Overview
5
+
6
+ A customer is a buyer of your products, and the other party to the billing relationship.
7
+
8
+ In Orb, customers are assigned system generated identifiers automatically, but it's often desirable to have these
9
+ match existing identifiers in your system. To avoid having to denormalize Orb ID information, you can pass in an
10
+ `external_customer_id` with your own identifier. See
11
+ [Customer ID Aliases](../guides/events-and-metrics/customer-aliases) for further information about how these
12
+ aliases work in Orb.
13
+
14
+ In addition to having an identifier in your system, a customer may exist in a payment provider solution like
15
+ Stripe. Use the `payment_provider_id` and the `payment_provider` enum field to express this mapping.
16
+
17
+ A customer also has a timezone (from the standard [IANA timezone database](https://www.iana.org/time-zones)), which
18
+ defaults to your account's timezone. See [Timezone localization](../guides/product-catalog/timezones.md) for
19
+ information on what this timezone parameter influences within Orb.
20
+
21
+ ### Available Operations
22
+
23
+ * [amend](#amend) - Amend usage
24
+ * [amendByExternalId](#amendbyexternalid) - Amend usage by external ID
25
+ * [create](#create) - Create customer
26
+ * [createBalanceTransaction](#createbalancetransaction) - Create customer balance transaction
27
+ * [delete](#delete) - Delete customer
28
+ * [fetch](#fetch) - Fetch customer
29
+ * [fetchByExternalId](#fetchbyexternalid) - Fetch customer by external ID
30
+ * [fetchCosts](#fetchcosts) - Fetch customer costs
31
+ * [fetchCostsByExternalId](#fetchcostsbyexternalid) - Fetch customer costs by external ID
32
+ * [list](#list) - List customers
33
+ * [listBalanceTransactions](#listbalancetransactions) - List balance transactions
34
+ * [updateByExternalId](#updatebyexternalid) - Update customer by external ID
35
+ * [updateCustomer](#updatecustomer) - Update customer
36
+
37
+ ## amend
38
+
39
+ This endpoint is used to amend usage within a timeframe for a customer that has an active subscription.
40
+
41
+ This endpoint will mark _all_ existing events within `[timeframe_start, timeframe_end)` as _ignored_ for billing purpo
42
+ ses, and Orb will only use the _new_ events passed in the body of this request as the source of truth for that timeframe
43
+ moving forwards.
44
+ Note that a given time period can be amended any number of times, so events can be overwritten in subsequent calls to th
45
+ is endpoint.
46
+
47
+ This is a powerful and audit-safe mechanism to retroactively change usage data in cases where you need to:
48
+ - decrease historical usage consumption because of degraded service availability in your systems
49
+ - account for gaps from your usage reporting mechanism
50
+ - make point-in-time fixes for specific event records, while ret
51
+ aining the original time of usage and associated metadata.
52
+ This amendment API is designed with two explicit goals:
53
+ 1. Amendments are **always audit-safe**. The amendment process
54
+ will still retain original events in the timeframe, though they will be ignored for billing calculations. For auditing a
55
+ nd data fidelity purposes, Orb never overwrites or permanently deletes ingested usage data.
56
+ 2. Amendments always preser
57
+ ve data **consistency**. In other words, either an amendment is fully processed by the system (and the new events for th
58
+ e timeframe are honored rather than the existing ones) or the amendment request fails. To maintain this important proper
59
+ ty, Orb prevents _partial event ingestion_ on this endpoint.
60
+
61
+ ## Response semantics
62
+ - Either all events are ingested successfully, or all fail to ingest (returning a `4xx` or `5xx` response code).
63
+ - Any event that fails schema validation will lead to a `4xx` response. In this case, to maintain data consistency,
64
+ Orb will not ingest any events and will
65
+ also not deprecate existing events in the time period.
66
+ - You can assume that the amendment is successful on receipt of
67
+ a `2xx` response.While a successful response from this endpoint indicates that the new events have been ingested, updati
68
+ ng usage totals happens asynchronously and may be delayed by a few minutes.
69
+
70
+ As emphasized above, Orb will never show
71
+ an inconsistent state (e.g. in invoice previews or dashboards); either it will show the existing state (before the amend
72
+ ment) or the new state (with new events in the requested timeframe).
73
+
74
+ ## Sample request body
75
+ ```json
76
+ {
77
+ "events": [{
78
+ "event_name": "payment_processed",
79
+ "timestamp": "2022-03-24T07:15:00Z",
80
+ "properties": {
81
+ "amount": 100
82
+ }
83
+ }, {
84
+ "event_name": "payment_failed",
85
+ "timestamp": "2022-03-24T07:15:00Z",
86
+ "properties": {
87
+ "amount": 100
88
+ }
89
+ }]
90
+ }
91
+ ```
92
+
93
+ ## Request Validation
94
+ - The `timestamp` of
95
+ each event reported must fall within the bounds of `timeframe_start` and `timeframe_end`. As with ingestion, all timesta
96
+ mps must be sent in ISO8601 format with UTC timezone offset.
97
+ - Orb **does not accept an `idempotency_key`** with each
98
+ event in this endpoint, since the entirety of the event list must be ingested to ensure consistency. On retryable errors
99
+ , you should retry the request in its entirety, and assume that the amendment operation has not succeeded until receipt
100
+ of a `2xx`.
101
+
102
+ - Both `timeframe_start` and `timeframe_end` must be timestamps in the past. Furthermore, Orb will genera
103
+ lly validate that the `timeframe_start` and `timeframe_end` fall within the customer's _current_ subscription billing pe
104
+ riod. However, Orb does allow amendments while in the grace period of the previous billing period; in this instance, the
105
+ timeframe can start before the current period.
106
+
107
+ ## API Limits
108
+ Note that Orb does not currently enforce a hard rate-
109
+ limit for API usage or a maximum request payload size. Similar to the event ingestion API, this API is architected for h
110
+ igh-throughput ingestion. It is also safe to _programmatically_ call this endpoint if your system can automatically dete
111
+ ct a need for historical amendment.
112
+
113
+ In order to overwrite timeframes with a very large number of events, we suggest using multiple calls with small adjacent
114
+ (e.g. every hour) timeframes.
115
+
116
+ ### Example Usage
117
+
118
+ ```typescript
119
+ import { Orb } from "orb-billing";
120
+ import { AmendUsageResponse } from "orb-billing/dist/sdk/models/operations";
121
+
122
+ const sdk = new Orb({
123
+ security: {
124
+ apiKeyAuth: "",
125
+ },
126
+ });
127
+
128
+ sdk.customer.amend({
129
+ updateEvent: {
130
+ customerId: "driver",
131
+ eventName: "bypass",
132
+ externalCustomerId: "Kids",
133
+ properties: {},
134
+ timestamp: new Date("2020-12-09T16:09:53Z"),
135
+ },
136
+ customerId: "previous enchanting",
137
+ timeframeEnd: new Date("2021-03-06T03:20:54.516Z"),
138
+ timeframeStart: new Date("2022-10-30T03:17:34.038Z"),
139
+ }).then((res: AmendUsageResponse) => {
140
+ if (res.statusCode == 200) {
141
+ // handle response
142
+ }
143
+ });
144
+ ```
145
+
146
+ ### Parameters
147
+
148
+ | Parameter | Type | Required | Description |
149
+ | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
150
+ | `request` | [operations.AmendUsageRequest](../../models/operations/amendusagerequest.md) | :heavy_check_mark: | The request object to use for the request. |
151
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
152
+
153
+
154
+ ### Response
155
+
156
+ **Promise<[operations.AmendUsageResponse](../../models/operations/amendusageresponse.md)>**
157
+
158
+
159
+ ## amendByExternalId
160
+
161
+ This endpoint is used to amend usage within a timeframe for a customer that has an active subscription.
162
+
163
+ This endpoint will mark _all_ existing events within `[timeframe_start, timeframe_end)` as _ignored_ for billing purpo
164
+ ses, and Orb will only use the _new_ events passed in the body of this request as the source of truth for that timeframe
165
+ moving forwards.
166
+ Note that a given time period can be amended any number of times, so events can be overwritten in subsequent calls to th
167
+ is endpoint.
168
+
169
+ This is a powerful and audit-safe mechanism to retroactively change usage data in cases where you need to:
170
+ - decrease historical usage consumption because of degraded service availability in your systems
171
+ - account for gaps from your usage reporting mechanism
172
+ - make point-in-time fixes for specific event records, while ret
173
+ aining the original time of usage and associated metadata.
174
+ This amendment API is designed with two explicit goals:
175
+ 1. Amendments are **always audit-safe**. The amendment process
176
+ will still retain original events in the timeframe, though they will be ignored for billing calculations. For auditing a
177
+ nd data fidelity purposes, Orb never overwrites or permanently deletes ingested usage data.
178
+ 2. Amendments always preser
179
+ ve data **consistency**. In other words, either an amendment is fully processed by the system (and the new events for th
180
+ e timeframe are honored rather than the existing ones) or the amendment request fails. To maintain this important proper
181
+ ty, Orb prevents _partial event ingestion_ on this endpoint.
182
+
183
+ ## Response semantics
184
+ - Either all events are ingested successfully, or all fail to ingest (returning a `4xx` or `5xx` response code).
185
+ - Any event that fails schema validation will lead to a `4xx` response. In this case, to maintain data consistency,
186
+ Orb will not ingest any events and will
187
+ also not deprecate existing events in the time period.
188
+ - You can assume that the amendment is successful on receipt of
189
+ a `2xx` response.While a successful response from this endpoint indicates that the new events have been ingested, updati
190
+ ng usage totals happens asynchronously and may be delayed by a few minutes.
191
+
192
+ As emphasized above, Orb will never show
193
+ an inconsistent state (e.g. in invoice previews or dashboards); either it will show the existing state (before the amend
194
+ ment) or the new state (with new events in the requested timeframe).
195
+
196
+ ## Sample request body
197
+ ```json
198
+ {
199
+ "events": [{
200
+ "event_name": "payment_processed",
201
+ "timestamp": "2022-03-24T07:15:00Z",
202
+ "properties": {
203
+ "amount": 100
204
+ }
205
+ }, {
206
+ "event_name": "payment_failed",
207
+ "timestamp": "2022-03-24T07:15:00Z",
208
+ "properties": {
209
+ "amount": 100
210
+ }
211
+ }]
212
+ }
213
+ ```
214
+
215
+ ## Request Validation
216
+ - The `timestamp` of
217
+ each event reported must fall within the bounds of `timeframe_start` and `timeframe_end`. As with ingestion, all timesta
218
+ mps must be sent in ISO8601 format with UTC timezone offset.
219
+ - Orb **does not accept an `idempotency_key`** with each
220
+ event in this endpoint, since the entirety of the event list must be ingested to ensure consistency. On retryable errors
221
+ , you should retry the request in its entirety, and assume that the amendment operation has not succeeded until receipt
222
+ of a `2xx`.
223
+
224
+ - Both `timeframe_start` and `timeframe_end` must be timestamps in the past. Furthermore, Orb will genera
225
+ lly validate that the `timeframe_start` and `timeframe_end` fall within the customer's _current_ subscription billing pe
226
+ riod. However, Orb does allow amendments while in the grace period of the previous billing period; in this instance, the
227
+ timeframe can start before the current period.
228
+
229
+ ## API Limits
230
+ Note that Orb does not currently enforce a hard rate-
231
+ limit for API usage or a maximum request payload size. Similar to the event ingestion API, this API is architected for h
232
+ igh-throughput ingestion. It is also safe to _programmatically_ call this endpoint if your system can automatically dete
233
+ ct a need for historical amendment.
234
+
235
+ In order to overwrite timeframes with a very large number of events, we suggest using multiple calls with small adjacent
236
+ (e.g. every hour) timeframes.
237
+
238
+ ### Example Usage
239
+
240
+ ```typescript
241
+ import { Orb } from "orb-billing";
242
+ import { AmendUsageExternalCustomerIdResponse } from "orb-billing/dist/sdk/models/operations";
243
+
244
+ const sdk = new Orb({
245
+ security: {
246
+ apiKeyAuth: "",
247
+ },
248
+ });
249
+
250
+ sdk.customer.amendByExternalId({
251
+ updateEvent: {
252
+ customerId: "woman",
253
+ eventName: "Orchestrator",
254
+ externalCustomerId: "Highway Gloves Androgynous",
255
+ properties: {},
256
+ timestamp: new Date("2020-12-09T16:09:53Z"),
257
+ },
258
+ externalCustomerId: "Hatchback Gloves powerless",
259
+ timeframeEnd: new Date("2021-05-18T15:51:03.859Z"),
260
+ timeframeStart: new Date("2022-10-03T18:15:53.258Z"),
261
+ }).then((res: AmendUsageExternalCustomerIdResponse) => {
262
+ if (res.statusCode == 200) {
263
+ // handle response
264
+ }
265
+ });
266
+ ```
267
+
268
+ ### Parameters
269
+
270
+ | Parameter | Type | Required | Description |
271
+ | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
272
+ | `request` | [operations.AmendUsageExternalCustomerIdRequest](../../models/operations/amendusageexternalcustomeridrequest.md) | :heavy_check_mark: | The request object to use for the request. |
273
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
274
+
275
+
276
+ ### Response
277
+
278
+ **Promise<[operations.AmendUsageExternalCustomerIdResponse](../../models/operations/amendusageexternalcustomeridresponse.md)>**
279
+
280
+
281
+ ## create
282
+
283
+ This operation is used to create an Orb customer, who is party to the core billing relationship. See
284
+ [Customer](../guides/concepts#customer) for an overview of the customer resource.
285
+
286
+ This endpoint is critical in the following Orb functionality:
287
+ * Automated charges can be configured by setting `payment_provider` and `payment_provider_id` to automatically
288
+ issue invoices
289
+ * [Customer ID Aliases](../guides/events-and-metrics/customer-aliases) can be configured by setting
290
+ `external_customer_id`
291
+ * [Timezone localization](../guides/product-catalog/timezones.md) can be configured on a per-customer basis by
292
+ setting the `timezone` parameter
293
+
294
+ ### Example Usage
295
+
296
+ ```typescript
297
+ import { Orb } from "orb-billing";
298
+ import { CreateCustomerResponse } from "orb-billing/dist/sdk/models/operations";
299
+ import { NewCustomerPaymentProvider } from "orb-billing/dist/sdk/models/shared";
300
+
301
+ const sdk = new Orb({
302
+ security: {
303
+ apiKeyAuth: "",
304
+ },
305
+ });
306
+
307
+ sdk.customer.create({
308
+ accountingSyncConfiguration: {
309
+ accountingProviders: [
310
+ {
311
+ externalProviderId: "bluetooth Extended",
312
+ providerType: "blue",
313
+ },
314
+ ],
315
+ excluded: false,
316
+ },
317
+ additionalEmails: [
318
+ "shred",
319
+ ],
320
+ autoCollection: false,
321
+ billingAddress: {
322
+ city: "Fort Silas",
323
+ country: "Afghanistan",
324
+ line1: "orange Northwest",
325
+ line2: "SUV quantify Polestar",
326
+ postalCode: "96302",
327
+ state: "South Intelligent Fish",
328
+ },
329
+ currency: "Barbados Dollar",
330
+ email: "Enoch41@hotmail.com",
331
+ emailDelivery: false,
332
+ externalCustomerId: "Metal",
333
+ metadata: {},
334
+ name: "Direct metrics",
335
+ paymentProvider: NewCustomerPaymentProvider.Quickbooks,
336
+ paymentProviderId: "Interactions Senior Mouse",
337
+ reportingConfiguration: {
338
+ exempt: false,
339
+ },
340
+ shippingAddress: {
341
+ city: "Fort Juddborough",
342
+ country: "Anguilla",
343
+ line1: "Investor",
344
+ line2: "azure Dollar",
345
+ postalCode: "72679",
346
+ state: "Sausages",
347
+ },
348
+ taxId: {
349
+ country: "Sao Tome and Principe",
350
+ type: "City meanwhile incompatible",
351
+ value: "Folk South digital",
352
+ },
353
+ timezone: "Europe/Ljubljana",
354
+ }).then((res: CreateCustomerResponse) => {
355
+ if (res.statusCode == 200) {
356
+ // handle response
357
+ }
358
+ });
359
+ ```
360
+
361
+ ### Parameters
362
+
363
+ | Parameter | Type | Required | Description |
364
+ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
365
+ | `request` | [shared.NewCustomer](../../models/shared/newcustomer.md) | :heavy_check_mark: | The request object to use for the request. |
366
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
367
+
368
+
369
+ ### Response
370
+
371
+ **Promise<[operations.CreateCustomerResponse](../../models/operations/createcustomerresponse.md)>**
372
+
373
+
374
+ ## createBalanceTransaction
375
+
376
+ Creates an immutable balance transaction that updates the customer's balance and returns back the newly created
377
+ transaction.
378
+
379
+ ### Example Usage
380
+
381
+ ```typescript
382
+ import { Orb } from "orb-billing";
383
+ import { CreateCustomerBalanceTransactionResponse } from "orb-billing/dist/sdk/models/operations";
384
+ import { NewCustomerBalanceTransactionType } from "orb-billing/dist/sdk/models/shared";
385
+
386
+ const sdk = new Orb({
387
+ security: {
388
+ apiKeyAuth: "",
389
+ },
390
+ });
391
+
392
+ sdk.customer.createBalanceTransaction({
393
+ newCustomerBalanceTransaction: {
394
+ amount: "221.39",
395
+ description: "Diverse contextually-based website",
396
+ type: NewCustomerBalanceTransactionType.Increment,
397
+ },
398
+ customerId: "Northwest",
399
+ }).then((res: CreateCustomerBalanceTransactionResponse) => {
400
+ if (res.statusCode == 200) {
401
+ // handle response
402
+ }
403
+ });
404
+ ```
405
+
406
+ ### Parameters
407
+
408
+ | Parameter | Type | Required | Description |
409
+ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
410
+ | `request` | [operations.CreateCustomerBalanceTransactionRequest](../../models/operations/createcustomerbalancetransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
411
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
412
+
413
+
414
+ ### Response
415
+
416
+ **Promise<[operations.CreateCustomerBalanceTransactionResponse](../../models/operations/createcustomerbalancetransactionresponse.md)>**
417
+
418
+
419
+ ## delete
420
+
421
+ This performs a deletion of this customer, its subscriptions, and its invoices.
422
+ This operation is irreversible. Note that this is a _soft_ deletion, but the data
423
+ will be inaccessible through the API and Orb dashboard. For hard-deletion, please
424
+ reach out to the Orb team directly.
425
+
426
+ **Note**: This operation happens asynchronously and can be expected to take a
427
+ few minutes to propagate to related resources. However, querying for the customer on
428
+ subsequent GET requests while deletion is in process will reflect its deletion with
429
+ a `deleted: true` property. Once the customer deletion has been fully processed,
430
+ the customer will not be returned in the API.
431
+
432
+
433
+ On successful processing, this returns an empty dictionary (`{}`) in the API.
434
+
435
+ ### Example Usage
436
+
437
+ ```typescript
438
+ import { Orb } from "orb-billing";
439
+ import { DeleteCustomerResponse } from "orb-billing/dist/sdk/models/operations";
440
+
441
+ const sdk = new Orb({
442
+ security: {
443
+ apiKeyAuth: "",
444
+ },
445
+ });
446
+
447
+ sdk.customer.delete({
448
+ customerId: "Van complexity",
449
+ }).then((res: DeleteCustomerResponse) => {
450
+ if (res.statusCode == 200) {
451
+ // handle response
452
+ }
453
+ });
454
+ ```
455
+
456
+ ### Parameters
457
+
458
+ | Parameter | Type | Required | Description |
459
+ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
460
+ | `request` | [operations.DeleteCustomerRequest](../../models/operations/deletecustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
461
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
462
+
463
+
464
+ ### Response
465
+
466
+ **Promise<[operations.DeleteCustomerResponse](../../models/operations/deletecustomerresponse.md)>**
467
+
468
+
469
+ ## fetch
470
+
471
+ This endpoint is used to fetch customer details given an identifier. If the `Customer` is in the process of being deleted,
472
+ only the properties `id` and `deleted: true` will be returned.
473
+
474
+ See the [Customer resource](../guides/core-concepts.mdx#customer) for a full discussion of the Customer model.
475
+
476
+ ### Example Usage
477
+
478
+ ```typescript
479
+ import { Orb } from "orb-billing";
480
+ import { FetchCustomerResponse } from "orb-billing/dist/sdk/models/operations";
481
+
482
+ const sdk = new Orb({
483
+ security: {
484
+ apiKeyAuth: "",
485
+ },
486
+ });
487
+
488
+ sdk.customer.fetch({
489
+ customerId: "Total Honda Southeast",
490
+ }).then((res: FetchCustomerResponse) => {
491
+ if (res.statusCode == 200) {
492
+ // handle response
493
+ }
494
+ });
495
+ ```
496
+
497
+ ### Parameters
498
+
499
+ | Parameter | Type | Required | Description |
500
+ | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
501
+ | `request` | [operations.FetchCustomerRequest](../../models/operations/fetchcustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
502
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
503
+
504
+
505
+ ### Response
506
+
507
+ **Promise<[operations.FetchCustomerResponse](../../models/operations/fetchcustomerresponse.md)>**
508
+
509
+
510
+ ## fetchByExternalId
511
+
512
+ This endpoint is used to fetch customer details given an `external_customer_id` (see
513
+ [Customer ID Aliases](../guides/events-and-metrics/customer-aliases)).
514
+
515
+ Note that the resource and semantics of this endpoint exactly mirror [Get Customer](fetch-customer).
516
+
517
+ ### Example Usage
518
+
519
+ ```typescript
520
+ import { Orb } from "orb-billing";
521
+ import { FetchCustomerExternalIdResponse } from "orb-billing/dist/sdk/models/operations";
522
+
523
+ const sdk = new Orb({
524
+ security: {
525
+ apiKeyAuth: "",
526
+ },
527
+ });
528
+
529
+ sdk.customer.fetchByExternalId({
530
+ externalCustomerId: "Loan Gasoline ping",
531
+ }).then((res: FetchCustomerExternalIdResponse) => {
532
+ if (res.statusCode == 200) {
533
+ // handle response
534
+ }
535
+ });
536
+ ```
537
+
538
+ ### Parameters
539
+
540
+ | Parameter | Type | Required | Description |
541
+ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
542
+ | `request` | [operations.FetchCustomerExternalIdRequest](../../models/operations/fetchcustomerexternalidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
543
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
544
+
545
+
546
+ ### Response
547
+
548
+ **Promise<[operations.FetchCustomerExternalIdResponse](../../models/operations/fetchcustomerexternalidresponse.md)>**
549
+
550
+
551
+ ## fetchCosts
552
+
553
+ This endpoint is used to fetch a day-by-day snapshot of a customer's costs in Orb, calculated by applying pricing
554
+ information to the underlying usage (see the [subscription usage endpoint](fetch-subscription-usage.api.mdx) to
555
+ fetch usage per metric, in usage units rather than a currency).
556
+
557
+ This endpoint can be leveraged for internal tooling and to provide a more transparent billing experience for your
558
+ end users:
559
+
560
+ 1. Understand the cost breakdown per line item historically and in real-time for the current billing period.
561
+ 2. Provide customer visibility into how different services are contributing to the overall invoice with a per-day
562
+ timeseries (as compared to the [upcoming invoice](fetch-upcoming-invoice) resource, which represents a snapshot
563
+ for the current period).
564
+ 3. Assess how minimums and discounts affect your customers by teasing apart costs directly as a result of usage,
565
+ as opposed to minimums and discounts at the plan and price level.
566
+ 4. Gain insight into key customer health metrics, such as the percent utilization of the minimum committed spend.
567
+
568
+ ## Fetching subscriptions
569
+ By default, this endpoint fetches the currently active subscription for the customer, and returns cost information
570
+ for the subscription's current billing period, broken down by each participating price. If there are no currently
571
+ active subscriptions, this will instead default to the most recently active subscription or return an empty series
572
+ if none are found. For example, if your plan charges for compute hours, job runs, and data syncs, then this endpoint
573
+ would provide a daily breakdown of your customer's cost for each of those axes.
574
+
575
+ If timeframe bounds are specified, Orb fetches all subscriptions that were active in that timeframe. If two
576
+ subscriptions overlap on a single day, costs from each price will be summed, and prices for both subscriptions will
577
+ be included in the breakdown.
578
+
579
+ ## Prepaid plans
580
+ For plans that include prices which deduct credits rather than accrue in-arrears charges in a billable currency,
581
+ this endpoint will return the total deduction amount, in credits, for the specified timeframe.
582
+
583
+ ## Cumulative subtotals and totals
584
+ Since the subtotal and total must factor in any billing-period level discounts and minimums, it's most meaningful
585
+ to consider costs relative to the start of the subscription's billing period. As a result, by default this endpoint
586
+ returns cumulative totals since the beginning of the billing period. In particular, the `timeframe_start` of a
587
+ returned timeframe window is *always* the beginning of the billing period and `timeframe_end` is incremented one day
588
+ at a time to build the result.
589
+
590
+ A customer that uses a few API calls a day but has a minimum commitment might exhibit the following pattern for
591
+ their subtotal and total in the first few days of the month. Here, we assume that each API call is $2.50, the
592
+ customer's plan has a monthly minimum of $50 for this price, and that the subscription's billing period bounds are
593
+ aligned to the first of the month:
594
+
595
+ | timeframe_start | timeframe_end | Cumulative usage | Subtotal | Total (incl. commitment) |
596
+ | -----------| ----------- | ----------- | ----------- |----------- |
597
+ | 2023-02-01 | 2023-02-02 | 9 | $22.50 | $50.00 |
598
+ | 2023-02-01 | 2023-02-03 | 19 | $47.50 | $50.00 |
599
+ | 2023-02-01 | 2023-02-04 | 20 | $50.00 | $50.00 |
600
+ | 2023-02-01 | 2023-02-05 | 28 | $70.00 | $70.00 |
601
+ | 2023-02-01 | 2023-02-06 | 36 | $90.00 | $90.00 |
602
+
603
+ ### Periodic values
604
+ When the query parameter `view_mode=periodic` is specified, Orb will return an incremental day-by-day view of costs.
605
+ In this case, there will always be a one-day difference between `timeframe_start` and `timeframe_end` for the
606
+ timeframes returned. This is a transform on top of the cumulative costs, calculated by taking the difference of each
607
+ timeframe with the last. Note that in the above example, the `Total` value would be 0 for the second two data
608
+ points, since the minimum commitment has not yet been hit and each day is not contributing anything to the total
609
+ cost.
610
+
611
+ ## Timeframe bounds
612
+ If no timeframe bounds are specified, the response will default to the current billing period for the customer's
613
+ subscription. For subscriptions that have ended, this will be the billing period when they were last active. If the
614
+ subscription starts or ends within the timeframe, the response will only include windows where the subscription is
615
+ active.
616
+
617
+ As noted above, `timeframe_start` for a given cumulative datapoint is always the beginning of the billing period,
618
+ and `timeframe_end` is incremented one day at a time to construct the response. When a timeframe is passed in that
619
+ is not aligned to the current subscription's billing period, the response will contain cumulative totals from
620
+ multiple billing periods.
621
+
622
+ Suppose the queried customer has a subscription aligned to the 15th of every month. If this endpoint is queried with
623
+ the date range `2023-06-01` - `2023-07-01`, the first data point will represent about half a billing period's worth
624
+ of costs, accounting for accruals from the start of the billing period and inclusive of the first day of the
625
+ timeframe (`timeframe_start = 2023-05-15 00:00:00`, `timeframe_end = 2023-06-02 00:00:00`)
626
+
627
+ | datapoint index | timeframe_start | timeframe_end |
628
+ | ----------- | -----------| ----------- |
629
+ | 0 | 2023-05-15 | 2023-06-02 |
630
+ | 1 | 2023-05-15 | 2023-06-03 |
631
+ | 2 | ... | ... |
632
+ | 3 | 2023-05-15 | 2023-06-14 |
633
+ | 4 | 2023-06-15 | 2023-06-16 |
634
+ | 5 | 2023-06-15 | 2023-06-17 |
635
+ | 6 | ... | ... |
636
+ | 7 | 2023-06-15 | 2023-07-01 |
637
+
638
+ You can see this sliced timeframe visualized [here](https://i.imgur.com/TXhYgme.png).
639
+
640
+ ## Grouping by custom attributes
641
+ In order to view costs grouped by a specific _attribute_ that each event is tagged with (i.e. `cluster`), you can
642
+ additionally specify a `group_by` key. The `group_by` key denotes the event property on which to group.
643
+
644
+ When returning grouped costs, a separate `price_group` object in the `per_price_costs` array is returned for each
645
+ value of the `group_by` key present in your events. The `subtotal` value of the `per_price_costs` object is the sum
646
+ of each `price_group`'s total.
647
+
648
+ Orb expects events will contain values in the `properties` dictionary that correspond to the `group_by` key
649
+ specified. By default, Orb will return a `null` group (i.e. events that match the metric but do not have the key
650
+ set). Currently, it is only possible to view costs grouped by a single attribute at a time.
651
+
652
+ ### Matrix prices
653
+ When a price uses matrix pricing, it's important to view costs grouped by those matrix dimensions. Orb will return
654
+ `price_groups` with the `grouping_key` and `secondary_grouping_key` based on the matrix price definition, for each
655
+ `grouping_value` and `secondary_grouping_value` available.
656
+
657
+ ### Example Usage
658
+
659
+ ```typescript
660
+ import { Orb } from "orb-billing";
661
+ import { FetchCustomerCostsResponse, FetchCustomerCostsViewModeViewMode } from "orb-billing/dist/sdk/models/operations";
662
+
663
+ const sdk = new Orb({
664
+ security: {
665
+ apiKeyAuth: "",
666
+ },
667
+ });
668
+
669
+ sdk.customer.fetchCosts({
670
+ customerId: "disintermediate",
671
+ groupBy: "Coupe North Handmade",
672
+ timeframeEnd: new Date("2022-03-01T05:00:00Z"),
673
+ timeframeStart: new Date("2022-02-01T05:00:00Z"),
674
+ viewMode: FetchCustomerCostsViewModeViewMode.Periodic,
675
+ }).then((res: FetchCustomerCostsResponse) => {
676
+ if (res.statusCode == 200) {
677
+ // handle response
678
+ }
679
+ });
680
+ ```
681
+
682
+ ### Parameters
683
+
684
+ | Parameter | Type | Required | Description |
685
+ | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
686
+ | `request` | [operations.FetchCustomerCostsRequest](../../models/operations/fetchcustomercostsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
687
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
688
+
689
+
690
+ ### Response
691
+
692
+ **Promise<[operations.FetchCustomerCostsResponse](../../models/operations/fetchcustomercostsresponse.md)>**
693
+
694
+
695
+ ## fetchCostsByExternalId
696
+
697
+ This endpoint is used to fetch a day-by-day snapshot of a customer's costs in Orb, calculated by applying pricing
698
+ information to the underlying usage (see the [subscription usage endpoint](fetch-subscription-usage.api.mdx) to
699
+ fetch usage per metric, in usage units rather than a currency).
700
+
701
+ This endpoint can be leveraged for internal tooling and to provide a more transparent billing experience for your
702
+ end users:
703
+
704
+ 1. Understand the cost breakdown per line item historically and in real-time for the current billing period.
705
+ 2. Provide customer visibility into how different services are contributing to the overall invoice with a per-day
706
+ timeseries (as compared to the [upcoming invoice](fetch-upcoming-invoice) resource, which represents a snapshot
707
+ for the current period).
708
+ 3. Assess how minimums and discounts affect your customers by teasing apart costs directly as a result of usage,
709
+ as opposed to minimums and discounts at the plan and price level.
710
+ 4. Gain insight into key customer health metrics, such as the percent utilization of the minimum committed spend.
711
+
712
+ ## Fetching subscriptions
713
+ By default, this endpoint fetches the currently active subscription for the customer, and returns cost information
714
+ for the subscription's current billing period, broken down by each participating price. If there are no currently
715
+ active subscriptions, this will instead default to the most recently active subscription or return an empty series
716
+ if none are found. For example, if your plan charges for compute hours, job runs, and data syncs, then this endpoint
717
+ would provide a daily breakdown of your customer's cost for each of those axes.
718
+
719
+ If timeframe bounds are specified, Orb fetches all subscriptions that were active in that timeframe. If two
720
+ subscriptions overlap on a single day, costs from each price will be summed, and prices for both subscriptions will
721
+ be included in the breakdown.
722
+
723
+ ## Prepaid plans
724
+ For plans that include prices which deduct credits rather than accrue in-arrears charges in a billable currency,
725
+ this endpoint will return the total deduction amount, in credits, for the specified timeframe.
726
+
727
+ ## Cumulative subtotals and totals
728
+ Since the subtotal and total must factor in any billing-period level discounts and minimums, it's most meaningful
729
+ to consider costs relative to the start of the subscription's billing period. As a result, by default this endpoint
730
+ returns cumulative totals since the beginning of the billing period. In particular, the `timeframe_start` of a
731
+ returned timeframe window is *always* the beginning of the billing period and `timeframe_end` is incremented one day
732
+ at a time to build the result.
733
+
734
+ A customer that uses a few API calls a day but has a minimum commitment might exhibit the following pattern for
735
+ their subtotal and total in the first few days of the month. Here, we assume that each API call is $2.50, the
736
+ customer's plan has a monthly minimum of $50 for this price, and that the subscription's billing period bounds are
737
+ aligned to the first of the month:
738
+
739
+ | timeframe_start | timeframe_end | Cumulative usage | Subtotal | Total (incl. commitment) |
740
+ | -----------| ----------- | ----------- | ----------- |----------- |
741
+ | 2023-02-01 | 2023-02-02 | 9 | $22.50 | $50.00 |
742
+ | 2023-02-01 | 2023-02-03 | 19 | $47.50 | $50.00 |
743
+ | 2023-02-01 | 2023-02-04 | 20 | $50.00 | $50.00 |
744
+ | 2023-02-01 | 2023-02-05 | 28 | $70.00 | $70.00 |
745
+ | 2023-02-01 | 2023-02-06 | 36 | $90.00 | $90.00 |
746
+
747
+ ### Periodic values
748
+ When the query parameter `view_mode=periodic` is specified, Orb will return an incremental day-by-day view of costs.
749
+ In this case, there will always be a one-day difference between `timeframe_start` and `timeframe_end` for the
750
+ timeframes returned. This is a transform on top of the cumulative costs, calculated by taking the difference of each
751
+ timeframe with the last. Note that in the above example, the `Total` value would be 0 for the second two data
752
+ points, since the minimum commitment has not yet been hit and each day is not contributing anything to the total
753
+ cost.
754
+
755
+ ## Timeframe bounds
756
+ If no timeframe bounds are specified, the response will default to the current billing period for the customer's
757
+ subscription. For subscriptions that have ended, this will be the billing period when they were last active. If the
758
+ subscription starts or ends within the timeframe, the response will only include windows where the subscription is
759
+ active.
760
+
761
+ As noted above, `timeframe_start` for a given cumulative datapoint is always the beginning of the billing period,
762
+ and `timeframe_end` is incremented one day at a time to construct the response. When a timeframe is passed in that
763
+ is not aligned to the current subscription's billing period, the response will contain cumulative totals from
764
+ multiple billing periods.
765
+
766
+ Suppose the queried customer has a subscription aligned to the 15th of every month. If this endpoint is queried with
767
+ the date range `2023-06-01` - `2023-07-01`, the first data point will represent about half a billing period's worth
768
+ of costs, accounting for accruals from the start of the billing period and inclusive of the first day of the
769
+ timeframe (`timeframe_start = 2023-05-15 00:00:00`, `timeframe_end = 2023-06-02 00:00:00`)
770
+
771
+ | datapoint index | timeframe_start | timeframe_end |
772
+ | ----------- | -----------| ----------- |
773
+ | 0 | 2023-05-15 | 2023-06-02 |
774
+ | 1 | 2023-05-15 | 2023-06-03 |
775
+ | 2 | ... | ... |
776
+ | 3 | 2023-05-15 | 2023-06-14 |
777
+ | 4 | 2023-06-15 | 2023-06-16 |
778
+ | 5 | 2023-06-15 | 2023-06-17 |
779
+ | 6 | ... | ... |
780
+ | 7 | 2023-06-15 | 2023-07-01 |
781
+
782
+ You can see this sliced timeframe visualized [here](https://i.imgur.com/TXhYgme.png).
783
+
784
+ ## Grouping by custom attributes
785
+ In order to view costs grouped by a specific _attribute_ that each event is tagged with (i.e. `cluster`), you can
786
+ additionally specify a `group_by` key. The `group_by` key denotes the event property on which to group.
787
+
788
+ When returning grouped costs, a separate `price_group` object in the `per_price_costs` array is returned for each
789
+ value of the `group_by` key present in your events. The `subtotal` value of the `per_price_costs` object is the sum
790
+ of each `price_group`'s total.
791
+
792
+ Orb expects events will contain values in the `properties` dictionary that correspond to the `group_by` key
793
+ specified. By default, Orb will return a `null` group (i.e. events that match the metric but do not have the key
794
+ set). Currently, it is only possible to view costs grouped by a single attribute at a time.
795
+
796
+ ### Matrix prices
797
+ When a price uses matrix pricing, it's important to view costs grouped by those matrix dimensions. Orb will return
798
+ `price_groups` with the `grouping_key` and `secondary_grouping_key` based on the matrix price definition, for each
799
+ `grouping_value` and `secondary_grouping_value` available.
800
+
801
+ ### Example Usage
802
+
803
+ ```typescript
804
+ import { Orb } from "orb-billing";
805
+ import {
806
+ FetchCustomerCostsExternalIdResponse,
807
+ FetchCustomerCostsExternalIdViewModeViewMode,
808
+ } from "orb-billing/dist/sdk/models/operations";
809
+
810
+ const sdk = new Orb({
811
+ security: {
812
+ apiKeyAuth: "",
813
+ },
814
+ });
815
+
816
+ sdk.customer.fetchCostsByExternalId({
817
+ externalCustomerId: "TLS Gadolinium Music",
818
+ groupBy: "Sedan Tuna",
819
+ timeframeEnd: new Date("2022-03-01T05:00:00Z"),
820
+ timeframeStart: new Date("2022-02-01T05:00:00Z"),
821
+ viewMode: FetchCustomerCostsExternalIdViewModeViewMode.Periodic,
822
+ }).then((res: FetchCustomerCostsExternalIdResponse) => {
823
+ if (res.statusCode == 200) {
824
+ // handle response
825
+ }
826
+ });
827
+ ```
828
+
829
+ ### Parameters
830
+
831
+ | Parameter | Type | Required | Description |
832
+ | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
833
+ | `request` | [operations.FetchCustomerCostsExternalIdRequest](../../models/operations/fetchcustomercostsexternalidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
834
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
835
+
836
+
837
+ ### Response
838
+
839
+ **Promise<[operations.FetchCustomerCostsExternalIdResponse](../../models/operations/fetchcustomercostsexternalidresponse.md)>**
840
+
841
+
842
+ ## list
843
+
844
+ This endpoint returns a list of all customers for an account.
845
+ The list of customers is ordered starting from the most recently created customer.
846
+ This endpoint follows Orb's [standardized pagination format](../reference/pagination).
847
+
848
+ See [Customer](../guides/concepts#customer) for an overview of the customer model.
849
+
850
+ ### Example Usage
851
+
852
+ ```typescript
853
+ import { Orb } from "orb-billing";
854
+ import { ListCustomersResponse } from "orb-billing/dist/sdk/models/operations";
855
+
856
+ const sdk = new Orb({
857
+ security: {
858
+ apiKeyAuth: "",
859
+ },
860
+ });
861
+
862
+ sdk.customer.list({
863
+ createdAtGt: new Date("2023-04-22T14:13:10.937Z"),
864
+ createdAtGte: new Date("2021-04-20T09:15:20.369Z"),
865
+ createdAtLt: new Date("2022-08-23T06:18:16.401Z"),
866
+ createdAtLte: new Date("2021-10-10T03:01:48.624Z"),
867
+ cursor: "Canada that orchid",
868
+ limit: 282238,
869
+ }).then((res: ListCustomersResponse) => {
870
+ if (res.statusCode == 200) {
871
+ // handle response
872
+ }
873
+ });
874
+ ```
875
+
876
+ ### Parameters
877
+
878
+ | Parameter | Type | Required | Description |
879
+ | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
880
+ | `request` | [operations.ListCustomersRequest](../../models/operations/listcustomersrequest.md) | :heavy_check_mark: | The request object to use for the request. |
881
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
882
+
883
+
884
+ ### Response
885
+
886
+ **Promise<[operations.ListCustomersResponse](../../models/operations/listcustomersresponse.md)>**
887
+
888
+
889
+ ## listBalanceTransactions
890
+
891
+ ## The customer balance
892
+
893
+ The customer balance is an amount in the customer's currency, which Orb automatically applies to subsequent
894
+ invoices. This balance can be adjusted manually via Orb's webapp on the customer details page. You can use this
895
+ balance to provide a fixed mid-period credit to the customer. Commonly, this is done due to system downtime/SLA
896
+ violation, or an adhoc adjustment discussed with the customer.
897
+
898
+ If the balance is a positive value at the time of invoicing, it represents that the customer has credit that should
899
+ be used to offset the amount due on the next issued invoice. In this case, Orb will automatically reduce the next
900
+ invoice by the balance amount, and roll over any remaining balance if the invoice is fully discounted.
901
+
902
+ If the balance is a negative value at the time of invoicing, Orb will increase the invoice's amount due with a
903
+ positive adjustment, and reset the balance to 0.
904
+
905
+ This endpoint retrieves all customer balance transactions in reverse chronological order for a single customer,
906
+ providing a complete audit trail of all adjustments and invoice applications.
907
+
908
+ ## Eligibility
909
+
910
+ The customer balance can only be applied to invoices or adjusted manually if invoices are not synced to a separate
911
+ invoicing provider. If a payment gateway such as Stripe is used, the balance will be applied to the invoice before
912
+ forwarding payment to the gateway.
913
+
914
+ ### Example Usage
915
+
916
+ ```typescript
917
+ import { Orb } from "orb-billing";
918
+ import { ListBalanceTransactionsResponse } from "orb-billing/dist/sdk/models/operations";
919
+
920
+ const sdk = new Orb({
921
+ security: {
922
+ apiKeyAuth: "",
923
+ },
924
+ });
925
+
926
+ sdk.customer.listBalanceTransactions({
927
+ cursor: "than",
928
+ customerId: "Facilitator extension",
929
+ limit: 717443,
930
+ operationTimeGt: new Date("2021-01-05T14:12:58.642Z"),
931
+ operationTimeGte: new Date("2021-07-29T02:13:45.075Z"),
932
+ operationTimeLt: new Date("2021-01-31T23:25:30.251Z"),
933
+ operationTimeLte: new Date("2023-04-23T18:28:37.185Z"),
934
+ }).then((res: ListBalanceTransactionsResponse) => {
935
+ if (res.statusCode == 200) {
936
+ // handle response
937
+ }
938
+ });
939
+ ```
940
+
941
+ ### Parameters
942
+
943
+ | Parameter | Type | Required | Description |
944
+ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
945
+ | `request` | [operations.ListBalanceTransactionsRequest](../../models/operations/listbalancetransactionsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
946
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
947
+
948
+
949
+ ### Response
950
+
951
+ **Promise<[operations.ListBalanceTransactionsResponse](../../models/operations/listbalancetransactionsresponse.md)>**
952
+
953
+
954
+ ## updateByExternalId
955
+
956
+ This endpoint is used to update customer details given an `external_customer_id`
957
+ (see [Customer ID Aliases](../guides/events-and-metrics/customer-aliases)).
958
+ Note that the resource and semantics of this
959
+ endpoint exactly mirror [Update Customer](update-customer).
960
+
961
+ ### Example Usage
962
+
963
+ ```typescript
964
+ import { Orb } from "orb-billing";
965
+ import { UpdateCustomerExternalIdResponse } from "orb-billing/dist/sdk/models/operations";
966
+ import { EditCustomerPaymentProvider } from "orb-billing/dist/sdk/models/shared";
967
+
968
+ const sdk = new Orb({
969
+ security: {
970
+ apiKeyAuth: "",
971
+ },
972
+ });
973
+
974
+ sdk.customer.updateByExternalId({
975
+ editCustomer: {
976
+ accountingSyncConfiguration: {
977
+ accountingProviders: [
978
+ {
979
+ externalProviderId: "Concrete Extended Rock",
980
+ providerType: "Rap showboat",
981
+ },
982
+ ],
983
+ excluded: false,
984
+ },
985
+ additionalEmails: [
986
+ "Peso",
987
+ ],
988
+ autoCollection: false,
989
+ billingAddress: {
990
+ city: "Biankafurt",
991
+ country: "Northern Mariana Islands",
992
+ line1: "invoice",
993
+ line2: "invoice web",
994
+ postalCode: "37946-8361",
995
+ state: "Wagon",
996
+ },
997
+ currency: "Namibia Dollar",
998
+ email: "Van84@hotmail.com",
999
+ emailDelivery: false,
1000
+ externalCustomerId: "Home",
1001
+ metadata: {},
1002
+ name: "grey",
1003
+ paymentProvider: EditCustomerPaymentProvider.BillCom,
1004
+ paymentProviderId: "composite",
1005
+ reportingConfiguration: {
1006
+ exempt: false,
1007
+ },
1008
+ shippingAddress: {
1009
+ city: "East Kenna",
1010
+ country: "Monaco",
1011
+ line1: "Investment",
1012
+ line2: "bypass Tactics",
1013
+ postalCode: "39092",
1014
+ state: "Steel",
1015
+ },
1016
+ taxId: {
1017
+ country: "Heard Island and McDonald Islands",
1018
+ type: "Producer",
1019
+ value: "Jannie",
1020
+ },
1021
+ },
1022
+ externalCustomerId: "mobile",
1023
+ }).then((res: UpdateCustomerExternalIdResponse) => {
1024
+ if (res.statusCode == 200) {
1025
+ // handle response
1026
+ }
1027
+ });
1028
+ ```
1029
+
1030
+ ### Parameters
1031
+
1032
+ | Parameter | Type | Required | Description |
1033
+ | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
1034
+ | `request` | [operations.UpdateCustomerExternalIdRequest](../../models/operations/updatecustomerexternalidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1035
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
1036
+
1037
+
1038
+ ### Response
1039
+
1040
+ **Promise<[operations.UpdateCustomerExternalIdResponse](../../models/operations/updatecustomerexternalidresponse.md)>**
1041
+
1042
+
1043
+ ## updateCustomer
1044
+
1045
+ This endpoint can be used to update the `payment_provider`, `payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
1046
+ `auto_collection`, `metadata`, `shipping_address`, `billing_address`, and `additional_emails` of an existing customer.
1047
+ "Other fields on a customer are currently immutable.
1048
+
1049
+ ### Example Usage
1050
+
1051
+ ```typescript
1052
+ import { Orb } from "orb-billing";
1053
+ import { UpdateCustomerResponse } from "orb-billing/dist/sdk/models/operations";
1054
+ import { EditCustomerPaymentProvider } from "orb-billing/dist/sdk/models/shared";
1055
+
1056
+ const sdk = new Orb({
1057
+ security: {
1058
+ apiKeyAuth: "",
1059
+ },
1060
+ });
1061
+
1062
+ sdk.customer.updateCustomer({
1063
+ editCustomer: {
1064
+ accountingSyncConfiguration: {
1065
+ accountingProviders: [
1066
+ {
1067
+ externalProviderId: "Electric",
1068
+ providerType: "Mobility whitewash",
1069
+ },
1070
+ ],
1071
+ excluded: false,
1072
+ },
1073
+ additionalEmails: [
1074
+ "Southeast",
1075
+ ],
1076
+ autoCollection: false,
1077
+ billingAddress: {
1078
+ city: "Daynastad",
1079
+ country: "Dominican Republic",
1080
+ line1: "Car Rufiyaa",
1081
+ line2: "deposit synergize",
1082
+ postalCode: "02403",
1083
+ state: "oblong reckless Molybdenum",
1084
+ },
1085
+ currency: "UIC-Franc",
1086
+ email: "Taryn87@gmail.com",
1087
+ emailDelivery: false,
1088
+ externalCustomerId: "circuit Account",
1089
+ metadata: {},
1090
+ name: "South circumstance Corporate",
1091
+ paymentProvider: EditCustomerPaymentProvider.Quickbooks,
1092
+ paymentProviderId: "GB female well",
1093
+ reportingConfiguration: {
1094
+ exempt: false,
1095
+ },
1096
+ shippingAddress: {
1097
+ city: "New Estelleburgh",
1098
+ country: "Cape Verde",
1099
+ line1: "dole payment",
1100
+ line2: "Durham Funk",
1101
+ postalCode: "54768-2343",
1102
+ state: "plum bus Tuna",
1103
+ },
1104
+ taxId: {
1105
+ country: "Italy",
1106
+ type: "wherever Molybdenum",
1107
+ value: "SUV Lesotho",
1108
+ },
1109
+ },
1110
+ customerId: "Global Hop Pine",
1111
+ }).then((res: UpdateCustomerResponse) => {
1112
+ if (res.statusCode == 200) {
1113
+ // handle response
1114
+ }
1115
+ });
1116
+ ```
1117
+
1118
+ ### Parameters
1119
+
1120
+ | Parameter | Type | Required | Description |
1121
+ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
1122
+ | `request` | [operations.UpdateCustomerRequest](../../models/operations/updatecustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1123
+ | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
1124
+
1125
+
1126
+ ### Response
1127
+
1128
+ **Promise<[operations.UpdateCustomerResponse](../../models/operations/updatecustomerresponse.md)>**
1129
+