orb-billing 1.21.0 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1115) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +201 -0
  3. package/README.md +196 -192
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +90 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +239 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +832 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +801 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +131 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +298 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +271 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +210 -0
  87. package/index.d.ts +210 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +153 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +125 -0
  92. package/index.mjs.map +1 -0
  93. package/package.json +90 -27
  94. package/pagination.d.ts +31 -0
  95. package/pagination.d.ts.map +1 -0
  96. package/pagination.js +34 -0
  97. package/pagination.js.map +1 -0
  98. package/pagination.mjs +30 -0
  99. package/pagination.mjs.map +1 -0
  100. package/resource.d.ts +12 -0
  101. package/resource.d.ts.map +1 -0
  102. package/resource.js +17 -0
  103. package/resource.js.map +1 -0
  104. package/resource.mjs +13 -0
  105. package/resource.mjs.map +1 -0
  106. package/resources/coupons/coupons.d.ts +114 -0
  107. package/resources/coupons/coupons.d.ts.map +1 -0
  108. package/resources/coupons/coupons.js +76 -0
  109. package/resources/coupons/coupons.js.map +1 -0
  110. package/resources/coupons/coupons.mjs +48 -0
  111. package/resources/coupons/coupons.mjs.map +1 -0
  112. package/resources/coupons/index.d.ts +3 -0
  113. package/resources/coupons/index.d.ts.map +1 -0
  114. package/resources/coupons/index.js +10 -0
  115. package/resources/coupons/index.js.map +1 -0
  116. package/resources/coupons/index.mjs +4 -0
  117. package/resources/coupons/index.mjs.map +1 -0
  118. package/resources/coupons/subscriptions.d.ts +23 -0
  119. package/resources/coupons/subscriptions.d.ts.map +1 -0
  120. package/resources/coupons/subscriptions.js +20 -0
  121. package/resources/coupons/subscriptions.js.map +1 -0
  122. package/resources/coupons/subscriptions.mjs +16 -0
  123. package/resources/coupons/subscriptions.mjs.map +1 -0
  124. package/resources/credit-notes.d.ts +136 -0
  125. package/resources/credit-notes.d.ts.map +1 -0
  126. package/resources/credit-notes.js +54 -0
  127. package/resources/credit-notes.js.map +1 -0
  128. package/resources/credit-notes.mjs +26 -0
  129. package/resources/credit-notes.mjs.map +1 -0
  130. package/resources/customers/balance-transactions.d.ts +159 -0
  131. package/resources/customers/balance-transactions.d.ts.map +1 -0
  132. package/resources/customers/balance-transactions.js +54 -0
  133. package/resources/customers/balance-transactions.js.map +1 -0
  134. package/resources/customers/balance-transactions.mjs +26 -0
  135. package/resources/customers/balance-transactions.mjs.map +1 -0
  136. package/resources/customers/costs.d.ts +915 -0
  137. package/resources/customers/costs.d.ts.map +1 -0
  138. package/resources/customers/costs.js +24 -0
  139. package/resources/customers/costs.js.map +1 -0
  140. package/resources/customers/costs.mjs +20 -0
  141. package/resources/customers/costs.mjs.map +1 -0
  142. package/resources/customers/credits/credits.d.ts +58 -0
  143. package/resources/customers/credits/credits.d.ts.map +1 -0
  144. package/resources/customers/credits/credits.js +68 -0
  145. package/resources/customers/credits/credits.js.map +1 -0
  146. package/resources/customers/credits/credits.mjs +39 -0
  147. package/resources/customers/credits/credits.mjs.map +1 -0
  148. package/resources/customers/credits/index.d.ts +3 -0
  149. package/resources/customers/credits/index.d.ts.map +1 -0
  150. package/resources/customers/credits/index.js +13 -0
  151. package/resources/customers/credits/index.js.map +1 -0
  152. package/resources/customers/credits/index.mjs +4 -0
  153. package/resources/customers/credits/index.mjs.map +1 -0
  154. package/resources/customers/credits/ledger.d.ts +1537 -0
  155. package/resources/customers/credits/ledger.d.ts.map +1 -0
  156. package/resources/customers/credits/ledger.js +291 -0
  157. package/resources/customers/credits/ledger.js.map +1 -0
  158. package/resources/customers/credits/ledger.mjs +262 -0
  159. package/resources/customers/credits/ledger.mjs.map +1 -0
  160. package/resources/customers/customers.d.ts +524 -0
  161. package/resources/customers/customers.d.ts.map +1 -0
  162. package/resources/customers/customers.js +135 -0
  163. package/resources/customers/customers.js.map +1 -0
  164. package/resources/customers/customers.mjs +107 -0
  165. package/resources/customers/customers.mjs.map +1 -0
  166. package/resources/customers/index.d.ts +6 -0
  167. package/resources/customers/index.d.ts.map +1 -0
  168. package/resources/customers/index.js +19 -0
  169. package/resources/customers/index.js.map +1 -0
  170. package/resources/customers/index.mjs +7 -0
  171. package/resources/customers/index.mjs.map +1 -0
  172. package/resources/customers/usage.d.ts +306 -0
  173. package/resources/customers/usage.d.ts.map +1 -0
  174. package/resources/customers/usage.js +223 -0
  175. package/resources/customers/usage.js.map +1 -0
  176. package/resources/customers/usage.mjs +219 -0
  177. package/resources/customers/usage.mjs.map +1 -0
  178. package/resources/events/backfills.d.ts +250 -0
  179. package/resources/events/backfills.d.ts.map +1 -0
  180. package/resources/events/backfills.js +104 -0
  181. package/resources/events/backfills.js.map +1 -0
  182. package/resources/events/backfills.mjs +76 -0
  183. package/resources/events/backfills.mjs.map +1 -0
  184. package/resources/events/events.d.ts +547 -0
  185. package/resources/events/events.d.ts.map +1 -0
  186. package/resources/events/events.js +354 -0
  187. package/resources/events/events.js.map +1 -0
  188. package/resources/events/events.mjs +327 -0
  189. package/resources/events/events.mjs.map +1 -0
  190. package/resources/events/index.d.ts +3 -0
  191. package/resources/events/index.d.ts.map +1 -0
  192. package/resources/events/index.js +10 -0
  193. package/resources/events/index.js.map +1 -0
  194. package/resources/events/index.mjs +4 -0
  195. package/resources/events/index.mjs.map +1 -0
  196. package/resources/index.d.ts +13 -0
  197. package/resources/index.d.ts.map +1 -0
  198. package/resources/index.js +39 -0
  199. package/resources/index.js.map +1 -0
  200. package/resources/index.mjs +14 -0
  201. package/resources/index.mjs.map +1 -0
  202. package/resources/invoice-line-items.d.ts +434 -0
  203. package/resources/invoice-line-items.d.ts.map +1 -0
  204. package/resources/invoice-line-items.js +18 -0
  205. package/resources/invoice-line-items.js.map +1 -0
  206. package/resources/invoice-line-items.mjs +14 -0
  207. package/resources/invoice-line-items.mjs.map +1 -0
  208. package/resources/invoices.d.ts +1541 -0
  209. package/resources/invoices.d.ts.map +1 -0
  210. package/resources/invoices.js +96 -0
  211. package/resources/invoices.js.map +1 -0
  212. package/resources/invoices.mjs +68 -0
  213. package/resources/invoices.mjs.map +1 -0
  214. package/resources/items.d.ts +61 -0
  215. package/resources/items.d.ts.map +1 -0
  216. package/resources/items.js +53 -0
  217. package/resources/items.js.map +1 -0
  218. package/resources/items.mjs +25 -0
  219. package/resources/items.mjs.map +1 -0
  220. package/resources/metrics.d.ts +176 -0
  221. package/resources/metrics.d.ts.map +1 -0
  222. package/resources/metrics.js +63 -0
  223. package/resources/metrics.js.map +1 -0
  224. package/resources/metrics.mjs +35 -0
  225. package/resources/metrics.mjs.map +1 -0
  226. package/resources/plans/external-plan-id.d.ts +50 -0
  227. package/resources/plans/external-plan-id.d.ts.map +1 -0
  228. package/resources/plans/external-plan-id.js +35 -0
  229. package/resources/plans/external-plan-id.js.map +1 -0
  230. package/resources/plans/external-plan-id.mjs +31 -0
  231. package/resources/plans/external-plan-id.mjs.map +1 -0
  232. package/resources/plans/index.d.ts +3 -0
  233. package/resources/plans/index.d.ts.map +1 -0
  234. package/resources/plans/index.js +10 -0
  235. package/resources/plans/index.js.map +1 -0
  236. package/resources/plans/index.mjs +4 -0
  237. package/resources/plans/index.mjs.map +1 -0
  238. package/resources/plans/plans.d.ts +256 -0
  239. package/resources/plans/plans.d.ts.map +1 -0
  240. package/resources/plans/plans.js +87 -0
  241. package/resources/plans/plans.js.map +1 -0
  242. package/resources/plans/plans.mjs +59 -0
  243. package/resources/plans/plans.mjs.map +1 -0
  244. package/resources/prices/external-price-id.d.ts +12 -0
  245. package/resources/prices/external-price-id.d.ts.map +1 -0
  246. package/resources/prices/external-price-id.js +17 -0
  247. package/resources/prices/external-price-id.js.map +1 -0
  248. package/resources/prices/external-price-id.mjs +13 -0
  249. package/resources/prices/external-price-id.mjs.map +1 -0
  250. package/resources/prices/index.d.ts +3 -0
  251. package/resources/prices/index.d.ts.map +1 -0
  252. package/resources/prices/index.js +10 -0
  253. package/resources/prices/index.js.map +1 -0
  254. package/resources/prices/index.mjs +4 -0
  255. package/resources/prices/index.mjs.map +1 -0
  256. package/resources/prices/prices.d.ts +1872 -0
  257. package/resources/prices/prices.d.ts.map +1 -0
  258. package/resources/prices/prices.js +74 -0
  259. package/resources/prices/prices.js.map +1 -0
  260. package/resources/prices/prices.mjs +46 -0
  261. package/resources/prices/prices.mjs.map +1 -0
  262. package/resources/subscriptions.d.ts +3752 -0
  263. package/resources/subscriptions.d.ts.map +1 -0
  264. package/resources/subscriptions.js +254 -0
  265. package/resources/subscriptions.js.map +1 -0
  266. package/resources/subscriptions.mjs +225 -0
  267. package/resources/subscriptions.mjs.map +1 -0
  268. package/resources/top-level.d.ts +21 -0
  269. package/resources/top-level.d.ts.map +1 -0
  270. package/resources/top-level.js +22 -0
  271. package/resources/top-level.js.map +1 -0
  272. package/resources/top-level.mjs +18 -0
  273. package/resources/top-level.mjs.map +1 -0
  274. package/shims/node.d.ts +29 -0
  275. package/shims/node.d.ts.map +1 -0
  276. package/shims/node.js +31 -0
  277. package/shims/node.js.map +1 -0
  278. package/shims/node.mjs +5 -0
  279. package/shims/node.mjs.map +1 -0
  280. package/shims/web.d.ts +26 -0
  281. package/shims/web.d.ts.map +1 -0
  282. package/shims/web.js +31 -0
  283. package/shims/web.js.map +1 -0
  284. package/shims/web.mjs +5 -0
  285. package/shims/web.mjs.map +1 -0
  286. package/src/_shims/MultipartBody.ts +9 -0
  287. package/src/_shims/README.md +46 -0
  288. package/src/_shims/auto/runtime-bun.ts +4 -0
  289. package/src/_shims/auto/runtime-node.ts +4 -0
  290. package/src/_shims/auto/runtime.ts +4 -0
  291. package/src/_shims/auto/types-node.ts +4 -0
  292. package/src/_shims/auto/types.d.ts +101 -0
  293. package/src/_shims/auto/types.js +3 -0
  294. package/src/_shims/auto/types.mjs +3 -0
  295. package/src/_shims/bun-runtime.ts +14 -0
  296. package/src/_shims/index.d.ts +81 -0
  297. package/src/_shims/index.js +13 -0
  298. package/src/_shims/index.mjs +7 -0
  299. package/src/_shims/manual-types.d.ts +12 -0
  300. package/src/_shims/manual-types.js +3 -0
  301. package/src/_shims/manual-types.mjs +3 -0
  302. package/src/_shims/node-runtime.ts +83 -0
  303. package/src/_shims/node-types.d.ts +42 -0
  304. package/src/_shims/node-types.js +3 -0
  305. package/src/_shims/node-types.mjs +3 -0
  306. package/src/_shims/registry.ts +67 -0
  307. package/src/_shims/web-runtime.ts +103 -0
  308. package/src/_shims/web-types.d.ts +83 -0
  309. package/src/_shims/web-types.js +3 -0
  310. package/src/_shims/web-types.mjs +3 -0
  311. package/src/core.ts +1103 -0
  312. package/src/error.ts +469 -0
  313. package/src/index.ts +305 -0
  314. package/src/pagination.ts +63 -0
  315. package/src/resource.ts +24 -0
  316. package/src/resources/coupons/coupons.ts +150 -0
  317. package/src/resources/coupons/index.ts +4 -0
  318. package/src/resources/coupons/subscriptions.ts +45 -0
  319. package/src/resources/credit-notes.ts +184 -0
  320. package/src/resources/customers/balance-transactions.ts +222 -0
  321. package/src/resources/customers/costs.ts +991 -0
  322. package/src/resources/customers/credits/credits.ts +113 -0
  323. package/src/resources/customers/credits/index.ts +24 -0
  324. package/src/resources/customers/credits/ledger.ts +2254 -0
  325. package/src/resources/customers/customers.ts +734 -0
  326. package/src/resources/customers/index.ts +42 -0
  327. package/src/resources/customers/usage.ts +350 -0
  328. package/src/resources/events/backfills.ts +324 -0
  329. package/src/resources/events/events.ts +635 -0
  330. package/src/resources/events/index.ts +23 -0
  331. package/src/resources/index.ts +72 -0
  332. package/src/resources/invoice-line-items.ts +502 -0
  333. package/src/resources/invoices.ts +1906 -0
  334. package/src/resources/items.ts +106 -0
  335. package/src/resources/metrics.ts +264 -0
  336. package/src/resources/plans/external-plan-id.ts +73 -0
  337. package/src/resources/plans/index.ts +4 -0
  338. package/src/resources/plans/plans.ts +350 -0
  339. package/src/resources/prices/external-price-id.ts +16 -0
  340. package/src/resources/prices/index.ts +4 -0
  341. package/src/resources/prices/prices.ts +2466 -0
  342. package/src/resources/subscriptions.ts +4590 -0
  343. package/src/resources/top-level.ts +27 -0
  344. package/src/shims/node.ts +50 -0
  345. package/src/shims/web.ts +50 -0
  346. package/src/tsconfig.json +11 -0
  347. package/src/uploads.ts +246 -0
  348. package/src/version.ts +1 -0
  349. package/uploads.d.ts +75 -0
  350. package/uploads.d.ts.map +1 -0
  351. package/uploads.js +162 -0
  352. package/uploads.js.map +1 -0
  353. package/uploads.mjs +149 -0
  354. package/uploads.mjs.map +1 -0
  355. package/version.d.ts +2 -0
  356. package/version.d.ts.map +1 -0
  357. package/version.js +5 -0
  358. package/version.js.map +1 -0
  359. package/version.mjs +2 -0
  360. package/version.mjs.map +1 -0
  361. package/LICENSE.md +0 -21
  362. package/dist/index.d.ts +0 -1
  363. package/dist/index.js +0 -20
  364. package/dist/internal/utils/contenttype.d.ts +0 -1
  365. package/dist/internal/utils/contenttype.js +0 -33
  366. package/dist/internal/utils/headers.d.ts +0 -4
  367. package/dist/internal/utils/headers.js +0 -92
  368. package/dist/internal/utils/index.d.ts +0 -8
  369. package/dist/internal/utils/index.js +0 -27
  370. package/dist/internal/utils/pathparams.d.ts +0 -2
  371. package/dist/internal/utils/pathparams.js +0 -53
  372. package/dist/internal/utils/queryparams.d.ts +0 -2
  373. package/dist/internal/utils/queryparams.js +0 -178
  374. package/dist/internal/utils/requestbody.d.ts +0 -2
  375. package/dist/internal/utils/requestbody.js +0 -318
  376. package/dist/internal/utils/retries.d.ts +0 -20
  377. package/dist/internal/utils/retries.js +0 -250
  378. package/dist/internal/utils/security.d.ts +0 -5
  379. package/dist/internal/utils/security.js +0 -188
  380. package/dist/internal/utils/utils.d.ts +0 -37
  381. package/dist/internal/utils/utils.js +0 -370
  382. package/dist/sdk/availability.d.ts +0 -18
  383. package/dist/sdk/availability.js +0 -186
  384. package/dist/sdk/coupon.d.ts +0 -62
  385. package/dist/sdk/coupon.js +0 -629
  386. package/dist/sdk/credit.d.ts +0 -348
  387. package/dist/sdk/credit.js +0 -1020
  388. package/dist/sdk/creditnote.d.ts +0 -29
  389. package/dist/sdk/creditnote.js +0 -293
  390. package/dist/sdk/customer.d.ts +0 -529
  391. package/dist/sdk/customer.js +0 -1882
  392. package/dist/sdk/event.d.ts +0 -353
  393. package/dist/sdk/event.js +0 -1314
  394. package/dist/sdk/index.d.ts +0 -1
  395. package/dist/sdk/index.js +0 -20
  396. package/dist/sdk/invoice.d.ts +0 -89
  397. package/dist/sdk/invoice.js +0 -945
  398. package/dist/sdk/item.d.ts +0 -27
  399. package/dist/sdk/item.js +0 -291
  400. package/dist/sdk/metric.d.ts +0 -39
  401. package/dist/sdk/metric.js +0 -418
  402. package/dist/sdk/models/errors/fivehundrederror.d.ts +0 -11
  403. package/dist/sdk/models/errors/fivehundrederror.js +0 -88
  404. package/dist/sdk/models/errors/fourhundredandoneerror.d.ts +0 -11
  405. package/dist/sdk/models/errors/fourhundredandoneerror.js +0 -88
  406. package/dist/sdk/models/errors/fourhundredandtwentynineerror.d.ts +0 -11
  407. package/dist/sdk/models/errors/fourhundredandtwentynineerror.js +0 -88
  408. package/dist/sdk/models/errors/index.d.ts +0 -4
  409. package/dist/sdk/models/errors/index.js +0 -23
  410. package/dist/sdk/models/errors/sdkerror.d.ts +0 -7
  411. package/dist/sdk/models/errors/sdkerror.js +0 -40
  412. package/dist/sdk/models/operations/addeditpriceintervals.d.ts +0 -25
  413. package/dist/sdk/models/operations/addeditpriceintervals.js +0 -95
  414. package/dist/sdk/models/operations/amendevent.d.ts +0 -25
  415. package/dist/sdk/models/operations/amendevent.js +0 -95
  416. package/dist/sdk/models/operations/amendusage.d.ts +0 -27
  417. package/dist/sdk/models/operations/amendusage.js +0 -103
  418. package/dist/sdk/models/operations/amendusageexternalcustomerid.d.ts +0 -27
  419. package/dist/sdk/models/operations/amendusageexternalcustomerid.js +0 -103
  420. package/dist/sdk/models/operations/archivecoupon.d.ts +0 -24
  421. package/dist/sdk/models/operations/archivecoupon.js +0 -91
  422. package/dist/sdk/models/operations/cancelsubscription.d.ts +0 -25
  423. package/dist/sdk/models/operations/cancelsubscription.js +0 -95
  424. package/dist/sdk/models/operations/closebackfill.d.ts +0 -24
  425. package/dist/sdk/models/operations/closebackfill.js +0 -91
  426. package/dist/sdk/models/operations/createbackfill.d.ts +0 -21
  427. package/dist/sdk/models/operations/createbackfill.js +0 -79
  428. package/dist/sdk/models/operations/createcoupon.d.ts +0 -21
  429. package/dist/sdk/models/operations/createcoupon.js +0 -79
  430. package/dist/sdk/models/operations/createcustomer.d.ts +0 -21
  431. package/dist/sdk/models/operations/createcustomer.js +0 -79
  432. package/dist/sdk/models/operations/createcustomerbalancetransaction.d.ts +0 -25
  433. package/dist/sdk/models/operations/createcustomerbalancetransaction.js +0 -95
  434. package/dist/sdk/models/operations/createinvoice.d.ts +0 -21
  435. package/dist/sdk/models/operations/createinvoice.js +0 -79
  436. package/dist/sdk/models/operations/createinvoicelineitem.d.ts +0 -21
  437. package/dist/sdk/models/operations/createinvoicelineitem.js +0 -79
  438. package/dist/sdk/models/operations/createledgerentry.d.ts +0 -24
  439. package/dist/sdk/models/operations/createledgerentry.js +0 -71
  440. package/dist/sdk/models/operations/createledgerentryexternalid.d.ts +0 -24
  441. package/dist/sdk/models/operations/createledgerentryexternalid.js +0 -71
  442. package/dist/sdk/models/operations/createmetric.d.ts +0 -21
  443. package/dist/sdk/models/operations/createmetric.js +0 -79
  444. package/dist/sdk/models/operations/createplan.d.ts +0 -21
  445. package/dist/sdk/models/operations/createplan.js +0 -79
  446. package/dist/sdk/models/operations/createprice.d.ts +0 -20
  447. package/dist/sdk/models/operations/createprice.js +0 -55
  448. package/dist/sdk/models/operations/createsubscription.d.ts +0 -21
  449. package/dist/sdk/models/operations/createsubscription.js +0 -79
  450. package/dist/sdk/models/operations/deletecustomer.d.ts +0 -24
  451. package/dist/sdk/models/operations/deletecustomer.js +0 -91
  452. package/dist/sdk/models/operations/deprecateevent.d.ts +0 -24
  453. package/dist/sdk/models/operations/deprecateevent.js +0 -91
  454. package/dist/sdk/models/operations/fetchbackfill.d.ts +0 -24
  455. package/dist/sdk/models/operations/fetchbackfill.js +0 -91
  456. package/dist/sdk/models/operations/fetchcoupon.d.ts +0 -24
  457. package/dist/sdk/models/operations/fetchcoupon.js +0 -91
  458. package/dist/sdk/models/operations/fetchcreditnote.d.ts +0 -24
  459. package/dist/sdk/models/operations/fetchcreditnote.js +0 -91
  460. package/dist/sdk/models/operations/fetchcustomer.d.ts +0 -24
  461. package/dist/sdk/models/operations/fetchcustomer.js +0 -91
  462. package/dist/sdk/models/operations/fetchcustomercosts.d.ts +0 -38
  463. package/dist/sdk/models/operations/fetchcustomercosts.js +0 -115
  464. package/dist/sdk/models/operations/fetchcustomercostsexternalid.d.ts +0 -38
  465. package/dist/sdk/models/operations/fetchcustomercostsexternalid.js +0 -115
  466. package/dist/sdk/models/operations/fetchcustomercredits.d.ts +0 -26
  467. package/dist/sdk/models/operations/fetchcustomercredits.js +0 -99
  468. package/dist/sdk/models/operations/fetchcustomercreditsexternalid.d.ts +0 -26
  469. package/dist/sdk/models/operations/fetchcustomercreditsexternalid.js +0 -99
  470. package/dist/sdk/models/operations/fetchcustomercreditsledger.d.ts +0 -47
  471. package/dist/sdk/models/operations/fetchcustomercreditsledger.js +0 -146
  472. package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.d.ts +0 -47
  473. package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.js +0 -146
  474. package/dist/sdk/models/operations/fetchcustomerexternalid.d.ts +0 -24
  475. package/dist/sdk/models/operations/fetchcustomerexternalid.js +0 -91
  476. package/dist/sdk/models/operations/fetchinvoice.d.ts +0 -24
  477. package/dist/sdk/models/operations/fetchinvoice.js +0 -91
  478. package/dist/sdk/models/operations/fetchitem.d.ts +0 -24
  479. package/dist/sdk/models/operations/fetchitem.js +0 -91
  480. package/dist/sdk/models/operations/fetchmetric.d.ts +0 -24
  481. package/dist/sdk/models/operations/fetchmetric.js +0 -91
  482. package/dist/sdk/models/operations/fetchplan.d.ts +0 -24
  483. package/dist/sdk/models/operations/fetchplan.js +0 -91
  484. package/dist/sdk/models/operations/fetchplanexternalid.d.ts +0 -24
  485. package/dist/sdk/models/operations/fetchplanexternalid.js +0 -91
  486. package/dist/sdk/models/operations/fetchprice.d.ts +0 -23
  487. package/dist/sdk/models/operations/fetchprice.js +0 -67
  488. package/dist/sdk/models/operations/fetchpriceexternalid.d.ts +0 -23
  489. package/dist/sdk/models/operations/fetchpriceexternalid.js +0 -67
  490. package/dist/sdk/models/operations/fetchsubscription.d.ts +0 -24
  491. package/dist/sdk/models/operations/fetchsubscription.js +0 -91
  492. package/dist/sdk/models/operations/fetchsubscriptioncosts.d.ts +0 -38
  493. package/dist/sdk/models/operations/fetchsubscriptioncosts.js +0 -115
  494. package/dist/sdk/models/operations/fetchsubscriptionschedule.d.ts +0 -30
  495. package/dist/sdk/models/operations/fetchsubscriptionschedule.js +0 -115
  496. package/dist/sdk/models/operations/fetchsubscriptionusage.d.ts +0 -54
  497. package/dist/sdk/models/operations/fetchsubscriptionusage.js +0 -130
  498. package/dist/sdk/models/operations/fetchupcominginvoice.d.ts +0 -24
  499. package/dist/sdk/models/operations/fetchupcominginvoice.js +0 -91
  500. package/dist/sdk/models/operations/index.d.ts +0 -73
  501. package/dist/sdk/models/operations/index.js +0 -92
  502. package/dist/sdk/models/operations/ingest.d.ts +0 -26
  503. package/dist/sdk/models/operations/ingest.js +0 -99
  504. package/dist/sdk/models/operations/issueinvoice.d.ts +0 -24
  505. package/dist/sdk/models/operations/issueinvoice.js +0 -91
  506. package/dist/sdk/models/operations/listbackfills.d.ts +0 -25
  507. package/dist/sdk/models/operations/listbackfills.js +0 -95
  508. package/dist/sdk/models/operations/listbalancetransactions.d.ts +0 -30
  509. package/dist/sdk/models/operations/listbalancetransactions.js +0 -115
  510. package/dist/sdk/models/operations/listcoupons.d.ts +0 -27
  511. package/dist/sdk/models/operations/listcoupons.js +0 -103
  512. package/dist/sdk/models/operations/listcouponsubscriptions.d.ts +0 -26
  513. package/dist/sdk/models/operations/listcouponsubscriptions.js +0 -99
  514. package/dist/sdk/models/operations/listcreditnotes.d.ts +0 -25
  515. package/dist/sdk/models/operations/listcreditnotes.js +0 -95
  516. package/dist/sdk/models/operations/listcustomers.d.ts +0 -29
  517. package/dist/sdk/models/operations/listcustomers.js +0 -111
  518. package/dist/sdk/models/operations/listinvoices.d.ts +0 -62
  519. package/dist/sdk/models/operations/listinvoices.js +0 -189
  520. package/dist/sdk/models/operations/listitems.d.ts +0 -25
  521. package/dist/sdk/models/operations/listitems.js +0 -95
  522. package/dist/sdk/models/operations/listmetrics.d.ts +0 -29
  523. package/dist/sdk/models/operations/listmetrics.js +0 -111
  524. package/dist/sdk/models/operations/listplans.d.ts +0 -41
  525. package/dist/sdk/models/operations/listplans.js +0 -124
  526. package/dist/sdk/models/operations/listprices.d.ts +0 -25
  527. package/dist/sdk/models/operations/listprices.js +0 -95
  528. package/dist/sdk/models/operations/listsubscriptions.d.ts +0 -37
  529. package/dist/sdk/models/operations/listsubscriptions.js +0 -129
  530. package/dist/sdk/models/operations/markinvoiceaspaid.d.ts +0 -25
  531. package/dist/sdk/models/operations/markinvoiceaspaid.js +0 -95
  532. package/dist/sdk/models/operations/ping.d.ts +0 -21
  533. package/dist/sdk/models/operations/ping.js +0 -79
  534. package/dist/sdk/models/operations/revertbackfill.d.ts +0 -24
  535. package/dist/sdk/models/operations/revertbackfill.js +0 -91
  536. package/dist/sdk/models/operations/scheduleplanchange.d.ts +0 -25
  537. package/dist/sdk/models/operations/scheduleplanchange.js +0 -95
  538. package/dist/sdk/models/operations/searchevents.d.ts +0 -30
  539. package/dist/sdk/models/operations/searchevents.js +0 -115
  540. package/dist/sdk/models/operations/triggerphase.d.ts +0 -25
  541. package/dist/sdk/models/operations/triggerphase.js +0 -95
  542. package/dist/sdk/models/operations/unschedulecancellation.d.ts +0 -24
  543. package/dist/sdk/models/operations/unschedulecancellation.js +0 -91
  544. package/dist/sdk/models/operations/unschedulefixedfeequantity.d.ts +0 -25
  545. package/dist/sdk/models/operations/unschedulefixedfeequantity.js +0 -95
  546. package/dist/sdk/models/operations/unscheduleplanchange.d.ts +0 -24
  547. package/dist/sdk/models/operations/unscheduleplanchange.js +0 -91
  548. package/dist/sdk/models/operations/updatecustomer.d.ts +0 -25
  549. package/dist/sdk/models/operations/updatecustomer.js +0 -95
  550. package/dist/sdk/models/operations/updatecustomerexternalid.d.ts +0 -25
  551. package/dist/sdk/models/operations/updatecustomerexternalid.js +0 -95
  552. package/dist/sdk/models/operations/updatefixedfeequantity.d.ts +0 -25
  553. package/dist/sdk/models/operations/updatefixedfeequantity.js +0 -95
  554. package/dist/sdk/models/operations/updateplan.d.ts +0 -25
  555. package/dist/sdk/models/operations/updateplan.js +0 -95
  556. package/dist/sdk/models/operations/updateplanexternal.d.ts +0 -25
  557. package/dist/sdk/models/operations/updateplanexternal.js +0 -95
  558. package/dist/sdk/models/operations/voidinvoice.d.ts +0 -24
  559. package/dist/sdk/models/operations/voidinvoice.js +0 -91
  560. package/dist/sdk/models/shared/accountingprovider.d.ts +0 -9
  561. package/dist/sdk/models/shared/accountingprovider.js +0 -55
  562. package/dist/sdk/models/shared/accountingproviderconfig.d.ts +0 -5
  563. package/dist/sdk/models/shared/accountingproviderconfig.js +0 -50
  564. package/dist/sdk/models/shared/accountingsyncconfiguration.d.ts +0 -6
  565. package/dist/sdk/models/shared/accountingsyncconfiguration.js +0 -52
  566. package/dist/sdk/models/shared/addeditpriceintervalparams.d.ts +0 -13
  567. package/dist/sdk/models/shared/addeditpriceintervalparams.js +0 -54
  568. package/dist/sdk/models/shared/addpriceintervalparams.d.ts +0 -40
  569. package/dist/sdk/models/shared/addpriceintervalparams.js +0 -87
  570. package/dist/sdk/models/shared/address.d.ts +0 -9
  571. package/dist/sdk/models/shared/address.js +0 -70
  572. package/dist/sdk/models/shared/addressinput.d.ts +0 -9
  573. package/dist/sdk/models/shared/addressinput.js +0 -70
  574. package/dist/sdk/models/shared/aggregatedcost.d.ts +0 -15
  575. package/dist/sdk/models/shared/aggregatedcost.js +0 -75
  576. package/dist/sdk/models/shared/amendedevent.d.ts +0 -28
  577. package/dist/sdk/models/shared/amendedevent.js +0 -81
  578. package/dist/sdk/models/shared/amendedusage.d.ts +0 -11
  579. package/dist/sdk/models/shared/amendedusage.js +0 -50
  580. package/dist/sdk/models/shared/amendeventresult.d.ts +0 -7
  581. package/dist/sdk/models/shared/amendeventresult.js +0 -45
  582. package/dist/sdk/models/shared/autocollection.d.ts +0 -15
  583. package/dist/sdk/models/shared/autocollection.js +0 -63
  584. package/dist/sdk/models/shared/backfill.d.ts +0 -27
  585. package/dist/sdk/models/shared/backfill.js +0 -104
  586. package/dist/sdk/models/shared/backfills.d.ts +0 -7
  587. package/dist/sdk/models/shared/backfills.js +0 -54
  588. package/dist/sdk/models/shared/backfillstatus.d.ts +0 -9
  589. package/dist/sdk/models/shared/backfillstatus.js +0 -16
  590. package/dist/sdk/models/shared/billablemetric.d.ts +0 -27
  591. package/dist/sdk/models/shared/billablemetric.js +0 -84
  592. package/dist/sdk/models/shared/billablemetrics.d.ts +0 -7
  593. package/dist/sdk/models/shared/billablemetrics.js +0 -54
  594. package/dist/sdk/models/shared/billingcyclealignment.d.ts +0 -8
  595. package/dist/sdk/models/shared/billingcyclealignment.js +0 -15
  596. package/dist/sdk/models/shared/cancelsubscriptionparams.d.ts +0 -19
  597. package/dist/sdk/models/shared/cancelsubscriptionparams.js +0 -63
  598. package/dist/sdk/models/shared/changeoption.d.ts +0 -5
  599. package/dist/sdk/models/shared/changeoption.js +0 -12
  600. package/dist/sdk/models/shared/coupon.d.ts +0 -40
  601. package/dist/sdk/models/shared/coupon.js +0 -98
  602. package/dist/sdk/models/shared/couponredemption.d.ts +0 -6
  603. package/dist/sdk/models/shared/couponredemption.js +0 -63
  604. package/dist/sdk/models/shared/coupons.d.ts +0 -7
  605. package/dist/sdk/models/shared/coupons.js +0 -54
  606. package/dist/sdk/models/shared/createinvoicelineitemparams.d.ts +0 -28
  607. package/dist/sdk/models/shared/createinvoicelineitemparams.js +0 -81
  608. package/dist/sdk/models/shared/createoneoffinvoiceparams.d.ts +0 -33
  609. package/dist/sdk/models/shared/createoneoffinvoiceparams.js +0 -86
  610. package/dist/sdk/models/shared/creditledgerentries.d.ts +0 -6
  611. package/dist/sdk/models/shared/creditledgerentries.js +0 -52
  612. package/dist/sdk/models/shared/creditnote.d.ts +0 -83
  613. package/dist/sdk/models/shared/creditnote.js +0 -171
  614. package/dist/sdk/models/shared/creditnotelineitem.d.ts +0 -40
  615. package/dist/sdk/models/shared/creditnotelineitem.js +0 -100
  616. package/dist/sdk/models/shared/creditnoteminified.d.ts +0 -7
  617. package/dist/sdk/models/shared/creditnoteminified.js +0 -45
  618. package/dist/sdk/models/shared/creditnotes.d.ts +0 -7
  619. package/dist/sdk/models/shared/creditnotes.js +0 -54
  620. package/dist/sdk/models/shared/creditnotesublineitem.d.ts +0 -6
  621. package/dist/sdk/models/shared/creditnotesublineitem.js +0 -55
  622. package/dist/sdk/models/shared/creditnotesummary.d.ts +0 -12
  623. package/dist/sdk/models/shared/creditnotesummary.js +0 -74
  624. package/dist/sdk/models/shared/customer.d.ts +0 -76
  625. package/dist/sdk/models/shared/customer.js +0 -182
  626. package/dist/sdk/models/shared/customerbalancetransaction.d.ts +0 -42
  627. package/dist/sdk/models/shared/customerbalancetransaction.js +0 -109
  628. package/dist/sdk/models/shared/customerbalancetransactions.d.ts +0 -7
  629. package/dist/sdk/models/shared/customerbalancetransactions.js +0 -54
  630. package/dist/sdk/models/shared/customercosts.d.ts +0 -5
  631. package/dist/sdk/models/shared/customercosts.js +0 -47
  632. package/dist/sdk/models/shared/customercreditbalance.d.ts +0 -7
  633. package/dist/sdk/models/shared/customercreditbalance.js +0 -64
  634. package/dist/sdk/models/shared/customercreditbalances.d.ts +0 -7
  635. package/dist/sdk/models/shared/customercreditbalances.js +0 -54
  636. package/dist/sdk/models/shared/customerminified.d.ts +0 -5
  637. package/dist/sdk/models/shared/customerminified.js +0 -50
  638. package/dist/sdk/models/shared/customers.d.ts +0 -7
  639. package/dist/sdk/models/shared/customers.js +0 -54
  640. package/dist/sdk/models/shared/customertaxid.d.ts +0 -6
  641. package/dist/sdk/models/shared/customertaxid.js +0 -55
  642. package/dist/sdk/models/shared/debug.d.ts +0 -8
  643. package/dist/sdk/models/shared/debug.js +0 -53
  644. package/dist/sdk/models/shared/deletecustomerresponse.d.ts +0 -3
  645. package/dist/sdk/models/shared/deletecustomerresponse.js +0 -30
  646. package/dist/sdk/models/shared/deprecatedeventresult.d.ts +0 -7
  647. package/dist/sdk/models/shared/deprecatedeventresult.js +0 -45
  648. package/dist/sdk/models/shared/discount.d.ts +0 -33
  649. package/dist/sdk/models/shared/discount.js +0 -80
  650. package/dist/sdk/models/shared/editcustomer.d.ts +0 -72
  651. package/dist/sdk/models/shared/editcustomer.js +0 -151
  652. package/dist/sdk/models/shared/editplan.d.ts +0 -10
  653. package/dist/sdk/models/shared/editplan.js +0 -59
  654. package/dist/sdk/models/shared/editpriceintervalparams.d.ts +0 -20
  655. package/dist/sdk/models/shared/editpriceintervalparams.js +0 -62
  656. package/dist/sdk/models/shared/event.d.ts +0 -39
  657. package/dist/sdk/models/shared/event.js +0 -93
  658. package/dist/sdk/models/shared/events.d.ts +0 -7
  659. package/dist/sdk/models/shared/events.js +0 -54
  660. package/dist/sdk/models/shared/eventsearchcriteria.d.ts +0 -11
  661. package/dist/sdk/models/shared/eventsearchcriteria.js +0 -50
  662. package/dist/sdk/models/shared/fixedfeequantitychange.d.ts +0 -25
  663. package/dist/sdk/models/shared/fixedfeequantitychange.js +0 -75
  664. package/dist/sdk/models/shared/fixedfeequantityscheduleentry.d.ts +0 -7
  665. package/dist/sdk/models/shared/fixedfeequantityscheduleentry.js +0 -68
  666. package/dist/sdk/models/shared/fixedfeequantitytransition.d.ts +0 -6
  667. package/dist/sdk/models/shared/fixedfeequantitytransition.js +0 -59
  668. package/dist/sdk/models/shared/index.d.ts +0 -109
  669. package/dist/sdk/models/shared/index.js +0 -128
  670. package/dist/sdk/models/shared/ingestevent.d.ts +0 -32
  671. package/dist/sdk/models/shared/ingestevent.js +0 -86
  672. package/dist/sdk/models/shared/ingestionresponse.d.ts +0 -13
  673. package/dist/sdk/models/shared/ingestionresponse.js +0 -54
  674. package/dist/sdk/models/shared/ingestrequestbody.d.ts +0 -5
  675. package/dist/sdk/models/shared/ingestrequestbody.js +0 -47
  676. package/dist/sdk/models/shared/invoice.d.ts +0 -138
  677. package/dist/sdk/models/shared/invoice.js +0 -329
  678. package/dist/sdk/models/shared/invoicelineitem.d.ts +0 -49
  679. package/dist/sdk/models/shared/invoicelineitem.js +0 -134
  680. package/dist/sdk/models/shared/invoicelineitemparams.d.ts +0 -26
  681. package/dist/sdk/models/shared/invoicelineitemparams.js +0 -90
  682. package/dist/sdk/models/shared/invoiceminified.d.ts +0 -7
  683. package/dist/sdk/models/shared/invoiceminified.js +0 -45
  684. package/dist/sdk/models/shared/invoices.d.ts +0 -7
  685. package/dist/sdk/models/shared/invoices.js +0 -54
  686. package/dist/sdk/models/shared/item.d.ts +0 -14
  687. package/dist/sdk/models/shared/item.js +0 -72
  688. package/dist/sdk/models/shared/itemexternalconnection.d.ts +0 -5
  689. package/dist/sdk/models/shared/itemexternalconnection.js +0 -50
  690. package/dist/sdk/models/shared/items.d.ts +0 -7
  691. package/dist/sdk/models/shared/items.js +0 -54
  692. package/dist/sdk/models/shared/markaspaidrequestparams.d.ts +0 -16
  693. package/dist/sdk/models/shared/markaspaidrequestparams.js +0 -61
  694. package/dist/sdk/models/shared/maximum.d.ts +0 -11
  695. package/dist/sdk/models/shared/maximum.js +0 -50
  696. package/dist/sdk/models/shared/maximuminterval.d.ts +0 -23
  697. package/dist/sdk/models/shared/maximuminterval.js +0 -73
  698. package/dist/sdk/models/shared/minimum.d.ts +0 -11
  699. package/dist/sdk/models/shared/minimum.js +0 -50
  700. package/dist/sdk/models/shared/minimuminterval.d.ts +0 -23
  701. package/dist/sdk/models/shared/minimuminterval.js +0 -73
  702. package/dist/sdk/models/shared/newaccountingsyncconfiguration.d.ts +0 -6
  703. package/dist/sdk/models/shared/newaccountingsyncconfiguration.js +0 -52
  704. package/dist/sdk/models/shared/newbackfill.d.ts +0 -27
  705. package/dist/sdk/models/shared/newbackfill.js +0 -82
  706. package/dist/sdk/models/shared/newbillablemetric.d.ts +0 -28
  707. package/dist/sdk/models/shared/newbillablemetric.js +0 -77
  708. package/dist/sdk/models/shared/newcoupon.d.ts +0 -18
  709. package/dist/sdk/models/shared/newcoupon.js +0 -69
  710. package/dist/sdk/models/shared/newcustomer.d.ts +0 -68
  711. package/dist/sdk/models/shared/newcustomer.js +0 -152
  712. package/dist/sdk/models/shared/newcustomerbalancetransaction.d.ts +0 -13
  713. package/dist/sdk/models/shared/newcustomerbalancetransaction.js +0 -60
  714. package/dist/sdk/models/shared/newplan.d.ts +0 -26
  715. package/dist/sdk/models/shared/newplan.js +0 -93
  716. package/dist/sdk/models/shared/newreportingconfiguration.d.ts +0 -4
  717. package/dist/sdk/models/shared/newreportingconfiguration.js +0 -45
  718. package/dist/sdk/models/shared/newsubscription.d.ts +0 -54
  719. package/dist/sdk/models/shared/newsubscription.js +0 -187
  720. package/dist/sdk/models/shared/paginationmetadata.d.ts +0 -5
  721. package/dist/sdk/models/shared/paginationmetadata.js +0 -50
  722. package/dist/sdk/models/shared/perpricecost.d.ts +0 -224
  723. package/dist/sdk/models/shared/perpricecost.js +0 -67
  724. package/dist/sdk/models/shared/phaseoverride.d.ts +0 -17
  725. package/dist/sdk/models/shared/phaseoverride.js +0 -62
  726. package/dist/sdk/models/shared/pingresponse.d.ts +0 -4
  727. package/dist/sdk/models/shared/pingresponse.js +0 -45
  728. package/dist/sdk/models/shared/plan.d.ts +0 -66
  729. package/dist/sdk/models/shared/plan.js +0 -188
  730. package/dist/sdk/models/shared/planminified.d.ts +0 -9
  731. package/dist/sdk/models/shared/planminified.js +0 -55
  732. package/dist/sdk/models/shared/planphase.d.ts +0 -28
  733. package/dist/sdk/models/shared/planphase.js +0 -106
  734. package/dist/sdk/models/shared/plans.d.ts +0 -7
  735. package/dist/sdk/models/shared/plans.js +0 -54
  736. package/dist/sdk/models/shared/pricegroup.d.ts +0 -17
  737. package/dist/sdk/models/shared/pricegroup.js +0 -65
  738. package/dist/sdk/models/shared/priceinterval.d.ts +0 -239
  739. package/dist/sdk/models/shared/priceinterval.js +0 -104
  740. package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.d.ts +0 -11
  741. package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.js +0 -54
  742. package/dist/sdk/models/shared/prices.d.ts +0 -6
  743. package/dist/sdk/models/shared/prices.js +0 -52
  744. package/dist/sdk/models/shared/product.d.ts +0 -6
  745. package/dist/sdk/models/shared/product.js +0 -59
  746. package/dist/sdk/models/shared/reportingconfiguration.d.ts +0 -4
  747. package/dist/sdk/models/shared/reportingconfiguration.js +0 -45
  748. package/dist/sdk/models/shared/security.d.ts +0 -4
  749. package/dist/sdk/models/shared/security.js +0 -45
  750. package/dist/sdk/models/shared/subscription.d.ts +0 -128
  751. package/dist/sdk/models/shared/subscription.js +0 -226
  752. package/dist/sdk/models/shared/subscriptioncosts.d.ts +0 -5
  753. package/dist/sdk/models/shared/subscriptioncosts.js +0 -47
  754. package/dist/sdk/models/shared/subscriptionminified.d.ts +0 -4
  755. package/dist/sdk/models/shared/subscriptionminified.js +0 -45
  756. package/dist/sdk/models/shared/subscriptionplanchange.d.ts +0 -59
  757. package/dist/sdk/models/shared/subscriptionplanchange.js +0 -126
  758. package/dist/sdk/models/shared/subscriptions.d.ts +0 -7
  759. package/dist/sdk/models/shared/subscriptions.js +0 -54
  760. package/dist/sdk/models/shared/subscriptionscheduleitem.d.ts +0 -7
  761. package/dist/sdk/models/shared/subscriptionscheduleitem.js +0 -65
  762. package/dist/sdk/models/shared/subscriptionscheduleitems.d.ts +0 -7
  763. package/dist/sdk/models/shared/subscriptionscheduleitems.js +0 -54
  764. package/dist/sdk/models/shared/subscriptiontrialinfo.d.ts +0 -4
  765. package/dist/sdk/models/shared/subscriptiontrialinfo.js +0 -49
  766. package/dist/sdk/models/shared/taxamount.d.ts +0 -15
  767. package/dist/sdk/models/shared/taxamount.js +0 -55
  768. package/dist/sdk/models/shared/trialconfig.d.ts +0 -8
  769. package/dist/sdk/models/shared/trialconfig.js +0 -54
  770. package/dist/sdk/models/shared/triggersubscriptionphaseparams.d.ts +0 -8
  771. package/dist/sdk/models/shared/triggersubscriptionphaseparams.js +0 -51
  772. package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.d.ts +0 -7
  773. package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.js +0 -45
  774. package/dist/sdk/models/shared/upcominginvoice.d.ts +0 -130
  775. package/dist/sdk/models/shared/upcominginvoice.js +0 -321
  776. package/dist/sdk/models/shared/updateevent.d.ts +0 -28
  777. package/dist/sdk/models/shared/updateevent.js +0 -81
  778. package/dist/sdk/models/shared/validationerror.d.ts +0 -11
  779. package/dist/sdk/models/shared/validationerror.js +0 -50
  780. package/dist/sdk/plan.d.ts +0 -90
  781. package/dist/sdk/plan.js +0 -764
  782. package/dist/sdk/price.d.ts +0 -246
  783. package/dist/sdk/price.js +0 -715
  784. package/dist/sdk/priceinterval.d.ts +0 -66
  785. package/dist/sdk/priceinterval.js +0 -263
  786. package/dist/sdk/sdk.d.ts +0 -389
  787. package/dist/sdk/sdk.js +0 -93
  788. package/dist/sdk/subscription.d.ts +0 -769
  789. package/dist/sdk/subscription.js +0 -2116
  790. package/dist/sdk/types/index.d.ts +0 -1
  791. package/dist/sdk/types/index.js +0 -20
  792. package/dist/sdk/types/rfcdate.d.ts +0 -9
  793. package/dist/sdk/types/rfcdate.js +0 -59
  794. package/docs/models/errors/fivehundrederror.md +0 -12
  795. package/docs/models/errors/fivehundrederrorheaders.md +0 -7
  796. package/docs/models/errors/fourhundredandoneerror.md +0 -12
  797. package/docs/models/errors/fourhundredandoneerrorheaders.md +0 -7
  798. package/docs/models/errors/fourhundredandtwentynineerror.md +0 -12
  799. package/docs/models/errors/fourhundredandtwentynineerrorheaders.md +0 -7
  800. package/docs/models/operations/addeditpriceintervalsrequest.md +0 -9
  801. package/docs/models/operations/addeditpriceintervalsresponse.md +0 -11
  802. package/docs/models/operations/amendeventrequest.md +0 -9
  803. package/docs/models/operations/amendeventresponse.md +0 -11
  804. package/docs/models/operations/amendusageexternalcustomeridrequest.md +0 -11
  805. package/docs/models/operations/amendusageexternalcustomeridresponse.md +0 -11
  806. package/docs/models/operations/amendusagerequest.md +0 -11
  807. package/docs/models/operations/amendusageresponse.md +0 -11
  808. package/docs/models/operations/archivecouponrequest.md +0 -8
  809. package/docs/models/operations/archivecouponresponse.md +0 -11
  810. package/docs/models/operations/cancelsubscriptionrequest.md +0 -9
  811. package/docs/models/operations/cancelsubscriptionresponse.md +0 -11
  812. package/docs/models/operations/closebackfillrequest.md +0 -8
  813. package/docs/models/operations/closebackfillresponse.md +0 -11
  814. package/docs/models/operations/createbackfillresponse.md +0 -11
  815. package/docs/models/operations/createcouponresponse.md +0 -11
  816. package/docs/models/operations/createcustomerbalancetransactionrequest.md +0 -9
  817. package/docs/models/operations/createcustomerbalancetransactionresponse.md +0 -11
  818. package/docs/models/operations/createcustomerresponse.md +0 -11
  819. package/docs/models/operations/createinvoicelineitemresponse.md +0 -11
  820. package/docs/models/operations/createinvoiceresponse.md +0 -11
  821. package/docs/models/operations/createledgerentryexternalidrequest.md +0 -9
  822. package/docs/models/operations/createledgerentryexternalidresponse.md +0 -11
  823. package/docs/models/operations/createledgerentryrequest.md +0 -9
  824. package/docs/models/operations/createledgerentryresponse.md +0 -11
  825. package/docs/models/operations/createmetricresponse.md +0 -11
  826. package/docs/models/operations/createplanresponse.md +0 -11
  827. package/docs/models/operations/createpriceresponse.md +0 -11
  828. package/docs/models/operations/createsubscriptionresponse.md +0 -11
  829. package/docs/models/operations/deletecustomerrequest.md +0 -8
  830. package/docs/models/operations/deletecustomerresponse.md +0 -11
  831. package/docs/models/operations/deprecateeventrequest.md +0 -8
  832. package/docs/models/operations/deprecateeventresponse.md +0 -11
  833. package/docs/models/operations/fetchbackfillrequest.md +0 -8
  834. package/docs/models/operations/fetchbackfillresponse.md +0 -11
  835. package/docs/models/operations/fetchcouponrequest.md +0 -8
  836. package/docs/models/operations/fetchcouponresponse.md +0 -11
  837. package/docs/models/operations/fetchcreditnoterequest.md +0 -8
  838. package/docs/models/operations/fetchcreditnoteresponse.md +0 -11
  839. package/docs/models/operations/fetchcustomercostsexternalidrequest.md +0 -12
  840. package/docs/models/operations/fetchcustomercostsexternalidresponse.md +0 -11
  841. package/docs/models/operations/fetchcustomercostsexternalidviewmodeviewmode.md +0 -11
  842. package/docs/models/operations/fetchcustomercostsrequest.md +0 -12
  843. package/docs/models/operations/fetchcustomercostsresponse.md +0 -11
  844. package/docs/models/operations/fetchcustomercostsviewmodeviewmode.md +0 -11
  845. package/docs/models/operations/fetchcustomercreditsexternalidrequest.md +0 -10
  846. package/docs/models/operations/fetchcustomercreditsexternalidresponse.md +0 -11
  847. package/docs/models/operations/fetchcustomercreditsledgerentrystatusentrystatus.md +0 -9
  848. package/docs/models/operations/fetchcustomercreditsledgerentrytypeentrytype.md +0 -14
  849. package/docs/models/operations/fetchcustomercreditsledgerexternalidentrystatusentrystatus.md +0 -9
  850. package/docs/models/operations/fetchcustomercreditsledgerexternalidentrytypeentrytype.md +0 -14
  851. package/docs/models/operations/fetchcustomercreditsledgerexternalidrequest.md +0 -18
  852. package/docs/models/operations/fetchcustomercreditsledgerexternalidresponse.md +0 -11
  853. package/docs/models/operations/fetchcustomercreditsledgerrequest.md +0 -18
  854. package/docs/models/operations/fetchcustomercreditsledgerresponse.md +0 -11
  855. package/docs/models/operations/fetchcustomercreditsrequest.md +0 -10
  856. package/docs/models/operations/fetchcustomercreditsresponse.md +0 -11
  857. package/docs/models/operations/fetchcustomerexternalidrequest.md +0 -8
  858. package/docs/models/operations/fetchcustomerexternalidresponse.md +0 -11
  859. package/docs/models/operations/fetchcustomerrequest.md +0 -8
  860. package/docs/models/operations/fetchcustomerresponse.md +0 -11
  861. package/docs/models/operations/fetchinvoicerequest.md +0 -8
  862. package/docs/models/operations/fetchinvoiceresponse.md +0 -11
  863. package/docs/models/operations/fetchitemrequest.md +0 -8
  864. package/docs/models/operations/fetchitemresponse.md +0 -11
  865. package/docs/models/operations/fetchmetricrequest.md +0 -8
  866. package/docs/models/operations/fetchmetricresponse.md +0 -11
  867. package/docs/models/operations/fetchplanexternalidrequest.md +0 -8
  868. package/docs/models/operations/fetchplanexternalidresponse.md +0 -11
  869. package/docs/models/operations/fetchplanrequest.md +0 -8
  870. package/docs/models/operations/fetchplanresponse.md +0 -11
  871. package/docs/models/operations/fetchpriceexternalidrequest.md +0 -8
  872. package/docs/models/operations/fetchpriceexternalidresponse.md +0 -11
  873. package/docs/models/operations/fetchpricerequest.md +0 -8
  874. package/docs/models/operations/fetchpriceresponse.md +0 -11
  875. package/docs/models/operations/fetchsubscriptioncostsrequest.md +0 -12
  876. package/docs/models/operations/fetchsubscriptioncostsresponse.md +0 -11
  877. package/docs/models/operations/fetchsubscriptioncostsviewmodeviewmode.md +0 -11
  878. package/docs/models/operations/fetchsubscriptionrequest.md +0 -8
  879. package/docs/models/operations/fetchsubscriptionresponse.md +0 -11
  880. package/docs/models/operations/fetchsubscriptionschedulerequest.md +0 -14
  881. package/docs/models/operations/fetchsubscriptionscheduleresponse.md +0 -11
  882. package/docs/models/operations/fetchsubscriptionusagegranularitygranularity.md +0 -10
  883. package/docs/models/operations/fetchsubscriptionusagerequest.md +0 -20
  884. package/docs/models/operations/fetchsubscriptionusageresponse.md +0 -11
  885. package/docs/models/operations/fetchsubscriptionusageviewmodeviewmode.md +0 -11
  886. package/docs/models/operations/fetchupcominginvoicerequest.md +0 -8
  887. package/docs/models/operations/fetchupcominginvoiceresponse.md +0 -11
  888. package/docs/models/operations/ingestrequest.md +0 -10
  889. package/docs/models/operations/ingestresponse.md +0 -11
  890. package/docs/models/operations/issueinvoicerequest.md +0 -8
  891. package/docs/models/operations/issueinvoiceresponse.md +0 -11
  892. package/docs/models/operations/listbackfillsrequest.md +0 -9
  893. package/docs/models/operations/listbackfillsresponse.md +0 -11
  894. package/docs/models/operations/listbalancetransactionsrequest.md +0 -14
  895. package/docs/models/operations/listbalancetransactionsresponse.md +0 -11
  896. package/docs/models/operations/listcouponsrequest.md +0 -11
  897. package/docs/models/operations/listcouponsresponse.md +0 -11
  898. package/docs/models/operations/listcouponsubscriptionsrequest.md +0 -10
  899. package/docs/models/operations/listcouponsubscriptionsresponse.md +0 -11
  900. package/docs/models/operations/listcreditnotesrequest.md +0 -9
  901. package/docs/models/operations/listcreditnotesresponse.md +0 -11
  902. package/docs/models/operations/listcustomersrequest.md +0 -13
  903. package/docs/models/operations/listcustomersresponse.md +0 -11
  904. package/docs/models/operations/listinvoicesdatetypedatetype.md +0 -9
  905. package/docs/models/operations/listinvoicesrequest.md +0 -27
  906. package/docs/models/operations/listinvoicesresponse.md +0 -11
  907. package/docs/models/operations/listinvoicesstatus.md +0 -12
  908. package/docs/models/operations/listinvoicesstatusstatus.md +0 -12
  909. package/docs/models/operations/listitemsrequest.md +0 -9
  910. package/docs/models/operations/listitemsresponse.md +0 -11
  911. package/docs/models/operations/listmetricsrequest.md +0 -13
  912. package/docs/models/operations/listmetricsresponse.md +0 -11
  913. package/docs/models/operations/listplansrequest.md +0 -14
  914. package/docs/models/operations/listplansresponse.md +0 -11
  915. package/docs/models/operations/listplansstatusstatus.md +0 -12
  916. package/docs/models/operations/listpricesrequest.md +0 -9
  917. package/docs/models/operations/listpricesresponse.md +0 -11
  918. package/docs/models/operations/listsubscriptionsrequest.md +0 -16
  919. package/docs/models/operations/listsubscriptionsresponse.md +0 -11
  920. package/docs/models/operations/listsubscriptionsstatusstatus.md +0 -10
  921. package/docs/models/operations/markinvoiceaspaidrequest.md +0 -9
  922. package/docs/models/operations/markinvoiceaspaidresponse.md +0 -11
  923. package/docs/models/operations/pingresponse.md +0 -11
  924. package/docs/models/operations/revertbackfillrequest.md +0 -8
  925. package/docs/models/operations/revertbackfillresponse.md +0 -11
  926. package/docs/models/operations/scheduleplanchangerequest.md +0 -9
  927. package/docs/models/operations/scheduleplanchangeresponse.md +0 -11
  928. package/docs/models/operations/searcheventsrequest.md +0 -14
  929. package/docs/models/operations/searcheventsresponse.md +0 -11
  930. package/docs/models/operations/triggerphaserequest.md +0 -9
  931. package/docs/models/operations/triggerphaseresponse.md +0 -11
  932. package/docs/models/operations/unschedulecancellationrequest.md +0 -8
  933. package/docs/models/operations/unschedulecancellationresponse.md +0 -11
  934. package/docs/models/operations/unschedulefixedfeequantityrequest.md +0 -9
  935. package/docs/models/operations/unschedulefixedfeequantityresponse.md +0 -11
  936. package/docs/models/operations/unscheduleplanchangerequest.md +0 -8
  937. package/docs/models/operations/unscheduleplanchangeresponse.md +0 -11
  938. package/docs/models/operations/updatecustomerexternalidrequest.md +0 -9
  939. package/docs/models/operations/updatecustomerexternalidresponse.md +0 -11
  940. package/docs/models/operations/updatecustomerrequest.md +0 -9
  941. package/docs/models/operations/updatecustomerresponse.md +0 -11
  942. package/docs/models/operations/updatefixedfeequantityrequest.md +0 -9
  943. package/docs/models/operations/updatefixedfeequantityresponse.md +0 -11
  944. package/docs/models/operations/updateplanexternalrequest.md +0 -9
  945. package/docs/models/operations/updateplanexternalresponse.md +0 -11
  946. package/docs/models/operations/updateplanrequest.md +0 -9
  947. package/docs/models/operations/updateplanresponse.md +0 -11
  948. package/docs/models/operations/voidinvoicerequest.md +0 -8
  949. package/docs/models/operations/voidinvoiceresponse.md +0 -11
  950. package/docs/models/shared/accountingprovider.md +0 -9
  951. package/docs/models/shared/accountingproviderconfig.md +0 -9
  952. package/docs/models/shared/accountingproviderprovidertype.md +0 -9
  953. package/docs/models/shared/accountingsyncconfiguration.md +0 -9
  954. package/docs/models/shared/addeditpriceintervalparams.md +0 -9
  955. package/docs/models/shared/addpriceintervalparams.md +0 -16
  956. package/docs/models/shared/address.md +0 -13
  957. package/docs/models/shared/addressinput.md +0 -13
  958. package/docs/models/shared/aggregatedcost.md +0 -12
  959. package/docs/models/shared/amendedevent.md +0 -12
  960. package/docs/models/shared/amendedeventproperties.md +0 -9
  961. package/docs/models/shared/amendedusage.md +0 -9
  962. package/docs/models/shared/amendeventresult.md +0 -8
  963. package/docs/models/shared/autocollection.md +0 -10
  964. package/docs/models/shared/backfill.md +0 -17
  965. package/docs/models/shared/backfills.md +0 -9
  966. package/docs/models/shared/backfillstatus.md +0 -13
  967. package/docs/models/shared/billablemetric.md +0 -16
  968. package/docs/models/shared/billablemetrics.md +0 -9
  969. package/docs/models/shared/billablemetricstatus.md +0 -10
  970. package/docs/models/shared/billingcyclealignment.md +0 -12
  971. package/docs/models/shared/cancelsubscriptionparams.md +0 -9
  972. package/docs/models/shared/cancelsubscriptionparamscanceloption.md +0 -12
  973. package/docs/models/shared/changeoption.md +0 -10
  974. package/docs/models/shared/coupon.md +0 -21
  975. package/docs/models/shared/coupondiscount.md +0 -7
  976. package/docs/models/shared/couponredemption.md +0 -10
  977. package/docs/models/shared/coupons.md +0 -9
  978. package/docs/models/shared/createinvoicelineitemparams.md +0 -13
  979. package/docs/models/shared/createoneoffinvoiceparams.md +0 -15
  980. package/docs/models/shared/creditledgerentries.md +0 -9
  981. package/docs/models/shared/creditnote.md +0 -26
  982. package/docs/models/shared/creditnotediscounts.md +0 -7
  983. package/docs/models/shared/creditnotelineitem.md +0 -15
  984. package/docs/models/shared/creditnotelineitemdiscounts.md +0 -7
  985. package/docs/models/shared/creditnotelineitemtaxamounts.md +0 -7
  986. package/docs/models/shared/creditnotemaximumamountadjustment.md +0 -9
  987. package/docs/models/shared/creditnoteminified.md +0 -8
  988. package/docs/models/shared/creditnotereason.md +0 -11
  989. package/docs/models/shared/creditnotes.md +0 -9
  990. package/docs/models/shared/creditnotesublineitem.md +0 -10
  991. package/docs/models/shared/creditnotesummary.md +0 -13
  992. package/docs/models/shared/creditnotetype.md +0 -9
  993. package/docs/models/shared/customer.md +0 -42
  994. package/docs/models/shared/customerbalancetransaction.md +0 -17
  995. package/docs/models/shared/customerbalancetransactionaction.md +0 -10
  996. package/docs/models/shared/customerbalancetransactions.md +0 -9
  997. package/docs/models/shared/customerbalancetransactiontype.md +0 -9
  998. package/docs/models/shared/customercosts.md +0 -8
  999. package/docs/models/shared/customercreditbalance.md +0 -11
  1000. package/docs/models/shared/customercreditbalances.md +0 -9
  1001. package/docs/models/shared/customerminified.md +0 -9
  1002. package/docs/models/shared/customerpaymentprovider.md +0 -14
  1003. package/docs/models/shared/customers.md +0 -9
  1004. package/docs/models/shared/customertaxid.md +0 -10
  1005. package/docs/models/shared/debug.md +0 -11
  1006. package/docs/models/shared/deletecustomerresponse.md +0 -7
  1007. package/docs/models/shared/deprecatedeventresult.md +0 -8
  1008. package/docs/models/shared/discount.md +0 -15
  1009. package/docs/models/shared/discountdiscounttype.md +0 -11
  1010. package/docs/models/shared/editcustomer.md +0 -22
  1011. package/docs/models/shared/editcustomermetadata.md +0 -9
  1012. package/docs/models/shared/editcustomerpaymentprovider.md +0 -16
  1013. package/docs/models/shared/editplan.md +0 -9
  1014. package/docs/models/shared/editplanmetadata.md +0 -7
  1015. package/docs/models/shared/editpriceintervalparams.md +0 -11
  1016. package/docs/models/shared/event.md +0 -17
  1017. package/docs/models/shared/eventproperties.md +0 -9
  1018. package/docs/models/shared/events.md +0 -9
  1019. package/docs/models/shared/eventsearchcriteria.md +0 -9
  1020. package/docs/models/shared/fixedfeequantitychange.md +0 -11
  1021. package/docs/models/shared/fixedfeequantitychangechangeoption.md +0 -12
  1022. package/docs/models/shared/fixedfeequantityscheduleentry.md +0 -11
  1023. package/docs/models/shared/fixedfeequantitytransition.md +0 -10
  1024. package/docs/models/shared/ingestevent.md +0 -13
  1025. package/docs/models/shared/ingesteventproperties.md +0 -9
  1026. package/docs/models/shared/ingestionresponse.md +0 -9
  1027. package/docs/models/shared/ingestrequestbody.md +0 -8
  1028. package/docs/models/shared/invoice.md +0 -51
  1029. package/docs/models/shared/invoicelineitem.md +0 -23
  1030. package/docs/models/shared/invoicelineitemparams.md +0 -14
  1031. package/docs/models/shared/invoicelineitemparamsmodeltype.md +0 -8
  1032. package/docs/models/shared/invoicemetadata.md +0 -7
  1033. package/docs/models/shared/invoiceminified.md +0 -8
  1034. package/docs/models/shared/invoices.md +0 -9
  1035. package/docs/models/shared/invoicestatus.md +0 -12
  1036. package/docs/models/shared/item.md +0 -14
  1037. package/docs/models/shared/itemexternalconnection.md +0 -9
  1038. package/docs/models/shared/items.md +0 -9
  1039. package/docs/models/shared/markaspaidrequestparams.md +0 -10
  1040. package/docs/models/shared/maximum.md +0 -9
  1041. package/docs/models/shared/maximuminterval.md +0 -12
  1042. package/docs/models/shared/minimum.md +0 -9
  1043. package/docs/models/shared/minimuminterval.md +0 -12
  1044. package/docs/models/shared/newaccountingsyncconfiguration.md +0 -9
  1045. package/docs/models/shared/newbackfill.md +0 -13
  1046. package/docs/models/shared/newbillablemetric.md +0 -12
  1047. package/docs/models/shared/newbillablemetricmetadata.md +0 -9
  1048. package/docs/models/shared/newcoupon.md +0 -11
  1049. package/docs/models/shared/newcoupondiscount.md +0 -7
  1050. package/docs/models/shared/newcustomer.md +0 -23
  1051. package/docs/models/shared/newcustomerbalancetransaction.md +0 -10
  1052. package/docs/models/shared/newcustomerbalancetransactiontype.md +0 -9
  1053. package/docs/models/shared/newcustomermetadata.md +0 -9
  1054. package/docs/models/shared/newcustomerpaymentprovider.md +0 -14
  1055. package/docs/models/shared/newplan.md +0 -14
  1056. package/docs/models/shared/newplanmetadata.md +0 -7
  1057. package/docs/models/shared/newplanprices.md +0 -7
  1058. package/docs/models/shared/newreportingconfiguration.md +0 -8
  1059. package/docs/models/shared/newsubscription.md +0 -31
  1060. package/docs/models/shared/newsubscriptionexternalmarketplace.md +0 -10
  1061. package/docs/models/shared/newsubscriptionmetadata.md +0 -7
  1062. package/docs/models/shared/paginationmetadata.md +0 -9
  1063. package/docs/models/shared/perpricecost.md +0 -12
  1064. package/docs/models/shared/phaseoverride.md +0 -11
  1065. package/docs/models/shared/pingresponse.md +0 -8
  1066. package/docs/models/shared/plan.md +0 -33
  1067. package/docs/models/shared/planmetadata.md +0 -7
  1068. package/docs/models/shared/planminified.md +0 -10
  1069. package/docs/models/shared/planphase.md +0 -18
  1070. package/docs/models/shared/planphasedurationunit.md +0 -11
  1071. package/docs/models/shared/plans.md +0 -9
  1072. package/docs/models/shared/planstatus.md +0 -10
  1073. package/docs/models/shared/pricegroup.md +0 -12
  1074. package/docs/models/shared/priceinterval.md +0 -18
  1075. package/docs/models/shared/priceintervalfixedfeequantitytransitionparams.md +0 -9
  1076. package/docs/models/shared/prices.md +0 -9
  1077. package/docs/models/shared/product.md +0 -10
  1078. package/docs/models/shared/reportingconfiguration.md +0 -8
  1079. package/docs/models/shared/security.md +0 -8
  1080. package/docs/models/shared/subscription.md +0 -44
  1081. package/docs/models/shared/subscriptioncosts.md +0 -8
  1082. package/docs/models/shared/subscriptionmetadata.md +0 -9
  1083. package/docs/models/shared/subscriptionminified.md +0 -8
  1084. package/docs/models/shared/subscriptionplanchange.md +0 -23
  1085. package/docs/models/shared/subscriptions.md +0 -9
  1086. package/docs/models/shared/subscriptionscheduleitem.md +0 -10
  1087. package/docs/models/shared/subscriptionscheduleitems.md +0 -9
  1088. package/docs/models/shared/subscriptionstatus.md +0 -10
  1089. package/docs/models/shared/subscriptiontrialinfo.md +0 -8
  1090. package/docs/models/shared/taxamount.md +0 -10
  1091. package/docs/models/shared/trialconfig.md +0 -9
  1092. package/docs/models/shared/trialconfigtrialperiodunit.md +0 -8
  1093. package/docs/models/shared/triggersubscriptionphaseparams.md +0 -8
  1094. package/docs/models/shared/unschedulefixedfeequantitychangeparams.md +0 -8
  1095. package/docs/models/shared/upcominginvoice.md +0 -46
  1096. package/docs/models/shared/upcominginvoicemetadata.md +0 -7
  1097. package/docs/models/shared/upcominginvoicestatus.md +0 -12
  1098. package/docs/models/shared/updateevent.md +0 -12
  1099. package/docs/models/shared/updateeventproperties.md +0 -9
  1100. package/docs/models/shared/validationerror.md +0 -9
  1101. package/docs/sdks/availability/README.md +0 -46
  1102. package/docs/sdks/coupon/README.md +0 -235
  1103. package/docs/sdks/credit/README.md +0 -565
  1104. package/docs/sdks/creditnote/README.md +0 -94
  1105. package/docs/sdks/customer/README.md +0 -1080
  1106. package/docs/sdks/event/README.md +0 -674
  1107. package/docs/sdks/invoice/README.md +0 -388
  1108. package/docs/sdks/item/README.md +0 -92
  1109. package/docs/sdks/metric/README.md +0 -136
  1110. package/docs/sdks/orb/README.md +0 -21
  1111. package/docs/sdks/plan/README.md +0 -298
  1112. package/docs/sdks/price/README.md +0 -375
  1113. package/docs/sdks/priceinterval/README.md +0 -137
  1114. package/docs/sdks/subscription/README.md +0 -1306
  1115. package/docs/types/rfcdate.md +0 -11
@@ -1,1080 +0,0 @@
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 { AmendUsageRequest } from "orb-billing/dist/sdk/models/operations";
121
- import { UpdateEvent, UpdateEventProperties } from "orb-billing/dist/sdk/models/shared";
122
-
123
- (async() => {
124
- const sdk = new Orb({
125
- security: {
126
- apiKey: "",
127
- },
128
- });
129
- const customerId: string = "Steel";
130
- const updateEvent: UpdateEvent = {
131
- eventName: "channels",
132
- properties: {},
133
- timestamp: new Date("2020-12-09T16:09:53Z"),
134
- };
135
- const timeframeEnd: Date = new Date("2022-10-24T01:13:02.226Z");
136
- const timeframeStart: Date = new Date("2022-08-07T07:39:12.946Z");
137
-
138
- const res = await sdk.customer.amend(customerId, updateEvent, timeframeEnd, timeframeStart);
139
-
140
- if (res.statusCode == 200) {
141
- // handle response
142
- }
143
- })();
144
- ```
145
-
146
- ### Parameters
147
-
148
- | Parameter | Type | Required | Description |
149
- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
150
- | `customerId` | *string* | :heavy_check_mark: | N/A |
151
- | `updateEvent` | [shared.UpdateEvent](../../models/shared/updateevent.md) | :heavy_minus_sign: | N/A |
152
- | `timeframeEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
153
- | `timeframeStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
154
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
155
-
156
-
157
- ### Response
158
-
159
- **Promise<[operations.AmendUsageResponse](../../models/operations/amendusageresponse.md)>**
160
-
161
-
162
- ## amendByExternalId
163
-
164
- This endpoint is used to amend usage within a timeframe for a customer that has an active subscription.
165
-
166
- This endpoint will mark _all_ existing events within `[timeframe_start, timeframe_end)` as _ignored_ for billing purpo
167
- ses, and Orb will only use the _new_ events passed in the body of this request as the source of truth for that timeframe
168
- moving forwards.
169
- Note that a given time period can be amended any number of times, so events can be overwritten in subsequent calls to th
170
- is endpoint.
171
-
172
- This is a powerful and audit-safe mechanism to retroactively change usage data in cases where you need to:
173
- - decrease historical usage consumption because of degraded service availability in your systems
174
- - account for gaps from your usage reporting mechanism
175
- - make point-in-time fixes for specific event records, while ret
176
- aining the original time of usage and associated metadata.
177
- This amendment API is designed with two explicit goals:
178
- 1. Amendments are **always audit-safe**. The amendment process
179
- will still retain original events in the timeframe, though they will be ignored for billing calculations. For auditing a
180
- nd data fidelity purposes, Orb never overwrites or permanently deletes ingested usage data.
181
- 2. Amendments always preser
182
- ve data **consistency**. In other words, either an amendment is fully processed by the system (and the new events for th
183
- e timeframe are honored rather than the existing ones) or the amendment request fails. To maintain this important proper
184
- ty, Orb prevents _partial event ingestion_ on this endpoint.
185
-
186
- ## Response semantics
187
- - Either all events are ingested successfully, or all fail to ingest (returning a `4xx` or `5xx` response code).
188
- - Any event that fails schema validation will lead to a `4xx` response. In this case, to maintain data consistency,
189
- Orb will not ingest any events and will
190
- also not deprecate existing events in the time period.
191
- - You can assume that the amendment is successful on receipt of
192
- a `2xx` response.While a successful response from this endpoint indicates that the new events have been ingested, updati
193
- ng usage totals happens asynchronously and may be delayed by a few minutes.
194
-
195
- As emphasized above, Orb will never show
196
- an inconsistent state (e.g. in invoice previews or dashboards); either it will show the existing state (before the amend
197
- ment) or the new state (with new events in the requested timeframe).
198
-
199
- ## Sample request body
200
- ```json
201
- {
202
- "events": [{
203
- "event_name": "payment_processed",
204
- "timestamp": "2022-03-24T07:15:00Z",
205
- "properties": {
206
- "amount": 100
207
- }
208
- }, {
209
- "event_name": "payment_failed",
210
- "timestamp": "2022-03-24T07:15:00Z",
211
- "properties": {
212
- "amount": 100
213
- }
214
- }]
215
- }
216
- ```
217
-
218
- ## Request Validation
219
- - The `timestamp` of
220
- each event reported must fall within the bounds of `timeframe_start` and `timeframe_end`. As with ingestion, all timesta
221
- mps must be sent in ISO8601 format with UTC timezone offset.
222
- - Orb **does not accept an `idempotency_key`** with each
223
- event in this endpoint, since the entirety of the event list must be ingested to ensure consistency. On retryable errors
224
- , you should retry the request in its entirety, and assume that the amendment operation has not succeeded until receipt
225
- of a `2xx`.
226
-
227
- - Both `timeframe_start` and `timeframe_end` must be timestamps in the past. Furthermore, Orb will genera
228
- lly validate that the `timeframe_start` and `timeframe_end` fall within the customer's _current_ subscription billing pe
229
- riod. However, Orb does allow amendments while in the grace period of the previous billing period; in this instance, the
230
- timeframe can start before the current period.
231
-
232
- ## API Limits
233
- Note that Orb does not currently enforce a hard rate-
234
- limit for API usage or a maximum request payload size. Similar to the event ingestion API, this API is architected for h
235
- igh-throughput ingestion. It is also safe to _programmatically_ call this endpoint if your system can automatically dete
236
- ct a need for historical amendment.
237
-
238
- In order to overwrite timeframes with a very large number of events, we suggest using multiple calls with small adjacent
239
- (e.g. every hour) timeframes.
240
-
241
- ### Example Usage
242
-
243
- ```typescript
244
- import { Orb } from "orb-billing";
245
- import { AmendUsageExternalCustomerIdRequest } from "orb-billing/dist/sdk/models/operations";
246
- import { UpdateEvent, UpdateEventProperties } from "orb-billing/dist/sdk/models/shared";
247
-
248
- (async() => {
249
- const sdk = new Orb({
250
- security: {
251
- apiKey: "",
252
- },
253
- });
254
- const externalCustomerId: string = "Awesome";
255
- const updateEvent: UpdateEvent = {
256
- eventName: "Assurance Highway Gloves",
257
- properties: {},
258
- timestamp: new Date("2020-12-09T16:09:53Z"),
259
- };
260
- const timeframeEnd: Date = new Date("2022-11-04T12:23:37.450Z");
261
- const timeframeStart: Date = new Date("2021-02-05T19:10:39.767Z");
262
-
263
- const res = await sdk.customer.amendByExternalId(externalCustomerId, updateEvent, timeframeEnd, timeframeStart);
264
-
265
- if (res.statusCode == 200) {
266
- // handle response
267
- }
268
- })();
269
- ```
270
-
271
- ### Parameters
272
-
273
- | Parameter | Type | Required | Description |
274
- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
275
- | `externalCustomerId` | *string* | :heavy_check_mark: | N/A |
276
- | `updateEvent` | [shared.UpdateEvent](../../models/shared/updateevent.md) | :heavy_minus_sign: | N/A |
277
- | `timeframeEnd` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
278
- | `timeframeStart` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A |
279
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
280
-
281
-
282
- ### Response
283
-
284
- **Promise<[operations.AmendUsageExternalCustomerIdResponse](../../models/operations/amendusageexternalcustomeridresponse.md)>**
285
-
286
-
287
- ## create
288
-
289
- This operation is used to create an Orb customer, who is party to the core billing relationship. See
290
- [Customer](../guides/concepts#customer) for an overview of the customer resource.
291
-
292
- This endpoint is critical in the following Orb functionality:
293
- * Automated charges can be configured by setting `payment_provider` and `payment_provider_id` to automatically
294
- issue invoices
295
- * [Customer ID Aliases](../guides/events-and-metrics/customer-aliases) can be configured by setting
296
- `external_customer_id`
297
- * [Timezone localization](../guides/product-catalog/timezones.md) can be configured on a per-customer basis by
298
- setting the `timezone` parameter
299
-
300
- ### Example Usage
301
-
302
- ```typescript
303
- import { Orb } from "orb-billing";
304
- import { NewCustomerPaymentProvider } from "orb-billing/dist/sdk/models/shared";
305
-
306
- (async() => {
307
- const sdk = new Orb({
308
- security: {
309
- apiKey: "",
310
- },
311
- });
312
-
313
- const res = await sdk.customer.create({
314
- accountingSyncConfiguration: {
315
- accountingProviders: [
316
- {
317
- externalProviderId: "bluetooth Extended",
318
- providerType: "blue",
319
- },
320
- ],
321
- },
322
- additionalEmails: [
323
- "shred",
324
- ],
325
- billingAddress: {},
326
- email: "Valerie45@yahoo.com",
327
- metadata: {},
328
- name: "evolve",
329
- reportingConfiguration: {
330
- exempt: false,
331
- },
332
- shippingAddress: {},
333
- taxId: {
334
- country: "Portugal",
335
- type: "SUV quantify Polestar",
336
- value: "physical Ameliorated",
337
- },
338
- });
339
-
340
- if (res.statusCode == 200) {
341
- // handle response
342
- }
343
- })();
344
- ```
345
-
346
- ### Parameters
347
-
348
- | Parameter | Type | Required | Description |
349
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
350
- | `request` | [shared.NewCustomer](../../models/shared/newcustomer.md) | :heavy_check_mark: | The request object to use for the request. |
351
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
352
-
353
-
354
- ### Response
355
-
356
- **Promise<[operations.CreateCustomerResponse](../../models/operations/createcustomerresponse.md)>**
357
-
358
-
359
- ## createBalanceTransaction
360
-
361
- Creates an immutable balance transaction that updates the customer's balance and returns back the newly created
362
- transaction.
363
-
364
- ### Example Usage
365
-
366
- ```typescript
367
- import { Orb } from "orb-billing";
368
- import { CreateCustomerBalanceTransactionRequest } from "orb-billing/dist/sdk/models/operations";
369
- import { NewCustomerBalanceTransaction, NewCustomerBalanceTransactionType } from "orb-billing/dist/sdk/models/shared";
370
-
371
- (async() => {
372
- const sdk = new Orb({
373
- security: {
374
- apiKey: "",
375
- },
376
- });
377
- const customerId: string = "Intelligent";
378
- const newCustomerBalanceTransaction: NewCustomerBalanceTransaction = {
379
- amount: "233.83",
380
- type: NewCustomerBalanceTransactionType.Decrement,
381
- };
382
-
383
- const res = await sdk.customer.createBalanceTransaction(customerId, newCustomerBalanceTransaction);
384
-
385
- if (res.statusCode == 200) {
386
- // handle response
387
- }
388
- })();
389
- ```
390
-
391
- ### Parameters
392
-
393
- | Parameter | Type | Required | Description |
394
- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
395
- | `customerId` | *string* | :heavy_check_mark: | N/A |
396
- | `newCustomerBalanceTransaction` | [shared.NewCustomerBalanceTransaction](../../models/shared/newcustomerbalancetransaction.md) | :heavy_minus_sign: | N/A |
397
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
398
-
399
-
400
- ### Response
401
-
402
- **Promise<[operations.CreateCustomerBalanceTransactionResponse](../../models/operations/createcustomerbalancetransactionresponse.md)>**
403
-
404
-
405
- ## delete
406
-
407
- This performs a deletion of this customer, its subscriptions, and its invoices.
408
- This operation is irreversible. Note that this is a _soft_ deletion, but the data
409
- will be inaccessible through the API and Orb dashboard. For hard-deletion, please
410
- reach out to the Orb team directly.
411
-
412
- **Note**: This operation happens asynchronously and can be expected to take a
413
- few minutes to propagate to related resources. However, querying for the customer on
414
- subsequent GET requests while deletion is in process will reflect its deletion with
415
- a `deleted: true` property. Once the customer deletion has been fully processed,
416
- the customer will not be returned in the API.
417
-
418
-
419
- On successful processing, this returns an empty dictionary (`{}`) in the API.
420
-
421
- ### Example Usage
422
-
423
- ```typescript
424
- import { Orb } from "orb-billing";
425
- import { DeleteCustomerRequest } from "orb-billing/dist/sdk/models/operations";
426
-
427
- (async() => {
428
- const sdk = new Orb({
429
- security: {
430
- apiKey: "",
431
- },
432
- });
433
- const customerId: string = "program";
434
-
435
- const res = await sdk.customer.delete(customerId);
436
-
437
- if (res.statusCode == 200) {
438
- // handle response
439
- }
440
- })();
441
- ```
442
-
443
- ### Parameters
444
-
445
- | Parameter | Type | Required | Description |
446
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
447
- | `customerId` | *string* | :heavy_check_mark: | N/A |
448
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
449
-
450
-
451
- ### Response
452
-
453
- **Promise<[operations.DeleteCustomerResponse](../../models/operations/deletecustomerresponse.md)>**
454
-
455
-
456
- ## fetch
457
-
458
- This endpoint is used to fetch customer details given an identifier. If the `Customer` is in the process of being deleted,
459
- only the properties `id` and `deleted: true` will be returned.
460
-
461
- See the [Customer resource](../guides/core-concepts.mdx#customer) for a full discussion of the Customer model.
462
-
463
- ### Example Usage
464
-
465
- ```typescript
466
- import { Orb } from "orb-billing";
467
- import { FetchCustomerRequest } from "orb-billing/dist/sdk/models/operations";
468
-
469
- (async() => {
470
- const sdk = new Orb({
471
- security: {
472
- apiKey: "",
473
- },
474
- });
475
- const customerId: string = "grateful";
476
-
477
- const res = await sdk.customer.fetch(customerId);
478
-
479
- if (res.statusCode == 200) {
480
- // handle response
481
- }
482
- })();
483
- ```
484
-
485
- ### Parameters
486
-
487
- | Parameter | Type | Required | Description |
488
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
489
- | `customerId` | *string* | :heavy_check_mark: | N/A |
490
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
491
-
492
-
493
- ### Response
494
-
495
- **Promise<[operations.FetchCustomerResponse](../../models/operations/fetchcustomerresponse.md)>**
496
-
497
-
498
- ## fetchByExternalId
499
-
500
- This endpoint is used to fetch customer details given an `external_customer_id` (see
501
- [Customer ID Aliases](../guides/events-and-metrics/customer-aliases)).
502
-
503
- Note that the resource and semantics of this endpoint exactly mirror [Get Customer](fetch-customer).
504
-
505
- ### Example Usage
506
-
507
- ```typescript
508
- import { Orb } from "orb-billing";
509
- import { FetchCustomerExternalIdRequest } from "orb-billing/dist/sdk/models/operations";
510
-
511
- (async() => {
512
- const sdk = new Orb({
513
- security: {
514
- apiKey: "",
515
- },
516
- });
517
- const externalCustomerId: string = "Technician";
518
-
519
- const res = await sdk.customer.fetchByExternalId(externalCustomerId);
520
-
521
- if (res.statusCode == 200) {
522
- // handle response
523
- }
524
- })();
525
- ```
526
-
527
- ### Parameters
528
-
529
- | Parameter | Type | Required | Description |
530
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
531
- | `externalCustomerId` | *string* | :heavy_check_mark: | N/A |
532
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
533
-
534
-
535
- ### Response
536
-
537
- **Promise<[operations.FetchCustomerExternalIdResponse](../../models/operations/fetchcustomerexternalidresponse.md)>**
538
-
539
-
540
- ## fetchCosts
541
-
542
- This endpoint is used to fetch a day-by-day snapshot of a customer's costs in Orb, calculated by applying pricing
543
- information to the underlying usage (see the [subscription usage endpoint](fetch-subscription-usage.api.mdx) to
544
- fetch usage per metric, in usage units rather than a currency).
545
-
546
- This endpoint can be leveraged for internal tooling and to provide a more transparent billing experience for your
547
- end users:
548
-
549
- 1. Understand the cost breakdown per line item historically and in real-time for the current billing period.
550
- 2. Provide customer visibility into how different services are contributing to the overall invoice with a per-day
551
- timeseries (as compared to the [upcoming invoice](fetch-upcoming-invoice) resource, which represents a snapshot
552
- for the current period).
553
- 3. Assess how minimums and discounts affect your customers by teasing apart costs directly as a result of usage,
554
- as opposed to minimums and discounts at the plan and price level.
555
- 4. Gain insight into key customer health metrics, such as the percent utilization of the minimum committed spend.
556
-
557
- ## Fetching subscriptions
558
- By default, this endpoint fetches the currently active subscription for the customer, and returns cost information
559
- for the subscription's current billing period, broken down by each participating price. If there are no currently
560
- active subscriptions, this will instead default to the most recently active subscription or return an empty series
561
- if none are found. For example, if your plan charges for compute hours, job runs, and data syncs, then this endpoint
562
- would provide a daily breakdown of your customer's cost for each of those axes.
563
-
564
- If timeframe bounds are specified, Orb fetches all subscriptions that were active in that timeframe. If two
565
- subscriptions overlap on a single day, costs from each price will be summed, and prices for both subscriptions will
566
- be included in the breakdown.
567
-
568
- ## Prepaid plans
569
- For plans that include prices which deduct credits rather than accrue in-arrears charges in a billable currency,
570
- this endpoint will return the total deduction amount, in credits, for the specified timeframe.
571
-
572
- ## Cumulative subtotals and totals
573
- Since the subtotal and total must factor in any billing-period level discounts and minimums, it's most meaningful
574
- to consider costs relative to the start of the subscription's billing period. As a result, by default this endpoint
575
- returns cumulative totals since the beginning of the billing period. In particular, the `timeframe_start` of a
576
- returned timeframe window is *always* the beginning of the billing period and `timeframe_end` is incremented one day
577
- at a time to build the result.
578
-
579
- A customer that uses a few API calls a day but has a minimum commitment might exhibit the following pattern for
580
- their subtotal and total in the first few days of the month. Here, we assume that each API call is $2.50, the
581
- customer's plan has a monthly minimum of $50 for this price, and that the subscription's billing period bounds are
582
- aligned to the first of the month:
583
-
584
- | timeframe_start | timeframe_end | Cumulative usage | Subtotal | Total (incl. commitment) |
585
- | -----------| ----------- | ----------- | ----------- |----------- |
586
- | 2023-02-01 | 2023-02-02 | 9 | $22.50 | $50.00 |
587
- | 2023-02-01 | 2023-02-03 | 19 | $47.50 | $50.00 |
588
- | 2023-02-01 | 2023-02-04 | 20 | $50.00 | $50.00 |
589
- | 2023-02-01 | 2023-02-05 | 28 | $70.00 | $70.00 |
590
- | 2023-02-01 | 2023-02-06 | 36 | $90.00 | $90.00 |
591
-
592
- ### Periodic values
593
- When the query parameter `view_mode=periodic` is specified, Orb will return an incremental day-by-day view of costs.
594
- In this case, there will always be a one-day difference between `timeframe_start` and `timeframe_end` for the
595
- timeframes returned. This is a transform on top of the cumulative costs, calculated by taking the difference of each
596
- timeframe with the last. Note that in the above example, the `Total` value would be 0 for the second two data
597
- points, since the minimum commitment has not yet been hit and each day is not contributing anything to the total
598
- cost.
599
-
600
- ## Timeframe bounds
601
- If no timeframe bounds are specified, the response will default to the current billing period for the customer's
602
- subscription. For subscriptions that have ended, this will be the billing period when they were last active. If the
603
- subscription starts or ends within the timeframe, the response will only include windows where the subscription is
604
- active.
605
-
606
- As noted above, `timeframe_start` for a given cumulative datapoint is always the beginning of the billing period,
607
- and `timeframe_end` is incremented one day at a time to construct the response. When a timeframe is passed in that
608
- is not aligned to the current subscription's billing period, the response will contain cumulative totals from
609
- multiple billing periods.
610
-
611
- Suppose the queried customer has a subscription aligned to the 15th of every month. If this endpoint is queried with
612
- the date range `2023-06-01` - `2023-07-01`, the first data point will represent about half a billing period's worth
613
- of costs, accounting for accruals from the start of the billing period and inclusive of the first day of the
614
- timeframe (`timeframe_start = 2023-05-15 00:00:00`, `timeframe_end = 2023-06-02 00:00:00`)
615
-
616
- | datapoint index | timeframe_start | timeframe_end |
617
- | ----------- | -----------| ----------- |
618
- | 0 | 2023-05-15 | 2023-06-02 |
619
- | 1 | 2023-05-15 | 2023-06-03 |
620
- | 2 | ... | ... |
621
- | 3 | 2023-05-15 | 2023-06-14 |
622
- | 4 | 2023-06-15 | 2023-06-16 |
623
- | 5 | 2023-06-15 | 2023-06-17 |
624
- | 6 | ... | ... |
625
- | 7 | 2023-06-15 | 2023-07-01 |
626
-
627
- You can see this sliced timeframe visualized [here](https://i.imgur.com/TXhYgme.png).
628
-
629
- ## Grouping by custom attributes
630
- In order to view costs grouped by a specific _attribute_ that each event is tagged with (i.e. `cluster`), you can
631
- additionally specify a `group_by` key. The `group_by` key denotes the event property on which to group.
632
-
633
- When returning grouped costs, a separate `price_group` object in the `per_price_costs` array is returned for each
634
- value of the `group_by` key present in your events. The `subtotal` value of the `per_price_costs` object is the sum
635
- of each `price_group`'s total.
636
-
637
- Orb expects events will contain values in the `properties` dictionary that correspond to the `group_by` key
638
- specified. By default, Orb will return a `null` group (i.e. events that match the metric but do not have the key
639
- set). Currently, it is only possible to view costs grouped by a single attribute at a time.
640
-
641
- ### Matrix prices
642
- When a price uses matrix pricing, it's important to view costs grouped by those matrix dimensions. Orb will return
643
- `price_groups` with the `grouping_key` and `secondary_grouping_key` based on the matrix price definition, for each
644
- `grouping_value` and `secondary_grouping_value` available.
645
-
646
- ### Example Usage
647
-
648
- ```typescript
649
- import { Orb } from "orb-billing";
650
- import { FetchCustomerCostsViewModeViewMode } from "orb-billing/dist/sdk/models/operations";
651
-
652
- (async() => {
653
- const sdk = new Orb({
654
- security: {
655
- apiKey: "",
656
- },
657
- });
658
-
659
- const res = await sdk.customer.fetchCosts({
660
- customerId: "disintermediate",
661
- timeframeEnd: new Date("2022-03-01T05:00:00Z"),
662
- timeframeStart: new Date("2022-02-01T05:00:00Z"),
663
- });
664
-
665
- if (res.statusCode == 200) {
666
- // handle response
667
- }
668
- })();
669
- ```
670
-
671
- ### Parameters
672
-
673
- | Parameter | Type | Required | Description |
674
- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
675
- | `request` | [operations.FetchCustomerCostsRequest](../../models/operations/fetchcustomercostsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
676
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
677
-
678
-
679
- ### Response
680
-
681
- **Promise<[operations.FetchCustomerCostsResponse](../../models/operations/fetchcustomercostsresponse.md)>**
682
-
683
-
684
- ## fetchCostsByExternalId
685
-
686
- This endpoint is used to fetch a day-by-day snapshot of a customer's costs in Orb, calculated by applying pricing
687
- information to the underlying usage (see the [subscription usage endpoint](fetch-subscription-usage.api.mdx) to
688
- fetch usage per metric, in usage units rather than a currency).
689
-
690
- This endpoint can be leveraged for internal tooling and to provide a more transparent billing experience for your
691
- end users:
692
-
693
- 1. Understand the cost breakdown per line item historically and in real-time for the current billing period.
694
- 2. Provide customer visibility into how different services are contributing to the overall invoice with a per-day
695
- timeseries (as compared to the [upcoming invoice](fetch-upcoming-invoice) resource, which represents a snapshot
696
- for the current period).
697
- 3. Assess how minimums and discounts affect your customers by teasing apart costs directly as a result of usage,
698
- as opposed to minimums and discounts at the plan and price level.
699
- 4. Gain insight into key customer health metrics, such as the percent utilization of the minimum committed spend.
700
-
701
- ## Fetching subscriptions
702
- By default, this endpoint fetches the currently active subscription for the customer, and returns cost information
703
- for the subscription's current billing period, broken down by each participating price. If there are no currently
704
- active subscriptions, this will instead default to the most recently active subscription or return an empty series
705
- if none are found. For example, if your plan charges for compute hours, job runs, and data syncs, then this endpoint
706
- would provide a daily breakdown of your customer's cost for each of those axes.
707
-
708
- If timeframe bounds are specified, Orb fetches all subscriptions that were active in that timeframe. If two
709
- subscriptions overlap on a single day, costs from each price will be summed, and prices for both subscriptions will
710
- be included in the breakdown.
711
-
712
- ## Prepaid plans
713
- For plans that include prices which deduct credits rather than accrue in-arrears charges in a billable currency,
714
- this endpoint will return the total deduction amount, in credits, for the specified timeframe.
715
-
716
- ## Cumulative subtotals and totals
717
- Since the subtotal and total must factor in any billing-period level discounts and minimums, it's most meaningful
718
- to consider costs relative to the start of the subscription's billing period. As a result, by default this endpoint
719
- returns cumulative totals since the beginning of the billing period. In particular, the `timeframe_start` of a
720
- returned timeframe window is *always* the beginning of the billing period and `timeframe_end` is incremented one day
721
- at a time to build the result.
722
-
723
- A customer that uses a few API calls a day but has a minimum commitment might exhibit the following pattern for
724
- their subtotal and total in the first few days of the month. Here, we assume that each API call is $2.50, the
725
- customer's plan has a monthly minimum of $50 for this price, and that the subscription's billing period bounds are
726
- aligned to the first of the month:
727
-
728
- | timeframe_start | timeframe_end | Cumulative usage | Subtotal | Total (incl. commitment) |
729
- | -----------| ----------- | ----------- | ----------- |----------- |
730
- | 2023-02-01 | 2023-02-02 | 9 | $22.50 | $50.00 |
731
- | 2023-02-01 | 2023-02-03 | 19 | $47.50 | $50.00 |
732
- | 2023-02-01 | 2023-02-04 | 20 | $50.00 | $50.00 |
733
- | 2023-02-01 | 2023-02-05 | 28 | $70.00 | $70.00 |
734
- | 2023-02-01 | 2023-02-06 | 36 | $90.00 | $90.00 |
735
-
736
- ### Periodic values
737
- When the query parameter `view_mode=periodic` is specified, Orb will return an incremental day-by-day view of costs.
738
- In this case, there will always be a one-day difference between `timeframe_start` and `timeframe_end` for the
739
- timeframes returned. This is a transform on top of the cumulative costs, calculated by taking the difference of each
740
- timeframe with the last. Note that in the above example, the `Total` value would be 0 for the second two data
741
- points, since the minimum commitment has not yet been hit and each day is not contributing anything to the total
742
- cost.
743
-
744
- ## Timeframe bounds
745
- If no timeframe bounds are specified, the response will default to the current billing period for the customer's
746
- subscription. For subscriptions that have ended, this will be the billing period when they were last active. If the
747
- subscription starts or ends within the timeframe, the response will only include windows where the subscription is
748
- active.
749
-
750
- As noted above, `timeframe_start` for a given cumulative datapoint is always the beginning of the billing period,
751
- and `timeframe_end` is incremented one day at a time to construct the response. When a timeframe is passed in that
752
- is not aligned to the current subscription's billing period, the response will contain cumulative totals from
753
- multiple billing periods.
754
-
755
- Suppose the queried customer has a subscription aligned to the 15th of every month. If this endpoint is queried with
756
- the date range `2023-06-01` - `2023-07-01`, the first data point will represent about half a billing period's worth
757
- of costs, accounting for accruals from the start of the billing period and inclusive of the first day of the
758
- timeframe (`timeframe_start = 2023-05-15 00:00:00`, `timeframe_end = 2023-06-02 00:00:00`)
759
-
760
- | datapoint index | timeframe_start | timeframe_end |
761
- | ----------- | -----------| ----------- |
762
- | 0 | 2023-05-15 | 2023-06-02 |
763
- | 1 | 2023-05-15 | 2023-06-03 |
764
- | 2 | ... | ... |
765
- | 3 | 2023-05-15 | 2023-06-14 |
766
- | 4 | 2023-06-15 | 2023-06-16 |
767
- | 5 | 2023-06-15 | 2023-06-17 |
768
- | 6 | ... | ... |
769
- | 7 | 2023-06-15 | 2023-07-01 |
770
-
771
- You can see this sliced timeframe visualized [here](https://i.imgur.com/TXhYgme.png).
772
-
773
- ## Grouping by custom attributes
774
- In order to view costs grouped by a specific _attribute_ that each event is tagged with (i.e. `cluster`), you can
775
- additionally specify a `group_by` key. The `group_by` key denotes the event property on which to group.
776
-
777
- When returning grouped costs, a separate `price_group` object in the `per_price_costs` array is returned for each
778
- value of the `group_by` key present in your events. The `subtotal` value of the `per_price_costs` object is the sum
779
- of each `price_group`'s total.
780
-
781
- Orb expects events will contain values in the `properties` dictionary that correspond to the `group_by` key
782
- specified. By default, Orb will return a `null` group (i.e. events that match the metric but do not have the key
783
- set). Currently, it is only possible to view costs grouped by a single attribute at a time.
784
-
785
- ### Matrix prices
786
- When a price uses matrix pricing, it's important to view costs grouped by those matrix dimensions. Orb will return
787
- `price_groups` with the `grouping_key` and `secondary_grouping_key` based on the matrix price definition, for each
788
- `grouping_value` and `secondary_grouping_value` available.
789
-
790
- ### Example Usage
791
-
792
- ```typescript
793
- import { Orb } from "orb-billing";
794
- import { FetchCustomerCostsExternalIdViewModeViewMode } from "orb-billing/dist/sdk/models/operations";
795
-
796
- (async() => {
797
- const sdk = new Orb({
798
- security: {
799
- apiKey: "",
800
- },
801
- });
802
-
803
- const res = await sdk.customer.fetchCostsByExternalId({
804
- externalCustomerId: "TLS Gadolinium Music",
805
- timeframeEnd: new Date("2022-03-01T05:00:00Z"),
806
- timeframeStart: new Date("2022-02-01T05:00:00Z"),
807
- });
808
-
809
- if (res.statusCode == 200) {
810
- // handle response
811
- }
812
- })();
813
- ```
814
-
815
- ### Parameters
816
-
817
- | Parameter | Type | Required | Description |
818
- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
819
- | `request` | [operations.FetchCustomerCostsExternalIdRequest](../../models/operations/fetchcustomercostsexternalidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
820
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
821
-
822
-
823
- ### Response
824
-
825
- **Promise<[operations.FetchCustomerCostsExternalIdResponse](../../models/operations/fetchcustomercostsexternalidresponse.md)>**
826
-
827
-
828
- ## list
829
-
830
- This endpoint returns a list of all customers for an account.
831
- The list of customers is ordered starting from the most recently created customer.
832
- This endpoint follows Orb's [standardized pagination format](../reference/pagination).
833
-
834
- See [Customer](../guides/concepts#customer) for an overview of the customer model.
835
-
836
- ### Example Usage
837
-
838
- ```typescript
839
- import { Orb } from "orb-billing";
840
-
841
- (async() => {
842
- const sdk = new Orb({
843
- security: {
844
- apiKey: "",
845
- },
846
- });
847
-
848
- const res = await sdk.customer.list({});
849
-
850
- if (res.statusCode == 200) {
851
- // handle response
852
- }
853
- })();
854
- ```
855
-
856
- ### Parameters
857
-
858
- | Parameter | Type | Required | Description |
859
- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
860
- | `request` | [operations.ListCustomersRequest](../../models/operations/listcustomersrequest.md) | :heavy_check_mark: | The request object to use for the request. |
861
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
862
-
863
-
864
- ### Response
865
-
866
- **Promise<[operations.ListCustomersResponse](../../models/operations/listcustomersresponse.md)>**
867
-
868
-
869
- ## listBalanceTransactions
870
-
871
- ## The customer balance
872
-
873
- The customer balance is an amount in the customer's currency, which Orb automatically applies to subsequent
874
- invoices. This balance can be adjusted manually via Orb's webapp on the customer details page. You can use this
875
- balance to provide a fixed mid-period credit to the customer. Commonly, this is done due to system downtime/SLA
876
- violation, or an adhoc adjustment discussed with the customer.
877
-
878
- If the balance is a positive value at the time of invoicing, it represents that the customer has credit that should
879
- be used to offset the amount due on the next issued invoice. In this case, Orb will automatically reduce the next
880
- invoice by the balance amount, and roll over any remaining balance if the invoice is fully discounted.
881
-
882
- If the balance is a negative value at the time of invoicing, Orb will increase the invoice's amount due with a
883
- positive adjustment, and reset the balance to 0.
884
-
885
- This endpoint retrieves all customer balance transactions in reverse chronological order for a single customer,
886
- providing a complete audit trail of all adjustments and invoice applications.
887
-
888
- ## Eligibility
889
-
890
- The customer balance can only be applied to invoices or adjusted manually if invoices are not synced to a separate
891
- invoicing provider. If a payment gateway such as Stripe is used, the balance will be applied to the invoice before
892
- forwarding payment to the gateway.
893
-
894
- ### Example Usage
895
-
896
- ```typescript
897
- import { Orb } from "orb-billing";
898
-
899
- (async() => {
900
- const sdk = new Orb({
901
- security: {
902
- apiKey: "",
903
- },
904
- });
905
-
906
- const res = await sdk.customer.listBalanceTransactions({
907
- customerId: "than",
908
- });
909
-
910
- if (res.statusCode == 200) {
911
- // handle response
912
- }
913
- })();
914
- ```
915
-
916
- ### Parameters
917
-
918
- | Parameter | Type | Required | Description |
919
- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
920
- | `request` | [operations.ListBalanceTransactionsRequest](../../models/operations/listbalancetransactionsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
921
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
922
-
923
-
924
- ### Response
925
-
926
- **Promise<[operations.ListBalanceTransactionsResponse](../../models/operations/listbalancetransactionsresponse.md)>**
927
-
928
-
929
- ## updateByExternalId
930
-
931
- This endpoint is used to update customer details given an `external_customer_id`
932
- (see [Customer ID Aliases](../guides/events-and-metrics/customer-aliases)).
933
- Note that the resource and semantics of this
934
- endpoint exactly mirror [Update Customer](update-customer).
935
-
936
- ### Example Usage
937
-
938
- ```typescript
939
- import { Orb } from "orb-billing";
940
- import { UpdateCustomerExternalIdRequest } from "orb-billing/dist/sdk/models/operations";
941
- import {
942
- AccountingProviderConfig,
943
- AddressInput,
944
- CustomerTaxId,
945
- EditCustomer,
946
- EditCustomerMetadata,
947
- EditCustomerPaymentProvider,
948
- NewAccountingSyncConfiguration,
949
- NewReportingConfiguration,
950
- } from "orb-billing/dist/sdk/models/shared";
951
-
952
- (async() => {
953
- const sdk = new Orb({
954
- security: {
955
- apiKey: "",
956
- },
957
- });
958
- const externalCustomerId: string = "Bicycle";
959
- const editCustomer: EditCustomer = {
960
- accountingSyncConfiguration: {
961
- accountingProviders: [
962
- {
963
- externalProviderId: "Roselyn",
964
- providerType: "Lesotho Rap",
965
- },
966
- ],
967
- },
968
- additionalEmails: [
969
- "showboat",
970
- ],
971
- billingAddress: {},
972
- metadata: {},
973
- reportingConfiguration: {
974
- exempt: false,
975
- },
976
- shippingAddress: {},
977
- taxId: {
978
- country: "Isle of Man",
979
- type: "tesla",
980
- value: "Branding",
981
- },
982
- };
983
-
984
- const res = await sdk.customer.updateByExternalId(externalCustomerId, editCustomer);
985
-
986
- if (res.statusCode == 200) {
987
- // handle response
988
- }
989
- })();
990
- ```
991
-
992
- ### Parameters
993
-
994
- | Parameter | Type | Required | Description |
995
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
996
- | `externalCustomerId` | *string* | :heavy_check_mark: | N/A |
997
- | `editCustomer` | [shared.EditCustomer](../../models/shared/editcustomer.md) | :heavy_minus_sign: | N/A |
998
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
999
-
1000
-
1001
- ### Response
1002
-
1003
- **Promise<[operations.UpdateCustomerExternalIdResponse](../../models/operations/updatecustomerexternalidresponse.md)>**
1004
-
1005
-
1006
- ## updateCustomer
1007
-
1008
- This endpoint can be used to update the `payment_provider`, `payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
1009
- `auto_collection`, `metadata`, `shipping_address`, `billing_address`, and `additional_emails` of an existing customer.
1010
- "Other fields on a customer are currently immutable.
1011
-
1012
- ### Example Usage
1013
-
1014
- ```typescript
1015
- import { Orb } from "orb-billing";
1016
- import { UpdateCustomerRequest } from "orb-billing/dist/sdk/models/operations";
1017
- import {
1018
- AccountingProviderConfig,
1019
- AddressInput,
1020
- CustomerTaxId,
1021
- EditCustomer,
1022
- EditCustomerMetadata,
1023
- EditCustomerPaymentProvider,
1024
- NewAccountingSyncConfiguration,
1025
- NewReportingConfiguration,
1026
- } from "orb-billing/dist/sdk/models/shared";
1027
-
1028
- (async() => {
1029
- const sdk = new Orb({
1030
- security: {
1031
- apiKey: "",
1032
- },
1033
- });
1034
- const customerId: string = "Gibraltar";
1035
- const editCustomer: EditCustomer = {
1036
- accountingSyncConfiguration: {
1037
- accountingProviders: [
1038
- {
1039
- externalProviderId: "Electric",
1040
- providerType: "Mobility whitewash",
1041
- },
1042
- ],
1043
- },
1044
- additionalEmails: [
1045
- "Southeast",
1046
- ],
1047
- billingAddress: {},
1048
- metadata: {},
1049
- reportingConfiguration: {
1050
- exempt: false,
1051
- },
1052
- shippingAddress: {},
1053
- taxId: {
1054
- country: "Luxembourg",
1055
- type: "program",
1056
- value: "Car Rufiyaa",
1057
- },
1058
- };
1059
-
1060
- const res = await sdk.customer.updateCustomer(customerId, editCustomer);
1061
-
1062
- if (res.statusCode == 200) {
1063
- // handle response
1064
- }
1065
- })();
1066
- ```
1067
-
1068
- ### Parameters
1069
-
1070
- | Parameter | Type | Required | Description |
1071
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
1072
- | `customerId` | *string* | :heavy_check_mark: | N/A |
1073
- | `editCustomer` | [shared.EditCustomer](../../models/shared/editcustomer.md) | :heavy_minus_sign: | N/A |
1074
- | `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
1075
-
1076
-
1077
- ### Response
1078
-
1079
- **Promise<[operations.UpdateCustomerResponse](../../models/operations/updatecustomerresponse.md)>**
1080
-