@rhinosaas/rebillia-mcp-server 1.0.6

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 (652) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE +21 -0
  3. package/README.md +415 -0
  4. package/dist/client.d.ts +45 -0
  5. package/dist/client.d.ts.map +1 -0
  6. package/dist/client.js +130 -0
  7. package/dist/client.js.map +1 -0
  8. package/dist/index.d.ts +7 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +93 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/prompts/index.d.ts +2 -0
  13. package/dist/prompts/index.d.ts.map +1 -0
  14. package/dist/prompts/index.js +3 -0
  15. package/dist/prompts/index.js.map +1 -0
  16. package/dist/resources/api-docs.d.ts +31 -0
  17. package/dist/resources/api-docs.d.ts.map +1 -0
  18. package/dist/resources/api-docs.js +425 -0
  19. package/dist/resources/api-docs.js.map +1 -0
  20. package/dist/resources/index.d.ts +22 -0
  21. package/dist/resources/index.d.ts.map +1 -0
  22. package/dist/resources/index.js +31 -0
  23. package/dist/resources/index.js.map +1 -0
  24. package/dist/services/billRunServices.d.ts +26 -0
  25. package/dist/services/billRunServices.d.ts.map +1 -0
  26. package/dist/services/billRunServices.js +51 -0
  27. package/dist/services/billRunServices.js.map +1 -0
  28. package/dist/services/countryResolverService.d.ts +28 -0
  29. package/dist/services/countryResolverService.d.ts.map +1 -0
  30. package/dist/services/countryResolverService.js +121 -0
  31. package/dist/services/countryResolverService.js.map +1 -0
  32. package/dist/services/currencyServices.d.ts +43 -0
  33. package/dist/services/currencyServices.d.ts.map +1 -0
  34. package/dist/services/currencyServices.js +41 -0
  35. package/dist/services/currencyServices.js.map +1 -0
  36. package/dist/services/customerServices.d.ts +156 -0
  37. package/dist/services/customerServices.d.ts.map +1 -0
  38. package/dist/services/customerServices.js +181 -0
  39. package/dist/services/customerServices.js.map +1 -0
  40. package/dist/services/filterServices.d.ts +33 -0
  41. package/dist/services/filterServices.d.ts.map +1 -0
  42. package/dist/services/filterServices.js +27 -0
  43. package/dist/services/filterServices.js.map +1 -0
  44. package/dist/services/gatewayServices.d.ts +50 -0
  45. package/dist/services/gatewayServices.d.ts.map +1 -0
  46. package/dist/services/gatewayServices.js +53 -0
  47. package/dist/services/gatewayServices.js.map +1 -0
  48. package/dist/services/globalGatewayService.d.ts +22 -0
  49. package/dist/services/globalGatewayService.d.ts.map +1 -0
  50. package/dist/services/globalGatewayService.js +74 -0
  51. package/dist/services/globalGatewayService.js.map +1 -0
  52. package/dist/services/integrationServices.d.ts +40 -0
  53. package/dist/services/integrationServices.d.ts.map +1 -0
  54. package/dist/services/integrationServices.js +59 -0
  55. package/dist/services/integrationServices.js.map +1 -0
  56. package/dist/services/invoiceServices.d.ts +99 -0
  57. package/dist/services/invoiceServices.d.ts.map +1 -0
  58. package/dist/services/invoiceServices.js +59 -0
  59. package/dist/services/invoiceServices.js.map +1 -0
  60. package/dist/services/productRatePlanChargeServices.d.ts +94 -0
  61. package/dist/services/productRatePlanChargeServices.d.ts.map +1 -0
  62. package/dist/services/productRatePlanChargeServices.js +125 -0
  63. package/dist/services/productRatePlanChargeServices.js.map +1 -0
  64. package/dist/services/productRatePlanServices.d.ts +57 -0
  65. package/dist/services/productRatePlanServices.d.ts.map +1 -0
  66. package/dist/services/productRatePlanServices.js +49 -0
  67. package/dist/services/productRatePlanServices.js.map +1 -0
  68. package/dist/services/productServices.d.ts +60 -0
  69. package/dist/services/productServices.d.ts.map +1 -0
  70. package/dist/services/productServices.js +64 -0
  71. package/dist/services/productServices.js.map +1 -0
  72. package/dist/services/shippingServices.d.ts +34 -0
  73. package/dist/services/shippingServices.d.ts.map +1 -0
  74. package/dist/services/shippingServices.js +15 -0
  75. package/dist/services/shippingServices.js.map +1 -0
  76. package/dist/services/subscriptionServices.d.ts +193 -0
  77. package/dist/services/subscriptionServices.d.ts.map +1 -0
  78. package/dist/services/subscriptionServices.js +169 -0
  79. package/dist/services/subscriptionServices.js.map +1 -0
  80. package/dist/services/transactionServices.d.ts +20 -0
  81. package/dist/services/transactionServices.d.ts.map +1 -0
  82. package/dist/services/transactionServices.js +33 -0
  83. package/dist/services/transactionServices.js.map +1 -0
  84. package/dist/tools/bill_runs/getBillRun.d.ts +3 -0
  85. package/dist/tools/bill_runs/getBillRun.d.ts.map +1 -0
  86. package/dist/tools/bill_runs/getBillRun.js +29 -0
  87. package/dist/tools/bill_runs/getBillRun.js.map +1 -0
  88. package/dist/tools/bill_runs/getBillRunInvoices.d.ts +3 -0
  89. package/dist/tools/bill_runs/getBillRunInvoices.d.ts.map +1 -0
  90. package/dist/tools/bill_runs/getBillRunInvoices.js +29 -0
  91. package/dist/tools/bill_runs/getBillRunInvoices.js.map +1 -0
  92. package/dist/tools/bill_runs/helpers.d.ts +6 -0
  93. package/dist/tools/bill_runs/helpers.d.ts.map +1 -0
  94. package/dist/tools/bill_runs/helpers.js +22 -0
  95. package/dist/tools/bill_runs/helpers.js.map +1 -0
  96. package/dist/tools/bill_runs/index.d.ts +11 -0
  97. package/dist/tools/bill_runs/index.d.ts.map +1 -0
  98. package/dist/tools/bill_runs/index.js +21 -0
  99. package/dist/tools/bill_runs/index.js.map +1 -0
  100. package/dist/tools/bill_runs/listBillRuns.d.ts +3 -0
  101. package/dist/tools/bill_runs/listBillRuns.d.ts.map +1 -0
  102. package/dist/tools/bill_runs/listBillRuns.js +43 -0
  103. package/dist/tools/bill_runs/listBillRuns.js.map +1 -0
  104. package/dist/tools/bill_runs/updateBillRun.d.ts +3 -0
  105. package/dist/tools/bill_runs/updateBillRun.d.ts.map +1 -0
  106. package/dist/tools/bill_runs/updateBillRun.js +35 -0
  107. package/dist/tools/bill_runs/updateBillRun.js.map +1 -0
  108. package/dist/tools/currencies/createCurrency.d.ts +3 -0
  109. package/dist/tools/currencies/createCurrency.d.ts.map +1 -0
  110. package/dist/tools/currencies/createCurrency.js +33 -0
  111. package/dist/tools/currencies/createCurrency.js.map +1 -0
  112. package/dist/tools/currencies/deleteCurrency.d.ts +3 -0
  113. package/dist/tools/currencies/deleteCurrency.d.ts.map +1 -0
  114. package/dist/tools/currencies/deleteCurrency.js +29 -0
  115. package/dist/tools/currencies/deleteCurrency.js.map +1 -0
  116. package/dist/tools/currencies/getCurrency.d.ts +3 -0
  117. package/dist/tools/currencies/getCurrency.d.ts.map +1 -0
  118. package/dist/tools/currencies/getCurrency.js +29 -0
  119. package/dist/tools/currencies/getCurrency.js.map +1 -0
  120. package/dist/tools/currencies/getDefaultCurrency.d.ts +3 -0
  121. package/dist/tools/currencies/getDefaultCurrency.d.ts.map +1 -0
  122. package/dist/tools/currencies/getDefaultCurrency.js +19 -0
  123. package/dist/tools/currencies/getDefaultCurrency.js.map +1 -0
  124. package/dist/tools/currencies/helpers.d.ts +6 -0
  125. package/dist/tools/currencies/helpers.d.ts.map +1 -0
  126. package/dist/tools/currencies/helpers.js +22 -0
  127. package/dist/tools/currencies/helpers.js.map +1 -0
  128. package/dist/tools/currencies/index.d.ts +14 -0
  129. package/dist/tools/currencies/index.d.ts.map +1 -0
  130. package/dist/tools/currencies/index.js +30 -0
  131. package/dist/tools/currencies/index.js.map +1 -0
  132. package/dist/tools/currencies/listCurrencies.d.ts +3 -0
  133. package/dist/tools/currencies/listCurrencies.d.ts.map +1 -0
  134. package/dist/tools/currencies/listCurrencies.js +33 -0
  135. package/dist/tools/currencies/listCurrencies.js.map +1 -0
  136. package/dist/tools/currencies/setDefaultCurrency.d.ts +3 -0
  137. package/dist/tools/currencies/setDefaultCurrency.d.ts.map +1 -0
  138. package/dist/tools/currencies/setDefaultCurrency.js +29 -0
  139. package/dist/tools/currencies/setDefaultCurrency.js.map +1 -0
  140. package/dist/tools/currencies/updateCurrency.d.ts +3 -0
  141. package/dist/tools/currencies/updateCurrency.d.ts.map +1 -0
  142. package/dist/tools/currencies/updateCurrency.js +34 -0
  143. package/dist/tools/currencies/updateCurrency.js.map +1 -0
  144. package/dist/tools/customers/createCustomer.d.ts +3 -0
  145. package/dist/tools/customers/createCustomer.d.ts.map +1 -0
  146. package/dist/tools/customers/createCustomer.js +45 -0
  147. package/dist/tools/customers/createCustomer.js.map +1 -0
  148. package/dist/tools/customers/createCustomerAddress.d.ts +3 -0
  149. package/dist/tools/customers/createCustomerAddress.d.ts.map +1 -0
  150. package/dist/tools/customers/createCustomerAddress.js +68 -0
  151. package/dist/tools/customers/createCustomerAddress.js.map +1 -0
  152. package/dist/tools/customers/createCustomerChargeCredit.d.ts +3 -0
  153. package/dist/tools/customers/createCustomerChargeCredit.d.ts.map +1 -0
  154. package/dist/tools/customers/createCustomerChargeCredit.js +74 -0
  155. package/dist/tools/customers/createCustomerChargeCredit.js.map +1 -0
  156. package/dist/tools/customers/createCustomerPaymentMethod.d.ts +3 -0
  157. package/dist/tools/customers/createCustomerPaymentMethod.d.ts.map +1 -0
  158. package/dist/tools/customers/createCustomerPaymentMethod.js +80 -0
  159. package/dist/tools/customers/createCustomerPaymentMethod.js.map +1 -0
  160. package/dist/tools/customers/deleteCustomer.d.ts +3 -0
  161. package/dist/tools/customers/deleteCustomer.d.ts.map +1 -0
  162. package/dist/tools/customers/deleteCustomer.js +29 -0
  163. package/dist/tools/customers/deleteCustomer.js.map +1 -0
  164. package/dist/tools/customers/deleteCustomerAddress.d.ts +3 -0
  165. package/dist/tools/customers/deleteCustomerAddress.d.ts.map +1 -0
  166. package/dist/tools/customers/deleteCustomerAddress.js +32 -0
  167. package/dist/tools/customers/deleteCustomerAddress.js.map +1 -0
  168. package/dist/tools/customers/deleteCustomerChargeCredit.d.ts +3 -0
  169. package/dist/tools/customers/deleteCustomerChargeCredit.d.ts.map +1 -0
  170. package/dist/tools/customers/deleteCustomerChargeCredit.js +32 -0
  171. package/dist/tools/customers/deleteCustomerChargeCredit.js.map +1 -0
  172. package/dist/tools/customers/deleteCustomerPaymentMethod.d.ts +3 -0
  173. package/dist/tools/customers/deleteCustomerPaymentMethod.d.ts.map +1 -0
  174. package/dist/tools/customers/deleteCustomerPaymentMethod.js +32 -0
  175. package/dist/tools/customers/deleteCustomerPaymentMethod.js.map +1 -0
  176. package/dist/tools/customers/getCustomer.d.ts +3 -0
  177. package/dist/tools/customers/getCustomer.d.ts.map +1 -0
  178. package/dist/tools/customers/getCustomer.js +34 -0
  179. package/dist/tools/customers/getCustomer.js.map +1 -0
  180. package/dist/tools/customers/getCustomerAddress.d.ts +3 -0
  181. package/dist/tools/customers/getCustomerAddress.d.ts.map +1 -0
  182. package/dist/tools/customers/getCustomerAddress.js +32 -0
  183. package/dist/tools/customers/getCustomerAddress.js.map +1 -0
  184. package/dist/tools/customers/getCustomerInvoices.d.ts +3 -0
  185. package/dist/tools/customers/getCustomerInvoices.d.ts.map +1 -0
  186. package/dist/tools/customers/getCustomerInvoices.js +36 -0
  187. package/dist/tools/customers/getCustomerInvoices.js.map +1 -0
  188. package/dist/tools/customers/getCustomerLogs.d.ts +3 -0
  189. package/dist/tools/customers/getCustomerLogs.d.ts.map +1 -0
  190. package/dist/tools/customers/getCustomerLogs.js +34 -0
  191. package/dist/tools/customers/getCustomerLogs.js.map +1 -0
  192. package/dist/tools/customers/getCustomerPaymentMethod.d.ts +3 -0
  193. package/dist/tools/customers/getCustomerPaymentMethod.d.ts.map +1 -0
  194. package/dist/tools/customers/getCustomerPaymentMethod.js +32 -0
  195. package/dist/tools/customers/getCustomerPaymentMethod.js.map +1 -0
  196. package/dist/tools/customers/getCustomerSubscriptions.d.ts +3 -0
  197. package/dist/tools/customers/getCustomerSubscriptions.d.ts.map +1 -0
  198. package/dist/tools/customers/getCustomerSubscriptions.js +36 -0
  199. package/dist/tools/customers/getCustomerSubscriptions.js.map +1 -0
  200. package/dist/tools/customers/helpers.d.ts +6 -0
  201. package/dist/tools/customers/helpers.d.ts.map +1 -0
  202. package/dist/tools/customers/helpers.js +27 -0
  203. package/dist/tools/customers/helpers.js.map +1 -0
  204. package/dist/tools/customers/index.d.ts +29 -0
  205. package/dist/tools/customers/index.d.ts.map +1 -0
  206. package/dist/tools/customers/index.js +73 -0
  207. package/dist/tools/customers/index.js.map +1 -0
  208. package/dist/tools/customers/listCustomerAddresses.d.ts +3 -0
  209. package/dist/tools/customers/listCustomerAddresses.d.ts.map +1 -0
  210. package/dist/tools/customers/listCustomerAddresses.js +30 -0
  211. package/dist/tools/customers/listCustomerAddresses.js.map +1 -0
  212. package/dist/tools/customers/listCustomerChargesCredits.d.ts +3 -0
  213. package/dist/tools/customers/listCustomerChargesCredits.d.ts.map +1 -0
  214. package/dist/tools/customers/listCustomerChargesCredits.js +43 -0
  215. package/dist/tools/customers/listCustomerChargesCredits.js.map +1 -0
  216. package/dist/tools/customers/listCustomerPaymentMethods.d.ts +3 -0
  217. package/dist/tools/customers/listCustomerPaymentMethods.d.ts.map +1 -0
  218. package/dist/tools/customers/listCustomerPaymentMethods.js +30 -0
  219. package/dist/tools/customers/listCustomerPaymentMethods.js.map +1 -0
  220. package/dist/tools/customers/listCustomers.d.ts +3 -0
  221. package/dist/tools/customers/listCustomers.d.ts.map +1 -0
  222. package/dist/tools/customers/listCustomers.js +50 -0
  223. package/dist/tools/customers/listCustomers.js.map +1 -0
  224. package/dist/tools/customers/updateCustomer.d.ts +3 -0
  225. package/dist/tools/customers/updateCustomer.d.ts.map +1 -0
  226. package/dist/tools/customers/updateCustomer.js +50 -0
  227. package/dist/tools/customers/updateCustomer.js.map +1 -0
  228. package/dist/tools/customers/updateCustomerAddress.d.ts +3 -0
  229. package/dist/tools/customers/updateCustomerAddress.d.ts.map +1 -0
  230. package/dist/tools/customers/updateCustomerAddress.js +78 -0
  231. package/dist/tools/customers/updateCustomerAddress.js.map +1 -0
  232. package/dist/tools/customers/updateCustomerPaymentMethod.d.ts +3 -0
  233. package/dist/tools/customers/updateCustomerPaymentMethod.d.ts.map +1 -0
  234. package/dist/tools/customers/updateCustomerPaymentMethod.js +59 -0
  235. package/dist/tools/customers/updateCustomerPaymentMethod.js.map +1 -0
  236. package/dist/tools/docs/getApiDocs.d.ts +3 -0
  237. package/dist/tools/docs/getApiDocs.d.ts.map +1 -0
  238. package/dist/tools/docs/getApiDocs.js +39 -0
  239. package/dist/tools/docs/getApiDocs.js.map +1 -0
  240. package/dist/tools/docs/helpers.d.ts +4 -0
  241. package/dist/tools/docs/helpers.d.ts.map +1 -0
  242. package/dist/tools/docs/helpers.js +7 -0
  243. package/dist/tools/docs/helpers.js.map +1 -0
  244. package/dist/tools/docs/index.d.ts +8 -0
  245. package/dist/tools/docs/index.d.ts.map +1 -0
  246. package/dist/tools/docs/index.js +10 -0
  247. package/dist/tools/docs/index.js.map +1 -0
  248. package/dist/tools/filters/constants.d.ts +7 -0
  249. package/dist/tools/filters/constants.d.ts.map +1 -0
  250. package/dist/tools/filters/constants.js +64 -0
  251. package/dist/tools/filters/constants.js.map +1 -0
  252. package/dist/tools/filters/createFilter.d.ts +3 -0
  253. package/dist/tools/filters/createFilter.d.ts.map +1 -0
  254. package/dist/tools/filters/createFilter.js +65 -0
  255. package/dist/tools/filters/createFilter.js.map +1 -0
  256. package/dist/tools/filters/helpers.d.ts +6 -0
  257. package/dist/tools/filters/helpers.d.ts.map +1 -0
  258. package/dist/tools/filters/helpers.js +22 -0
  259. package/dist/tools/filters/helpers.js.map +1 -0
  260. package/dist/tools/filters/index.d.ts +12 -0
  261. package/dist/tools/filters/index.d.ts.map +1 -0
  262. package/dist/tools/filters/index.js +17 -0
  263. package/dist/tools/filters/index.js.map +1 -0
  264. package/dist/tools/filters/listFilterFields.d.ts +3 -0
  265. package/dist/tools/filters/listFilterFields.d.ts.map +1 -0
  266. package/dist/tools/filters/listFilterFields.js +35 -0
  267. package/dist/tools/filters/listFilterFields.js.map +1 -0
  268. package/dist/tools/filters/listFilters.d.ts +3 -0
  269. package/dist/tools/filters/listFilters.d.ts.map +1 -0
  270. package/dist/tools/filters/listFilters.js +35 -0
  271. package/dist/tools/filters/listFilters.js.map +1 -0
  272. package/dist/tools/filters/removeFilter.d.ts +3 -0
  273. package/dist/tools/filters/removeFilter.d.ts.map +1 -0
  274. package/dist/tools/filters/removeFilter.js +32 -0
  275. package/dist/tools/filters/removeFilter.js.map +1 -0
  276. package/dist/tools/gateways/createGateway.d.ts +3 -0
  277. package/dist/tools/gateways/createGateway.d.ts.map +1 -0
  278. package/dist/tools/gateways/createGateway.js +55 -0
  279. package/dist/tools/gateways/createGateway.js.map +1 -0
  280. package/dist/tools/gateways/createSetupIntent.d.ts +3 -0
  281. package/dist/tools/gateways/createSetupIntent.d.ts.map +1 -0
  282. package/dist/tools/gateways/createSetupIntent.js +32 -0
  283. package/dist/tools/gateways/createSetupIntent.js.map +1 -0
  284. package/dist/tools/gateways/deleteGateway.d.ts +3 -0
  285. package/dist/tools/gateways/deleteGateway.d.ts.map +1 -0
  286. package/dist/tools/gateways/deleteGateway.js +29 -0
  287. package/dist/tools/gateways/deleteGateway.js.map +1 -0
  288. package/dist/tools/gateways/getClientToken.d.ts +3 -0
  289. package/dist/tools/gateways/getClientToken.d.ts.map +1 -0
  290. package/dist/tools/gateways/getClientToken.js +38 -0
  291. package/dist/tools/gateways/getClientToken.js.map +1 -0
  292. package/dist/tools/gateways/getGateway.d.ts +3 -0
  293. package/dist/tools/gateways/getGateway.d.ts.map +1 -0
  294. package/dist/tools/gateways/getGateway.js +29 -0
  295. package/dist/tools/gateways/getGateway.js.map +1 -0
  296. package/dist/tools/gateways/helpers.d.ts +6 -0
  297. package/dist/tools/gateways/helpers.d.ts.map +1 -0
  298. package/dist/tools/gateways/helpers.js +22 -0
  299. package/dist/tools/gateways/helpers.js.map +1 -0
  300. package/dist/tools/gateways/index.d.ts +16 -0
  301. package/dist/tools/gateways/index.d.ts.map +1 -0
  302. package/dist/tools/gateways/index.js +36 -0
  303. package/dist/tools/gateways/index.js.map +1 -0
  304. package/dist/tools/gateways/listGateways.d.ts +3 -0
  305. package/dist/tools/gateways/listGateways.d.ts.map +1 -0
  306. package/dist/tools/gateways/listGateways.js +33 -0
  307. package/dist/tools/gateways/listGateways.js.map +1 -0
  308. package/dist/tools/gateways/listGlobalGateways.d.ts +3 -0
  309. package/dist/tools/gateways/listGlobalGateways.d.ts.map +1 -0
  310. package/dist/tools/gateways/listGlobalGateways.js +19 -0
  311. package/dist/tools/gateways/listGlobalGateways.js.map +1 -0
  312. package/dist/tools/gateways/testGateway.d.ts +3 -0
  313. package/dist/tools/gateways/testGateway.d.ts.map +1 -0
  314. package/dist/tools/gateways/testGateway.js +29 -0
  315. package/dist/tools/gateways/testGateway.js.map +1 -0
  316. package/dist/tools/gateways/updateGateway.d.ts +3 -0
  317. package/dist/tools/gateways/updateGateway.d.ts.map +1 -0
  318. package/dist/tools/gateways/updateGateway.js +39 -0
  319. package/dist/tools/gateways/updateGateway.js.map +1 -0
  320. package/dist/tools/index.d.ts +10 -0
  321. package/dist/tools/index.d.ts.map +1 -0
  322. package/dist/tools/index.js +48 -0
  323. package/dist/tools/index.js.map +1 -0
  324. package/dist/tools/integrations/constants.d.ts +7 -0
  325. package/dist/tools/integrations/constants.d.ts.map +1 -0
  326. package/dist/tools/integrations/constants.js +42 -0
  327. package/dist/tools/integrations/constants.js.map +1 -0
  328. package/dist/tools/integrations/getExternalProduct.d.ts +3 -0
  329. package/dist/tools/integrations/getExternalProduct.d.ts.map +1 -0
  330. package/dist/tools/integrations/getExternalProduct.js +35 -0
  331. package/dist/tools/integrations/getExternalProduct.js.map +1 -0
  332. package/dist/tools/integrations/getIntegrationByKey.d.ts +3 -0
  333. package/dist/tools/integrations/getIntegrationByKey.d.ts.map +1 -0
  334. package/dist/tools/integrations/getIntegrationByKey.js +36 -0
  335. package/dist/tools/integrations/getIntegrationByKey.js.map +1 -0
  336. package/dist/tools/integrations/getIntegrationConfig.d.ts +3 -0
  337. package/dist/tools/integrations/getIntegrationConfig.d.ts.map +1 -0
  338. package/dist/tools/integrations/getIntegrationConfig.js +29 -0
  339. package/dist/tools/integrations/getIntegrationConfig.js.map +1 -0
  340. package/dist/tools/integrations/helpers.d.ts +6 -0
  341. package/dist/tools/integrations/helpers.d.ts.map +1 -0
  342. package/dist/tools/integrations/helpers.js +22 -0
  343. package/dist/tools/integrations/helpers.js.map +1 -0
  344. package/dist/tools/integrations/index.d.ts +16 -0
  345. package/dist/tools/integrations/index.d.ts.map +1 -0
  346. package/dist/tools/integrations/index.js +34 -0
  347. package/dist/tools/integrations/index.js.map +1 -0
  348. package/dist/tools/integrations/listExternalInvoices.d.ts +3 -0
  349. package/dist/tools/integrations/listExternalInvoices.d.ts.map +1 -0
  350. package/dist/tools/integrations/listExternalInvoices.js +40 -0
  351. package/dist/tools/integrations/listExternalInvoices.js.map +1 -0
  352. package/dist/tools/integrations/listExternalProducts.d.ts +3 -0
  353. package/dist/tools/integrations/listExternalProducts.d.ts.map +1 -0
  354. package/dist/tools/integrations/listExternalProducts.js +32 -0
  355. package/dist/tools/integrations/listExternalProducts.js.map +1 -0
  356. package/dist/tools/integrations/listIntegrations.d.ts +3 -0
  357. package/dist/tools/integrations/listIntegrations.d.ts.map +1 -0
  358. package/dist/tools/integrations/listIntegrations.js +39 -0
  359. package/dist/tools/integrations/listIntegrations.js.map +1 -0
  360. package/dist/tools/integrations/listIntegrationsByKey.d.ts +3 -0
  361. package/dist/tools/integrations/listIntegrationsByKey.d.ts.map +1 -0
  362. package/dist/tools/integrations/listIntegrationsByKey.js +36 -0
  363. package/dist/tools/integrations/listIntegrationsByKey.js.map +1 -0
  364. package/dist/tools/integrations/listOrderStatuses.d.ts +3 -0
  365. package/dist/tools/integrations/listOrderStatuses.d.ts.map +1 -0
  366. package/dist/tools/integrations/listOrderStatuses.js +29 -0
  367. package/dist/tools/integrations/listOrderStatuses.js.map +1 -0
  368. package/dist/tools/invoices/chargeInvoice.d.ts +3 -0
  369. package/dist/tools/invoices/chargeInvoice.d.ts.map +1 -0
  370. package/dist/tools/invoices/chargeInvoice.js +41 -0
  371. package/dist/tools/invoices/chargeInvoice.js.map +1 -0
  372. package/dist/tools/invoices/chargeInvoiceExternal.d.ts +3 -0
  373. package/dist/tools/invoices/chargeInvoiceExternal.d.ts.map +1 -0
  374. package/dist/tools/invoices/chargeInvoiceExternal.js +35 -0
  375. package/dist/tools/invoices/chargeInvoiceExternal.js.map +1 -0
  376. package/dist/tools/invoices/createInvoice.d.ts +3 -0
  377. package/dist/tools/invoices/createInvoice.d.ts.map +1 -0
  378. package/dist/tools/invoices/createInvoice.js +188 -0
  379. package/dist/tools/invoices/createInvoice.js.map +1 -0
  380. package/dist/tools/invoices/deleteInvoice.d.ts +3 -0
  381. package/dist/tools/invoices/deleteInvoice.d.ts.map +1 -0
  382. package/dist/tools/invoices/deleteInvoice.js +29 -0
  383. package/dist/tools/invoices/deleteInvoice.js.map +1 -0
  384. package/dist/tools/invoices/getInvoice.d.ts +3 -0
  385. package/dist/tools/invoices/getInvoice.d.ts.map +1 -0
  386. package/dist/tools/invoices/getInvoice.js +32 -0
  387. package/dist/tools/invoices/getInvoice.js.map +1 -0
  388. package/dist/tools/invoices/helpers.d.ts +6 -0
  389. package/dist/tools/invoices/helpers.d.ts.map +1 -0
  390. package/dist/tools/invoices/helpers.js +22 -0
  391. package/dist/tools/invoices/helpers.js.map +1 -0
  392. package/dist/tools/invoices/index.d.ts +15 -0
  393. package/dist/tools/invoices/index.d.ts.map +1 -0
  394. package/dist/tools/invoices/index.js +33 -0
  395. package/dist/tools/invoices/index.js.map +1 -0
  396. package/dist/tools/invoices/listInvoices.d.ts +3 -0
  397. package/dist/tools/invoices/listInvoices.d.ts.map +1 -0
  398. package/dist/tools/invoices/listInvoices.js +43 -0
  399. package/dist/tools/invoices/listInvoices.js.map +1 -0
  400. package/dist/tools/invoices/updateInvoice.d.ts +3 -0
  401. package/dist/tools/invoices/updateInvoice.d.ts.map +1 -0
  402. package/dist/tools/invoices/updateInvoice.js +137 -0
  403. package/dist/tools/invoices/updateInvoice.js.map +1 -0
  404. package/dist/tools/invoices/voidInvoice.d.ts +3 -0
  405. package/dist/tools/invoices/voidInvoice.d.ts.map +1 -0
  406. package/dist/tools/invoices/voidInvoice.js +29 -0
  407. package/dist/tools/invoices/voidInvoice.js.map +1 -0
  408. package/dist/tools/product_rate_plan_charges/createRatePlanCharge.d.ts +3 -0
  409. package/dist/tools/product_rate_plan_charges/createRatePlanCharge.d.ts.map +1 -0
  410. package/dist/tools/product_rate_plan_charges/createRatePlanCharge.js +132 -0
  411. package/dist/tools/product_rate_plan_charges/createRatePlanCharge.js.map +1 -0
  412. package/dist/tools/product_rate_plan_charges/deleteRatePlanCharge.d.ts +3 -0
  413. package/dist/tools/product_rate_plan_charges/deleteRatePlanCharge.d.ts.map +1 -0
  414. package/dist/tools/product_rate_plan_charges/deleteRatePlanCharge.js +29 -0
  415. package/dist/tools/product_rate_plan_charges/deleteRatePlanCharge.js.map +1 -0
  416. package/dist/tools/product_rate_plan_charges/getRatePlanCharge.d.ts +3 -0
  417. package/dist/tools/product_rate_plan_charges/getRatePlanCharge.d.ts.map +1 -0
  418. package/dist/tools/product_rate_plan_charges/getRatePlanCharge.js +32 -0
  419. package/dist/tools/product_rate_plan_charges/getRatePlanCharge.js.map +1 -0
  420. package/dist/tools/product_rate_plan_charges/helpers.d.ts +6 -0
  421. package/dist/tools/product_rate_plan_charges/helpers.d.ts.map +1 -0
  422. package/dist/tools/product_rate_plan_charges/helpers.js +24 -0
  423. package/dist/tools/product_rate_plan_charges/helpers.js.map +1 -0
  424. package/dist/tools/product_rate_plan_charges/index.d.ts +12 -0
  425. package/dist/tools/product_rate_plan_charges/index.d.ts.map +1 -0
  426. package/dist/tools/product_rate_plan_charges/index.js +24 -0
  427. package/dist/tools/product_rate_plan_charges/index.js.map +1 -0
  428. package/dist/tools/product_rate_plan_charges/listRatePlanCharges.d.ts +3 -0
  429. package/dist/tools/product_rate_plan_charges/listRatePlanCharges.d.ts.map +1 -0
  430. package/dist/tools/product_rate_plan_charges/listRatePlanCharges.js +40 -0
  431. package/dist/tools/product_rate_plan_charges/listRatePlanCharges.js.map +1 -0
  432. package/dist/tools/product_rate_plan_charges/updateRatePlanCharge.d.ts +3 -0
  433. package/dist/tools/product_rate_plan_charges/updateRatePlanCharge.d.ts.map +1 -0
  434. package/dist/tools/product_rate_plan_charges/updateRatePlanCharge.js +279 -0
  435. package/dist/tools/product_rate_plan_charges/updateRatePlanCharge.js.map +1 -0
  436. package/dist/tools/product_rate_plans/createRatePlan.d.ts +3 -0
  437. package/dist/tools/product_rate_plans/createRatePlan.d.ts.map +1 -0
  438. package/dist/tools/product_rate_plans/createRatePlan.js +53 -0
  439. package/dist/tools/product_rate_plans/createRatePlan.js.map +1 -0
  440. package/dist/tools/product_rate_plans/deleteRatePlan.d.ts +3 -0
  441. package/dist/tools/product_rate_plans/deleteRatePlan.d.ts.map +1 -0
  442. package/dist/tools/product_rate_plans/deleteRatePlan.js +29 -0
  443. package/dist/tools/product_rate_plans/deleteRatePlan.js.map +1 -0
  444. package/dist/tools/product_rate_plans/getRatePlan.d.ts +3 -0
  445. package/dist/tools/product_rate_plans/getRatePlan.d.ts.map +1 -0
  446. package/dist/tools/product_rate_plans/getRatePlan.js +32 -0
  447. package/dist/tools/product_rate_plans/getRatePlan.js.map +1 -0
  448. package/dist/tools/product_rate_plans/helpers.d.ts +6 -0
  449. package/dist/tools/product_rate_plans/helpers.d.ts.map +1 -0
  450. package/dist/tools/product_rate_plans/helpers.js +24 -0
  451. package/dist/tools/product_rate_plans/helpers.js.map +1 -0
  452. package/dist/tools/product_rate_plans/index.d.ts +14 -0
  453. package/dist/tools/product_rate_plans/index.d.ts.map +1 -0
  454. package/dist/tools/product_rate_plans/index.js +30 -0
  455. package/dist/tools/product_rate_plans/index.js.map +1 -0
  456. package/dist/tools/product_rate_plans/listRatePlans.d.ts +3 -0
  457. package/dist/tools/product_rate_plans/listRatePlans.d.ts.map +1 -0
  458. package/dist/tools/product_rate_plans/listRatePlans.js +40 -0
  459. package/dist/tools/product_rate_plans/listRatePlans.js.map +1 -0
  460. package/dist/tools/product_rate_plans/syncRatePlan.d.ts +3 -0
  461. package/dist/tools/product_rate_plans/syncRatePlan.d.ts.map +1 -0
  462. package/dist/tools/product_rate_plans/syncRatePlan.js +29 -0
  463. package/dist/tools/product_rate_plans/syncRatePlan.js.map +1 -0
  464. package/dist/tools/product_rate_plans/updateRatePlan.d.ts +3 -0
  465. package/dist/tools/product_rate_plans/updateRatePlan.d.ts.map +1 -0
  466. package/dist/tools/product_rate_plans/updateRatePlan.js +50 -0
  467. package/dist/tools/product_rate_plans/updateRatePlan.js.map +1 -0
  468. package/dist/tools/product_rate_plans/updateRatePlanStatus.d.ts +3 -0
  469. package/dist/tools/product_rate_plans/updateRatePlanStatus.d.ts.map +1 -0
  470. package/dist/tools/product_rate_plans/updateRatePlanStatus.js +38 -0
  471. package/dist/tools/product_rate_plans/updateRatePlanStatus.js.map +1 -0
  472. package/dist/tools/products/createProduct.d.ts +3 -0
  473. package/dist/tools/products/createProduct.d.ts.map +1 -0
  474. package/dist/tools/products/createProduct.js +37 -0
  475. package/dist/tools/products/createProduct.js.map +1 -0
  476. package/dist/tools/products/deleteProduct.d.ts +3 -0
  477. package/dist/tools/products/deleteProduct.d.ts.map +1 -0
  478. package/dist/tools/products/deleteProduct.js +29 -0
  479. package/dist/tools/products/deleteProduct.js.map +1 -0
  480. package/dist/tools/products/getProduct.d.ts +3 -0
  481. package/dist/tools/products/getProduct.d.ts.map +1 -0
  482. package/dist/tools/products/getProduct.js +32 -0
  483. package/dist/tools/products/getProduct.js.map +1 -0
  484. package/dist/tools/products/helpers.d.ts +6 -0
  485. package/dist/tools/products/helpers.d.ts.map +1 -0
  486. package/dist/tools/products/helpers.js +27 -0
  487. package/dist/tools/products/helpers.js.map +1 -0
  488. package/dist/tools/products/index.d.ts +15 -0
  489. package/dist/tools/products/index.d.ts.map +1 -0
  490. package/dist/tools/products/index.js +33 -0
  491. package/dist/tools/products/index.js.map +1 -0
  492. package/dist/tools/products/linkExternalProduct.d.ts +3 -0
  493. package/dist/tools/products/linkExternalProduct.d.ts.map +1 -0
  494. package/dist/tools/products/linkExternalProduct.js +56 -0
  495. package/dist/tools/products/linkExternalProduct.js.map +1 -0
  496. package/dist/tools/products/listProducts.d.ts +3 -0
  497. package/dist/tools/products/listProducts.d.ts.map +1 -0
  498. package/dist/tools/products/listProducts.js +37 -0
  499. package/dist/tools/products/listProducts.js.map +1 -0
  500. package/dist/tools/products/unlinkExternalProduct.d.ts +3 -0
  501. package/dist/tools/products/unlinkExternalProduct.d.ts.map +1 -0
  502. package/dist/tools/products/unlinkExternalProduct.js +35 -0
  503. package/dist/tools/products/unlinkExternalProduct.js.map +1 -0
  504. package/dist/tools/products/updateProduct.d.ts +3 -0
  505. package/dist/tools/products/updateProduct.d.ts.map +1 -0
  506. package/dist/tools/products/updateProduct.js +40 -0
  507. package/dist/tools/products/updateProduct.js.map +1 -0
  508. package/dist/tools/products/updateProductStatus.d.ts +3 -0
  509. package/dist/tools/products/updateProductStatus.d.ts.map +1 -0
  510. package/dist/tools/products/updateProductStatus.js +38 -0
  511. package/dist/tools/products/updateProductStatus.js.map +1 -0
  512. package/dist/tools/shipping/calculateShipping.d.ts +3 -0
  513. package/dist/tools/shipping/calculateShipping.d.ts.map +1 -0
  514. package/dist/tools/shipping/calculateShipping.js +84 -0
  515. package/dist/tools/shipping/calculateShipping.js.map +1 -0
  516. package/dist/tools/shipping/helpers.d.ts +6 -0
  517. package/dist/tools/shipping/helpers.d.ts.map +1 -0
  518. package/dist/tools/shipping/helpers.js +22 -0
  519. package/dist/tools/shipping/helpers.js.map +1 -0
  520. package/dist/tools/shipping/index.d.ts +9 -0
  521. package/dist/tools/shipping/index.d.ts.map +1 -0
  522. package/dist/tools/shipping/index.js +12 -0
  523. package/dist/tools/shipping/index.js.map +1 -0
  524. package/dist/tools/shipping/listShippingServices.d.ts +3 -0
  525. package/dist/tools/shipping/listShippingServices.d.ts.map +1 -0
  526. package/dist/tools/shipping/listShippingServices.js +19 -0
  527. package/dist/tools/shipping/listShippingServices.js.map +1 -0
  528. package/dist/tools/subscriptions/addSubscriptionRatePlan.d.ts +3 -0
  529. package/dist/tools/subscriptions/addSubscriptionRatePlan.d.ts.map +1 -0
  530. package/dist/tools/subscriptions/addSubscriptionRatePlan.js +67 -0
  531. package/dist/tools/subscriptions/addSubscriptionRatePlan.js.map +1 -0
  532. package/dist/tools/subscriptions/addSubscriptionRatePlanCharge.d.ts +3 -0
  533. package/dist/tools/subscriptions/addSubscriptionRatePlanCharge.d.ts.map +1 -0
  534. package/dist/tools/subscriptions/addSubscriptionRatePlanCharge.js +159 -0
  535. package/dist/tools/subscriptions/addSubscriptionRatePlanCharge.js.map +1 -0
  536. package/dist/tools/subscriptions/createSubscription.d.ts +3 -0
  537. package/dist/tools/subscriptions/createSubscription.d.ts.map +1 -0
  538. package/dist/tools/subscriptions/createSubscription.js +84 -0
  539. package/dist/tools/subscriptions/createSubscription.js.map +1 -0
  540. package/dist/tools/subscriptions/deleteSubscription.d.ts +3 -0
  541. package/dist/tools/subscriptions/deleteSubscription.d.ts.map +1 -0
  542. package/dist/tools/subscriptions/deleteSubscription.js +29 -0
  543. package/dist/tools/subscriptions/deleteSubscription.js.map +1 -0
  544. package/dist/tools/subscriptions/getSubscription.d.ts +3 -0
  545. package/dist/tools/subscriptions/getSubscription.d.ts.map +1 -0
  546. package/dist/tools/subscriptions/getSubscription.js +32 -0
  547. package/dist/tools/subscriptions/getSubscription.js.map +1 -0
  548. package/dist/tools/subscriptions/getSubscriptionExternalInvoices.d.ts +3 -0
  549. package/dist/tools/subscriptions/getSubscriptionExternalInvoices.d.ts.map +1 -0
  550. package/dist/tools/subscriptions/getSubscriptionExternalInvoices.js +40 -0
  551. package/dist/tools/subscriptions/getSubscriptionExternalInvoices.js.map +1 -0
  552. package/dist/tools/subscriptions/getSubscriptionInvoices.d.ts +3 -0
  553. package/dist/tools/subscriptions/getSubscriptionInvoices.d.ts.map +1 -0
  554. package/dist/tools/subscriptions/getSubscriptionInvoices.js +43 -0
  555. package/dist/tools/subscriptions/getSubscriptionInvoices.js.map +1 -0
  556. package/dist/tools/subscriptions/getSubscriptionLogs.d.ts +3 -0
  557. package/dist/tools/subscriptions/getSubscriptionLogs.d.ts.map +1 -0
  558. package/dist/tools/subscriptions/getSubscriptionLogs.js +34 -0
  559. package/dist/tools/subscriptions/getSubscriptionLogs.js.map +1 -0
  560. package/dist/tools/subscriptions/getSubscriptionNextBill.d.ts +3 -0
  561. package/dist/tools/subscriptions/getSubscriptionNextBill.d.ts.map +1 -0
  562. package/dist/tools/subscriptions/getSubscriptionNextBill.js +32 -0
  563. package/dist/tools/subscriptions/getSubscriptionNextBill.js.map +1 -0
  564. package/dist/tools/subscriptions/getSubscriptionRatePlan.d.ts +3 -0
  565. package/dist/tools/subscriptions/getSubscriptionRatePlan.d.ts.map +1 -0
  566. package/dist/tools/subscriptions/getSubscriptionRatePlan.js +34 -0
  567. package/dist/tools/subscriptions/getSubscriptionRatePlan.js.map +1 -0
  568. package/dist/tools/subscriptions/getSubscriptionRatePlanCharge.d.ts +3 -0
  569. package/dist/tools/subscriptions/getSubscriptionRatePlanCharge.d.ts.map +1 -0
  570. package/dist/tools/subscriptions/getSubscriptionRatePlanCharge.js +36 -0
  571. package/dist/tools/subscriptions/getSubscriptionRatePlanCharge.js.map +1 -0
  572. package/dist/tools/subscriptions/getSubscriptionUpcomingCharges.d.ts +3 -0
  573. package/dist/tools/subscriptions/getSubscriptionUpcomingCharges.d.ts.map +1 -0
  574. package/dist/tools/subscriptions/getSubscriptionUpcomingCharges.js +32 -0
  575. package/dist/tools/subscriptions/getSubscriptionUpcomingCharges.js.map +1 -0
  576. package/dist/tools/subscriptions/helpers.d.ts +6 -0
  577. package/dist/tools/subscriptions/helpers.d.ts.map +1 -0
  578. package/dist/tools/subscriptions/helpers.js +22 -0
  579. package/dist/tools/subscriptions/helpers.js.map +1 -0
  580. package/dist/tools/subscriptions/index.d.ts +27 -0
  581. package/dist/tools/subscriptions/index.d.ts.map +1 -0
  582. package/dist/tools/subscriptions/index.js +69 -0
  583. package/dist/tools/subscriptions/index.js.map +1 -0
  584. package/dist/tools/subscriptions/listSubscriptionRatePlans.d.ts +3 -0
  585. package/dist/tools/subscriptions/listSubscriptionRatePlans.d.ts.map +1 -0
  586. package/dist/tools/subscriptions/listSubscriptionRatePlans.js +40 -0
  587. package/dist/tools/subscriptions/listSubscriptionRatePlans.js.map +1 -0
  588. package/dist/tools/subscriptions/listSubscriptions.d.ts +3 -0
  589. package/dist/tools/subscriptions/listSubscriptions.d.ts.map +1 -0
  590. package/dist/tools/subscriptions/listSubscriptions.js +41 -0
  591. package/dist/tools/subscriptions/listSubscriptions.js.map +1 -0
  592. package/dist/tools/subscriptions/removeSubscriptionRatePlan.d.ts +3 -0
  593. package/dist/tools/subscriptions/removeSubscriptionRatePlan.d.ts.map +1 -0
  594. package/dist/tools/subscriptions/removeSubscriptionRatePlan.js +32 -0
  595. package/dist/tools/subscriptions/removeSubscriptionRatePlan.js.map +1 -0
  596. package/dist/tools/subscriptions/removeSubscriptionRatePlanCharge.d.ts +3 -0
  597. package/dist/tools/subscriptions/removeSubscriptionRatePlanCharge.d.ts.map +1 -0
  598. package/dist/tools/subscriptions/removeSubscriptionRatePlanCharge.js +32 -0
  599. package/dist/tools/subscriptions/removeSubscriptionRatePlanCharge.js.map +1 -0
  600. package/dist/tools/subscriptions/updateSubscription.d.ts +3 -0
  601. package/dist/tools/subscriptions/updateSubscription.d.ts.map +1 -0
  602. package/dist/tools/subscriptions/updateSubscription.js +46 -0
  603. package/dist/tools/subscriptions/updateSubscription.js.map +1 -0
  604. package/dist/tools/subscriptions/updateSubscriptionRatePlan.d.ts +3 -0
  605. package/dist/tools/subscriptions/updateSubscriptionRatePlan.d.ts.map +1 -0
  606. package/dist/tools/subscriptions/updateSubscriptionRatePlan.js +40 -0
  607. package/dist/tools/subscriptions/updateSubscriptionRatePlan.js.map +1 -0
  608. package/dist/tools/subscriptions/updateSubscriptionRatePlanCharge.d.ts +3 -0
  609. package/dist/tools/subscriptions/updateSubscriptionRatePlanCharge.d.ts.map +1 -0
  610. package/dist/tools/subscriptions/updateSubscriptionRatePlanCharge.js +195 -0
  611. package/dist/tools/subscriptions/updateSubscriptionRatePlanCharge.js.map +1 -0
  612. package/dist/tools/subscriptions/updateSubscriptionStatus.d.ts +3 -0
  613. package/dist/tools/subscriptions/updateSubscriptionStatus.d.ts.map +1 -0
  614. package/dist/tools/subscriptions/updateSubscriptionStatus.js +38 -0
  615. package/dist/tools/subscriptions/updateSubscriptionStatus.js.map +1 -0
  616. package/dist/tools/transactions/getTransaction.d.ts +3 -0
  617. package/dist/tools/transactions/getTransaction.d.ts.map +1 -0
  618. package/dist/tools/transactions/getTransaction.js +29 -0
  619. package/dist/tools/transactions/getTransaction.js.map +1 -0
  620. package/dist/tools/transactions/helpers.d.ts +6 -0
  621. package/dist/tools/transactions/helpers.d.ts.map +1 -0
  622. package/dist/tools/transactions/helpers.js +22 -0
  623. package/dist/tools/transactions/helpers.js.map +1 -0
  624. package/dist/tools/transactions/index.d.ts +11 -0
  625. package/dist/tools/transactions/index.d.ts.map +1 -0
  626. package/dist/tools/transactions/index.js +21 -0
  627. package/dist/tools/transactions/index.js.map +1 -0
  628. package/dist/tools/transactions/listTransactions.d.ts +3 -0
  629. package/dist/tools/transactions/listTransactions.d.ts.map +1 -0
  630. package/dist/tools/transactions/listTransactions.js +35 -0
  631. package/dist/tools/transactions/listTransactions.js.map +1 -0
  632. package/dist/tools/transactions/refundTransaction.d.ts +3 -0
  633. package/dist/tools/transactions/refundTransaction.d.ts.map +1 -0
  634. package/dist/tools/transactions/refundTransaction.js +35 -0
  635. package/dist/tools/transactions/refundTransaction.js.map +1 -0
  636. package/dist/tools/transactions/voidTransaction.d.ts +3 -0
  637. package/dist/tools/transactions/voidTransaction.d.ts.map +1 -0
  638. package/dist/tools/transactions/voidTransaction.js +32 -0
  639. package/dist/tools/transactions/voidTransaction.js.map +1 -0
  640. package/dist/tools/types.d.ts +34 -0
  641. package/dist/tools/types.d.ts.map +1 -0
  642. package/dist/tools/types.js +5 -0
  643. package/dist/tools/types.js.map +1 -0
  644. package/dist/types/addressInput.d.ts +97 -0
  645. package/dist/types/addressInput.d.ts.map +1 -0
  646. package/dist/types/addressInput.js +98 -0
  647. package/dist/types/addressInput.js.map +1 -0
  648. package/dist/types.d.ts +412 -0
  649. package/dist/types.d.ts.map +1 -0
  650. package/dist/types.js +35 -0
  651. package/dist/types.js.map +1 -0
  652. package/package.json +58 -0
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as currencyService from "../../services/currencyServices.js";
4
+ const schema = z.object({
5
+ companyCurrencyId: z.string().min(1, "companyCurrencyId is required"),
6
+ conversionRate: z.number().finite("conversionRate is required"),
7
+ fixedRate: z.boolean({ required_error: "fixedRate is required (boolean)" }),
8
+ });
9
+ const definition = {
10
+ name: "update_currency",
11
+ description: "Update a company currency. PUT /currencies/{companyCurrencyId}. Required: companyCurrencyId, conversionRate, fixedRate.",
12
+ inputSchema: {
13
+ type: "object",
14
+ properties: {
15
+ companyCurrencyId: { type: "string", description: "Company currency ID (required)" },
16
+ conversionRate: { type: "number", description: "Conversion rate (required)" },
17
+ fixedRate: { type: "boolean", description: "Fixed rate flag (required)" },
18
+ },
19
+ required: ["companyCurrencyId", "conversionRate", "fixedRate"],
20
+ },
21
+ };
22
+ async function handler(client, args) {
23
+ const parsed = schema.safeParse(args);
24
+ if (!parsed.success) {
25
+ return errorResult(parsed.error.errors.map((e) => e.message).join("; "));
26
+ }
27
+ const { companyCurrencyId, conversionRate, fixedRate } = parsed.data;
28
+ return handleToolCall(() => currencyService.updateCurrency(client, companyCurrencyId, { conversionRate, fixedRate }));
29
+ }
30
+ export const updateCurrencyTool = {
31
+ definition,
32
+ handler,
33
+ };
34
+ //# sourceMappingURL=updateCurrency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateCurrency.js","sourceRoot":"","sources":["../../../src/tools/currencies/updateCurrency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,K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C;IACD,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC;IACrE,OAAO,cAAc,CAAC,GAAG,EAAE,CACzB,eAAe,CAAC,cAAc,CAAC,MAAM,EAAE,iBAAiB,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,CACzF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAS;IACtC,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Tool } from "../types.js";
2
+ export declare const createCustomerTool: Tool;
3
+ //# sourceMappingURL=createCustomer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomer.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/createCustomer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AA8CxC,eAAO,MAAM,kBAAkB,EAAE,IAGhC,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as customerService from "../../services/customerServices.js";
4
+ const schema = z.object({
5
+ firstName: z.string().min(1, "firstName is required"),
6
+ lastName: z.string().min(1, "lastName is required"),
7
+ email: z.string().email("Invalid email"),
8
+ businessName: z.string().optional(),
9
+ locale: z.string().optional(),
10
+ phoneNum: z.string().optional(),
11
+ phoneExt: z.string().optional(),
12
+ preferredCurrency: z.string().optional(),
13
+ taxExempt: z.boolean().optional(),
14
+ });
15
+ const definition = {
16
+ name: "create_customer",
17
+ description: "Create a new customer. POST /customers. Required: firstName, lastName, email. Optional: businessName, locale, phoneNum, phoneExt, preferredCurrency, taxExempt.",
18
+ inputSchema: {
19
+ type: "object",
20
+ properties: {
21
+ firstName: { type: "string", description: "Customer first name (required)" },
22
+ lastName: { type: "string", description: "Customer last name (required)" },
23
+ email: { type: "string", description: "Customer email (required)" },
24
+ businessName: { type: "string", description: "Business name" },
25
+ locale: { type: "string", description: "Locale code" },
26
+ phoneNum: { type: "string", description: "Phone number" },
27
+ phoneExt: { type: "string", description: "Phone extension" },
28
+ preferredCurrency: { type: "string", description: "Preferred currency code" },
29
+ taxExempt: { type: "boolean", description: "Whether customer is tax exempt" },
30
+ },
31
+ required: ["firstName", "lastName", "email"],
32
+ },
33
+ };
34
+ async function handler(client, args) {
35
+ const parsed = schema.safeParse(args);
36
+ if (!parsed.success) {
37
+ return errorResult(parsed.error.errors.map((e) => `${e.path.join(".")}: ${e.message}`).join("; "));
38
+ }
39
+ return handleToolCall(() => customerService.createCustomer(client, parsed.data));
40
+ }
41
+ export const createCustomerTool = {
42
+ definition,
43
+ handler,
44
+ };
45
+ //# sourceMappingURL=createCustomer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomer.js","sourceRoot":"","sources":["../../../src/tools/customers/createCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,eAAe,MAAM,oCAAoC,CAAC;AAEtE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;IACrD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC;IACnD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC;IACxC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,C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,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACrG,CAAC;IACD,OAAO,cAAc,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACnF,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAS;IACtC,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Tool } from "../types.js";
2
+ export declare const createCustomerAddressTool: Tool;
3
+ //# sourceMappingURL=createCustomerAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomerAddress.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/createCustomerAddress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAsExC,eAAO,MAAM,yBAAyB,EAAE,IAGvC,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as customerService from "../../services/customerServices.js";
4
+ import { mapAddressInputToApiAddress, COUNTRY_CODE_DESCRIPTION_CONST } from "../../types/addressInput.js";
5
+ const COUNTRY_CODE_REGEX = /^[A-Za-z]{2}$/;
6
+ const schema = z.object({
7
+ customerId: z.string().min(1, "customerId is required"),
8
+ name: z.string().min(1, "name is required"),
9
+ contactName: z.string().min(1, "contactName is required"),
10
+ street1: z.string().min(1, "street1 is required"),
11
+ city: z.string().min(1, "city is required"),
12
+ state: z.string().min(1, "state is required"),
13
+ zip: z.string().min(1, "zip is required"),
14
+ countryCode: z
15
+ .string()
16
+ .min(1, "countryCode is required")
17
+ .transform((s) => s.trim().toUpperCase())
18
+ .refine((s) => COUNTRY_CODE_REGEX.test(s), "countryCode must be ISO 3166-1 alpha-2 (e.g. ES, AR, MX)"),
19
+ type: z.enum(["residential", "commercial"], {
20
+ errorMap: () => ({ message: "type must be 'residential' or 'commercial'" }),
21
+ }),
22
+ street2: z.string().optional(),
23
+ company: z.string().optional(),
24
+ contactEmail: z.string().optional(),
25
+ contactPhone: z.string().optional(),
26
+ });
27
+ const definition = {
28
+ name: "create_customer_address",
29
+ description: "Create an address book entry for a customer. POST /customers/{customerId}/addressbooks. Required: name, contactName, street1, city, state, zip, countryCode (ISO 3166-1 alpha-2), type (residential or commercial). Optional: street2, company, contactEmail, contactPhone.",
30
+ inputSchema: {
31
+ type: "object",
32
+ properties: {
33
+ customerId: { type: "string", description: "Customer ID (required)" },
34
+ name: { type: "string", description: "Address name (required)" },
35
+ contactName: { type: "string", description: "Contact name (required)" },
36
+ street1: { type: "string", description: "Street line 1 (required)" },
37
+ city: { type: "string", description: "City (required)" },
38
+ state: { type: "string", description: "State (required)" },
39
+ zip: { type: "string", description: "Postal code (required)" },
40
+ countryCode: { type: "string", description: COUNTRY_CODE_DESCRIPTION_CONST },
41
+ type: { type: "string", description: "Address type (required): residential or commercial" },
42
+ street2: { type: "string", description: "Street line 2" },
43
+ company: { type: "string", description: "Company name" },
44
+ contactEmail: { type: "string", description: "Contact email" },
45
+ contactPhone: { type: "string", description: "Contact phone" },
46
+ },
47
+ required: ["customerId", "name", "contactName", "street1", "city", "state", "zip", "countryCode", "type"],
48
+ },
49
+ };
50
+ async function handler(client, args) {
51
+ const parsed = schema.safeParse(args);
52
+ if (!parsed.success) {
53
+ return errorResult(parsed.error.errors.map((e) => `${e.path.join(".")}: ${e.message}`).join("; "));
54
+ }
55
+ const { customerId, ...rest } = parsed.data;
56
+ const apiAddress = await mapAddressInputToApiAddress(client, rest);
57
+ const body = {
58
+ ...apiAddress,
59
+ name: parsed.data.name,
60
+ contactName: parsed.data.contactName,
61
+ };
62
+ return handleToolCall(() => customerService.createCustomerAddress(client, customerId, body));
63
+ }
64
+ export const createCustomerAddressTool = {
65
+ definition,
66
+ handler,
67
+ };
68
+ //# sourceMappingURL=createCustomerAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomerAddress.js","sourceRoot":"","sources":["../../../src/tools/customers/createCustomerAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,eAAe,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE1G,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAE3C,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;IACvD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;IAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;IACzD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,qBAAqB,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,mBAAmB,CAAC;IAC7C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,iBAAiB,CAAC;IACzC,WAAW,EAAE,CAAC;SACX,MAAM,EAA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AAM,UAAU,GAAG,MAAM,2BAA2B,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnE,MAAM,IAAI,GAAG;QACX,GAAG,UAAU;QACb,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI;QACtB,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,WAAW;KACrC,CAAC;IACF,OAAO,cAAc,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,qBAAqB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC;AAC/F,CAAC;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAS;IAC7C,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Tool } from "../types.js";
2
+ export declare const createCustomerChargeCreditTool: Tool;
3
+ //# sourceMappingURL=createCustomerChargeCredit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomerChargeCredit.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/createCustomerChargeCredit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AA8ExC,eAAO,MAAM,8BAA8B,EAAE,IAG5C,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as customerService from "../../services/customerServices.js";
4
+ const schema = z.object({
5
+ customerId: z.string().min(1, "customerId is required"),
6
+ amount: z.number().int().min(1, "amount must be a positive integer (in cents)"),
7
+ description: z.string().max(200).optional(),
8
+ type: z.enum(["charge", "credit"], {
9
+ errorMap: () => ({ message: "type must be 'charge' or 'credit'" }),
10
+ }),
11
+ companyCurrencyId: z.number().int().positive("companyCurrencyId is required and must be > 0"),
12
+ category: z.enum(["physical", "digital"], {
13
+ errorMap: () => ({ message: "category must be 'physical' or 'digital'" }),
14
+ }),
15
+ qty: z.number().int().min(1).optional(),
16
+ isFreeShipping: z.boolean().optional(),
17
+ taxable: z.boolean().optional(),
18
+ weight: z.number().optional(),
19
+ });
20
+ const definition = {
21
+ name: "create_customer_charge_credit",
22
+ description: "Create a charge or credit for a customer. POST /customers/{customerId}/charges_credits. IMPORTANT: amount is in CENTS (e.g. 10000 = $100.00). Required: amount (integer, in cents), type (charge or credit), companyCurrencyId, category (physical or digital). Optional: description, qty (default 1), isFreeShipping, taxable, weight (required by API when category is physical).",
23
+ inputSchema: {
24
+ type: "object",
25
+ properties: {
26
+ customerId: { type: "string", description: "Customer ID (required)" },
27
+ amount: {
28
+ type: "number",
29
+ description: "Amount in CENTS (required). Example: 1000 = $10.00, 500 = $5.00. Must be a positive integer.",
30
+ },
31
+ description: { type: "string", description: "Description (max 200 chars)" },
32
+ type: {
33
+ type: "string",
34
+ description: "Type (required): charge or credit",
35
+ },
36
+ companyCurrencyId: {
37
+ type: "number",
38
+ description: "Company currency ID (required, must be > 0)",
39
+ },
40
+ category: {
41
+ type: "string",
42
+ description: "Category (required): physical or digital",
43
+ },
44
+ qty: { type: "number", description: "Quantity (default 1)" },
45
+ isFreeShipping: { type: "boolean", description: "Free shipping" },
46
+ taxable: { type: "boolean", description: "Whether the line is taxable" },
47
+ weight: { type: "number", description: "Weight (required by API when category is physical)" },
48
+ },
49
+ required: ["customerId", "amount", "type", "companyCurrencyId", "category"],
50
+ },
51
+ };
52
+ async function handler(client, args) {
53
+ const parsed = schema.safeParse(args);
54
+ if (!parsed.success) {
55
+ return errorResult(parsed.error.errors.map((e) => `${e.path.join(".")}: ${e.message}`).join("; "));
56
+ }
57
+ const { customerId, ...body } = parsed.data;
58
+ return handleToolCall(() => customerService.createCustomerChargeCredit(client, customerId, {
59
+ amount: body.amount,
60
+ description: body.description,
61
+ type: body.type,
62
+ companyCurrencyId: body.companyCurrencyId,
63
+ category: body.category,
64
+ qty: body.qty,
65
+ isFreeShipping: body.isFreeShipping,
66
+ taxable: body.taxable,
67
+ weight: body.weight,
68
+ }));
69
+ }
70
+ export const createCustomerChargeCreditTool = {
71
+ definition,
72
+ handler,
73
+ };
74
+ //# sourceMappingURL=createCustomerChargeCredit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomerChargeCredit.js","sourceRoot":"","sources":["../../../src/tools/customers/createCustomerChargeCredit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,eAAe,MAAM,oCAAoC,CAAC;AAEtE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;IACvD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,8CAA8C,CAAC;IAC/E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;QACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;KACnE,CAAC;IACF,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;IAC7F,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE;QACxC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;KAC1E,CAAC;IACF,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,cAAc,EAAE,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,IAAyC;IAC9E,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACrG,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC;IAC5C,OAAO,cAAc,CAAC,GAAG,EAAE,CACzB,eAAe,CAAC,0BAA0B,CAAC,MAAM,EAAE,UAAU,EAAE;QAC7D,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;QACzC,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,cAAc,EAAE,IAAI,CAAC,cAAc;QACnC,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,MAAM,EAAE,IAAI,CAAC,MAAM;KACpB,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAS;IAClD,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Tool } from "../types.js";
2
+ export declare const createCustomerPaymentMethodTool: Tool;
3
+ //# sourceMappingURL=createCustomerPaymentMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomerPaymentMethod.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/createCustomerPaymentMethod.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAyFxC,eAAO,MAAM,+BAA+B,EAAE,IAG7C,CAAC"}
@@ -0,0 +1,80 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as customerService from "../../services/customerServices.js";
4
+ import { mapBillingAddressInputToApiBillingAddress } from "../../types/addressInput.js";
5
+ import { COUNTRY_CODE_DESCRIPTION_CONST } from "../../types/addressInput.js";
6
+ const billingAddressSchema = z.object({
7
+ countryCode: z.string().min(1, "billingAddress.countryCode is required"),
8
+ street1: z.string().min(1, "billingAddress.street1 is required"),
9
+ city: z.string().min(1, "billingAddress.city is required"),
10
+ state: z.string().min(1, "billingAddress.state is required"),
11
+ zip: z.string().min(1, "billingAddress.zip is required"),
12
+ street2: z.string().optional(),
13
+ });
14
+ // Public MCP field is paymentMethodNonce only; paymentNonce kept for backward compat (internal only).
15
+ const schema = z
16
+ .object({
17
+ customerId: z.string().min(1, "customerId is required"),
18
+ companyGatewayId: z.string().min(1, "companyGatewayId is required"),
19
+ type: z.enum(["card", "ach"], {
20
+ errorMap: () => ({ message: "type must be 'card' or 'ach'" }),
21
+ }),
22
+ paymentMethodNonce: z.string().optional(),
23
+ paymentNonce: z.string().optional(), // deprecated: use paymentMethodNonce
24
+ billingAddress: billingAddressSchema,
25
+ })
26
+ .refine((data) => (data.paymentMethodNonce?.trim() ?? data.paymentNonce?.trim() ?? "").length > 0, { message: "paymentMethodNonce is required" });
27
+ const PAYMENT_METHOD_NONCE_DESCRIPTION = "Single-use token from your payment integration. Obtain gateway client credential via get_client_token, then use your hosted payment UI to produce this token. Do not send raw card data. Gateway-specific tokenization is handled outside MCP.";
28
+ const definition = {
29
+ name: "create_customer_payment_method",
30
+ description: "Create a payment method for a customer. Gateway-agnostic: required companyGatewayId, type (card or ach), paymentMethodNonce, billingAddress (countryCode, street1, city, state, zip). Obtain gateway client credential via get_client_token; use your payment integration to produce paymentMethodNonce, then call this tool. No raw card data or gateway-specific fields in MCP.",
31
+ inputSchema: {
32
+ type: "object",
33
+ properties: {
34
+ customerId: { type: "string", description: "Customer ID (required)" },
35
+ companyGatewayId: { type: "string", description: "Company gateway ID (required)" },
36
+ type: { type: "string", description: "Payment method type (required): card or ach" },
37
+ paymentMethodNonce: {
38
+ type: "string",
39
+ description: PAYMENT_METHOD_NONCE_DESCRIPTION,
40
+ },
41
+ billingAddress: {
42
+ type: "object",
43
+ description: "Billing address (required): countryCode, street1, city, state, zip; street2 optional",
44
+ properties: {
45
+ countryCode: { type: "string", description: COUNTRY_CODE_DESCRIPTION_CONST },
46
+ street1: { type: "string", description: "Street line 1 (required)" },
47
+ city: { type: "string", description: "City (required)" },
48
+ state: { type: "string", description: "State (required)" },
49
+ zip: { type: "string", description: "Postal code (required)" },
50
+ street2: { type: "string", description: "Street line 2" },
51
+ },
52
+ required: ["countryCode", "street1", "city", "state", "zip"],
53
+ },
54
+ },
55
+ required: ["customerId", "companyGatewayId", "type", "paymentMethodNonce", "billingAddress"],
56
+ },
57
+ };
58
+ async function handler(client, args) {
59
+ const parsed = schema.safeParse(args);
60
+ if (!parsed.success) {
61
+ return errorResult(parsed.error.errors.map((e) => `${e.path.join(".")}: ${e.message}`).join("; "));
62
+ }
63
+ const { customerId, companyGatewayId, type, billingAddress } = parsed.data;
64
+ const nonce = (parsed.data.paymentMethodNonce ?? parsed.data.paymentNonce)?.trim();
65
+ if (!nonce) {
66
+ return errorResult("paymentMethodNonce is required");
67
+ }
68
+ const apiBillingAddress = await mapBillingAddressInputToApiBillingAddress(client, billingAddress);
69
+ return handleToolCall(() => customerService.createCustomerPaymentMethod(client, customerId, {
70
+ companyGatewayId,
71
+ type,
72
+ paymentNonce: nonce, // internal: upstream expects paymentMethod: { nonce }
73
+ billingAddress: apiBillingAddress,
74
+ }));
75
+ }
76
+ export const createCustomerPaymentMethodTool = {
77
+ definition,
78
+ handler,
79
+ };
80
+ //# sourceMappingURL=createCustomerPaymentMethod.js.map
@@ -0,0 +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C,gCAAgC,CAAC,CAAC;IACvD,CAAC;IACD,MAAM,iBAAiB,GAAG,MAAM,yCAAyC,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAClG,OAAO,cAAc,CAAC,GAAG,EAAE,CACzB,eAAe,CAAC,2BAA2B,CAAC,MAAM,EAAE,UAAU,EAAE;QAC9D,gBAAgB;QAChB,IAAI;QACJ,YAAY,EAAE,KAAK,EAAE,sDAAsD;QAC3E,cAAc,EAAE,iBAAiB;KAClC,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAS;IACnD,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Tool } from "../types.js";
2
+ export declare const deleteCustomerTool: Tool;
3
+ //# sourceMappingURL=deleteCustomer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCustomer.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/deleteCustomer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AA8BxC,eAAO,MAAM,kBAAkB,EAAE,IAGhC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as customerService from "../../services/customerServices.js";
4
+ const schema = z.object({
5
+ customerId: z.string().min(1, "customerId is required"),
6
+ });
7
+ const definition = {
8
+ name: "delete_customer",
9
+ description: "Delete a customer by ID. DELETE /customers/{customerId}. WARNING: Cascading delete may remove or orphan related data (addresses, payment methods, subscriptions, invoices, etc.). Use with caution.",
10
+ inputSchema: {
11
+ type: "object",
12
+ properties: {
13
+ customerId: { type: "string", description: "Customer ID to delete (required)" },
14
+ },
15
+ required: ["customerId"],
16
+ },
17
+ };
18
+ async function handler(client, args) {
19
+ const parsed = schema.safeParse(args);
20
+ if (!parsed.success) {
21
+ return errorResult(parsed.error.errors.map((e) => e.message).join("; "));
22
+ }
23
+ return handleToolCall(() => customerService.deleteCustomer(client, parsed.data.customerId));
24
+ }
25
+ export const deleteCustomerTool = {
26
+ definition,
27
+ handler,
28
+ };
29
+ //# sourceMappingURL=deleteCustomer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCustomer.js","sourceRoot":"","sources":["../../../src/tools/customers/deleteCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,eAAe,MAAM,oCAAoC,CAAC;AAEtE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;CACxD,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,qMAAqM;IACvM,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kCAAkC,EAAE;SAChF;QACD,QAAQ,EAAE,CAAC,YAAY,CAAC;KACzB;CACF,CAAC;AAEF,KAAK,UAAU,OAAO,CAAC,MAAc,EAAE,IAAyC;IAC9E,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3E,CAAC;IACD,OAAO,cAAc,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AAC9F,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAS;IACtC,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Tool } from "../types.js";
2
+ export declare const deleteCustomerAddressTool: Tool;
3
+ //# sourceMappingURL=deleteCustomerAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCustomerAddress.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/deleteCustomerAddress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAmCxC,eAAO,MAAM,yBAAyB,EAAE,IAGvC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as customerService from "../../services/customerServices.js";
4
+ const schema = z.object({
5
+ customerId: z.string().min(1, "customerId is required"),
6
+ addressId: z.string().min(1, "addressId is required"),
7
+ });
8
+ const definition = {
9
+ name: "delete_customer_address",
10
+ description: "Delete an address book entry. DELETE /customers/{customerId}/addressbooks/{addressId}.",
11
+ inputSchema: {
12
+ type: "object",
13
+ properties: {
14
+ customerId: { type: "string", description: "Customer ID (required)" },
15
+ addressId: { type: "string", description: "Address book entry ID (required)" },
16
+ },
17
+ required: ["customerId", "addressId"],
18
+ },
19
+ };
20
+ async function handler(client, args) {
21
+ const parsed = schema.safeParse(args);
22
+ if (!parsed.success) {
23
+ return errorResult(parsed.error.errors.map((e) => e.message).join("; "));
24
+ }
25
+ const { customerId, addressId } = parsed.data;
26
+ return handleToolCall(() => customerService.deleteCustomerAddress(client, customerId, addressId));
27
+ }
28
+ export const deleteCustomerAddressTool = {
29
+ definition,
30
+ handler,
31
+ };
32
+ //# sourceMappingURL=deleteCustomerAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCustomerAddress.js","sourceRoot":"","sources":["../../../src/tools/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C,GAAG,EAAE,CACzB,eAAe,CAAC,qBAAqB,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,CACrE,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAS;IAC7C,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Tool } from "../types.js";
2
+ export declare const deleteCustomerChargeCreditTool: Tool;
3
+ //# sourceMappingURL=deleteCustomerChargeCredit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCustomerChargeCredit.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/deleteCustomerChargeCredit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAmCxC,eAAO,MAAM,8BAA8B,EAAE,IAG5C,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as customerService from "../../services/customerServices.js";
4
+ const schema = z.object({
5
+ customerId: z.string().min(1, "customerId is required"),
6
+ chargeCreditId: z.string().min(1, "chargeCreditId is required"),
7
+ });
8
+ const definition = {
9
+ name: "delete_customer_charge_credit",
10
+ description: "Delete a charge or credit for a customer. DELETE /customers/{customerId}/charges_credits/{chargeCreditId}. Fails if the charge/credit has invoice details assigned.",
11
+ inputSchema: {
12
+ type: "object",
13
+ properties: {
14
+ customerId: { type: "string", description: "Customer ID (required)" },
15
+ chargeCreditId: { type: "string", description: "Charge/credit ID (required)" },
16
+ },
17
+ required: ["customerId", "chargeCreditId"],
18
+ },
19
+ };
20
+ async function handler(client, args) {
21
+ const parsed = schema.safeParse(args);
22
+ if (!parsed.success) {
23
+ return errorResult(parsed.error.errors.map((e) => e.message).join("; "));
24
+ }
25
+ const { customerId, chargeCreditId } = parsed.data;
26
+ return handleToolCall(() => customerService.deleteCustomerChargeCredit(client, customerId, chargeCreditId));
27
+ }
28
+ export const deleteCustomerChargeCreditTool = {
29
+ definition,
30
+ handler,
31
+ };
32
+ //# sourceMappingURL=deleteCustomerChargeCredit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCustomerChargeCredit.js","sourceRoot":"","sources":["../../../src/tools/customers/deleteCustomerChargeCredit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,eAAe,MAAM,oCAAoC,CAAC;AAEtE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;IACvD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,4BAA4B,CAAC;CAChE,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,+BAA+B;IACrC,WAAW,EACT,qKAAqK;IACvK,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,wBAAwB,EAAE;YACrE,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,6BAA6B,EAAE;SAC/E;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;KAC3C;CACF,CAAC;AAEF,KAAK,UAAU,OAAO,CAAC,MAAc,EAAE,IAAyC;IAC9E,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3E,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC;IACnD,OAAO,cAAc,CAAC,GAAG,EAAE,CACzB,eAAe,CAAC,0BAA0B,CAAC,MAAM,EAAE,UAAU,EAAE,cAAc,CAAC,CAC/E,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAS;IAClD,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Tool } from "../types.js";
2
+ export declare const deleteCustomerPaymentMethodTool: Tool;
3
+ //# sourceMappingURL=deleteCustomerPaymentMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCustomerPaymentMethod.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/deleteCustomerPaymentMethod.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAmCxC,eAAO,MAAM,+BAA+B,EAAE,IAG7C,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as customerService from "../../services/customerServices.js";
4
+ const schema = z.object({
5
+ customerId: z.string().min(1, "customerId is required"),
6
+ paymentMethodId: z.string().min(1, "paymentMethodId is required"),
7
+ });
8
+ const definition = {
9
+ name: "delete_customer_payment_method",
10
+ description: "Delete a payment method. DELETE /customers/{customerId}/paymentmethods/{paymentMethodId}.",
11
+ inputSchema: {
12
+ type: "object",
13
+ properties: {
14
+ customerId: { type: "string", description: "Customer ID (required)" },
15
+ paymentMethodId: { type: "string", description: "Payment method ID (required)" },
16
+ },
17
+ required: ["customerId", "paymentMethodId"],
18
+ },
19
+ };
20
+ async function handler(client, args) {
21
+ const parsed = schema.safeParse(args);
22
+ if (!parsed.success) {
23
+ return errorResult(parsed.error.errors.map((e) => e.message).join("; "));
24
+ }
25
+ const { customerId, paymentMethodId } = parsed.data;
26
+ return handleToolCall(() => customerService.deleteCustomerPaymentMethod(client, customerId, paymentMethodId));
27
+ }
28
+ export const deleteCustomerPaymentMethodTool = {
29
+ definition,
30
+ handler,
31
+ };
32
+ //# sourceMappingURL=deleteCustomerPaymentMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCustomerPaymentMethod.js","sourceRoot":"","sources":["../../../src/tools/customers/deleteCustomerPaymentMethod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,eAAe,MAAM,oCAAoC,CAAC;AAEtE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;IACvD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,6BAA6B,CAAC;CAClE,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,gCAAgC;IACtC,WAAW,EACT,2FAA2F;IAC7F,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,wBAAwB,EAAE;YACrE,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8BAA8B,EAAE;SACjF;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,iBAAiB,CAAC;KAC5C;CACF,CAAC;AAEF,KAAK,UAAU,OAAO,CAAC,MAAc,EAAE,IAAyC;IAC9E,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3E,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC;IACpD,OAAO,cAAc,CAAC,GAAG,EAAE,CACzB,eAAe,CAAC,2BAA2B,CAAC,MAAM,EAAE,UAAU,EAAE,eAAe,CAAC,CACjF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAS;IACnD,UAAU;IACV,OAAO;CACR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Tool } from "../types.js";
2
+ export declare const getCustomerTool: Tool;
3
+ //# sourceMappingURL=getCustomer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCustomer.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/getCustomer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAqCxC,eAAO,MAAM,eAAe,EAAE,IAG7B,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ import { errorResult, handleToolCall } from "./helpers.js";
3
+ import * as customerService from "../../services/customerServices.js";
4
+ const schema = z.object({
5
+ id: z.string().min(1, "id is required"),
6
+ includeAddresses: z.boolean().optional(),
7
+ includePaymentMethods: z.boolean().optional(),
8
+ });
9
+ const definition = {
10
+ name: "get_customer",
11
+ description: "Get a specific customer by ID. GET /customers/{customerId}. Optional includes: addressbook, paymentmethod.",
12
+ inputSchema: {
13
+ type: "object",
14
+ properties: {
15
+ id: { type: "string", description: "Customer ID" },
16
+ includeAddresses: { type: "boolean", description: "Include customer addresses (addressbook)" },
17
+ includePaymentMethods: { type: "boolean", description: "Include payment methods (paymentmethod)" },
18
+ },
19
+ required: ["id"],
20
+ },
21
+ };
22
+ async function handler(client, args) {
23
+ const parsed = schema.safeParse(args);
24
+ if (!parsed.success) {
25
+ return errorResult(parsed.error.errors.map((e) => e.message).join("; "));
26
+ }
27
+ const { id, includeAddresses, includePaymentMethods } = parsed.data;
28
+ return handleToolCall(() => customerService.getCustomer(client, id, { includeAddresses, includePaymentMethods }));
29
+ }
30
+ export const getCustomerTool = {
31
+ definition,
32
+ handler,
33
+ };
34
+ //# sourceMappingURL=getCustomer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCustomer.js","sourceRoot":"","sources":["../../../src/tools/customers/getCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,eAAe,MAAM,oCAAoC,CAAC;AAEtE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,gBAAgB,CAAC;IACvC,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxC,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,cAAc;IACpB,WAAW,EACT,4GAA4G;IAC9G,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE;YAClD,gBAAgB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,0CAA0C,EAAE;YAC9F,qBAAqB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,yCAAyC,EAAE;SACnG;QACD,QAAQ,EAAE,CAAC,I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