orb-billing 5.76.0 → 6.0.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 (926) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +118 -45
  3. package/api-promise.d.mts +3 -0
  4. package/api-promise.d.mts.map +1 -0
  5. package/api-promise.d.ts +3 -0
  6. package/api-promise.d.ts.map +1 -0
  7. package/api-promise.js +6 -0
  8. package/api-promise.js.map +1 -0
  9. package/api-promise.mjs +3 -0
  10. package/api-promise.mjs.map +1 -0
  11. package/client.d.mts +474 -0
  12. package/client.d.mts.map +1 -0
  13. package/client.d.ts +474 -0
  14. package/client.d.ts.map +1 -0
  15. package/client.js +650 -0
  16. package/client.js.map +1 -0
  17. package/client.mjs +645 -0
  18. package/client.mjs.map +1 -0
  19. package/core/api-promise.d.mts +46 -0
  20. package/core/api-promise.d.mts.map +1 -0
  21. package/core/api-promise.d.ts +46 -0
  22. package/core/api-promise.d.ts.map +1 -0
  23. package/core/api-promise.js +74 -0
  24. package/core/api-promise.js.map +1 -0
  25. package/core/api-promise.mjs +70 -0
  26. package/core/api-promise.mjs.map +1 -0
  27. package/core/error.d.mts +131 -0
  28. package/core/error.d.mts.map +1 -0
  29. package/core/error.d.ts +131 -0
  30. package/core/error.d.ts.map +1 -0
  31. package/core/error.js +294 -0
  32. package/core/error.js.map +1 -0
  33. package/core/error.mjs +266 -0
  34. package/core/error.mjs.map +1 -0
  35. package/core/pagination.d.mts +67 -0
  36. package/core/pagination.d.mts.map +1 -0
  37. package/core/pagination.d.ts +67 -0
  38. package/core/pagination.d.ts.map +1 -0
  39. package/core/pagination.js +101 -0
  40. package/core/pagination.js.map +1 -0
  41. package/core/pagination.mjs +95 -0
  42. package/core/pagination.mjs.map +1 -0
  43. package/core/resource.d.mts +6 -0
  44. package/core/resource.d.mts.map +1 -0
  45. package/core/resource.d.ts +6 -0
  46. package/core/resource.d.ts.map +1 -0
  47. package/core/resource.js +11 -0
  48. package/core/resource.js.map +1 -0
  49. package/core/resource.mjs +7 -0
  50. package/core/resource.mjs.map +1 -0
  51. package/core/uploads.d.mts +3 -0
  52. package/core/uploads.d.mts.map +1 -0
  53. package/core/uploads.d.ts +3 -0
  54. package/core/uploads.d.ts.map +1 -0
  55. package/core/uploads.js +6 -0
  56. package/core/uploads.js.map +1 -0
  57. package/core/uploads.mjs +2 -0
  58. package/core/uploads.mjs.map +1 -0
  59. package/error.d.mts +3 -0
  60. package/error.d.mts.map +1 -0
  61. package/error.d.ts +2 -131
  62. package/error.d.ts.map +1 -1
  63. package/error.js +3 -291
  64. package/error.js.map +1 -1
  65. package/error.mjs +2 -265
  66. package/error.mjs.map +1 -1
  67. package/index.d.mts +7 -401
  68. package/index.d.mts.map +1 -0
  69. package/index.d.ts +6 -400
  70. package/index.d.ts.map +1 -1
  71. package/index.js +15 -286
  72. package/index.js.map +1 -1
  73. package/index.mjs +6 -259
  74. package/index.mjs.map +1 -1
  75. package/internal/builtin-types.d.mts +73 -0
  76. package/internal/builtin-types.d.mts.map +1 -0
  77. package/internal/builtin-types.d.ts +73 -0
  78. package/internal/builtin-types.d.ts.map +1 -0
  79. package/internal/builtin-types.js +4 -0
  80. package/internal/builtin-types.js.map +1 -0
  81. package/internal/builtin-types.mjs +3 -0
  82. package/internal/builtin-types.mjs.map +1 -0
  83. package/internal/detect-platform.d.mts +15 -0
  84. package/internal/detect-platform.d.mts.map +1 -0
  85. package/internal/detect-platform.d.ts +15 -0
  86. package/internal/detect-platform.d.ts.map +1 -0
  87. package/internal/detect-platform.js +162 -0
  88. package/internal/detect-platform.js.map +1 -0
  89. package/internal/detect-platform.mjs +157 -0
  90. package/internal/detect-platform.mjs.map +1 -0
  91. package/internal/errors.d.mts +3 -0
  92. package/internal/errors.d.mts.map +1 -0
  93. package/internal/errors.d.ts +3 -0
  94. package/internal/errors.d.ts.map +1 -0
  95. package/internal/errors.js +41 -0
  96. package/internal/errors.js.map +1 -0
  97. package/internal/errors.mjs +36 -0
  98. package/internal/errors.mjs.map +1 -0
  99. package/internal/headers.d.mts +20 -0
  100. package/internal/headers.d.mts.map +1 -0
  101. package/internal/headers.d.ts +20 -0
  102. package/internal/headers.d.ts.map +1 -0
  103. package/internal/headers.js +79 -0
  104. package/internal/headers.js.map +1 -0
  105. package/internal/headers.mjs +74 -0
  106. package/internal/headers.mjs.map +1 -0
  107. package/internal/parse.d.mts +12 -0
  108. package/internal/parse.d.mts.map +1 -0
  109. package/internal/parse.d.ts +12 -0
  110. package/internal/parse.d.ts.map +1 -0
  111. package/internal/parse.js +40 -0
  112. package/internal/parse.js.map +1 -0
  113. package/internal/parse.mjs +37 -0
  114. package/internal/parse.mjs.map +1 -0
  115. package/internal/qs/formats.d.mts +7 -0
  116. package/internal/qs/formats.d.mts.map +1 -0
  117. package/internal/qs/formats.d.ts +1 -0
  118. package/internal/qs/formats.d.ts.map +1 -1
  119. package/internal/qs/formats.js +4 -2
  120. package/internal/qs/formats.js.map +1 -1
  121. package/internal/qs/formats.mjs +2 -1
  122. package/internal/qs/formats.mjs.map +1 -1
  123. package/internal/qs/index.d.mts +10 -0
  124. package/internal/qs/index.d.mts.map +1 -0
  125. package/internal/qs/index.d.ts +2 -2
  126. package/internal/qs/index.d.ts.map +1 -1
  127. package/internal/qs/index.mjs.map +1 -1
  128. package/internal/qs/stringify.d.mts +3 -0
  129. package/internal/qs/stringify.d.mts.map +1 -0
  130. package/internal/qs/stringify.d.ts.map +1 -1
  131. package/internal/qs/stringify.js +16 -19
  132. package/internal/qs/stringify.js.map +1 -1
  133. package/internal/qs/stringify.mjs +17 -19
  134. package/internal/qs/stringify.mjs.map +1 -1
  135. package/internal/qs/types.d.mts +57 -0
  136. package/internal/qs/types.d.mts.map +1 -0
  137. package/internal/qs/utils.d.mts +15 -0
  138. package/internal/qs/utils.d.mts.map +1 -0
  139. package/internal/qs/utils.d.ts +1 -0
  140. package/internal/qs/utils.d.ts.map +1 -1
  141. package/internal/qs/utils.js +22 -21
  142. package/internal/qs/utils.js.map +1 -1
  143. package/internal/qs/utils.mjs +12 -12
  144. package/internal/qs/utils.mjs.map +1 -1
  145. package/internal/request-options.d.mts +75 -0
  146. package/internal/request-options.d.mts.map +1 -0
  147. package/internal/request-options.d.ts +75 -0
  148. package/internal/request-options.d.ts.map +1 -0
  149. package/internal/request-options.js +14 -0
  150. package/internal/request-options.js.map +1 -0
  151. package/internal/request-options.mjs +10 -0
  152. package/internal/request-options.mjs.map +1 -0
  153. package/internal/shim-types.d.mts +17 -0
  154. package/internal/shim-types.d.mts.map +1 -0
  155. package/internal/shim-types.d.ts +17 -0
  156. package/internal/shim-types.d.ts.map +1 -0
  157. package/internal/shim-types.js +4 -0
  158. package/internal/shim-types.js.map +1 -0
  159. package/internal/shim-types.mjs +3 -0
  160. package/internal/shim-types.mjs.map +1 -0
  161. package/internal/shims.d.mts +26 -0
  162. package/internal/shims.d.mts.map +1 -0
  163. package/internal/shims.d.ts +26 -0
  164. package/internal/shims.d.ts.map +1 -0
  165. package/internal/shims.js +92 -0
  166. package/internal/shims.js.map +1 -0
  167. package/internal/shims.mjs +85 -0
  168. package/internal/shims.mjs.map +1 -0
  169. package/internal/to-file.d.mts +45 -0
  170. package/internal/to-file.d.mts.map +1 -0
  171. package/internal/to-file.d.ts +45 -0
  172. package/internal/to-file.d.ts.map +1 -0
  173. package/internal/to-file.js +91 -0
  174. package/internal/to-file.js.map +1 -0
  175. package/internal/to-file.mjs +88 -0
  176. package/internal/to-file.mjs.map +1 -0
  177. package/internal/tslib.js +81 -0
  178. package/internal/tslib.mjs +17 -0
  179. package/internal/types.d.mts +69 -0
  180. package/internal/types.d.mts.map +1 -0
  181. package/internal/types.d.ts +69 -0
  182. package/internal/types.d.ts.map +1 -0
  183. package/internal/types.js +4 -0
  184. package/internal/types.js.map +1 -0
  185. package/internal/types.mjs +3 -0
  186. package/internal/types.mjs.map +1 -0
  187. package/internal/uploads.d.mts +42 -0
  188. package/internal/uploads.d.mts.map +1 -0
  189. package/internal/uploads.d.ts +42 -0
  190. package/internal/uploads.d.ts.map +1 -0
  191. package/internal/uploads.js +141 -0
  192. package/internal/uploads.js.map +1 -0
  193. package/internal/uploads.mjs +131 -0
  194. package/internal/uploads.mjs.map +1 -0
  195. package/internal/utils/base64.d.mts +3 -0
  196. package/internal/utils/base64.d.mts.map +1 -0
  197. package/internal/utils/base64.d.ts +3 -0
  198. package/internal/utils/base64.d.ts.map +1 -0
  199. package/internal/utils/base64.js +38 -0
  200. package/internal/utils/base64.js.map +1 -0
  201. package/internal/utils/base64.mjs +33 -0
  202. package/internal/utils/base64.mjs.map +1 -0
  203. package/internal/utils/bytes.d.mts +4 -0
  204. package/internal/utils/bytes.d.mts.map +1 -0
  205. package/internal/utils/bytes.d.ts +4 -0
  206. package/internal/utils/bytes.d.ts.map +1 -0
  207. package/internal/utils/bytes.js +31 -0
  208. package/internal/utils/bytes.js.map +1 -0
  209. package/internal/utils/bytes.mjs +26 -0
  210. package/internal/utils/bytes.mjs.map +1 -0
  211. package/internal/utils/env.d.mts +9 -0
  212. package/internal/utils/env.d.mts.map +1 -0
  213. package/internal/utils/env.d.ts +9 -0
  214. package/internal/utils/env.d.ts.map +1 -0
  215. package/internal/utils/env.js +22 -0
  216. package/internal/utils/env.js.map +1 -0
  217. package/internal/utils/env.mjs +18 -0
  218. package/internal/utils/env.mjs.map +1 -0
  219. package/internal/utils/log.d.mts +37 -0
  220. package/internal/utils/log.d.mts.map +1 -0
  221. package/internal/utils/log.d.ts +37 -0
  222. package/internal/utils/log.d.ts.map +1 -0
  223. package/internal/utils/log.js +87 -0
  224. package/internal/utils/log.js.map +1 -0
  225. package/internal/utils/log.mjs +81 -0
  226. package/internal/utils/log.mjs.map +1 -0
  227. package/internal/utils/path.d.mts +15 -0
  228. package/internal/utils/path.d.mts.map +1 -0
  229. package/internal/utils/path.d.ts +15 -0
  230. package/internal/utils/path.d.ts.map +1 -0
  231. package/internal/utils/path.js +79 -0
  232. package/internal/utils/path.js.map +1 -0
  233. package/internal/utils/path.mjs +74 -0
  234. package/internal/utils/path.mjs.map +1 -0
  235. package/internal/utils/query.d.mts +2 -0
  236. package/internal/utils/query.d.mts.map +1 -0
  237. package/internal/utils/query.js +3 -26
  238. package/internal/utils/query.js.map +1 -1
  239. package/internal/utils/query.mjs.map +1 -1
  240. package/internal/utils/sleep.d.mts +2 -0
  241. package/internal/utils/sleep.d.mts.map +1 -0
  242. package/internal/utils/sleep.d.ts +2 -0
  243. package/internal/utils/sleep.d.ts.map +1 -0
  244. package/internal/utils/sleep.js +7 -0
  245. package/internal/utils/sleep.js.map +1 -0
  246. package/internal/utils/sleep.mjs +3 -0
  247. package/internal/utils/sleep.mjs.map +1 -0
  248. package/internal/utils/uuid.d.mts +5 -0
  249. package/internal/utils/uuid.d.mts.map +1 -0
  250. package/internal/utils/uuid.d.ts +5 -0
  251. package/internal/utils/uuid.d.ts.map +1 -0
  252. package/internal/utils/uuid.js +19 -0
  253. package/internal/utils/uuid.js.map +1 -0
  254. package/internal/utils/uuid.mjs +15 -0
  255. package/internal/utils/uuid.mjs.map +1 -0
  256. package/internal/utils/values.d.mts +18 -0
  257. package/internal/utils/values.d.mts.map +1 -0
  258. package/internal/utils/values.d.ts +18 -0
  259. package/internal/utils/values.d.ts.map +1 -0
  260. package/internal/utils/values.js +112 -0
  261. package/internal/utils/values.js.map +1 -0
  262. package/internal/utils/values.mjs +94 -0
  263. package/internal/utils/values.mjs.map +1 -0
  264. package/internal/utils.d.mts +8 -0
  265. package/internal/utils.d.mts.map +1 -0
  266. package/internal/utils.d.ts +8 -0
  267. package/internal/utils.d.ts.map +1 -0
  268. package/internal/utils.js +12 -0
  269. package/internal/utils.js.map +1 -0
  270. package/internal/utils.mjs +9 -0
  271. package/internal/utils.mjs.map +1 -0
  272. package/package.json +122 -65
  273. package/pagination.d.mts +3 -0
  274. package/pagination.d.mts.map +1 -0
  275. package/pagination.d.ts +2 -30
  276. package/pagination.d.ts.map +1 -1
  277. package/pagination.js +3 -37
  278. package/pagination.js.map +1 -1
  279. package/pagination.mjs +2 -35
  280. package/pagination.mjs.map +1 -1
  281. package/resource.d.mts +3 -0
  282. package/resource.d.mts.map +1 -0
  283. package/resource.d.ts +2 -5
  284. package/resource.d.ts.map +1 -1
  285. package/resource.js +3 -8
  286. package/resource.js.map +1 -1
  287. package/resource.mjs +2 -6
  288. package/resource.mjs.map +1 -1
  289. package/resources/alerts.d.mts +430 -0
  290. package/resources/alerts.d.mts.map +1 -0
  291. package/resources/alerts.d.ts +14 -17
  292. package/resources/alerts.d.ts.map +1 -1
  293. package/resources/alerts.js +37 -27
  294. package/resources/alerts.js.map +1 -1
  295. package/resources/alerts.mjs +36 -25
  296. package/resources/alerts.mjs.map +1 -1
  297. package/resources/beta/beta.d.mts +2826 -0
  298. package/resources/beta/beta.d.mts.map +1 -0
  299. package/resources/beta/beta.d.ts +13 -9
  300. package/resources/beta/beta.d.ts.map +1 -1
  301. package/resources/beta/beta.js +10 -30
  302. package/resources/beta/beta.js.map +1 -1
  303. package/resources/beta/beta.mjs +8 -6
  304. package/resources/beta/beta.mjs.map +1 -1
  305. package/resources/beta/external-plan-id.d.mts +2713 -0
  306. package/resources/beta/external-plan-id.d.mts.map +1 -0
  307. package/resources/beta/external-plan-id.d.ts +10 -6
  308. package/resources/beta/external-plan-id.d.ts.map +1 -1
  309. package/resources/beta/external-plan-id.js +7 -5
  310. package/resources/beta/external-plan-id.js.map +1 -1
  311. package/resources/beta/external-plan-id.mjs +7 -5
  312. package/resources/beta/external-plan-id.mjs.map +1 -1
  313. package/resources/beta/index.d.mts +3 -0
  314. package/resources/beta/index.d.mts.map +1 -0
  315. package/resources/beta/index.d.ts +2 -2
  316. package/resources/beta/index.d.ts.map +1 -1
  317. package/resources/beta/index.js.map +1 -1
  318. package/resources/beta/index.mjs.map +1 -1
  319. package/resources/beta.d.mts +2 -0
  320. package/resources/beta.d.mts.map +1 -0
  321. package/resources/beta.d.ts.map +1 -1
  322. package/resources/beta.js +2 -15
  323. package/resources/beta.js.map +1 -1
  324. package/resources/beta.mjs.map +1 -1
  325. package/resources/coupons/coupons.d.mts +148 -0
  326. package/resources/coupons/coupons.d.mts.map +1 -0
  327. package/resources/coupons/coupons.d.ts +10 -11
  328. package/resources/coupons/coupons.d.ts.map +1 -1
  329. package/resources/coupons/coupons.js +24 -38
  330. package/resources/coupons/coupons.js.map +1 -1
  331. package/resources/coupons/coupons.mjs +21 -12
  332. package/resources/coupons/coupons.mjs.map +1 -1
  333. package/resources/coupons/index.d.mts +3 -0
  334. package/resources/coupons/index.d.mts.map +1 -0
  335. package/resources/coupons/index.d.ts +1 -1
  336. package/resources/coupons/index.d.ts.map +1 -1
  337. package/resources/coupons/index.js +1 -2
  338. package/resources/coupons/index.js.map +1 -1
  339. package/resources/coupons/index.mjs +1 -1
  340. package/resources/coupons/index.mjs.map +1 -1
  341. package/resources/coupons/subscriptions.d.mts +34 -0
  342. package/resources/coupons/subscriptions.d.mts.map +1 -0
  343. package/resources/coupons/subscriptions.d.ts +5 -6
  344. package/resources/coupons/subscriptions.d.ts.map +1 -1
  345. package/resources/coupons/subscriptions.js +21 -12
  346. package/resources/coupons/subscriptions.js.map +1 -1
  347. package/resources/coupons/subscriptions.mjs +20 -11
  348. package/resources/coupons/subscriptions.mjs.map +1 -1
  349. package/resources/coupons.d.mts +2 -0
  350. package/resources/coupons.d.mts.map +1 -0
  351. package/resources/coupons.d.ts.map +1 -1
  352. package/resources/coupons.js +2 -15
  353. package/resources/coupons.js.map +1 -1
  354. package/resources/coupons.mjs.map +1 -1
  355. package/resources/credit-blocks.d.mts +275 -0
  356. package/resources/credit-blocks.d.mts.map +1 -0
  357. package/resources/credit-blocks.d.ts +6 -5
  358. package/resources/credit-blocks.d.ts.map +1 -1
  359. package/resources/credit-blocks.js +7 -5
  360. package/resources/credit-blocks.js.map +1 -1
  361. package/resources/credit-blocks.mjs +7 -5
  362. package/resources/credit-blocks.mjs.map +1 -1
  363. package/resources/credit-notes.d.mts +144 -0
  364. package/resources/credit-notes.d.mts.map +1 -0
  365. package/resources/credit-notes.d.ts +8 -8
  366. package/resources/credit-notes.d.ts.map +1 -1
  367. package/resources/credit-notes.js +19 -10
  368. package/resources/credit-notes.js.map +1 -1
  369. package/resources/credit-notes.mjs +18 -9
  370. package/resources/credit-notes.mjs.map +1 -1
  371. package/resources/customers/balance-transactions.d.mts +135 -0
  372. package/resources/customers/balance-transactions.d.mts.map +1 -0
  373. package/resources/customers/balance-transactions.d.ts +8 -9
  374. package/resources/customers/balance-transactions.d.ts.map +1 -1
  375. package/resources/customers/balance-transactions.js +29 -13
  376. package/resources/customers/balance-transactions.js.map +1 -1
  377. package/resources/customers/balance-transactions.mjs +28 -11
  378. package/resources/customers/balance-transactions.mjs.map +1 -1
  379. package/resources/customers/costs.d.mts +314 -0
  380. package/resources/customers/costs.d.mts.map +1 -0
  381. package/resources/customers/costs.d.ts +5 -6
  382. package/resources/customers/costs.d.ts.map +1 -1
  383. package/resources/customers/costs.js +243 -11
  384. package/resources/customers/costs.js.map +1 -1
  385. package/resources/customers/costs.mjs +243 -11
  386. package/resources/customers/costs.mjs.map +1 -1
  387. package/resources/customers/credits/credits.d.mts +287 -0
  388. package/resources/customers/credits/credits.d.mts.map +1 -0
  389. package/resources/customers/credits/credits.d.ts +11 -15
  390. package/resources/customers/credits/credits.d.ts.map +1 -1
  391. package/resources/customers/credits/credits.js +38 -50
  392. package/resources/customers/credits/credits.js.map +1 -1
  393. package/resources/customers/credits/credits.mjs +36 -24
  394. package/resources/customers/credits/credits.mjs.map +1 -1
  395. package/resources/customers/credits/index.d.mts +4 -0
  396. package/resources/customers/credits/index.d.mts.map +1 -0
  397. package/resources/customers/credits/index.d.ts +3 -3
  398. package/resources/customers/credits/index.d.ts.map +1 -1
  399. package/resources/customers/credits/index.js +1 -7
  400. package/resources/customers/credits/index.js.map +1 -1
  401. package/resources/customers/credits/index.mjs +3 -3
  402. package/resources/customers/credits/index.mjs.map +1 -1
  403. package/resources/customers/credits/ledger.d.mts +1202 -0
  404. package/resources/customers/credits/ledger.d.mts.map +1 -0
  405. package/resources/customers/credits/ledger.d.ts +11 -14
  406. package/resources/customers/credits/ledger.d.ts.map +1 -1
  407. package/resources/customers/credits/ledger.js +172 -27
  408. package/resources/customers/credits/ledger.js.map +1 -1
  409. package/resources/customers/credits/ledger.mjs +171 -24
  410. package/resources/customers/credits/ledger.mjs.map +1 -1
  411. package/resources/customers/credits/top-ups.d.mts +357 -0
  412. package/resources/customers/credits/top-ups.d.mts.map +1 -0
  413. package/resources/customers/credits/top-ups.d.ts +19 -16
  414. package/resources/customers/credits/top-ups.d.ts.map +1 -1
  415. package/resources/customers/credits/top-ups.js +24 -29
  416. package/resources/customers/credits/top-ups.js.map +1 -1
  417. package/resources/customers/credits/top-ups.mjs +23 -26
  418. package/resources/customers/credits/top-ups.mjs.map +1 -1
  419. package/resources/customers/credits.d.mts +2 -0
  420. package/resources/customers/credits.d.mts.map +1 -0
  421. package/resources/customers/credits.d.ts.map +1 -1
  422. package/resources/customers/credits.js +2 -15
  423. package/resources/customers/credits.js.map +1 -1
  424. package/resources/customers/credits.mjs.map +1 -1
  425. package/resources/customers/customers.d.mts +1453 -0
  426. package/resources/customers/customers.d.mts.map +1 -0
  427. package/resources/customers/customers.d.ts +17 -18
  428. package/resources/customers/customers.d.ts.map +1 -1
  429. package/resources/customers/customers.js +30 -53
  430. package/resources/customers/customers.js.map +1 -1
  431. package/resources/customers/customers.mjs +27 -27
  432. package/resources/customers/customers.mjs.map +1 -1
  433. package/resources/customers/index.d.mts +5 -0
  434. package/resources/customers/index.d.mts.map +1 -0
  435. package/resources/customers/index.d.ts +3 -3
  436. package/resources/customers/index.d.ts.map +1 -1
  437. package/resources/customers/index.js +1 -5
  438. package/resources/customers/index.js.map +1 -1
  439. package/resources/customers/index.mjs +3 -3
  440. package/resources/customers/index.mjs.map +1 -1
  441. package/resources/customers.d.mts +2 -0
  442. package/resources/customers.d.mts.map +1 -0
  443. package/resources/customers.d.ts.map +1 -1
  444. package/resources/customers.js +2 -15
  445. package/resources/customers.js.map +1 -1
  446. package/resources/customers.mjs.map +1 -1
  447. package/resources/dimensional-price-groups/dimensional-price-groups.d.mts +150 -0
  448. package/resources/dimensional-price-groups/dimensional-price-groups.d.mts.map +1 -0
  449. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +11 -12
  450. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts.map +1 -1
  451. package/resources/dimensional-price-groups/dimensional-price-groups.js +21 -39
  452. package/resources/dimensional-price-groups/dimensional-price-groups.js.map +1 -1
  453. package/resources/dimensional-price-groups/dimensional-price-groups.mjs +18 -13
  454. package/resources/dimensional-price-groups/dimensional-price-groups.mjs.map +1 -1
  455. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.mts +53 -0
  456. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.mts.map +1 -0
  457. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +7 -6
  458. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -1
  459. package/resources/dimensional-price-groups/external-dimensional-price-group-id.js +6 -5
  460. package/resources/dimensional-price-groups/external-dimensional-price-group-id.js.map +1 -1
  461. package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs +6 -5
  462. package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs.map +1 -1
  463. package/resources/dimensional-price-groups/index.d.mts +3 -0
  464. package/resources/dimensional-price-groups/index.d.mts.map +1 -0
  465. package/resources/dimensional-price-groups/index.d.ts +1 -1
  466. package/resources/dimensional-price-groups/index.d.ts.map +1 -1
  467. package/resources/dimensional-price-groups/index.js +1 -2
  468. package/resources/dimensional-price-groups/index.js.map +1 -1
  469. package/resources/dimensional-price-groups/index.mjs +1 -1
  470. package/resources/dimensional-price-groups/index.mjs.map +1 -1
  471. package/resources/dimensional-price-groups.d.mts +2 -0
  472. package/resources/dimensional-price-groups.d.mts.map +1 -0
  473. package/resources/dimensional-price-groups.d.ts.map +1 -1
  474. package/resources/dimensional-price-groups.js +2 -15
  475. package/resources/dimensional-price-groups.js.map +1 -1
  476. package/resources/dimensional-price-groups.mjs.map +1 -1
  477. package/resources/events/backfills.d.mts +389 -0
  478. package/resources/events/backfills.d.mts.map +1 -0
  479. package/resources/events/backfills.d.ts +11 -12
  480. package/resources/events/backfills.d.ts.map +1 -1
  481. package/resources/events/backfills.js +24 -15
  482. package/resources/events/backfills.js.map +1 -1
  483. package/resources/events/backfills.mjs +23 -13
  484. package/resources/events/backfills.mjs.map +1 -1
  485. package/resources/events/events.d.mts +536 -0
  486. package/resources/events/events.d.mts.map +1 -0
  487. package/resources/events/events.d.ts +10 -11
  488. package/resources/events/events.d.ts.map +1 -1
  489. package/resources/events/events.js +7 -29
  490. package/resources/events/events.js.map +1 -1
  491. package/resources/events/events.mjs +5 -5
  492. package/resources/events/events.mjs.map +1 -1
  493. package/resources/events/index.d.mts +4 -0
  494. package/resources/events/index.d.mts.map +1 -0
  495. package/resources/events/index.d.ts +1 -1
  496. package/resources/events/index.d.ts.map +1 -1
  497. package/resources/events/index.js +1 -2
  498. package/resources/events/index.js.map +1 -1
  499. package/resources/events/index.mjs +1 -1
  500. package/resources/events/index.mjs.map +1 -1
  501. package/resources/events/volume.d.mts +79 -0
  502. package/resources/events/volume.d.mts.map +1 -0
  503. package/resources/events/volume.d.ts +4 -3
  504. package/resources/events/volume.d.ts.map +1 -1
  505. package/resources/events/volume.js +1 -1
  506. package/resources/events/volume.js.map +1 -1
  507. package/resources/events/volume.mjs +1 -1
  508. package/resources/events/volume.mjs.map +1 -1
  509. package/resources/events.d.mts +2 -0
  510. package/resources/events.d.mts.map +1 -0
  511. package/resources/events.d.ts.map +1 -1
  512. package/resources/events.js +2 -15
  513. package/resources/events.js.map +1 -1
  514. package/resources/events.mjs.map +1 -1
  515. package/resources/index.d.mts +22 -0
  516. package/resources/index.d.mts.map +1 -0
  517. package/resources/index.d.ts +13 -13
  518. package/resources/index.d.ts.map +1 -1
  519. package/resources/index.js +7 -33
  520. package/resources/index.js.map +1 -1
  521. package/resources/index.mjs +12 -12
  522. package/resources/index.mjs.map +1 -1
  523. package/resources/invoice-line-items.d.mts +245 -0
  524. package/resources/invoice-line-items.d.mts.map +1 -0
  525. package/resources/invoice-line-items.d.ts +4 -3
  526. package/resources/invoice-line-items.d.ts.map +1 -1
  527. package/resources/invoice-line-items.js +1 -1
  528. package/resources/invoice-line-items.js.map +1 -1
  529. package/resources/invoice-line-items.mjs +1 -1
  530. package/resources/invoice-line-items.mjs.map +1 -1
  531. package/resources/invoices.d.mts +1795 -0
  532. package/resources/invoices.d.mts.map +1 -0
  533. package/resources/invoices.d.ts +25 -27
  534. package/resources/invoices.d.ts.map +1 -1
  535. package/resources/invoices.js +105 -38
  536. package/resources/invoices.js.map +1 -1
  537. package/resources/invoices.mjs +104 -36
  538. package/resources/invoices.mjs.map +1 -1
  539. package/resources/items.d.mts +163 -0
  540. package/resources/items.d.mts.map +1 -0
  541. package/resources/items.d.ts +11 -12
  542. package/resources/items.d.ts.map +1 -1
  543. package/resources/items.js +20 -15
  544. package/resources/items.js.map +1 -1
  545. package/resources/items.mjs +19 -13
  546. package/resources/items.mjs.map +1 -1
  547. package/resources/license-types.d.mts +112 -0
  548. package/resources/license-types.d.mts.map +1 -0
  549. package/resources/license-types.d.ts +9 -10
  550. package/resources/license-types.d.ts.map +1 -1
  551. package/resources/license-types.js +14 -13
  552. package/resources/license-types.js.map +1 -1
  553. package/resources/license-types.mjs +13 -11
  554. package/resources/license-types.mjs.map +1 -1
  555. package/resources/licenses/external-licenses.d.mts +127 -0
  556. package/resources/licenses/external-licenses.d.mts.map +1 -0
  557. package/resources/licenses/external-licenses.d.ts +4 -3
  558. package/resources/licenses/external-licenses.d.ts.map +1 -1
  559. package/resources/licenses/external-licenses.js +6 -2
  560. package/resources/licenses/external-licenses.js.map +1 -1
  561. package/resources/licenses/external-licenses.mjs +6 -2
  562. package/resources/licenses/external-licenses.mjs.map +1 -1
  563. package/resources/licenses/index.d.mts +4 -0
  564. package/resources/licenses/index.d.mts.map +1 -0
  565. package/resources/licenses/index.d.ts +1 -1
  566. package/resources/licenses/index.d.ts.map +1 -1
  567. package/resources/licenses/index.js +1 -2
  568. package/resources/licenses/index.js.map +1 -1
  569. package/resources/licenses/index.mjs +1 -1
  570. package/resources/licenses/index.mjs.map +1 -1
  571. package/resources/licenses/licenses.d.mts +177 -0
  572. package/resources/licenses/licenses.d.mts.map +1 -0
  573. package/resources/licenses/licenses.d.ts +12 -12
  574. package/resources/licenses/licenses.d.ts.map +1 -1
  575. package/resources/licenses/licenses.js +13 -38
  576. package/resources/licenses/licenses.js.map +1 -1
  577. package/resources/licenses/licenses.mjs +9 -11
  578. package/resources/licenses/licenses.mjs.map +1 -1
  579. package/resources/licenses/usage.d.mts +226 -0
  580. package/resources/licenses/usage.d.mts.map +1 -0
  581. package/resources/licenses/usage.d.ts +5 -5
  582. package/resources/licenses/usage.d.ts.map +1 -1
  583. package/resources/licenses/usage.js +15 -6
  584. package/resources/licenses/usage.js.map +1 -1
  585. package/resources/licenses/usage.mjs +15 -6
  586. package/resources/licenses/usage.mjs.map +1 -1
  587. package/resources/licenses.d.mts +2 -0
  588. package/resources/licenses.d.mts.map +1 -0
  589. package/resources/licenses.d.ts.map +1 -1
  590. package/resources/licenses.js +2 -15
  591. package/resources/licenses.js.map +1 -1
  592. package/resources/licenses.mjs.map +1 -1
  593. package/resources/metrics.d.mts +147 -0
  594. package/resources/metrics.d.mts.map +1 -0
  595. package/resources/metrics.d.ts +10 -11
  596. package/resources/metrics.d.ts.map +1 -1
  597. package/resources/metrics.js +19 -14
  598. package/resources/metrics.js.map +1 -1
  599. package/resources/metrics.mjs +18 -12
  600. package/resources/metrics.mjs.map +1 -1
  601. package/resources/plans/external-plan-id.d.mts +61 -0
  602. package/resources/plans/external-plan-id.d.mts.map +1 -0
  603. package/resources/plans/external-plan-id.d.ts +5 -4
  604. package/resources/plans/external-plan-id.d.ts.map +1 -1
  605. package/resources/plans/external-plan-id.js +4 -3
  606. package/resources/plans/external-plan-id.js.map +1 -1
  607. package/resources/plans/external-plan-id.mjs +4 -3
  608. package/resources/plans/external-plan-id.mjs.map +1 -1
  609. package/resources/plans/index.d.mts +4 -0
  610. package/resources/plans/index.d.mts.map +1 -0
  611. package/resources/plans/index.d.ts +2 -2
  612. package/resources/plans/index.d.ts.map +1 -1
  613. package/resources/plans/index.js +1 -3
  614. package/resources/plans/index.js.map +1 -1
  615. package/resources/plans/index.mjs +2 -2
  616. package/resources/plans/index.mjs.map +1 -1
  617. package/resources/plans/migrations.d.mts +99 -0
  618. package/resources/plans/migrations.d.mts.map +1 -0
  619. package/resources/plans/migrations.d.ts +15 -10
  620. package/resources/plans/migrations.d.ts.map +1 -1
  621. package/resources/plans/migrations.js +17 -16
  622. package/resources/plans/migrations.js.map +1 -1
  623. package/resources/plans/migrations.mjs +16 -14
  624. package/resources/plans/migrations.mjs.map +1 -1
  625. package/resources/plans/plans.d.mts +1682 -0
  626. package/resources/plans/plans.d.mts.map +1 -0
  627. package/resources/plans/plans.d.ts +13 -14
  628. package/resources/plans/plans.d.ts.map +1 -1
  629. package/resources/plans/plans.js +18 -41
  630. package/resources/plans/plans.js.map +1 -1
  631. package/resources/plans/plans.mjs +15 -15
  632. package/resources/plans/plans.mjs.map +1 -1
  633. package/resources/plans.d.mts +2 -0
  634. package/resources/plans.d.mts.map +1 -0
  635. package/resources/plans.d.ts.map +1 -1
  636. package/resources/plans.js +2 -15
  637. package/resources/plans.js.map +1 -1
  638. package/resources/plans.mjs.map +1 -1
  639. package/resources/prices/external-price-id.d.mts +55 -0
  640. package/resources/prices/external-price-id.d.mts.map +1 -0
  641. package/resources/prices/external-price-id.d.ts +7 -6
  642. package/resources/prices/external-price-id.d.ts.map +1 -1
  643. package/resources/prices/external-price-id.js +6 -5
  644. package/resources/prices/external-price-id.js.map +1 -1
  645. package/resources/prices/external-price-id.mjs +6 -5
  646. package/resources/prices/external-price-id.mjs.map +1 -1
  647. package/resources/prices/index.d.mts +3 -0
  648. package/resources/prices/index.d.mts.map +1 -0
  649. package/resources/prices/index.d.ts.map +1 -1
  650. package/resources/prices/index.mjs.map +1 -1
  651. package/resources/prices/prices.d.mts +5950 -0
  652. package/resources/prices/prices.d.mts.map +1 -0
  653. package/resources/prices/prices.d.ts +13 -13
  654. package/resources/prices/prices.d.ts.map +1 -1
  655. package/resources/prices/prices.js +23 -37
  656. package/resources/prices/prices.js.map +1 -1
  657. package/resources/prices/prices.mjs +20 -12
  658. package/resources/prices/prices.mjs.map +1 -1
  659. package/resources/prices.d.mts +2 -0
  660. package/resources/prices.d.mts.map +1 -0
  661. package/resources/prices.d.ts.map +1 -1
  662. package/resources/prices.js +2 -15
  663. package/resources/prices.js.map +1 -1
  664. package/resources/prices.mjs.map +1 -1
  665. package/resources/shared.d.mts +13354 -0
  666. package/resources/shared.d.mts.map +1 -0
  667. package/resources/shared.d.ts +4 -7
  668. package/resources/shared.d.ts.map +1 -1
  669. package/resources/shared.js +0 -11
  670. package/resources/shared.js.map +1 -1
  671. package/resources/shared.mjs +1 -7
  672. package/resources/shared.mjs.map +1 -1
  673. package/resources/subscription-changes.d.mts +434 -0
  674. package/resources/subscription-changes.d.mts.map +1 -0
  675. package/resources/subscription-changes.d.ts +10 -12
  676. package/resources/subscription-changes.d.ts.map +1 -1
  677. package/resources/subscription-changes.js +18 -18
  678. package/resources/subscription-changes.js.map +1 -1
  679. package/resources/subscription-changes.mjs +17 -16
  680. package/resources/subscription-changes.mjs.map +1 -1
  681. package/resources/subscriptions.d.mts +10821 -0
  682. package/resources/subscriptions.d.mts.map +1 -0
  683. package/resources/subscriptions.d.ts +24 -29
  684. package/resources/subscriptions.d.ts.map +1 -1
  685. package/resources/subscriptions.js +284 -40
  686. package/resources/subscriptions.js.map +1 -1
  687. package/resources/subscriptions.mjs +283 -37
  688. package/resources/subscriptions.mjs.map +1 -1
  689. package/resources/top-level.d.mts +21 -0
  690. package/resources/top-level.d.mts.map +1 -0
  691. package/resources/top-level.d.ts +4 -3
  692. package/resources/top-level.d.ts.map +1 -1
  693. package/resources/top-level.js +1 -1
  694. package/resources/top-level.js.map +1 -1
  695. package/resources/top-level.mjs +1 -1
  696. package/resources/top-level.mjs.map +1 -1
  697. package/resources/webhooks.d.mts +24 -0
  698. package/resources/webhooks.d.mts.map +1 -0
  699. package/resources/webhooks.d.ts +2 -2
  700. package/resources/webhooks.d.ts.map +1 -1
  701. package/resources/webhooks.js +18 -5
  702. package/resources/webhooks.js.map +1 -1
  703. package/resources/webhooks.mjs +16 -3
  704. package/resources/webhooks.mjs.map +1 -1
  705. package/resources.d.mts +2 -0
  706. package/resources.d.mts.map +1 -0
  707. package/resources.d.ts.map +1 -1
  708. package/resources.js +2 -15
  709. package/resources.js.map +1 -1
  710. package/resources.mjs.map +1 -1
  711. package/src/api-promise.ts +2 -0
  712. package/src/client.ts +1499 -0
  713. package/src/core/README.md +3 -0
  714. package/src/core/api-promise.ts +92 -0
  715. package/src/core/error.ts +456 -0
  716. package/src/core/pagination.ts +167 -0
  717. package/src/core/resource.ts +11 -0
  718. package/src/core/uploads.ts +2 -0
  719. package/src/error.ts +2 -456
  720. package/src/index.ts +6 -923
  721. package/src/internal/README.md +3 -0
  722. package/src/internal/builtin-types.ts +93 -0
  723. package/src/internal/detect-platform.ts +196 -0
  724. package/src/internal/errors.ts +33 -0
  725. package/src/internal/headers.ts +97 -0
  726. package/src/internal/parse.ts +56 -0
  727. package/src/internal/qs/formats.ts +2 -1
  728. package/src/internal/qs/stringify.ts +17 -20
  729. package/src/internal/qs/utils.ts +14 -14
  730. package/src/internal/request-options.ts +91 -0
  731. package/src/internal/shim-types.ts +26 -0
  732. package/src/internal/shims.ts +107 -0
  733. package/src/internal/to-file.ts +154 -0
  734. package/src/internal/types.ts +93 -0
  735. package/src/internal/uploads.ts +187 -0
  736. package/src/internal/utils/base64.ts +40 -0
  737. package/src/internal/utils/bytes.ts +32 -0
  738. package/src/internal/utils/env.ts +18 -0
  739. package/src/internal/utils/log.ts +128 -0
  740. package/src/internal/utils/path.ts +88 -0
  741. package/src/internal/utils/sleep.ts +3 -0
  742. package/src/internal/utils/uuid.ts +17 -0
  743. package/src/internal/utils/values.ts +105 -0
  744. package/src/internal/utils.ts +9 -0
  745. package/src/pagination.ts +2 -70
  746. package/src/resource.ts +2 -11
  747. package/src/resources/alerts.ts +34 -62
  748. package/src/resources/beta/beta.ts +23 -13
  749. package/src/resources/beta/external-plan-id.ts +20 -12
  750. package/src/resources/beta/index.ts +2 -0
  751. package/src/resources/coupons/coupons.ts +16 -21
  752. package/src/resources/coupons/index.ts +7 -1
  753. package/src/resources/coupons/subscriptions.ts +13 -24
  754. package/src/resources/credit-blocks.ts +12 -12
  755. package/src/resources/credit-notes.ts +13 -20
  756. package/src/resources/customers/balance-transactions.ts +15 -28
  757. package/src/resources/customers/costs.ts +13 -33
  758. package/src/resources/customers/credits/credits.ts +26 -52
  759. package/src/resources/customers/credits/index.ts +8 -6
  760. package/src/resources/customers/credits/ledger.ts +29 -55
  761. package/src/resources/customers/credits/top-ups.ts +48 -61
  762. package/src/resources/customers/customers.ts +37 -48
  763. package/src/resources/customers/index.ts +4 -4
  764. package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +19 -30
  765. package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +12 -10
  766. package/src/resources/dimensional-price-groups/index.ts +1 -1
  767. package/src/resources/events/backfills.ts +18 -27
  768. package/src/resources/events/events.ts +14 -15
  769. package/src/resources/events/index.ts +1 -1
  770. package/src/resources/events/volume.ts +4 -3
  771. package/src/resources/index.ts +29 -28
  772. package/src/resources/invoice-line-items.ts +5 -4
  773. package/src/resources/invoices.ts +53 -95
  774. package/src/resources/items.ts +18 -24
  775. package/src/resources/license-types.ts +14 -31
  776. package/src/resources/licenses/external-licenses.ts +10 -5
  777. package/src/resources/licenses/index.ts +1 -1
  778. package/src/resources/licenses/licenses.ts +21 -20
  779. package/src/resources/licenses/usage.ts +9 -20
  780. package/src/resources/metrics.ts +16 -29
  781. package/src/resources/plans/external-plan-id.ts +9 -7
  782. package/src/resources/plans/index.ts +4 -2
  783. package/src/resources/plans/migrations.ts +30 -31
  784. package/src/resources/plans/plans.ts +22 -24
  785. package/src/resources/prices/external-price-id.ts +11 -9
  786. package/src/resources/prices/prices.ts +23 -31
  787. package/src/resources/shared.ts +4 -4
  788. package/src/resources/subscription-changes.ts +21 -44
  789. package/src/resources/subscriptions.ts +66 -106
  790. package/src/resources/top-level.ts +4 -3
  791. package/src/resources/webhooks.ts +17 -3
  792. package/src/tsconfig.json +2 -2
  793. package/src/uploads.ts +2 -255
  794. package/src/version.ts +1 -1
  795. package/uploads.d.mts +3 -0
  796. package/uploads.d.mts.map +1 -0
  797. package/uploads.d.ts +2 -74
  798. package/uploads.d.ts.map +1 -1
  799. package/uploads.js +3 -168
  800. package/uploads.js.map +1 -1
  801. package/uploads.mjs +2 -157
  802. package/uploads.mjs.map +1 -1
  803. package/version.d.mts +2 -0
  804. package/version.d.mts.map +1 -0
  805. package/version.d.ts +1 -1
  806. package/version.d.ts.map +1 -1
  807. package/version.js +1 -1
  808. package/version.js.map +1 -1
  809. package/version.mjs +1 -1
  810. package/version.mjs.map +1 -1
  811. package/_shims/MultipartBody.d.ts +0 -9
  812. package/_shims/MultipartBody.d.ts.map +0 -1
  813. package/_shims/MultipartBody.js +0 -16
  814. package/_shims/MultipartBody.js.map +0 -1
  815. package/_shims/MultipartBody.mjs +0 -12
  816. package/_shims/MultipartBody.mjs.map +0 -1
  817. package/_shims/README.md +0 -46
  818. package/_shims/auto/runtime-bun.d.ts +0 -5
  819. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  820. package/_shims/auto/runtime-bun.js +0 -21
  821. package/_shims/auto/runtime-bun.js.map +0 -1
  822. package/_shims/auto/runtime-bun.mjs +0 -2
  823. package/_shims/auto/runtime-bun.mjs.map +0 -1
  824. package/_shims/auto/runtime-node.d.ts +0 -5
  825. package/_shims/auto/runtime-node.d.ts.map +0 -1
  826. package/_shims/auto/runtime-node.js +0 -21
  827. package/_shims/auto/runtime-node.js.map +0 -1
  828. package/_shims/auto/runtime-node.mjs +0 -2
  829. package/_shims/auto/runtime-node.mjs.map +0 -1
  830. package/_shims/auto/runtime.d.ts +0 -5
  831. package/_shims/auto/runtime.d.ts.map +0 -1
  832. package/_shims/auto/runtime.js +0 -21
  833. package/_shims/auto/runtime.js.map +0 -1
  834. package/_shims/auto/runtime.mjs +0 -2
  835. package/_shims/auto/runtime.mjs.map +0 -1
  836. package/_shims/auto/types-node.d.ts +0 -5
  837. package/_shims/auto/types-node.d.ts.map +0 -1
  838. package/_shims/auto/types-node.js +0 -21
  839. package/_shims/auto/types-node.js.map +0 -1
  840. package/_shims/auto/types-node.mjs +0 -2
  841. package/_shims/auto/types-node.mjs.map +0 -1
  842. package/_shims/auto/types.d.ts +0 -101
  843. package/_shims/auto/types.js +0 -3
  844. package/_shims/auto/types.mjs +0 -3
  845. package/_shims/bun-runtime.d.ts +0 -6
  846. package/_shims/bun-runtime.d.ts.map +0 -1
  847. package/_shims/bun-runtime.js +0 -14
  848. package/_shims/bun-runtime.js.map +0 -1
  849. package/_shims/bun-runtime.mjs +0 -10
  850. package/_shims/bun-runtime.mjs.map +0 -1
  851. package/_shims/index.d.ts +0 -83
  852. package/_shims/index.js +0 -17
  853. package/_shims/index.mjs +0 -11
  854. package/_shims/manual-types.d.ts +0 -12
  855. package/_shims/manual-types.js +0 -3
  856. package/_shims/manual-types.mjs +0 -3
  857. package/_shims/node-runtime.d.ts +0 -3
  858. package/_shims/node-runtime.d.ts.map +0 -1
  859. package/_shims/node-runtime.js +0 -89
  860. package/_shims/node-runtime.js.map +0 -1
  861. package/_shims/node-runtime.mjs +0 -56
  862. package/_shims/node-runtime.mjs.map +0 -1
  863. package/_shims/node-types.d.ts +0 -42
  864. package/_shims/node-types.js +0 -3
  865. package/_shims/node-types.mjs +0 -3
  866. package/_shims/registry.d.ts +0 -37
  867. package/_shims/registry.d.ts.map +0 -1
  868. package/_shims/registry.js +0 -41
  869. package/_shims/registry.js.map +0 -1
  870. package/_shims/registry.mjs +0 -37
  871. package/_shims/registry.mjs.map +0 -1
  872. package/_shims/web-runtime.d.ts +0 -5
  873. package/_shims/web-runtime.d.ts.map +0 -1
  874. package/_shims/web-runtime.js +0 -78
  875. package/_shims/web-runtime.js.map +0 -1
  876. package/_shims/web-runtime.mjs +0 -71
  877. package/_shims/web-runtime.mjs.map +0 -1
  878. package/_shims/web-types.d.ts +0 -83
  879. package/_shims/web-types.js +0 -3
  880. package/_shims/web-types.mjs +0 -3
  881. package/core.d.ts +0 -255
  882. package/core.d.ts.map +0 -1
  883. package/core.js +0 -920
  884. package/core.js.map +0 -1
  885. package/core.mjs +0 -888
  886. package/core.mjs.map +0 -1
  887. package/shims/node.d.ts +0 -30
  888. package/shims/node.d.ts.map +0 -1
  889. package/shims/node.js +0 -31
  890. package/shims/node.js.map +0 -1
  891. package/shims/node.mjs +0 -5
  892. package/shims/node.mjs.map +0 -1
  893. package/shims/web.d.ts +0 -26
  894. package/shims/web.d.ts.map +0 -1
  895. package/shims/web.js +0 -31
  896. package/shims/web.js.map +0 -1
  897. package/shims/web.mjs +0 -5
  898. package/shims/web.mjs.map +0 -1
  899. package/src/_shims/MultipartBody.ts +0 -9
  900. package/src/_shims/README.md +0 -46
  901. package/src/_shims/auto/runtime-bun.ts +0 -4
  902. package/src/_shims/auto/runtime-node.ts +0 -4
  903. package/src/_shims/auto/runtime.ts +0 -4
  904. package/src/_shims/auto/types-node.ts +0 -4
  905. package/src/_shims/auto/types.d.ts +0 -101
  906. package/src/_shims/auto/types.js +0 -3
  907. package/src/_shims/auto/types.mjs +0 -3
  908. package/src/_shims/bun-runtime.ts +0 -14
  909. package/src/_shims/index.d.ts +0 -83
  910. package/src/_shims/index.js +0 -17
  911. package/src/_shims/index.mjs +0 -11
  912. package/src/_shims/manual-types.d.ts +0 -12
  913. package/src/_shims/manual-types.js +0 -3
  914. package/src/_shims/manual-types.mjs +0 -3
  915. package/src/_shims/node-runtime.ts +0 -81
  916. package/src/_shims/node-types.d.ts +0 -42
  917. package/src/_shims/node-types.js +0 -3
  918. package/src/_shims/node-types.mjs +0 -3
  919. package/src/_shims/registry.ts +0 -67
  920. package/src/_shims/web-runtime.ts +0 -103
  921. package/src/_shims/web-types.d.ts +0 -83
  922. package/src/_shims/web-types.js +0 -3
  923. package/src/_shims/web-types.mjs +0 -3
  924. package/src/core.ts +0 -1231
  925. package/src/shims/node.ts +0 -50
  926. package/src/shims/web.ts +0 -50
@@ -0,0 +1,1453 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as Shared from "../shared.mjs";
3
+ import * as BalanceTransactionsAPI from "./balance-transactions.mjs";
4
+ import { BalanceTransactionCreateParams, BalanceTransactionCreateResponse, BalanceTransactionListParams, BalanceTransactionListResponse, BalanceTransactionListResponsesPage, BalanceTransactions } from "./balance-transactions.mjs";
5
+ import * as CostsAPI from "./costs.mjs";
6
+ import { CostListByExternalIDParams, CostListByExternalIDResponse, CostListParams, CostListResponse, Costs } from "./costs.mjs";
7
+ import * as CreditsAPI from "./credits/credits.mjs";
8
+ import { CreditListByExternalIDParams, CreditListByExternalIDResponse, CreditListByExternalIDResponsesPage, CreditListParams, CreditListResponse, CreditListResponsesPage, Credits } from "./credits/credits.mjs";
9
+ import { APIPromise } from "../../core/api-promise.mjs";
10
+ import { Page, type PageParams, PagePromise } from "../../core/pagination.mjs";
11
+ import { RequestOptions } from "../../internal/request-options.mjs";
12
+ /**
13
+ * A customer is a buyer of your products, and the other party to the billing relationship.
14
+ *
15
+ * In Orb, customers are assigned system generated identifiers automatically, but it's often desirable to have these
16
+ * match existing identifiers in your system. To avoid having to denormalize Orb ID information, you can pass in an
17
+ * `external_customer_id` with your own identifier. See
18
+ * [Customer ID Aliases](/events-and-metrics/customer-aliases) for further information about how these
19
+ * aliases work in Orb.
20
+ *
21
+ * In addition to having an identifier in your system, a customer may exist in a payment provider solution like
22
+ * Stripe. Use the `payment_provider_id` and the `payment_provider` enum field to express this mapping.
23
+ *
24
+ * A customer also has a timezone (from the standard [IANA timezone database](https://www.iana.org/time-zones)), which
25
+ * defaults to your account's timezone. See [Timezone localization](/essentials/timezones) for
26
+ * information on what this timezone parameter influences within Orb.
27
+ */
28
+ export declare class Customers extends APIResource {
29
+ costs: CostsAPI.Costs;
30
+ credits: CreditsAPI.Credits;
31
+ balanceTransactions: BalanceTransactionsAPI.BalanceTransactions;
32
+ /**
33
+ * This operation is used to create an Orb customer, who is party to the core
34
+ * billing relationship. See [Customer](/core-concepts##customer) for an overview
35
+ * of the customer resource.
36
+ *
37
+ * This endpoint is critical in the following Orb functionality:
38
+ *
39
+ * - Automated charges can be configured by setting `payment_provider` and
40
+ * `payment_provider_id` to automatically issue invoices
41
+ * - [Customer ID Aliases](/events-and-metrics/customer-aliases) can be configured
42
+ * by setting `external_customer_id`
43
+ * - [Timezone localization](/essentials/timezones) can be configured on a
44
+ * per-customer basis by setting the `timezone` parameter
45
+ */
46
+ create(body: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer>;
47
+ /**
48
+ * This endpoint can be used to update the `payment_provider`,
49
+ * `payment_provider_id`, `name`, `email`, `email_delivery`, `tax_id`,
50
+ * `auto_collection`, `metadata`, `shipping_address`, `billing_address`,
51
+ * `additional_emails`, and `currency` of an existing customer. `currency` can only
52
+ * be set if it has not already been set on the customer. Other fields on a
53
+ * customer are currently immutable.
54
+ */
55
+ update(customerId: string, body: CustomerUpdateParams, options?: RequestOptions): APIPromise<Customer>;
56
+ /**
57
+ * This endpoint returns a list of all customers for an account. The list of
58
+ * customers is ordered starting from the most recently created customer. This
59
+ * endpoint follows Orb's
60
+ * [standardized pagination format](/api-reference/pagination).
61
+ *
62
+ * See [Customer](/core-concepts##customer) for an overview of the customer model.
63
+ */
64
+ list(query?: CustomerListParams | null | undefined, options?: RequestOptions): PagePromise<CustomersPage, Customer>;
65
+ /**
66
+ * This performs a deletion of this customer, its subscriptions, and its invoices,
67
+ * provided the customer does not have any issued invoices. Customers with issued
68
+ * invoices cannot be deleted. This operation is irreversible. Note that this is a
69
+ * _soft_ deletion, but the data will be inaccessible through the API and Orb
70
+ * dashboard.
71
+ *
72
+ * For a hard-deletion, please reach out to the Orb team directly.
73
+ *
74
+ * **Note**: This operation happens asynchronously and can be expected to take a
75
+ * few minutes to propagate to related resources. However, querying for the
76
+ * customer on subsequent GET requests while deletion is in process will reflect
77
+ * its deletion.
78
+ */
79
+ delete(customerId: string, options?: RequestOptions): APIPromise<void>;
80
+ /**
81
+ * This endpoint is used to fetch customer details given an identifier. If the
82
+ * `Customer` is in the process of being deleted, only the properties `id` and
83
+ * `deleted: true` will be returned.
84
+ *
85
+ * See the [Customer resource](/core-concepts#customer) for a full discussion of
86
+ * the Customer model.
87
+ */
88
+ fetch(customerId: string, options?: RequestOptions): APIPromise<Customer>;
89
+ /**
90
+ * This endpoint is used to fetch customer details given an `external_customer_id`
91
+ * (see [Customer ID Aliases](/events-and-metrics/customer-aliases)).
92
+ *
93
+ * Note that the resource and semantics of this endpoint exactly mirror
94
+ * [Get Customer](fetch-customer).
95
+ */
96
+ fetchByExternalID(externalCustomerId: string, options?: RequestOptions): APIPromise<Customer>;
97
+ /**
98
+ * Sync Orb's payment methods for the customer with their gateway.
99
+ *
100
+ * This method can be called before taking an action that may cause the customer to
101
+ * be charged, ensuring that the most up-to-date payment method is charged.
102
+ *
103
+ * **Note**: This functionality is currently only available for Stripe.
104
+ */
105
+ syncPaymentMethodsFromGateway(customerId: string, options?: RequestOptions): APIPromise<void>;
106
+ /**
107
+ * Sync Orb's payment methods for the customer with their gateway.
108
+ *
109
+ * This method can be called before taking an action that may cause the customer to
110
+ * be charged, ensuring that the most up-to-date payment method is charged.
111
+ *
112
+ * **Note**: This functionality is currently only available for Stripe.
113
+ */
114
+ syncPaymentMethodsFromGatewayByExternalCustomerID(externalCustomerId: string, options?: RequestOptions): APIPromise<void>;
115
+ /**
116
+ * This endpoint is used to update customer details given an `external_customer_id`
117
+ * (see [Customer ID Aliases](/events-and-metrics/customer-aliases)). Note that the
118
+ * resource and semantics of this endpoint exactly mirror
119
+ * [Update Customer](update-customer).
120
+ */
121
+ updateByExternalID(id: string, body: CustomerUpdateByExternalIDParams, options?: RequestOptions): APIPromise<Customer>;
122
+ }
123
+ export type CustomersPage = Page<Customer>;
124
+ export interface AccountingProviderConfig {
125
+ external_provider_id: string;
126
+ provider_type: 'quickbooks' | 'netsuite';
127
+ }
128
+ export interface AddressInput {
129
+ city?: string | null;
130
+ country?: string | null;
131
+ line1?: string | null;
132
+ line2?: string | null;
133
+ postal_code?: string | null;
134
+ state?: string | null;
135
+ }
136
+ /**
137
+ * A customer is a buyer of your products, and the other party to the billing
138
+ * relationship.
139
+ *
140
+ * In Orb, customers are assigned system generated identifiers automatically, but
141
+ * it's often desirable to have these match existing identifiers in your system. To
142
+ * avoid having to denormalize Orb ID information, you can pass in an
143
+ * `external_customer_id` with your own identifier. See
144
+ * [Customer ID Aliases](/events-and-metrics/customer-aliases) for further
145
+ * information about how these aliases work in Orb.
146
+ *
147
+ * In addition to having an identifier in your system, a customer may exist in a
148
+ * payment provider solution like Stripe. Use the `payment_provider_id` and the
149
+ * `payment_provider` enum field to express this mapping.
150
+ *
151
+ * A customer also has a timezone (from the standard
152
+ * [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
153
+ * your account's timezone. See [Timezone localization](/essentials/timezones) for
154
+ * information on what this timezone parameter influences within Orb.
155
+ */
156
+ export interface Customer {
157
+ id: string;
158
+ additional_emails: Array<string>;
159
+ auto_collection: boolean;
160
+ /**
161
+ * Whether invoices for this customer should be automatically issued. If true,
162
+ * invoices will be automatically issued. If false, invoices will require manual
163
+ * approval. If null, inherits the account-level setting.
164
+ */
165
+ auto_issuance: boolean | null;
166
+ /**
167
+ * The customer's current balance in their currency.
168
+ */
169
+ balance: string;
170
+ billing_address: Shared.Address | null;
171
+ created_at: string;
172
+ currency: string | null;
173
+ /**
174
+ * A valid customer email, to be used for notifications. When Orb triggers payment
175
+ * through a payment gateway, this email will be used for any automatically issued
176
+ * receipts.
177
+ */
178
+ email: string;
179
+ email_delivery: boolean;
180
+ exempt_from_automated_tax: boolean | null;
181
+ /**
182
+ * An optional user-defined ID for this customer resource, used throughout the
183
+ * system as an alias for this Customer. Use this field to identify a customer by
184
+ * an existing identifier in your system.
185
+ */
186
+ external_customer_id: string | null;
187
+ /**
188
+ * The hierarchical relationships for this customer.
189
+ */
190
+ hierarchy: Customer.Hierarchy;
191
+ /**
192
+ * User specified key-value pairs for the resource. If not present, this defaults
193
+ * to an empty dictionary. Individual keys can be removed by setting the value to
194
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
195
+ * `null`.
196
+ */
197
+ metadata: {
198
+ [key: string]: string;
199
+ };
200
+ /**
201
+ * The full name of the customer
202
+ */
203
+ name: string;
204
+ /**
205
+ * This is used for creating charges or invoices in an external system via Orb.
206
+ * When not in test mode, the connection must first be configured in the Orb
207
+ * webapp.
208
+ */
209
+ payment_provider: 'quickbooks' | 'bill.com' | 'stripe_charge' | 'stripe_invoice' | 'netsuite' | 'adyen' | null;
210
+ /**
211
+ * The ID of this customer in an external payments solution, such as Stripe. This
212
+ * is used for creating charges or invoices in the external system via Orb.
213
+ */
214
+ payment_provider_id: string | null;
215
+ /**
216
+ * Deprecated. Returns the URL of the most recent non-expired portal link, or null.
217
+ * When the account has opted into customer portal sessions, this field always
218
+ * returns null. Use POST /v1/customers/{id}/portal_sessions to mint short-lived
219
+ * portal session URLs.
220
+ */
221
+ portal_url: string | null;
222
+ shipping_address: Shared.Address | null;
223
+ /**
224
+ * Tax IDs are commonly required to be displayed on customer invoices, which are
225
+ * added to the headers of invoices.
226
+ *
227
+ * ### Supported Tax ID Countries and Types
228
+ *
229
+ * | Country | Type | Description |
230
+ * | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
231
+ * | Albania | `al_tin` | Albania Tax Identification Number |
232
+ * | Andorra | `ad_nrt` | Andorran NRT Number |
233
+ * | Angola | `ao_tin` | Angola Tax Identification Number |
234
+ * | Argentina | `ar_cuit` | Argentinian Tax ID Number |
235
+ * | Armenia | `am_tin` | Armenia Tax Identification Number |
236
+ * | Aruba | `aw_tin` | Aruba Tax Identification Number |
237
+ * | Australia | `au_abn` | Australian Business Number (AU ABN) |
238
+ * | Australia | `au_arn` | Australian Taxation Office Reference Number |
239
+ * | Austria | `eu_vat` | European VAT Number |
240
+ * | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number |
241
+ * | Bahamas | `bs_tin` | Bahamas Tax Identification Number |
242
+ * | Bahrain | `bh_vat` | Bahraini VAT Number |
243
+ * | Bangladesh | `bd_bin` | Bangladesh Business Identification Number |
244
+ * | Barbados | `bb_tin` | Barbados Tax Identification Number |
245
+ * | Belarus | `by_tin` | Belarus TIN Number |
246
+ * | Belgium | `eu_vat` | European VAT Number |
247
+ * | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) |
248
+ * | Bolivia | `bo_tin` | Bolivian Tax ID |
249
+ * | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number |
250
+ * | Brazil | `br_cnpj` | Brazilian CNPJ Number |
251
+ * | Brazil | `br_cpf` | Brazilian CPF Number |
252
+ * | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
253
+ * | Bulgaria | `eu_vat` | European VAT Number |
254
+ * | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) |
255
+ * | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
256
+ * | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) |
257
+ * | Canada | `ca_bn` | Canadian BN |
258
+ * | Canada | `ca_gst_hst` | Canadian GST/HST Number |
259
+ * | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
260
+ * | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
261
+ * | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
262
+ * | Canada | `ca_qst` | Canadian QST Number (Québec) |
263
+ * | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) |
264
+ * | Chile | `cl_tin` | Chilean TIN |
265
+ * | China | `cn_tin` | Chinese Tax ID |
266
+ * | Colombia | `co_nit` | Colombian NIT Number |
267
+ * | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) |
268
+ * | Costa Rica | `cr_tin` | Costa Rican Tax ID |
269
+ * | Croatia | `eu_vat` | European VAT Number |
270
+ * | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) |
271
+ * | Cyprus | `eu_vat` | European VAT Number |
272
+ * | Czech Republic | `eu_vat` | European VAT Number |
273
+ * | Denmark | `eu_vat` | European VAT Number |
274
+ * | Dominican Republic | `do_rcn` | Dominican RCN Number |
275
+ * | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
276
+ * | Egypt | `eg_tin` | Egyptian Tax Identification Number |
277
+ * | El Salvador | `sv_nit` | El Salvadorian NIT Number |
278
+ * | Estonia | `eu_vat` | European VAT Number |
279
+ * | Ethiopia | `et_tin` | Ethiopia Tax Identification Number |
280
+ * | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
281
+ * | Faroe Islands | `fo_vat` | Faroe Islands VAT Number |
282
+ * | Finland | `eu_vat` | European VAT Number |
283
+ * | France | `eu_vat` | European VAT Number |
284
+ * | Georgia | `ge_vat` | Georgian VAT |
285
+ * | Germany | `de_stn` | German Tax Number (Steuernummer) |
286
+ * | Germany | `eu_vat` | European VAT Number |
287
+ * | Gibraltar | `gi_tin` | Gibraltar Tax Identification Number |
288
+ * | Greece | `eu_vat` | European VAT Number |
289
+ * | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) |
290
+ * | Hong Kong | `hk_br` | Hong Kong BR Number |
291
+ * | Hungary | `eu_vat` | European VAT Number |
292
+ * | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
293
+ * | Iceland | `is_vat` | Icelandic VAT |
294
+ * | India | `in_gst` | Indian GST Number |
295
+ * | Indonesia | `id_npwp` | Indonesian NPWP Number |
296
+ * | Ireland | `eu_vat` | European VAT Number |
297
+ * | Israel | `il_vat` | Israel VAT |
298
+ * | Italy | `eu_vat` | European VAT Number |
299
+ * | Italy | `it_cf` | Italian Codice Fiscale Number |
300
+ * | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
301
+ * | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
302
+ * | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
303
+ * | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
304
+ * | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
305
+ * | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number |
306
+ * | Laos | `la_tin` | Laos Tax Identification Number |
307
+ * | Latvia | `eu_vat` | European VAT Number |
308
+ * | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
309
+ * | Liechtenstein | `li_vat` | Liechtenstein VAT Number |
310
+ * | Lithuania | `eu_vat` | European VAT Number |
311
+ * | Luxembourg | `eu_vat` | European VAT Number |
312
+ * | Malaysia | `my_frp` | Malaysian FRP Number |
313
+ * | Malaysia | `my_itn` | Malaysian ITN |
314
+ * | Malaysia | `my_sst` | Malaysian SST Number |
315
+ * | Malta | `eu_vat` | European VAT Number |
316
+ * | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) |
317
+ * | Mexico | `mx_rfc` | Mexican RFC Number |
318
+ * | Moldova | `md_vat` | Moldova VAT Number |
319
+ * | Montenegro | `me_pib` | Montenegro PIB Number |
320
+ * | Morocco | `ma_vat` | Morocco VAT Number |
321
+ * | Nepal | `np_pan` | Nepal PAN Number |
322
+ * | Netherlands | `eu_vat` | European VAT Number |
323
+ * | New Zealand | `nz_gst` | New Zealand GST Number |
324
+ * | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
325
+ * | North Macedonia | `mk_vat` | North Macedonia VAT Number |
326
+ * | Northern Ireland | `eu_vat` | Northern Ireland VAT Number |
327
+ * | Norway | `no_vat` | Norwegian VAT Number |
328
+ * | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
329
+ * | Oman | `om_vat` | Omani VAT Number |
330
+ * | Paraguay | `py_ruc` | Paraguayan RUC Number |
331
+ * | Peru | `pe_ruc` | Peruvian RUC Number |
332
+ * | Philippines | `ph_tin` | Philippines Tax Identification Number |
333
+ * | Poland | `eu_vat` | European VAT Number |
334
+ * | Poland | `pl_nip` | Polish Tax ID Number |
335
+ * | Portugal | `eu_vat` | European VAT Number |
336
+ * | Romania | `eu_vat` | European VAT Number |
337
+ * | Romania | `ro_tin` | Romanian Tax ID Number |
338
+ * | Russia | `ru_inn` | Russian INN |
339
+ * | Russia | `ru_kpp` | Russian KPP |
340
+ * | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
341
+ * | Senegal | `sn_ninea` | Senegal NINEA Number |
342
+ * | Serbia | `rs_pib` | Serbian PIB Number |
343
+ * | Singapore | `sg_gst` | Singaporean GST |
344
+ * | Singapore | `sg_uen` | Singaporean UEN |
345
+ * | Slovakia | `eu_vat` | European VAT Number |
346
+ * | Slovenia | `eu_vat` | European VAT Number |
347
+ * | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
348
+ * | South Africa | `za_vat` | South African VAT Number |
349
+ * | South Korea | `kr_brn` | Korean BRN |
350
+ * | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
351
+ * | Spain | `eu_vat` | European VAT Number |
352
+ * | Sri Lanka | `lk_vat` | Sri Lanka VAT Number |
353
+ * | Suriname | `sr_fin` | Suriname FIN Number |
354
+ * | Sweden | `eu_vat` | European VAT Number |
355
+ * | Switzerland | `ch_uid` | Switzerland UID Number |
356
+ * | Switzerland | `ch_vat` | Switzerland VAT Number |
357
+ * | Taiwan | `tw_vat` | Taiwanese VAT |
358
+ * | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number |
359
+ * | Tanzania | `tz_vat` | Tanzania VAT Number |
360
+ * | Thailand | `th_vat` | Thai VAT |
361
+ * | Turkey | `tr_tin` | Turkish Tax Identification Number |
362
+ * | Uganda | `ug_tin` | Uganda Tax Identification Number |
363
+ * | Ukraine | `ua_vat` | Ukrainian VAT |
364
+ * | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
365
+ * | United Kingdom | `gb_vat` | United Kingdom VAT Number |
366
+ * | United States | `us_ein` | United States EIN |
367
+ * | Uruguay | `uy_ruc` | Uruguayan RUC Number |
368
+ * | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
369
+ * | Uzbekistan | `uz_vat` | Uzbekistan VAT Number |
370
+ * | Venezuela | `ve_rif` | Venezuelan RIF Number |
371
+ * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
372
+ * | Zambia | `zm_tin` | Zambia Tax Identification Number |
373
+ * | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number |
374
+ */
375
+ tax_id: Shared.CustomerTaxID | null;
376
+ /**
377
+ * A timezone identifier from the IANA timezone database, such as
378
+ * "America/Los_Angeles". This "defaults to your account's timezone if not set.
379
+ * This cannot be changed after customer creation.
380
+ */
381
+ timezone: string;
382
+ accounting_sync_configuration?: Customer.AccountingSyncConfiguration | null;
383
+ /**
384
+ * Whether automatic tax calculation is enabled for this customer. This field is
385
+ * nullable for backwards compatibility but will always return a boolean value.
386
+ */
387
+ automatic_tax_enabled?: boolean | null;
388
+ /**
389
+ * A payment method represents a customer's stored payment instrument held with an
390
+ * external payment provider (such as Adyen or Stripe).
391
+ *
392
+ * The serialization is intentionally minimal for now; provider-pulled details
393
+ * (e.g. card display metadata) will be added over time.
394
+ */
395
+ default_payment_method?: Customer.DefaultPaymentMethod | null;
396
+ /**
397
+ * Payment configuration for the customer, applicable when using Orb Invoicing with
398
+ * a supported payment provider such as Stripe.
399
+ */
400
+ payment_configuration?: Customer.PaymentConfiguration | null;
401
+ reporting_configuration?: Customer.ReportingConfiguration | null;
402
+ }
403
+ export declare namespace Customer {
404
+ /**
405
+ * The hierarchical relationships for this customer.
406
+ */
407
+ interface Hierarchy {
408
+ children: Array<Shared.CustomerMinified>;
409
+ parent: Shared.CustomerMinified | null;
410
+ }
411
+ interface AccountingSyncConfiguration {
412
+ accounting_providers: Array<AccountingSyncConfiguration.AccountingProvider>;
413
+ excluded: boolean;
414
+ }
415
+ namespace AccountingSyncConfiguration {
416
+ interface AccountingProvider {
417
+ external_provider_id: string | null;
418
+ provider_type: 'quickbooks' | 'netsuite';
419
+ }
420
+ }
421
+ /**
422
+ * A payment method represents a customer's stored payment instrument held with an
423
+ * external payment provider (such as Adyen or Stripe).
424
+ *
425
+ * The serialization is intentionally minimal for now; provider-pulled details
426
+ * (e.g. card display metadata) will be added over time.
427
+ */
428
+ interface DefaultPaymentMethod {
429
+ /**
430
+ * The Orb-assigned unique identifier for the payment method.
431
+ */
432
+ id: string;
433
+ /**
434
+ * The time at which the payment method was created.
435
+ */
436
+ created_at: string;
437
+ /**
438
+ * The ID of the Orb customer this payment method is attached to.
439
+ */
440
+ customer_id: string;
441
+ /**
442
+ * Whether this is the customer's default payment method.
443
+ */
444
+ default: boolean;
445
+ /**
446
+ * The identifier of this payment method in the external payment provider.
447
+ */
448
+ external_payment_method_id: string;
449
+ /**
450
+ * The type of the underlying payment instrument, e.g. `card` or `us_bank_account`.
451
+ */
452
+ payment_method_type: 'card' | 'us_bank_account' | 'link' | 'amazon_pay' | 'crypto';
453
+ /**
454
+ * The external payment provider this method belongs to, derived from the linked
455
+ * payment gateway connection (e.g. `adyen` or `stripe`). Null if the connection
456
+ * has been removed.
457
+ */
458
+ provider_type: string | null;
459
+ }
460
+ /**
461
+ * Payment configuration for the customer, applicable when using Orb Invoicing with
462
+ * a supported payment provider such as Stripe.
463
+ */
464
+ interface PaymentConfiguration {
465
+ /**
466
+ * Provider-specific payment configuration.
467
+ */
468
+ payment_providers?: Array<PaymentConfiguration.PaymentProvider>;
469
+ }
470
+ namespace PaymentConfiguration {
471
+ interface PaymentProvider {
472
+ /**
473
+ * The payment provider to configure.
474
+ */
475
+ provider_type: 'stripe';
476
+ /**
477
+ * The ID of a shared payment token granted by an agent to use as the default
478
+ * payment instrument for this customer. When set, auto-collection will use this
479
+ * token instead of the customer's default payment method.
480
+ */
481
+ default_shared_payment_token?: string | null;
482
+ /**
483
+ * List of Stripe payment method types to exclude for this customer. Excluded
484
+ * payment methods will not be available for the customer to select during payment,
485
+ * and will not be used for auto-collection. If a customer's default payment method
486
+ * becomes excluded, Orb will attempt to use the next available compatible payment
487
+ * method for auto-collection.
488
+ */
489
+ excluded_payment_method_types?: Array<string>;
490
+ }
491
+ }
492
+ interface ReportingConfiguration {
493
+ exempt: boolean;
494
+ }
495
+ }
496
+ export interface CustomerHierarchyConfig {
497
+ /**
498
+ * A list of child customer IDs to add to the hierarchy. The desired child
499
+ * customers must not already be part of another hierarchy.
500
+ */
501
+ child_customer_ids?: Array<string>;
502
+ /**
503
+ * The ID of the parent customer in the hierarchy. The desired parent customer must
504
+ * not be a child of another customer.
505
+ */
506
+ parent_customer_id?: string | null;
507
+ }
508
+ export interface NewAccountingSyncConfiguration {
509
+ accounting_providers?: Array<AccountingProviderConfig> | null;
510
+ excluded?: boolean | null;
511
+ }
512
+ export interface NewAvalaraTaxConfiguration {
513
+ tax_exempt: boolean;
514
+ tax_provider: 'avalara';
515
+ /**
516
+ * Whether to automatically calculate tax for this customer. When null, inherits
517
+ * from account-level setting. When true or false, overrides the account setting.
518
+ */
519
+ automatic_tax_enabled?: boolean | null;
520
+ tax_exemption_code?: string | null;
521
+ }
522
+ export interface NewReportingConfiguration {
523
+ exempt: boolean;
524
+ }
525
+ export interface NewSphereConfiguration {
526
+ tax_exempt: boolean;
527
+ tax_provider: 'sphere';
528
+ /**
529
+ * Whether to automatically calculate tax for this customer. When null, inherits
530
+ * from account-level setting. When true or false, overrides the account setting.
531
+ */
532
+ automatic_tax_enabled?: boolean | null;
533
+ }
534
+ export interface NewTaxJarConfiguration {
535
+ tax_exempt: boolean;
536
+ tax_provider: 'taxjar';
537
+ /**
538
+ * Whether to automatically calculate tax for this customer. When null, inherits
539
+ * from account-level setting. When true or false, overrides the account setting.
540
+ */
541
+ automatic_tax_enabled?: boolean | null;
542
+ }
543
+ export interface CustomerCreateParams {
544
+ /**
545
+ * A valid customer email, to be used for notifications. When Orb triggers payment
546
+ * through a payment gateway, this email will be used for any automatically issued
547
+ * receipts.
548
+ */
549
+ email: string;
550
+ /**
551
+ * The full name of the customer
552
+ */
553
+ name: string;
554
+ accounting_sync_configuration?: NewAccountingSyncConfiguration | null;
555
+ /**
556
+ * Additional email addresses for this customer. If populated, these email
557
+ * addresses will be CC'd for customer communications. The total number of email
558
+ * addresses (including the primary email) cannot exceed 50.
559
+ */
560
+ additional_emails?: Array<string> | null;
561
+ /**
562
+ * Used to determine if invoices for this customer will automatically attempt to
563
+ * charge a saved payment method, if available. This parameter defaults to `True`
564
+ * when a payment provider is provided on customer creation.
565
+ */
566
+ auto_collection?: boolean | null;
567
+ /**
568
+ * Used to determine if invoices for this customer will be automatically issued. If
569
+ * true, invoices will be automatically issued. If false, invoices will require
570
+ * manual approval. If `null` is specified, the customer's auto issuance setting
571
+ * will be inherited from the account-level setting.
572
+ */
573
+ auto_issuance?: boolean | null;
574
+ billing_address?: AddressInput | null;
575
+ /**
576
+ * An ISO 4217 currency string used for the customer's invoices and balance. If not
577
+ * set at creation time, will be set at subscription creation time.
578
+ */
579
+ currency?: string | null;
580
+ email_delivery?: boolean | null;
581
+ /**
582
+ * An optional user-defined ID for this customer resource, used throughout the
583
+ * system as an alias for this Customer. Use this field to identify a customer by
584
+ * an existing identifier in your system.
585
+ */
586
+ external_customer_id?: string | null;
587
+ /**
588
+ * The hierarchical relationships for this customer.
589
+ */
590
+ hierarchy?: CustomerHierarchyConfig | null;
591
+ /**
592
+ * User-specified key/value pairs for the resource. Individual keys can be removed
593
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
594
+ * by setting `metadata` to `null`.
595
+ */
596
+ metadata?: {
597
+ [key: string]: string | null;
598
+ } | null;
599
+ /**
600
+ * Payment configuration for the customer, applicable when using Orb Invoicing with
601
+ * a supported payment provider such as Stripe.
602
+ */
603
+ payment_configuration?: CustomerCreateParams.PaymentConfiguration | null;
604
+ /**
605
+ * This is used for creating charges or invoices in an external system via Orb.
606
+ * When not in test mode, the connection must first be configured in the Orb
607
+ * webapp.
608
+ */
609
+ payment_provider?: 'quickbooks' | 'bill.com' | 'stripe_charge' | 'stripe_invoice' | 'netsuite' | 'adyen' | null;
610
+ /**
611
+ * The ID of this customer in an external payments solution, such as Stripe. This
612
+ * is used for creating charges or invoices in the external system via Orb.
613
+ */
614
+ payment_provider_id?: string | null;
615
+ reporting_configuration?: NewReportingConfiguration | null;
616
+ shipping_address?: AddressInput | null;
617
+ tax_configuration?: NewAvalaraTaxConfiguration | NewTaxJarConfiguration | NewSphereConfiguration | CustomerCreateParams.NewNumeralConfiguration | CustomerCreateParams.NewAnrokConfiguration | CustomerCreateParams.NewStripeTaxConfiguration | null;
618
+ /**
619
+ * Tax IDs are commonly required to be displayed on customer invoices, which are
620
+ * added to the headers of invoices.
621
+ *
622
+ * ### Supported Tax ID Countries and Types
623
+ *
624
+ * | Country | Type | Description |
625
+ * | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
626
+ * | Albania | `al_tin` | Albania Tax Identification Number |
627
+ * | Andorra | `ad_nrt` | Andorran NRT Number |
628
+ * | Angola | `ao_tin` | Angola Tax Identification Number |
629
+ * | Argentina | `ar_cuit` | Argentinian Tax ID Number |
630
+ * | Armenia | `am_tin` | Armenia Tax Identification Number |
631
+ * | Aruba | `aw_tin` | Aruba Tax Identification Number |
632
+ * | Australia | `au_abn` | Australian Business Number (AU ABN) |
633
+ * | Australia | `au_arn` | Australian Taxation Office Reference Number |
634
+ * | Austria | `eu_vat` | European VAT Number |
635
+ * | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number |
636
+ * | Bahamas | `bs_tin` | Bahamas Tax Identification Number |
637
+ * | Bahrain | `bh_vat` | Bahraini VAT Number |
638
+ * | Bangladesh | `bd_bin` | Bangladesh Business Identification Number |
639
+ * | Barbados | `bb_tin` | Barbados Tax Identification Number |
640
+ * | Belarus | `by_tin` | Belarus TIN Number |
641
+ * | Belgium | `eu_vat` | European VAT Number |
642
+ * | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) |
643
+ * | Bolivia | `bo_tin` | Bolivian Tax ID |
644
+ * | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number |
645
+ * | Brazil | `br_cnpj` | Brazilian CNPJ Number |
646
+ * | Brazil | `br_cpf` | Brazilian CPF Number |
647
+ * | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
648
+ * | Bulgaria | `eu_vat` | European VAT Number |
649
+ * | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) |
650
+ * | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
651
+ * | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) |
652
+ * | Canada | `ca_bn` | Canadian BN |
653
+ * | Canada | `ca_gst_hst` | Canadian GST/HST Number |
654
+ * | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
655
+ * | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
656
+ * | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
657
+ * | Canada | `ca_qst` | Canadian QST Number (Québec) |
658
+ * | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) |
659
+ * | Chile | `cl_tin` | Chilean TIN |
660
+ * | China | `cn_tin` | Chinese Tax ID |
661
+ * | Colombia | `co_nit` | Colombian NIT Number |
662
+ * | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) |
663
+ * | Costa Rica | `cr_tin` | Costa Rican Tax ID |
664
+ * | Croatia | `eu_vat` | European VAT Number |
665
+ * | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) |
666
+ * | Cyprus | `eu_vat` | European VAT Number |
667
+ * | Czech Republic | `eu_vat` | European VAT Number |
668
+ * | Denmark | `eu_vat` | European VAT Number |
669
+ * | Dominican Republic | `do_rcn` | Dominican RCN Number |
670
+ * | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
671
+ * | Egypt | `eg_tin` | Egyptian Tax Identification Number |
672
+ * | El Salvador | `sv_nit` | El Salvadorian NIT Number |
673
+ * | Estonia | `eu_vat` | European VAT Number |
674
+ * | Ethiopia | `et_tin` | Ethiopia Tax Identification Number |
675
+ * | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
676
+ * | Faroe Islands | `fo_vat` | Faroe Islands VAT Number |
677
+ * | Finland | `eu_vat` | European VAT Number |
678
+ * | France | `eu_vat` | European VAT Number |
679
+ * | Georgia | `ge_vat` | Georgian VAT |
680
+ * | Germany | `de_stn` | German Tax Number (Steuernummer) |
681
+ * | Germany | `eu_vat` | European VAT Number |
682
+ * | Gibraltar | `gi_tin` | Gibraltar Tax Identification Number |
683
+ * | Greece | `eu_vat` | European VAT Number |
684
+ * | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) |
685
+ * | Hong Kong | `hk_br` | Hong Kong BR Number |
686
+ * | Hungary | `eu_vat` | European VAT Number |
687
+ * | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
688
+ * | Iceland | `is_vat` | Icelandic VAT |
689
+ * | India | `in_gst` | Indian GST Number |
690
+ * | Indonesia | `id_npwp` | Indonesian NPWP Number |
691
+ * | Ireland | `eu_vat` | European VAT Number |
692
+ * | Israel | `il_vat` | Israel VAT |
693
+ * | Italy | `eu_vat` | European VAT Number |
694
+ * | Italy | `it_cf` | Italian Codice Fiscale Number |
695
+ * | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
696
+ * | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
697
+ * | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
698
+ * | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
699
+ * | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
700
+ * | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number |
701
+ * | Laos | `la_tin` | Laos Tax Identification Number |
702
+ * | Latvia | `eu_vat` | European VAT Number |
703
+ * | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
704
+ * | Liechtenstein | `li_vat` | Liechtenstein VAT Number |
705
+ * | Lithuania | `eu_vat` | European VAT Number |
706
+ * | Luxembourg | `eu_vat` | European VAT Number |
707
+ * | Malaysia | `my_frp` | Malaysian FRP Number |
708
+ * | Malaysia | `my_itn` | Malaysian ITN |
709
+ * | Malaysia | `my_sst` | Malaysian SST Number |
710
+ * | Malta | `eu_vat` | European VAT Number |
711
+ * | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) |
712
+ * | Mexico | `mx_rfc` | Mexican RFC Number |
713
+ * | Moldova | `md_vat` | Moldova VAT Number |
714
+ * | Montenegro | `me_pib` | Montenegro PIB Number |
715
+ * | Morocco | `ma_vat` | Morocco VAT Number |
716
+ * | Nepal | `np_pan` | Nepal PAN Number |
717
+ * | Netherlands | `eu_vat` | European VAT Number |
718
+ * | New Zealand | `nz_gst` | New Zealand GST Number |
719
+ * | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
720
+ * | North Macedonia | `mk_vat` | North Macedonia VAT Number |
721
+ * | Northern Ireland | `eu_vat` | Northern Ireland VAT Number |
722
+ * | Norway | `no_vat` | Norwegian VAT Number |
723
+ * | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
724
+ * | Oman | `om_vat` | Omani VAT Number |
725
+ * | Paraguay | `py_ruc` | Paraguayan RUC Number |
726
+ * | Peru | `pe_ruc` | Peruvian RUC Number |
727
+ * | Philippines | `ph_tin` | Philippines Tax Identification Number |
728
+ * | Poland | `eu_vat` | European VAT Number |
729
+ * | Poland | `pl_nip` | Polish Tax ID Number |
730
+ * | Portugal | `eu_vat` | European VAT Number |
731
+ * | Romania | `eu_vat` | European VAT Number |
732
+ * | Romania | `ro_tin` | Romanian Tax ID Number |
733
+ * | Russia | `ru_inn` | Russian INN |
734
+ * | Russia | `ru_kpp` | Russian KPP |
735
+ * | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
736
+ * | Senegal | `sn_ninea` | Senegal NINEA Number |
737
+ * | Serbia | `rs_pib` | Serbian PIB Number |
738
+ * | Singapore | `sg_gst` | Singaporean GST |
739
+ * | Singapore | `sg_uen` | Singaporean UEN |
740
+ * | Slovakia | `eu_vat` | European VAT Number |
741
+ * | Slovenia | `eu_vat` | European VAT Number |
742
+ * | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
743
+ * | South Africa | `za_vat` | South African VAT Number |
744
+ * | South Korea | `kr_brn` | Korean BRN |
745
+ * | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
746
+ * | Spain | `eu_vat` | European VAT Number |
747
+ * | Sri Lanka | `lk_vat` | Sri Lanka VAT Number |
748
+ * | Suriname | `sr_fin` | Suriname FIN Number |
749
+ * | Sweden | `eu_vat` | European VAT Number |
750
+ * | Switzerland | `ch_uid` | Switzerland UID Number |
751
+ * | Switzerland | `ch_vat` | Switzerland VAT Number |
752
+ * | Taiwan | `tw_vat` | Taiwanese VAT |
753
+ * | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number |
754
+ * | Tanzania | `tz_vat` | Tanzania VAT Number |
755
+ * | Thailand | `th_vat` | Thai VAT |
756
+ * | Turkey | `tr_tin` | Turkish Tax Identification Number |
757
+ * | Uganda | `ug_tin` | Uganda Tax Identification Number |
758
+ * | Ukraine | `ua_vat` | Ukrainian VAT |
759
+ * | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
760
+ * | United Kingdom | `gb_vat` | United Kingdom VAT Number |
761
+ * | United States | `us_ein` | United States EIN |
762
+ * | Uruguay | `uy_ruc` | Uruguayan RUC Number |
763
+ * | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
764
+ * | Uzbekistan | `uz_vat` | Uzbekistan VAT Number |
765
+ * | Venezuela | `ve_rif` | Venezuelan RIF Number |
766
+ * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
767
+ * | Zambia | `zm_tin` | Zambia Tax Identification Number |
768
+ * | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number |
769
+ */
770
+ tax_id?: Shared.CustomerTaxID | null;
771
+ /**
772
+ * A timezone identifier from the IANA timezone database, such as
773
+ * `"America/Los_Angeles"`. This defaults to your account's timezone if not set.
774
+ * This cannot be changed after customer creation.
775
+ */
776
+ timezone?: string | null;
777
+ }
778
+ export declare namespace CustomerCreateParams {
779
+ /**
780
+ * Payment configuration for the customer, applicable when using Orb Invoicing with
781
+ * a supported payment provider such as Stripe.
782
+ */
783
+ interface PaymentConfiguration {
784
+ /**
785
+ * Provider-specific payment configuration.
786
+ */
787
+ payment_providers?: Array<PaymentConfiguration.PaymentProvider>;
788
+ }
789
+ namespace PaymentConfiguration {
790
+ interface PaymentProvider {
791
+ /**
792
+ * The payment provider to configure.
793
+ */
794
+ provider_type: 'stripe';
795
+ /**
796
+ * The ID of a shared payment token granted by an agent to use as the default
797
+ * payment instrument for this customer. When set, auto-collection will use this
798
+ * token instead of the customer's default payment method.
799
+ */
800
+ default_shared_payment_token?: string | null;
801
+ /**
802
+ * List of Stripe payment method types to exclude for this customer. Excluded
803
+ * payment methods will not be available for the customer to select during payment,
804
+ * and will not be used for auto-collection. If a customer's default payment method
805
+ * becomes excluded, Orb will attempt to use the next available compatible payment
806
+ * method for auto-collection.
807
+ */
808
+ excluded_payment_method_types?: Array<string>;
809
+ }
810
+ }
811
+ interface NewNumeralConfiguration {
812
+ tax_exempt: boolean;
813
+ tax_provider: 'numeral';
814
+ /**
815
+ * Whether to automatically calculate tax for this customer. When null, inherits
816
+ * from account-level setting. When true or false, overrides the account setting.
817
+ */
818
+ automatic_tax_enabled?: boolean | null;
819
+ }
820
+ interface NewAnrokConfiguration {
821
+ tax_exempt: boolean;
822
+ tax_provider: 'anrok';
823
+ /**
824
+ * Whether to automatically calculate tax for this customer. When null, inherits
825
+ * from account-level setting. When true or false, overrides the account setting.
826
+ */
827
+ automatic_tax_enabled?: boolean | null;
828
+ }
829
+ interface NewStripeTaxConfiguration {
830
+ tax_exempt: boolean;
831
+ tax_provider: 'stripe';
832
+ /**
833
+ * Whether to automatically calculate tax for this customer. When null, inherits
834
+ * from account-level setting. When true or false, overrides the account setting.
835
+ */
836
+ automatic_tax_enabled?: boolean | null;
837
+ }
838
+ }
839
+ export interface CustomerUpdateParams {
840
+ accounting_sync_configuration?: NewAccountingSyncConfiguration | null;
841
+ /**
842
+ * Additional email addresses for this customer. If populated, these email
843
+ * addresses will be CC'd for customer communications. The total number of email
844
+ * addresses (including the primary email) cannot exceed 50.
845
+ */
846
+ additional_emails?: Array<string> | null;
847
+ /**
848
+ * Used to determine if invoices for this customer will automatically attempt to
849
+ * charge a saved payment method, if available. This parameter defaults to `True`
850
+ * when a payment provider is provided on customer creation.
851
+ */
852
+ auto_collection?: boolean | null;
853
+ /**
854
+ * Used to determine if invoices for this customer will be automatically issued. If
855
+ * true, invoices will be automatically issued. If false, invoices will require
856
+ * manual approval.If `null` is specified, the customer's auto issuance setting
857
+ * will be inherited from the account-level setting.
858
+ */
859
+ auto_issuance?: boolean | null;
860
+ billing_address?: AddressInput | null;
861
+ /**
862
+ * An ISO 4217 currency string used for the customer's invoices and balance. This
863
+ * can only be set if the customer does not already have a currency configured. If
864
+ * not set at creation or update time, it will be set at subscription creation
865
+ * time.
866
+ */
867
+ currency?: string | null;
868
+ /**
869
+ * The Orb ID of the payment method to set as this customer's default. Pass `null`
870
+ * to clear the customer's default payment method.
871
+ */
872
+ default_payment_method_id?: string | null;
873
+ /**
874
+ * A valid customer email, to be used for invoicing and notifications.
875
+ */
876
+ email?: string | null;
877
+ email_delivery?: boolean | null;
878
+ /**
879
+ * The external customer ID. This can only be set if the customer has no existing
880
+ * external customer ID. Since this action may change usage quantities for all
881
+ * existing subscriptions, it is disallowed if the customer has issued invoices
882
+ * with usage line items and subject to the same restrictions as backdated
883
+ * subscription creation.
884
+ */
885
+ external_customer_id?: string | null;
886
+ /**
887
+ * The hierarchical relationships for this customer.
888
+ */
889
+ hierarchy?: CustomerHierarchyConfig | null;
890
+ /**
891
+ * User-specified key/value pairs for the resource. Individual keys can be removed
892
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
893
+ * by setting `metadata` to `null`.
894
+ */
895
+ metadata?: {
896
+ [key: string]: string | null;
897
+ } | null;
898
+ /**
899
+ * The full name of the customer
900
+ */
901
+ name?: string | null;
902
+ /**
903
+ * Payment configuration for the customer, applicable when using Orb Invoicing with
904
+ * a supported payment provider such as Stripe.
905
+ */
906
+ payment_configuration?: CustomerUpdateParams.PaymentConfiguration | null;
907
+ /**
908
+ * This is used for creating charges or invoices in an external system via Orb.
909
+ * When not in test mode:
910
+ *
911
+ * - the connection must first be configured in the Orb webapp.
912
+ * - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`,
913
+ * `bill.com`, `netsuite`), any product mappings must first be configured with
914
+ * the Orb team.
915
+ */
916
+ payment_provider?: 'quickbooks' | 'bill.com' | 'stripe_charge' | 'stripe_invoice' | 'netsuite' | 'adyen' | null;
917
+ /**
918
+ * The ID of this customer in an external payments solution, such as Stripe. This
919
+ * is used for creating charges or invoices in the external system via Orb.
920
+ */
921
+ payment_provider_id?: string | null;
922
+ reporting_configuration?: NewReportingConfiguration | null;
923
+ shipping_address?: AddressInput | null;
924
+ tax_configuration?: NewAvalaraTaxConfiguration | NewTaxJarConfiguration | NewSphereConfiguration | CustomerUpdateParams.NewNumeralConfiguration | CustomerUpdateParams.NewAnrokConfiguration | CustomerUpdateParams.NewStripeTaxConfiguration | null;
925
+ /**
926
+ * Tax IDs are commonly required to be displayed on customer invoices, which are
927
+ * added to the headers of invoices.
928
+ *
929
+ * ### Supported Tax ID Countries and Types
930
+ *
931
+ * | Country | Type | Description |
932
+ * | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
933
+ * | Albania | `al_tin` | Albania Tax Identification Number |
934
+ * | Andorra | `ad_nrt` | Andorran NRT Number |
935
+ * | Angola | `ao_tin` | Angola Tax Identification Number |
936
+ * | Argentina | `ar_cuit` | Argentinian Tax ID Number |
937
+ * | Armenia | `am_tin` | Armenia Tax Identification Number |
938
+ * | Aruba | `aw_tin` | Aruba Tax Identification Number |
939
+ * | Australia | `au_abn` | Australian Business Number (AU ABN) |
940
+ * | Australia | `au_arn` | Australian Taxation Office Reference Number |
941
+ * | Austria | `eu_vat` | European VAT Number |
942
+ * | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number |
943
+ * | Bahamas | `bs_tin` | Bahamas Tax Identification Number |
944
+ * | Bahrain | `bh_vat` | Bahraini VAT Number |
945
+ * | Bangladesh | `bd_bin` | Bangladesh Business Identification Number |
946
+ * | Barbados | `bb_tin` | Barbados Tax Identification Number |
947
+ * | Belarus | `by_tin` | Belarus TIN Number |
948
+ * | Belgium | `eu_vat` | European VAT Number |
949
+ * | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) |
950
+ * | Bolivia | `bo_tin` | Bolivian Tax ID |
951
+ * | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number |
952
+ * | Brazil | `br_cnpj` | Brazilian CNPJ Number |
953
+ * | Brazil | `br_cpf` | Brazilian CPF Number |
954
+ * | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
955
+ * | Bulgaria | `eu_vat` | European VAT Number |
956
+ * | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) |
957
+ * | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
958
+ * | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) |
959
+ * | Canada | `ca_bn` | Canadian BN |
960
+ * | Canada | `ca_gst_hst` | Canadian GST/HST Number |
961
+ * | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
962
+ * | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
963
+ * | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
964
+ * | Canada | `ca_qst` | Canadian QST Number (Québec) |
965
+ * | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) |
966
+ * | Chile | `cl_tin` | Chilean TIN |
967
+ * | China | `cn_tin` | Chinese Tax ID |
968
+ * | Colombia | `co_nit` | Colombian NIT Number |
969
+ * | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) |
970
+ * | Costa Rica | `cr_tin` | Costa Rican Tax ID |
971
+ * | Croatia | `eu_vat` | European VAT Number |
972
+ * | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) |
973
+ * | Cyprus | `eu_vat` | European VAT Number |
974
+ * | Czech Republic | `eu_vat` | European VAT Number |
975
+ * | Denmark | `eu_vat` | European VAT Number |
976
+ * | Dominican Republic | `do_rcn` | Dominican RCN Number |
977
+ * | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
978
+ * | Egypt | `eg_tin` | Egyptian Tax Identification Number |
979
+ * | El Salvador | `sv_nit` | El Salvadorian NIT Number |
980
+ * | Estonia | `eu_vat` | European VAT Number |
981
+ * | Ethiopia | `et_tin` | Ethiopia Tax Identification Number |
982
+ * | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
983
+ * | Faroe Islands | `fo_vat` | Faroe Islands VAT Number |
984
+ * | Finland | `eu_vat` | European VAT Number |
985
+ * | France | `eu_vat` | European VAT Number |
986
+ * | Georgia | `ge_vat` | Georgian VAT |
987
+ * | Germany | `de_stn` | German Tax Number (Steuernummer) |
988
+ * | Germany | `eu_vat` | European VAT Number |
989
+ * | Gibraltar | `gi_tin` | Gibraltar Tax Identification Number |
990
+ * | Greece | `eu_vat` | European VAT Number |
991
+ * | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) |
992
+ * | Hong Kong | `hk_br` | Hong Kong BR Number |
993
+ * | Hungary | `eu_vat` | European VAT Number |
994
+ * | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
995
+ * | Iceland | `is_vat` | Icelandic VAT |
996
+ * | India | `in_gst` | Indian GST Number |
997
+ * | Indonesia | `id_npwp` | Indonesian NPWP Number |
998
+ * | Ireland | `eu_vat` | European VAT Number |
999
+ * | Israel | `il_vat` | Israel VAT |
1000
+ * | Italy | `eu_vat` | European VAT Number |
1001
+ * | Italy | `it_cf` | Italian Codice Fiscale Number |
1002
+ * | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
1003
+ * | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
1004
+ * | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
1005
+ * | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
1006
+ * | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
1007
+ * | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number |
1008
+ * | Laos | `la_tin` | Laos Tax Identification Number |
1009
+ * | Latvia | `eu_vat` | European VAT Number |
1010
+ * | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
1011
+ * | Liechtenstein | `li_vat` | Liechtenstein VAT Number |
1012
+ * | Lithuania | `eu_vat` | European VAT Number |
1013
+ * | Luxembourg | `eu_vat` | European VAT Number |
1014
+ * | Malaysia | `my_frp` | Malaysian FRP Number |
1015
+ * | Malaysia | `my_itn` | Malaysian ITN |
1016
+ * | Malaysia | `my_sst` | Malaysian SST Number |
1017
+ * | Malta | `eu_vat` | European VAT Number |
1018
+ * | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) |
1019
+ * | Mexico | `mx_rfc` | Mexican RFC Number |
1020
+ * | Moldova | `md_vat` | Moldova VAT Number |
1021
+ * | Montenegro | `me_pib` | Montenegro PIB Number |
1022
+ * | Morocco | `ma_vat` | Morocco VAT Number |
1023
+ * | Nepal | `np_pan` | Nepal PAN Number |
1024
+ * | Netherlands | `eu_vat` | European VAT Number |
1025
+ * | New Zealand | `nz_gst` | New Zealand GST Number |
1026
+ * | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
1027
+ * | North Macedonia | `mk_vat` | North Macedonia VAT Number |
1028
+ * | Northern Ireland | `eu_vat` | Northern Ireland VAT Number |
1029
+ * | Norway | `no_vat` | Norwegian VAT Number |
1030
+ * | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
1031
+ * | Oman | `om_vat` | Omani VAT Number |
1032
+ * | Paraguay | `py_ruc` | Paraguayan RUC Number |
1033
+ * | Peru | `pe_ruc` | Peruvian RUC Number |
1034
+ * | Philippines | `ph_tin` | Philippines Tax Identification Number |
1035
+ * | Poland | `eu_vat` | European VAT Number |
1036
+ * | Poland | `pl_nip` | Polish Tax ID Number |
1037
+ * | Portugal | `eu_vat` | European VAT Number |
1038
+ * | Romania | `eu_vat` | European VAT Number |
1039
+ * | Romania | `ro_tin` | Romanian Tax ID Number |
1040
+ * | Russia | `ru_inn` | Russian INN |
1041
+ * | Russia | `ru_kpp` | Russian KPP |
1042
+ * | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
1043
+ * | Senegal | `sn_ninea` | Senegal NINEA Number |
1044
+ * | Serbia | `rs_pib` | Serbian PIB Number |
1045
+ * | Singapore | `sg_gst` | Singaporean GST |
1046
+ * | Singapore | `sg_uen` | Singaporean UEN |
1047
+ * | Slovakia | `eu_vat` | European VAT Number |
1048
+ * | Slovenia | `eu_vat` | European VAT Number |
1049
+ * | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
1050
+ * | South Africa | `za_vat` | South African VAT Number |
1051
+ * | South Korea | `kr_brn` | Korean BRN |
1052
+ * | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
1053
+ * | Spain | `eu_vat` | European VAT Number |
1054
+ * | Sri Lanka | `lk_vat` | Sri Lanka VAT Number |
1055
+ * | Suriname | `sr_fin` | Suriname FIN Number |
1056
+ * | Sweden | `eu_vat` | European VAT Number |
1057
+ * | Switzerland | `ch_uid` | Switzerland UID Number |
1058
+ * | Switzerland | `ch_vat` | Switzerland VAT Number |
1059
+ * | Taiwan | `tw_vat` | Taiwanese VAT |
1060
+ * | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number |
1061
+ * | Tanzania | `tz_vat` | Tanzania VAT Number |
1062
+ * | Thailand | `th_vat` | Thai VAT |
1063
+ * | Turkey | `tr_tin` | Turkish Tax Identification Number |
1064
+ * | Uganda | `ug_tin` | Uganda Tax Identification Number |
1065
+ * | Ukraine | `ua_vat` | Ukrainian VAT |
1066
+ * | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
1067
+ * | United Kingdom | `gb_vat` | United Kingdom VAT Number |
1068
+ * | United States | `us_ein` | United States EIN |
1069
+ * | Uruguay | `uy_ruc` | Uruguayan RUC Number |
1070
+ * | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
1071
+ * | Uzbekistan | `uz_vat` | Uzbekistan VAT Number |
1072
+ * | Venezuela | `ve_rif` | Venezuelan RIF Number |
1073
+ * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
1074
+ * | Zambia | `zm_tin` | Zambia Tax Identification Number |
1075
+ * | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number |
1076
+ */
1077
+ tax_id?: Shared.CustomerTaxID | null;
1078
+ }
1079
+ export declare namespace CustomerUpdateParams {
1080
+ /**
1081
+ * Payment configuration for the customer, applicable when using Orb Invoicing with
1082
+ * a supported payment provider such as Stripe.
1083
+ */
1084
+ interface PaymentConfiguration {
1085
+ /**
1086
+ * Provider-specific payment configuration.
1087
+ */
1088
+ payment_providers?: Array<PaymentConfiguration.PaymentProvider>;
1089
+ }
1090
+ namespace PaymentConfiguration {
1091
+ interface PaymentProvider {
1092
+ /**
1093
+ * The payment provider to configure.
1094
+ */
1095
+ provider_type: 'stripe';
1096
+ /**
1097
+ * The ID of a shared payment token granted by an agent to use as the default
1098
+ * payment instrument for this customer. When set, auto-collection will use this
1099
+ * token instead of the customer's default payment method.
1100
+ */
1101
+ default_shared_payment_token?: string | null;
1102
+ /**
1103
+ * List of Stripe payment method types to exclude for this customer. Excluded
1104
+ * payment methods will not be available for the customer to select during payment,
1105
+ * and will not be used for auto-collection. If a customer's default payment method
1106
+ * becomes excluded, Orb will attempt to use the next available compatible payment
1107
+ * method for auto-collection.
1108
+ */
1109
+ excluded_payment_method_types?: Array<string>;
1110
+ }
1111
+ }
1112
+ interface NewNumeralConfiguration {
1113
+ tax_exempt: boolean;
1114
+ tax_provider: 'numeral';
1115
+ /**
1116
+ * Whether to automatically calculate tax for this customer. When null, inherits
1117
+ * from account-level setting. When true or false, overrides the account setting.
1118
+ */
1119
+ automatic_tax_enabled?: boolean | null;
1120
+ }
1121
+ interface NewAnrokConfiguration {
1122
+ tax_exempt: boolean;
1123
+ tax_provider: 'anrok';
1124
+ /**
1125
+ * Whether to automatically calculate tax for this customer. When null, inherits
1126
+ * from account-level setting. When true or false, overrides the account setting.
1127
+ */
1128
+ automatic_tax_enabled?: boolean | null;
1129
+ }
1130
+ interface NewStripeTaxConfiguration {
1131
+ tax_exempt: boolean;
1132
+ tax_provider: 'stripe';
1133
+ /**
1134
+ * Whether to automatically calculate tax for this customer. When null, inherits
1135
+ * from account-level setting. When true or false, overrides the account setting.
1136
+ */
1137
+ automatic_tax_enabled?: boolean | null;
1138
+ }
1139
+ }
1140
+ export interface CustomerListParams extends PageParams {
1141
+ 'created_at[gt]'?: string | null;
1142
+ 'created_at[gte]'?: string | null;
1143
+ 'created_at[lt]'?: string | null;
1144
+ 'created_at[lte]'?: string | null;
1145
+ }
1146
+ export interface CustomerUpdateByExternalIDParams {
1147
+ accounting_sync_configuration?: NewAccountingSyncConfiguration | null;
1148
+ /**
1149
+ * Additional email addresses for this customer. If populated, these email
1150
+ * addresses will be CC'd for customer communications. The total number of email
1151
+ * addresses (including the primary email) cannot exceed 50.
1152
+ */
1153
+ additional_emails?: Array<string> | null;
1154
+ /**
1155
+ * Used to determine if invoices for this customer will automatically attempt to
1156
+ * charge a saved payment method, if available. This parameter defaults to `True`
1157
+ * when a payment provider is provided on customer creation.
1158
+ */
1159
+ auto_collection?: boolean | null;
1160
+ /**
1161
+ * Used to determine if invoices for this customer will be automatically issued. If
1162
+ * true, invoices will be automatically issued. If false, invoices will require
1163
+ * manual approval.If `null` is specified, the customer's auto issuance setting
1164
+ * will be inherited from the account-level setting.
1165
+ */
1166
+ auto_issuance?: boolean | null;
1167
+ billing_address?: AddressInput | null;
1168
+ /**
1169
+ * An ISO 4217 currency string used for the customer's invoices and balance. This
1170
+ * can only be set if the customer does not already have a currency configured. If
1171
+ * not set at creation or update time, it will be set at subscription creation
1172
+ * time.
1173
+ */
1174
+ currency?: string | null;
1175
+ /**
1176
+ * The Orb ID of the payment method to set as this customer's default. Pass `null`
1177
+ * to clear the customer's default payment method.
1178
+ */
1179
+ default_payment_method_id?: string | null;
1180
+ /**
1181
+ * A valid customer email, to be used for invoicing and notifications.
1182
+ */
1183
+ email?: string | null;
1184
+ email_delivery?: boolean | null;
1185
+ /**
1186
+ * The external customer ID. This can only be set if the customer has no existing
1187
+ * external customer ID. Since this action may change usage quantities for all
1188
+ * existing subscriptions, it is disallowed if the customer has issued invoices
1189
+ * with usage line items and subject to the same restrictions as backdated
1190
+ * subscription creation.
1191
+ */
1192
+ external_customer_id?: string | null;
1193
+ /**
1194
+ * The hierarchical relationships for this customer.
1195
+ */
1196
+ hierarchy?: CustomerHierarchyConfig | null;
1197
+ /**
1198
+ * User-specified key/value pairs for the resource. Individual keys can be removed
1199
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
1200
+ * by setting `metadata` to `null`.
1201
+ */
1202
+ metadata?: {
1203
+ [key: string]: string | null;
1204
+ } | null;
1205
+ /**
1206
+ * The full name of the customer
1207
+ */
1208
+ name?: string | null;
1209
+ /**
1210
+ * Payment configuration for the customer, applicable when using Orb Invoicing with
1211
+ * a supported payment provider such as Stripe.
1212
+ */
1213
+ payment_configuration?: CustomerUpdateByExternalIDParams.PaymentConfiguration | null;
1214
+ /**
1215
+ * This is used for creating charges or invoices in an external system via Orb.
1216
+ * When not in test mode:
1217
+ *
1218
+ * - the connection must first be configured in the Orb webapp.
1219
+ * - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`,
1220
+ * `bill.com`, `netsuite`), any product mappings must first be configured with
1221
+ * the Orb team.
1222
+ */
1223
+ payment_provider?: 'quickbooks' | 'bill.com' | 'stripe_charge' | 'stripe_invoice' | 'netsuite' | 'adyen' | null;
1224
+ /**
1225
+ * The ID of this customer in an external payments solution, such as Stripe. This
1226
+ * is used for creating charges or invoices in the external system via Orb.
1227
+ */
1228
+ payment_provider_id?: string | null;
1229
+ reporting_configuration?: NewReportingConfiguration | null;
1230
+ shipping_address?: AddressInput | null;
1231
+ tax_configuration?: NewAvalaraTaxConfiguration | NewTaxJarConfiguration | NewSphereConfiguration | CustomerUpdateByExternalIDParams.NewNumeralConfiguration | CustomerUpdateByExternalIDParams.NewAnrokConfiguration | CustomerUpdateByExternalIDParams.NewStripeTaxConfiguration | null;
1232
+ /**
1233
+ * Tax IDs are commonly required to be displayed on customer invoices, which are
1234
+ * added to the headers of invoices.
1235
+ *
1236
+ * ### Supported Tax ID Countries and Types
1237
+ *
1238
+ * | Country | Type | Description |
1239
+ * | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
1240
+ * | Albania | `al_tin` | Albania Tax Identification Number |
1241
+ * | Andorra | `ad_nrt` | Andorran NRT Number |
1242
+ * | Angola | `ao_tin` | Angola Tax Identification Number |
1243
+ * | Argentina | `ar_cuit` | Argentinian Tax ID Number |
1244
+ * | Armenia | `am_tin` | Armenia Tax Identification Number |
1245
+ * | Aruba | `aw_tin` | Aruba Tax Identification Number |
1246
+ * | Australia | `au_abn` | Australian Business Number (AU ABN) |
1247
+ * | Australia | `au_arn` | Australian Taxation Office Reference Number |
1248
+ * | Austria | `eu_vat` | European VAT Number |
1249
+ * | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number |
1250
+ * | Bahamas | `bs_tin` | Bahamas Tax Identification Number |
1251
+ * | Bahrain | `bh_vat` | Bahraini VAT Number |
1252
+ * | Bangladesh | `bd_bin` | Bangladesh Business Identification Number |
1253
+ * | Barbados | `bb_tin` | Barbados Tax Identification Number |
1254
+ * | Belarus | `by_tin` | Belarus TIN Number |
1255
+ * | Belgium | `eu_vat` | European VAT Number |
1256
+ * | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) |
1257
+ * | Bolivia | `bo_tin` | Bolivian Tax ID |
1258
+ * | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number |
1259
+ * | Brazil | `br_cnpj` | Brazilian CNPJ Number |
1260
+ * | Brazil | `br_cpf` | Brazilian CPF Number |
1261
+ * | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
1262
+ * | Bulgaria | `eu_vat` | European VAT Number |
1263
+ * | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) |
1264
+ * | Cambodia | `kh_tin` | Cambodia Tax Identification Number |
1265
+ * | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) |
1266
+ * | Canada | `ca_bn` | Canadian BN |
1267
+ * | Canada | `ca_gst_hst` | Canadian GST/HST Number |
1268
+ * | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
1269
+ * | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
1270
+ * | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
1271
+ * | Canada | `ca_qst` | Canadian QST Number (Québec) |
1272
+ * | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) |
1273
+ * | Chile | `cl_tin` | Chilean TIN |
1274
+ * | China | `cn_tin` | Chinese Tax ID |
1275
+ * | Colombia | `co_nit` | Colombian NIT Number |
1276
+ * | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) |
1277
+ * | Costa Rica | `cr_tin` | Costa Rican Tax ID |
1278
+ * | Croatia | `eu_vat` | European VAT Number |
1279
+ * | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) |
1280
+ * | Cyprus | `eu_vat` | European VAT Number |
1281
+ * | Czech Republic | `eu_vat` | European VAT Number |
1282
+ * | Denmark | `eu_vat` | European VAT Number |
1283
+ * | Dominican Republic | `do_rcn` | Dominican RCN Number |
1284
+ * | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
1285
+ * | Egypt | `eg_tin` | Egyptian Tax Identification Number |
1286
+ * | El Salvador | `sv_nit` | El Salvadorian NIT Number |
1287
+ * | Estonia | `eu_vat` | European VAT Number |
1288
+ * | Ethiopia | `et_tin` | Ethiopia Tax Identification Number |
1289
+ * | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
1290
+ * | Faroe Islands | `fo_vat` | Faroe Islands VAT Number |
1291
+ * | Finland | `eu_vat` | European VAT Number |
1292
+ * | France | `eu_vat` | European VAT Number |
1293
+ * | Georgia | `ge_vat` | Georgian VAT |
1294
+ * | Germany | `de_stn` | German Tax Number (Steuernummer) |
1295
+ * | Germany | `eu_vat` | European VAT Number |
1296
+ * | Gibraltar | `gi_tin` | Gibraltar Tax Identification Number |
1297
+ * | Greece | `eu_vat` | European VAT Number |
1298
+ * | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) |
1299
+ * | Hong Kong | `hk_br` | Hong Kong BR Number |
1300
+ * | Hungary | `eu_vat` | European VAT Number |
1301
+ * | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
1302
+ * | Iceland | `is_vat` | Icelandic VAT |
1303
+ * | India | `in_gst` | Indian GST Number |
1304
+ * | Indonesia | `id_npwp` | Indonesian NPWP Number |
1305
+ * | Ireland | `eu_vat` | European VAT Number |
1306
+ * | Israel | `il_vat` | Israel VAT |
1307
+ * | Italy | `eu_vat` | European VAT Number |
1308
+ * | Italy | `it_cf` | Italian Codice Fiscale Number |
1309
+ * | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
1310
+ * | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
1311
+ * | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
1312
+ * | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
1313
+ * | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
1314
+ * | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number |
1315
+ * | Laos | `la_tin` | Laos Tax Identification Number |
1316
+ * | Latvia | `eu_vat` | European VAT Number |
1317
+ * | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
1318
+ * | Liechtenstein | `li_vat` | Liechtenstein VAT Number |
1319
+ * | Lithuania | `eu_vat` | European VAT Number |
1320
+ * | Luxembourg | `eu_vat` | European VAT Number |
1321
+ * | Malaysia | `my_frp` | Malaysian FRP Number |
1322
+ * | Malaysia | `my_itn` | Malaysian ITN |
1323
+ * | Malaysia | `my_sst` | Malaysian SST Number |
1324
+ * | Malta | `eu_vat` | European VAT Number |
1325
+ * | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) |
1326
+ * | Mexico | `mx_rfc` | Mexican RFC Number |
1327
+ * | Moldova | `md_vat` | Moldova VAT Number |
1328
+ * | Montenegro | `me_pib` | Montenegro PIB Number |
1329
+ * | Morocco | `ma_vat` | Morocco VAT Number |
1330
+ * | Nepal | `np_pan` | Nepal PAN Number |
1331
+ * | Netherlands | `eu_vat` | European VAT Number |
1332
+ * | New Zealand | `nz_gst` | New Zealand GST Number |
1333
+ * | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
1334
+ * | North Macedonia | `mk_vat` | North Macedonia VAT Number |
1335
+ * | Northern Ireland | `eu_vat` | Northern Ireland VAT Number |
1336
+ * | Norway | `no_vat` | Norwegian VAT Number |
1337
+ * | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
1338
+ * | Oman | `om_vat` | Omani VAT Number |
1339
+ * | Paraguay | `py_ruc` | Paraguayan RUC Number |
1340
+ * | Peru | `pe_ruc` | Peruvian RUC Number |
1341
+ * | Philippines | `ph_tin` | Philippines Tax Identification Number |
1342
+ * | Poland | `eu_vat` | European VAT Number |
1343
+ * | Poland | `pl_nip` | Polish Tax ID Number |
1344
+ * | Portugal | `eu_vat` | European VAT Number |
1345
+ * | Romania | `eu_vat` | European VAT Number |
1346
+ * | Romania | `ro_tin` | Romanian Tax ID Number |
1347
+ * | Russia | `ru_inn` | Russian INN |
1348
+ * | Russia | `ru_kpp` | Russian KPP |
1349
+ * | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
1350
+ * | Senegal | `sn_ninea` | Senegal NINEA Number |
1351
+ * | Serbia | `rs_pib` | Serbian PIB Number |
1352
+ * | Singapore | `sg_gst` | Singaporean GST |
1353
+ * | Singapore | `sg_uen` | Singaporean UEN |
1354
+ * | Slovakia | `eu_vat` | European VAT Number |
1355
+ * | Slovenia | `eu_vat` | European VAT Number |
1356
+ * | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
1357
+ * | South Africa | `za_vat` | South African VAT Number |
1358
+ * | South Korea | `kr_brn` | Korean BRN |
1359
+ * | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
1360
+ * | Spain | `eu_vat` | European VAT Number |
1361
+ * | Sri Lanka | `lk_vat` | Sri Lanka VAT Number |
1362
+ * | Suriname | `sr_fin` | Suriname FIN Number |
1363
+ * | Sweden | `eu_vat` | European VAT Number |
1364
+ * | Switzerland | `ch_uid` | Switzerland UID Number |
1365
+ * | Switzerland | `ch_vat` | Switzerland VAT Number |
1366
+ * | Taiwan | `tw_vat` | Taiwanese VAT |
1367
+ * | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number |
1368
+ * | Tanzania | `tz_vat` | Tanzania VAT Number |
1369
+ * | Thailand | `th_vat` | Thai VAT |
1370
+ * | Turkey | `tr_tin` | Turkish Tax Identification Number |
1371
+ * | Uganda | `ug_tin` | Uganda Tax Identification Number |
1372
+ * | Ukraine | `ua_vat` | Ukrainian VAT |
1373
+ * | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
1374
+ * | United Kingdom | `gb_vat` | United Kingdom VAT Number |
1375
+ * | United States | `us_ein` | United States EIN |
1376
+ * | Uruguay | `uy_ruc` | Uruguayan RUC Number |
1377
+ * | Uzbekistan | `uz_tin` | Uzbekistan TIN Number |
1378
+ * | Uzbekistan | `uz_vat` | Uzbekistan VAT Number |
1379
+ * | Venezuela | `ve_rif` | Venezuelan RIF Number |
1380
+ * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
1381
+ * | Zambia | `zm_tin` | Zambia Tax Identification Number |
1382
+ * | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number |
1383
+ */
1384
+ tax_id?: Shared.CustomerTaxID | null;
1385
+ }
1386
+ export declare namespace CustomerUpdateByExternalIDParams {
1387
+ /**
1388
+ * Payment configuration for the customer, applicable when using Orb Invoicing with
1389
+ * a supported payment provider such as Stripe.
1390
+ */
1391
+ interface PaymentConfiguration {
1392
+ /**
1393
+ * Provider-specific payment configuration.
1394
+ */
1395
+ payment_providers?: Array<PaymentConfiguration.PaymentProvider>;
1396
+ }
1397
+ namespace PaymentConfiguration {
1398
+ interface PaymentProvider {
1399
+ /**
1400
+ * The payment provider to configure.
1401
+ */
1402
+ provider_type: 'stripe';
1403
+ /**
1404
+ * The ID of a shared payment token granted by an agent to use as the default
1405
+ * payment instrument for this customer. When set, auto-collection will use this
1406
+ * token instead of the customer's default payment method.
1407
+ */
1408
+ default_shared_payment_token?: string | null;
1409
+ /**
1410
+ * List of Stripe payment method types to exclude for this customer. Excluded
1411
+ * payment methods will not be available for the customer to select during payment,
1412
+ * and will not be used for auto-collection. If a customer's default payment method
1413
+ * becomes excluded, Orb will attempt to use the next available compatible payment
1414
+ * method for auto-collection.
1415
+ */
1416
+ excluded_payment_method_types?: Array<string>;
1417
+ }
1418
+ }
1419
+ interface NewNumeralConfiguration {
1420
+ tax_exempt: boolean;
1421
+ tax_provider: 'numeral';
1422
+ /**
1423
+ * Whether to automatically calculate tax for this customer. When null, inherits
1424
+ * from account-level setting. When true or false, overrides the account setting.
1425
+ */
1426
+ automatic_tax_enabled?: boolean | null;
1427
+ }
1428
+ interface NewAnrokConfiguration {
1429
+ tax_exempt: boolean;
1430
+ tax_provider: 'anrok';
1431
+ /**
1432
+ * Whether to automatically calculate tax for this customer. When null, inherits
1433
+ * from account-level setting. When true or false, overrides the account setting.
1434
+ */
1435
+ automatic_tax_enabled?: boolean | null;
1436
+ }
1437
+ interface NewStripeTaxConfiguration {
1438
+ tax_exempt: boolean;
1439
+ tax_provider: 'stripe';
1440
+ /**
1441
+ * Whether to automatically calculate tax for this customer. When null, inherits
1442
+ * from account-level setting. When true or false, overrides the account setting.
1443
+ */
1444
+ automatic_tax_enabled?: boolean | null;
1445
+ }
1446
+ }
1447
+ export declare namespace Customers {
1448
+ export { type AccountingProviderConfig as AccountingProviderConfig, type AddressInput as AddressInput, type Customer as Customer, type CustomerHierarchyConfig as CustomerHierarchyConfig, type NewAccountingSyncConfiguration as NewAccountingSyncConfiguration, type NewAvalaraTaxConfiguration as NewAvalaraTaxConfiguration, type NewReportingConfiguration as NewReportingConfiguration, type NewSphereConfiguration as NewSphereConfiguration, type NewTaxJarConfiguration as NewTaxJarConfiguration, type CustomersPage as CustomersPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerUpdateByExternalIDParams as CustomerUpdateByExternalIDParams, };
1449
+ export { Costs as Costs, type CostListResponse as CostListResponse, type CostListByExternalIDResponse as CostListByExternalIDResponse, type CostListParams as CostListParams, type CostListByExternalIDParams as CostListByExternalIDParams, };
1450
+ export { Credits as Credits, type CreditListResponse as CreditListResponse, type CreditListByExternalIDResponse as CreditListByExternalIDResponse, type CreditListResponsesPage as CreditListResponsesPage, type CreditListByExternalIDResponsesPage as CreditListByExternalIDResponsesPage, type CreditListParams as CreditListParams, type CreditListByExternalIDParams as CreditListByExternalIDParams, };
1451
+ export { BalanceTransactions as BalanceTransactions, type BalanceTransactionCreateResponse as BalanceTransactionCreateResponse, type BalanceTransactionListResponse as BalanceTransactionListResponse, type BalanceTransactionListResponsesPage as BalanceTransactionListResponsesPage, type BalanceTransactionCreateParams as BalanceTransactionCreateParams, type BalanceTransactionListParams as BalanceTransactionListParams, };
1452
+ }
1453
+ //# sourceMappingURL=customers.d.mts.map