@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
package/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.0.0] - 2025-02-18
9
+
10
+ ### Added
11
+
12
+ - MCP server for the Rebillia subscription billing API
13
+ - Tools: customers, products, rate plans, rate plan charges, subscriptions, invoices, transactions, bill runs, gateways, currencies, integrations, shipping, filters, documentation
14
+ - Resources: API docs (overview, models, subscription-statuses, charge-types)
15
+ - `get_api_docs` tool for documentation without external fetch
16
+ - Vitest tests: client, customer tools, subscription tools, integration (MCP protocol)
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Rebillia
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,415 @@
1
+ # Rebillia MCP Server
2
+
3
+ Model Context Protocol (MCP) server for the [Rebillia Public API](https://apiguide.rebillia.com/). It exposes **tools** to call the API and **resources** with API documentation so AI assistants can manage customers, products, rate plans, and understand the API.
4
+
5
+ ## Features
6
+
7
+ - **Tools** – Call Rebillia endpoints from your MCP client (e.g. Cursor, Claude Desktop):
8
+ - **Customers** (21 tools) – List, get, create, update, delete; invoices, subscriptions, logs; addresses and payment methods; charges/credits
9
+ - **Products** (8 tools) – List, get, create, update, delete; update status; link/unlink external products
10
+ - **Product rate plans** (7 tools) – List by product, get, create, update, delete; update status; sync
11
+ - **Product rate plan charges** (5 tools) – List by product rate plan, get, create, update, delete (with chargeType, chargeModel, billingPeriod, billingTiming enums and chargeTier array)
12
+ - **Subscriptions** (20 tools) – List, get, create, update, delete; status; next bill, upcoming charges, invoices, logs, external invoices; subscription rate plans and rate plan charges (add/update/remove)
13
+ - **Invoices** (8 tools) – List, get, create, update, delete; charge (card/online with paymentType), charge_external (offline), void
14
+ - **Transactions** (4 tools) – List, get, refund (amount in **cents**), void (before settlement only)
15
+ - **Bill runs** (4 tools) – List (filter by completed/pending/error), get, update (newDateTime, ISO 8601), get bill run invoices
16
+ - **Gateways** (9 tools) – List global gateways (discover gblGatewayId and required setting keys), list company gateways, get, create, update, delete, test gateway, get client token, create setup intent
17
+ - **Currencies** (7 tools) – List, get, create, update, delete, get/set default currency
18
+ - **Integrations** (8 tools) – List, get config, get/list by key; external invoices, products, order statuses
19
+ - **Shipping** (2 tools) – List shipping services, calculate shipping
20
+ - **Filters** (4 tools) – List filters (section required), create filter, list filter fields, remove filter
21
+ - **Documentation** (1 tool) – `get_api_docs` returns overview or other API docs as markdown (no external fetch)
22
+ - **Resources** – API docs via MCP resources (`rebillia://docs/*`): overview, models, subscription-statuses, charge-types, gateways. Country list at `rebillia://globals/countries` (id, code, name) for address tools. Global gateways at `rebillia://globals/gateways` (gblGatewayId, requiredFields) for gateway creation. All docs are self-contained; use these or the tool instead of fetching external URLs.
23
+ - **Types** – TypeScript types aligned with the Rebillia Public API response shapes
24
+
25
+ ## Requirements
26
+
27
+ - Node.js 18+
28
+ - A Rebillia API key (see below)
29
+
30
+ ### Getting Your API Key
31
+
32
+ 1. Go to [Rebillia setup / welcome](https://admin.rebillia.com/setup/welcome?source=dev).
33
+ 2. **Select a plan** and continue.
34
+ 3. **Sign up** (create an account) or **log in** if you already have a Rebillia account.
35
+ 4. After you’re in your company, open the **dashboard**.
36
+ 5. In the dashboard, **copy your API Token** and use it as `REBILLIA_API_KEY` in your environment or MCP client config.
37
+
38
+ ## Setup
39
+
40
+ 1. **Clone and install**
41
+
42
+ ```bash
43
+ cd /path/to/rebillia-mcp-server
44
+ npm install
45
+ ```
46
+
47
+ 2. **Configure environment**
48
+
49
+ Copy the example env file and set your API key and optional base URL:
50
+
51
+ ```bash
52
+ cp .env.example .env
53
+ ```
54
+
55
+ Edit `.env`:
56
+
57
+ ```env
58
+ REBILLIA_API_KEY=your_api_key_here
59
+ REBILLIA_API_URL=https://api.rebillia.com/v1
60
+ ```
61
+
62
+ - `REBILLIA_API_KEY` – **Required.** Used as `X-AUTH-TOKEN` for all requests.
63
+ - `REBILLIA_API_URL` – Optional. Defaults to `https://api.rebillia.com/v1` (include `/v1` for the Public API).
64
+
65
+ 3. **Build**
66
+
67
+ ```bash
68
+ npm run build
69
+ ```
70
+
71
+ ## Usage
72
+
73
+ ### Running the server
74
+
75
+ Development (no build step):
76
+
77
+ ```bash
78
+ npm run dev
79
+ ```
80
+
81
+ Production:
82
+
83
+ ```bash
84
+ npm run build
85
+ npm start
86
+ ```
87
+
88
+ Or run the binary:
89
+
90
+ ```bash
91
+ ./node_modules/.bin/rebillia-mcp-server
92
+ ```
93
+
94
+ The server uses **stdio** transport: it reads JSON-RPC from stdin and writes responses to stdout. MCP clients connect to it as a subprocess.
95
+
96
+ ### Configuring Claude Desktop
97
+
98
+ 1. **Build the server** (if you haven’t already):
99
+ ```bash
100
+ npm run build
101
+ ```
102
+
103
+ 2. **Open the Claude Desktop MCP config file:**
104
+ - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
105
+ - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
106
+
107
+ 3. **Add the Rebillia server** under `mcpServers`:
108
+
109
+ ```json
110
+ {
111
+ "mcpServers": {
112
+ "rebillia": {
113
+ "command": "npx",
114
+ "args": ["@rhinosaas/rebillia-mcp-server"],
115
+ "env": {
116
+ "REBILLIA_API_KEY": "YOUR_API_KEY",
117
+ "REBILLIA_API_URL": "https://api.rebillia.com/v1"
118
+ }
119
+ }
120
+ }
121
+ }
122
+ ```
123
+
124
+ 4. **Restart Claude Desktop.** The Rebillia tools and resources (including `get_api_docs`) will appear. You can ask Claude to use the Rebillia API or to “get the API docs” for overview information.
125
+
126
+ ### Configuring Cursor
127
+
128
+ 1. **Build the server:**
129
+ ```bash
130
+ npm run build
131
+ ```
132
+
133
+ 2. **Open Cursor MCP settings:**
134
+ - **Settings** → **Cursor Settings** → **MCP**, or
135
+ - Open the MCP config file directly:
136
+ - **macOS/Linux:** `~/.cursor/rebillia-mcp-server.json` or project-level `.cursor/mcp.json`
137
+ - **Windows:** `%USERPROFILE%\.cursor\-rebillia-mcp-server.json`
138
+
139
+ 3. **Add the Rebillia server** in the MCP config. Example:
140
+
141
+ ```json
142
+ {
143
+ "mcpServers": {
144
+ "rebillia": {
145
+ "command": "npx",
146
+ "args": ["@rhinosaas/rebillia-mcp-server"],
147
+ "env": {
148
+ "REBILLIA_API_KEY": "your_api_key_here",
149
+ "REBILLIA_API_URL": "https://api.rebillia.com/v1"
150
+ }
151
+ }
152
+ }
153
+ }
154
+ ```
155
+
156
+ 4. **Restart Cursor** or reload the MCP servers. Rebillia tools and resources will be available in the AI chat (e.g. “List customers”, “Get API docs”).
157
+
158
+ ### Tools
159
+
160
+ Responses are JSON from the Rebillia Public API (paginated for list endpoints, single object for get).
161
+
162
+ #### Customers (21 tools)
163
+
164
+ | Tool | Description |
165
+ |------|-------------|
166
+ | `list_customers` | List customers (pageNo, itemPerPage, query, status, sortBy, orderBy, include, filterId). |
167
+ | `get_customer` | Get customer by ID (optional include). |
168
+ | `create_customer` | Create customer (firstName, lastName, email, optional fields). |
169
+ | `update_customer` | Update customer by ID. |
170
+ | `delete_customer` | Delete customer by ID. |
171
+ | `get_customer_invoices` | Get invoices for a customer. |
172
+ | `get_customer_subscriptions` | Get subscriptions for a customer. |
173
+ | `get_customer_logs` | Get logs for a customer. |
174
+ | `list_customer_addresses` | List address book entries for a customer. |
175
+ | `get_customer_address` | Get address by ID. |
176
+ | `create_customer_address` | Create address (name, contactName, street1, city, state, zip, countryCode (ISO 3166-1 alpha-2), type, …). |
177
+ | `update_customer_address` | Update address by ID. Required: customerId, addressId, street1, city, state, zip, countryCode. Optional: name, contactName, street2, company, contactEmail, contactPhone, type. |
178
+ | `delete_customer_address` | Delete address by ID. |
179
+ | `list_customer_payment_methods` | List payment methods for a customer. |
180
+ | `get_customer_payment_method` | Get payment method by ID. |
181
+ | `create_customer_payment_method` | Create payment method (gateway-agnostic). Required: companyGatewayId, type, **paymentMethodNonce**, billingAddress (countryCode, …). Get client credential via get_client_token; use your payment UI to produce paymentMethodNonce. No raw card data or gateway-specific fields. |
182
+ | `update_customer_payment_method` | Update payment method billing address (gateway-agnostic). Required: customerId, paymentMethodId, billingAddress (countryCode, …). No payment or gateway-specific fields. |
183
+ | `delete_customer_payment_method` | Delete payment method by ID. |
184
+ | `list_customer_charges_credits` | List charges/credits (optional status, type). |
185
+ | `create_customer_charge_credit` | Create charge/credit (amount in **cents**, description, type, companyCurrencyId, category, …). |
186
+ | `delete_customer_charge_credit` | Delete charge/credit by ID. |
187
+
188
+ #### Products (8 tools)
189
+
190
+ | Tool | Description |
191
+ |------|-------------|
192
+ | `list_products` | List products (include, orderBy, sortBy, itemPerPage, pageNo). |
193
+ | `get_product` | Get product by ID. |
194
+ | `create_product` | Create product (name, category, optional description, sku). |
195
+ | `update_product` | Update product by ID. |
196
+ | `delete_product` | Delete product by ID (cascades to product rate plans). |
197
+ | `update_product_status` | Update status (published, archived, disabled). |
198
+ | `link_external_product` | Link external product (productId, companyIntegrationId, external productId, settings). |
199
+ | `unlink_external_product` | Unlink external product by ID. |
200
+
201
+ #### Product rate plans (7 tools)
202
+
203
+ | Tool | Description |
204
+ |------|-------------|
205
+ | `list_product_rate_plans` | List product rate plans for a product (GET /products/{productId}/product-rateplans). |
206
+ | `get_product_rate_plan` | Get product rate plan by ID. |
207
+ | `create_product_rate_plan` | Create product rate plan (productId, name, type: contract\|ongoing\|prepaid). |
208
+ | `update_product_rate_plan` | Update product rate plan by ID. |
209
+ | `delete_product_rate_plan` | Delete product rate plan by ID. |
210
+ | `update_product_rate_plan_status` | Update status (published, archived, disabled, discontinue). |
211
+ | `sync_product_rate_plan` | Sync product rate plan (POST …/sync). |
212
+
213
+ #### Product rate plan charges (5 tools)
214
+
215
+ | Tool | Description |
216
+ |------|-------------|
217
+ | `list_product_rate_plan_charges` | List product rate plan charges for a product rate plan (GET …/product-rateplan-charges). |
218
+ | `get_product_rate_plan_charge` | Get product rate plan charge by ID. |
219
+ | `create_product_rate_plan_charge` | Create product rate plan charge (ratePlanId, name, chargeType, chargeModel, billCycleType, category, **chargeTier** array, taxable, weight, endDateCondition, …). Enums: chargeType (oneTime, recurring, usage), chargeModel (flatFeePricing, perUnitPricing, tieredPricing, volumePricing), billingPeriod (day, week, month, year), billingTiming (inAdvance, inArrears). |
220
+ | `update_product_rate_plan_charge` | Update product rate plan charge by ID. |
221
+ | `delete_product_rate_plan_charge` | Delete product rate plan charge by ID. |
222
+
223
+ #### Subscriptions (20 tools)
224
+
225
+ | Tool | Description |
226
+ |------|-------------|
227
+ | `list_subscriptions` | List subscriptions (include, status, query, orderBy, sortBy, itemPerPage, pageNo). |
228
+ | `get_subscription` | Get subscription by ID. |
229
+ | `create_subscription` | Create subscription (customerId, name, companyCurrencyId, effectiveStartDate, ratePlan array). |
230
+ | `update_subscription` | Update subscription by ID. |
231
+ | `delete_subscription` | Delete subscription by ID. |
232
+ | `update_subscription_status` | Update status (e.g. archived). |
233
+ | `get_subscription_next_bill` | Preview next bill. |
234
+ | `get_subscription_upcoming_charges` | Upcoming charges. |
235
+ | `get_subscription_invoices` | Invoices for subscription. |
236
+ | `get_subscription_logs` | Logs for subscription. |
237
+ | `get_subscription_external_invoices` | External invoices. |
238
+ | `list_subscription_rate_plans` | Rate plans on subscription. |
239
+ | `get_subscription_rate_plan` | Get rate plan by ID. |
240
+ | `add_subscription_rate_plan` | Add rate plan to subscription. |
241
+ | `update_subscription_rate_plan` | Update rate plan (effectiveStartDate, etc.). |
242
+ | `remove_subscription_rate_plan` | Remove rate plan from subscription. |
243
+ | `get_subscription_rate_plan_charge` | Get rate plan charge by ID. |
244
+ | `add_subscription_rate_plan_charge` | Add charge to rate plan. Required: subscriptionId, ratePlanId, quantity, name, category (physical\|digital), chargeModel (flatFeePricing\|perUnitPricing\|tieredPricing\|volumePricing), billCycleType, chargeTier (array: currency, price required; optional startingUnit, endingUnit, priceFormat, tier), chargeType (oneTime\|recurring\|usage), endDateCondition (subscriptionEnd\|fixedPeriod), taxable (boolean), weight. When chargeType is recurring, billingPeriodAlignment is also required. |
245
+ | `update_subscription_rate_plan_charge` | Update rate plan charge. Required: subscriptionId, chargeId, quantity, name, chargeModel, billCycleType, chargeTier (currency, price), chargeType, endDateCondition, taxable, weight. When chargeType is recurring, billingPeriodAlignment required. |
246
+ | `remove_subscription_rate_plan_charge` | Remove charge from rate plan. |
247
+
248
+ #### Invoices (8 tools)
249
+
250
+ | Tool | Description |
251
+ |------|-------------|
252
+ | `list_invoices` | List invoices (include, status, query, orderBy, sortBy, filterId, itemPerPage, pageNo). |
253
+ | `get_invoice` | Get invoice by ID. |
254
+ | `create_invoice` | Create invoice. Required: companyCurrencyId, companyGatewayId, customerId, paymentMethodId, detail. Optional billingAddress/shippingAddress use countryCode (ISO 3166-1 alpha-2). Amount can be '41.00' (dollars) or 4100 (cents); tool always sends cents to publicAPI. |
255
+ | `update_invoice` | Update invoice (only posted/requestPayment). |
256
+ | `delete_invoice` | Delete invoice by ID. |
257
+ | `charge_invoice` | Charge invoice (card/online). Required: invoiceId, amount (cents), paymentType (e.g. thirdPartyPaymentProvider). |
258
+ | `charge_invoice_external` | Charge via offline (cash/check/wire). Required: invoiceId, amount (cents). |
259
+ | `void_invoice` | Void invoice (irreversible). |
260
+
261
+ #### Transactions (4 tools)
262
+
263
+ | Tool | Description |
264
+ |------|-------------|
265
+ | `list_transactions` | List transactions (orderBy, sortBy, itemPerPage, pageNo). |
266
+ | `get_transaction` | Get transaction by ID. |
267
+ | `refund_transaction` | Refund transaction. Required: transactionId, amount (**in cents**, e.g. 250 = $2.50). |
268
+ | `void_transaction` | Void transaction (before settlement only). |
269
+
270
+ #### Bill runs (4 tools)
271
+
272
+ | Tool | Description |
273
+ |------|-------------|
274
+ | `list_bill_runs` | List bill runs. Optional: include (e.g. invoice), query (completed/pending/error), orderBy, sortBy, itemPerPage, pageNo. |
275
+ | `get_bill_run` | Get bill run by ID. |
276
+ | `update_bill_run` | Update bill run schedule. Required: billRunId, newDateTime (ISO 8601, e.g. 2026-02-26T20:05:00Z). |
277
+ | `get_bill_run_invoices` | Get invoices for a bill run. |
278
+
279
+ #### Gateways (9 tools)
280
+
281
+ | Tool | Description |
282
+ |------|-------------|
283
+ | `list_global_gateways` | List available global gateway types (e.g. Stripe, Braintree). Returns **gblGatewayId**, name, keyName, **requiredFields** (setting keys), and fieldDetails. Call this before `create_gateway` to discover valid gateway IDs and which keys to pass in `setting`. |
284
+ | `list_gateways` | List company gateways. |
285
+ | `get_gateway` | Get gateway by ID. |
286
+ | `create_gateway` | Create gateway. Required: **gblGatewayId** (from `list_global_gateways`), **setting** (object with keys from that gateway’s `requiredFields`). Optional: displayName, card, paymentMethod. Use `list_global_gateways` first to get gblGatewayId and required credential field names. |
287
+ | `update_gateway` | Update gateway by ID. |
288
+ | `delete_gateway` | Delete gateway by ID. |
289
+ | `test_gateway` | Test gateway connection. |
290
+ | `get_client_token` | Get the gateway client credential to initialize your payment integration and produce a **paymentMethodNonce** for create_customer_payment_method. Gateway-agnostic. Required: gatewayId. Optional: customerId; **required for PayFabric**, optional for others. |
291
+ | `create_setup_intent` | Create/retrieve a setup intent via `/gateways/{companyGatewayId}/customers/{customerId}/setup_intent`. Use setupIntent.id as **paymentMethodNonce** for create_customer_payment_method (gateway-agnostic payment flow). |
292
+
293
+ **Gateway creation example flow:** (1) Call `list_global_gateways` (no args). (2) Pick a gateway (e.g. Stripe, Braintree) and note its `gblGatewayId` and `requiredFields`. (3) Build a `setting` object with those keys and your credential values. (4) Call `create_gateway` with that `gblGatewayId` and `setting`. See `rebillia://docs/gateways` or `get_api_docs` with `doc: "gateways"` for full details.
294
+
295
+ #### Currencies (7 tools)
296
+
297
+ | Tool | Description |
298
+ |------|-------------|
299
+ | `list_currencies` | List company currencies. |
300
+ | `get_currency` | Get currency by ID. |
301
+ | `create_currency` | Create company currency. |
302
+ | `update_currency` | Update currency by ID. |
303
+ | `delete_currency` | Delete currency by ID. |
304
+ | `get_default_currency` | Get default company currency. |
305
+ | `set_default_currency` | Set default currency by ID. |
306
+
307
+ #### Integrations (8 tools)
308
+
309
+ | Tool | Description |
310
+ |------|-------------|
311
+ | `list_integrations` | List company integrations. |
312
+ | `get_integration_config` | Get integration config by ID. |
313
+ | `get_integration_by_key` | Get integration by key. |
314
+ | `list_integrations_by_key` | List integrations by key. |
315
+ | `list_external_invoices` | List external invoices. |
316
+ | `list_external_products` | List external products (productName required). |
317
+ | `get_external_product` | Get external product by ID. |
318
+ | `list_order_statuses` | List order statuses. |
319
+
320
+ #### Shipping (2 tools)
321
+
322
+ | Tool | Description |
323
+ |------|-------------|
324
+ | `list_shipping_services` | List shipping services. |
325
+ | `calculate_shipping` | Calculate shipping (companyCurrencyId, fromZip, fromCountry, zip, country, weight, orderAmount, etc.). |
326
+
327
+ #### Filters (4 tools)
328
+
329
+ | Tool | Description |
330
+ |------|-------------|
331
+ | `list_filters` | List company filters. Required: section (e.g. subscriptions, invoices, customers, products, orders, billRuns). |
332
+ | `create_filter` | Create filter (section, displayName, rules). |
333
+ | `list_filter_fields` | List filter fields for a section. |
334
+ | `remove_filter` | Delete a company filter by ID (DELETE /companies/filters/{filterId}). |
335
+
336
+ #### Documentation (1 tool)
337
+
338
+ | Tool | Description |
339
+ |------|-------------|
340
+ | `get_api_docs` | Get Rebillia API documentation as markdown. Default: overview (base URLs, auth, pagination, dates, amounts). Optional: doc = overview \| models \| subscription-statuses \| charge-types \| gateways. Use this so Claude can read docs without fetching external URLs. |
341
+
342
+ ### Resources
343
+
344
+ API documentation is exposed as MCP resources under `rebillia://docs/*`. Use `resources/list` then `resources/read` with the URI, or call the `get_api_docs` tool. All docs are self-contained; do not fetch external URLs.
345
+
346
+ | URI | Description |
347
+ |-----|-------------|
348
+ | `rebillia://docs/overview` | Overview documentation – base URLs, auth, pagination, date format, amount handling (read this first) |
349
+ | `rebillia://docs/models` | Domain model hierarchy and relationships |
350
+ | `rebillia://docs/subscription-statuses` | Subscription statuses: active, paused, archived, requestPayment |
351
+ | `rebillia://docs/charge-types` | chargeType, chargeModel, billingPeriod, billingTiming enums |
352
+ | `rebillia://docs/gateways` | Gateway creation flow: use `list_global_gateways` to discover gblGatewayId and requiredFields, then build `setting` and call `create_gateway` |
353
+ | `rebillia://globals/gateways` | Global gateways list (when client provided): gblGatewayId, name, keyName, requiredFields, fieldDetails – use with `create_gateway` |
354
+
355
+ ## Project structure
356
+
357
+ ```
358
+ mcp/
359
+ ├── src/
360
+ │ ├── index.ts # MCP server entry, registerResources(), tools & resources handlers
361
+ │ ├── client.ts # HTTP client for Rebillia API (X-AUTH-TOKEN)
362
+ │ ├── types.ts # Rebillia API types (customers, invoices, etc.)
363
+ │ ├── services/ # API call layer (used by tools)
364
+ │ │ ├── customerServices.ts
365
+ │ │ ├── productServices.ts
366
+ │ │ ├── productRatePlanServices.ts
367
+ │ │ ├── productRatePlanChargeServices.ts
368
+ │ │ ├── subscriptionServices.ts
369
+ │ │ ├── invoiceServices.ts
370
+ │ │ ├── transactionServices.ts
371
+ │ │ ├── billRunServices.ts
372
+ │ │ ├── gatewayServices.ts
373
+ │ │ ├── currencyServices.ts
374
+ │ │ ├── integrationServices.ts
375
+ │ │ ├── shippingServices.ts
376
+ │ │ └── filterServices.ts
377
+ │ ├── tools/
378
+ │ │ ├── index.ts # Tool registry, getToolDefinitions(), executeTool()
379
+ │ │ ├── types.ts # Tool definition and handler types
380
+ │ │ ├── customers/ # Customer tools (21)
381
+ │ │ ├── products/ # Product tools (8)
382
+ │ │ ├── product_rate_plans/ # Product rate plan tools (7)
383
+ │ │ ├── product_rate_plan_charges/# Product rate plan charge tools (5)
384
+ │ │ ├── subscriptions/ # Subscription tools (20)
385
+ │ │ ├── invoices/ # Invoice tools (8)
386
+ │ │ ├── transactions/ # Transaction tools (4)
387
+ │ │ ├── bill_runs/ # Bill run tools (4)
388
+ │ │ ├── gateways/ # Gateway tools (8)
389
+ │ │ ├── currencies/ # Currency tools (7)
390
+ │ │ ├── integrations/ # Integration tools (8)
391
+ │ │ ├── shipping/ # Shipping tools (2)
392
+ │ │ ├── filters/ # Filter tools (4)
393
+ │ │ └── docs/ # get_api_docs (1)
394
+ │ ├── resources/
395
+ │ │ ├── index.ts # listResources(), readResource() (legacy apiResources)
396
+ │ │ └── api-docs.ts # registerResources(), docResources (rebillia://docs/*), getDocContent()
397
+ │ └── prompts/ # (reserved for MCP prompts)
398
+ ├── .env.example
399
+ ├── package.json
400
+ ├── tsconfig.json
401
+ └── README.md
402
+ ```
403
+
404
+ ## Scripts
405
+
406
+ | Script | Command | Description |
407
+ |--------|---------|-------------|
408
+ | build | `npm run build` | Compile TypeScript to `dist/` |
409
+ | start | `npm start` | Run `node dist/index.js` |
410
+ | dev | `npm run dev` | Run with `tsx` (no build) |
411
+ | test | `npm test` | Run Vitest |
412
+
413
+ ## License
414
+
415
+ MIT
@@ -0,0 +1,45 @@
1
+ /**
2
+ * HTTP client for the Rebillia REST API
3
+ */
4
+ export default class RebilliaClient {
5
+ private apiKey;
6
+ private baseUrl;
7
+ constructor(apiKey: string, baseUrl?: string);
8
+ /**
9
+ * Root base URL without trailing /v1 (some endpoints like /globals/* are not versioned).
10
+ */
11
+ private rootBaseUrl;
12
+ /**
13
+ * Authenticate API requests with X-AUTH-TOKEN header
14
+ */
15
+ private authenticate;
16
+ /**
17
+ * Handle API errors with descriptive messages
18
+ */
19
+ private handleError;
20
+ /**
21
+ * GET request
22
+ */
23
+ get<T = any>(endpoint: string): Promise<T>;
24
+ /**
25
+ * GET request against API root (no /v1). Use for endpoints like /globals/countries.
26
+ */
27
+ getRoot<T = any>(endpoint: string): Promise<T>;
28
+ /**
29
+ * POST request against API root (no /v1). Use for unversioned/internal endpoints.
30
+ */
31
+ postRoot<T = any>(endpoint: string, data?: any): Promise<T>;
32
+ /**
33
+ * POST request
34
+ */
35
+ post<T = any>(endpoint: string, data?: any): Promise<T>;
36
+ /**
37
+ * PUT request
38
+ */
39
+ put<T = any>(endpoint: string, data?: any): Promise<T>;
40
+ /**
41
+ * DELETE request
42
+ */
43
+ delete<T = any>(endpoint: string): Promise<T>;
44
+ }
45
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,MAAsC;IAK3E;;OAEG;IACH,OAAO,CAAC,WAAW;IAInB;;OAEG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;YACW,WAAW;IAazB;;OAEG;IACG,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAchD;;OAEG;IACG,OAAO,CAAC,CAAC,GAAG,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAcpD;;OAEG;IACG,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;IAejE;;OAEG;IACG,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;IAe7D;;OAEG;IACG,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;IAe5D;;OAEG;IACG,MAAM,CAAC,CAAC,GAAG,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAgBpD"}
package/dist/client.js ADDED
@@ -0,0 +1,130 @@
1
+ /**
2
+ * HTTP client for the Rebillia REST API
3
+ */
4
+ export default class RebilliaClient {
5
+ apiKey;
6
+ baseUrl;
7
+ constructor(apiKey, baseUrl = "https://api.rebillia.com/v1") {
8
+ this.apiKey = apiKey;
9
+ this.baseUrl = baseUrl;
10
+ }
11
+ /**
12
+ * Root base URL without trailing /v1 (some endpoints like /globals/* are not versioned).
13
+ */
14
+ rootBaseUrl() {
15
+ return this.baseUrl.replace(/\/v1\/?$/, "");
16
+ }
17
+ /**
18
+ * Authenticate API requests with X-AUTH-TOKEN header
19
+ */
20
+ authenticate() {
21
+ return {
22
+ "X-AUTH-TOKEN": this.apiKey,
23
+ "Content-Type": "application/json",
24
+ };
25
+ }
26
+ /**
27
+ * Handle API errors with descriptive messages
28
+ */
29
+ async handleError(response) {
30
+ let errorBody;
31
+ try {
32
+ errorBody = await response.text();
33
+ }
34
+ catch {
35
+ errorBody = "Unable to read error response";
36
+ }
37
+ throw new Error(`Rebillia API error (${response.status} ${response.statusText}): ${errorBody}`);
38
+ }
39
+ /**
40
+ * GET request
41
+ */
42
+ async get(endpoint) {
43
+ const url = `${this.baseUrl}${endpoint}`;
44
+ const response = await fetch(url, {
45
+ method: "GET",
46
+ headers: this.authenticate(),
47
+ });
48
+ if (!response.ok) {
49
+ await this.handleError(response);
50
+ }
51
+ return response.json();
52
+ }
53
+ /**
54
+ * GET request against API root (no /v1). Use for endpoints like /globals/countries.
55
+ */
56
+ async getRoot(endpoint) {
57
+ const url = `${this.rootBaseUrl()}${endpoint}`;
58
+ const response = await fetch(url, {
59
+ method: "GET",
60
+ headers: this.authenticate(),
61
+ });
62
+ if (!response.ok) {
63
+ await this.handleError(response);
64
+ }
65
+ return response.json();
66
+ }
67
+ /**
68
+ * POST request against API root (no /v1). Use for unversioned/internal endpoints.
69
+ */
70
+ async postRoot(endpoint, data) {
71
+ const url = `${this.rootBaseUrl()}${endpoint}`;
72
+ const response = await fetch(url, {
73
+ method: "POST",
74
+ headers: this.authenticate(),
75
+ body: data ? JSON.stringify(data) : undefined,
76
+ });
77
+ if (!response.ok) {
78
+ await this.handleError(response);
79
+ }
80
+ return response.json();
81
+ }
82
+ /**
83
+ * POST request
84
+ */
85
+ async post(endpoint, data) {
86
+ const url = `${this.baseUrl}${endpoint}`;
87
+ const response = await fetch(url, {
88
+ method: "POST",
89
+ headers: this.authenticate(),
90
+ body: data ? JSON.stringify(data) : undefined,
91
+ });
92
+ if (!response.ok) {
93
+ await this.handleError(response);
94
+ }
95
+ return response.json();
96
+ }
97
+ /**
98
+ * PUT request
99
+ */
100
+ async put(endpoint, data) {
101
+ const url = `${this.baseUrl}${endpoint}`;
102
+ const response = await fetch(url, {
103
+ method: "PUT",
104
+ headers: this.authenticate(),
105
+ body: data ? JSON.stringify(data) : undefined,
106
+ });
107
+ if (!response.ok) {
108
+ await this.handleError(response);
109
+ }
110
+ return response.json();
111
+ }
112
+ /**
113
+ * DELETE request
114
+ */
115
+ async delete(endpoint) {
116
+ const url = `${this.baseUrl}${endpoint}`;
117
+ const response = await fetch(url, {
118
+ method: "DELETE",
119
+ headers: this.authenticate(),
120
+ });
121
+ if (!response.ok) {
122
+ await this.handleError(response);
123
+ }
124
+ if (response.status === 204) {
125
+ return {};
126
+ }
127
+ return response.json();
128
+ }
129
+ }
130
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Rebillia MCP Server
4
+ * Model Context Protocol server for Rebillia API integration
5
+ */
6
+ import "dotenv/config";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH,OAAO,eAAe,CAAC"}