namirasoft-payment 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (527) hide show
  1. package/dist/NamirasoftPaymentServer.d.ts +37 -0
  2. package/dist/NamirasoftPaymentServer.js +43 -0
  3. package/dist/NamirasoftPaymentServer.js.map +1 -0
  4. package/dist/NamirasoftPaymentServerBase.d.ts +5 -0
  5. package/dist/NamirasoftPaymentServerBase.js +12 -0
  6. package/dist/NamirasoftPaymentServerBase.js.map +1 -0
  7. package/dist/NamirasoftPaymentServerCard.d.ts +15 -0
  8. package/dist/NamirasoftPaymentServerCard.js +54 -0
  9. package/dist/NamirasoftPaymentServerCard.js.map +1 -0
  10. package/dist/NamirasoftPaymentServerCardCategory.d.ts +16 -0
  11. package/dist/NamirasoftPaymentServerCardCategory.js +62 -0
  12. package/dist/NamirasoftPaymentServerCardCategory.js.map +1 -0
  13. package/dist/NamirasoftPaymentServerCardField.d.ts +16 -0
  14. package/dist/NamirasoftPaymentServerCardField.js +62 -0
  15. package/dist/NamirasoftPaymentServerCardField.js.map +1 -0
  16. package/dist/NamirasoftPaymentServerCardTag.d.ts +16 -0
  17. package/dist/NamirasoftPaymentServerCardTag.js +62 -0
  18. package/dist/NamirasoftPaymentServerCardTag.js.map +1 -0
  19. package/dist/NamirasoftPaymentServerHealthz.d.ts +6 -0
  20. package/dist/NamirasoftPaymentServerHealthz.js +28 -0
  21. package/dist/NamirasoftPaymentServerHealthz.js.map +1 -0
  22. package/dist/NamirasoftPaymentServerInvoice.d.ts +16 -0
  23. package/dist/NamirasoftPaymentServerInvoice.js +61 -0
  24. package/dist/NamirasoftPaymentServerInvoice.js.map +1 -0
  25. package/dist/NamirasoftPaymentServerOffer.d.ts +12 -0
  26. package/dist/NamirasoftPaymentServerOffer.js +39 -0
  27. package/dist/NamirasoftPaymentServerOffer.js.map +1 -0
  28. package/dist/NamirasoftPaymentServerOneTime.d.ts +12 -0
  29. package/dist/NamirasoftPaymentServerOneTime.js +29 -0
  30. package/dist/NamirasoftPaymentServerOneTime.js.map +1 -0
  31. package/dist/NamirasoftPaymentServerPayment.d.ts +12 -0
  32. package/dist/NamirasoftPaymentServerPayment.js +39 -0
  33. package/dist/NamirasoftPaymentServerPayment.js.map +1 -0
  34. package/dist/NamirasoftPaymentServerSalesItem.d.ts +12 -0
  35. package/dist/NamirasoftPaymentServerSalesItem.js +39 -0
  36. package/dist/NamirasoftPaymentServerSalesItem.js.map +1 -0
  37. package/dist/NamirasoftPaymentServerSubscription.d.ts +20 -0
  38. package/dist/NamirasoftPaymentServerSubscription.js +54 -0
  39. package/dist/NamirasoftPaymentServerSubscription.js.map +1 -0
  40. package/dist/NamirasoftPaymentServerSubscriptionCategory.d.ts +16 -0
  41. package/dist/NamirasoftPaymentServerSubscriptionCategory.js +62 -0
  42. package/dist/NamirasoftPaymentServerSubscriptionCategory.js.map +1 -0
  43. package/dist/NamirasoftPaymentServerSubscriptionField.d.ts +16 -0
  44. package/dist/NamirasoftPaymentServerSubscriptionField.js +62 -0
  45. package/dist/NamirasoftPaymentServerSubscriptionField.js.map +1 -0
  46. package/dist/NamirasoftPaymentServerSubscriptionPaid.d.ts +12 -0
  47. package/dist/NamirasoftPaymentServerSubscriptionPaid.js +39 -0
  48. package/dist/NamirasoftPaymentServerSubscriptionPaid.js.map +1 -0
  49. package/dist/NamirasoftPaymentServerSubscriptionTag.d.ts +16 -0
  50. package/dist/NamirasoftPaymentServerSubscriptionTag.js +62 -0
  51. package/dist/NamirasoftPaymentServerSubscriptionTag.js.map +1 -0
  52. package/dist/NamirasoftPaymentServerValue.d.ts +6 -0
  53. package/dist/NamirasoftPaymentServerValue.js +29 -0
  54. package/dist/NamirasoftPaymentServerValue.js.map +1 -0
  55. package/dist/command/CardCategoryCommand.d.ts +4 -0
  56. package/dist/command/CardCategoryCommand.js +23 -0
  57. package/dist/command/CardCategoryCommand.js.map +1 -0
  58. package/dist/command/CardCategoryCreateCommand.d.ts +5 -0
  59. package/dist/command/CardCategoryCreateCommand.js +48 -0
  60. package/dist/command/CardCategoryCreateCommand.js.map +1 -0
  61. package/dist/command/CardCategoryDeleteCommand.d.ts +5 -0
  62. package/dist/command/CardCategoryDeleteCommand.js +37 -0
  63. package/dist/command/CardCategoryDeleteCommand.js.map +1 -0
  64. package/dist/command/CardCategoryGetCommand.d.ts +5 -0
  65. package/dist/command/CardCategoryGetCommand.js +37 -0
  66. package/dist/command/CardCategoryGetCommand.js.map +1 -0
  67. package/dist/command/CardCategoryListCommand.d.ts +5 -0
  68. package/dist/command/CardCategoryListCommand.js +37 -0
  69. package/dist/command/CardCategoryListCommand.js.map +1 -0
  70. package/dist/command/CardCategoryUpdateCommand.d.ts +5 -0
  71. package/dist/command/CardCategoryUpdateCommand.js +48 -0
  72. package/dist/command/CardCategoryUpdateCommand.js.map +1 -0
  73. package/dist/command/CardCommand.d.ts +4 -0
  74. package/dist/command/CardCommand.js +21 -0
  75. package/dist/command/CardCommand.js.map +1 -0
  76. package/dist/command/CardCreateCommand.d.ts +5 -0
  77. package/dist/command/CardCreateCommand.js +84 -0
  78. package/dist/command/CardCreateCommand.js.map +1 -0
  79. package/dist/command/CardDeleteCommand.d.ts +5 -0
  80. package/dist/command/CardDeleteCommand.js +37 -0
  81. package/dist/command/CardDeleteCommand.js.map +1 -0
  82. package/dist/command/CardFieldCommand.d.ts +4 -0
  83. package/dist/command/CardFieldCommand.js +23 -0
  84. package/dist/command/CardFieldCommand.js.map +1 -0
  85. package/dist/command/CardFieldCreateCommand.d.ts +5 -0
  86. package/dist/command/CardFieldCreateCommand.js +66 -0
  87. package/dist/command/CardFieldCreateCommand.js.map +1 -0
  88. package/dist/command/CardFieldDeleteCommand.d.ts +5 -0
  89. package/dist/command/CardFieldDeleteCommand.js +37 -0
  90. package/dist/command/CardFieldDeleteCommand.js.map +1 -0
  91. package/dist/command/CardFieldGetCommand.d.ts +5 -0
  92. package/dist/command/CardFieldGetCommand.js +37 -0
  93. package/dist/command/CardFieldGetCommand.js.map +1 -0
  94. package/dist/command/CardFieldListCommand.d.ts +5 -0
  95. package/dist/command/CardFieldListCommand.js +37 -0
  96. package/dist/command/CardFieldListCommand.js.map +1 -0
  97. package/dist/command/CardFieldUpdateCommand.d.ts +5 -0
  98. package/dist/command/CardFieldUpdateCommand.js +66 -0
  99. package/dist/command/CardFieldUpdateCommand.js.map +1 -0
  100. package/dist/command/CardGetCommand.d.ts +5 -0
  101. package/dist/command/CardGetCommand.js +37 -0
  102. package/dist/command/CardGetCommand.js.map +1 -0
  103. package/dist/command/CardListCommand.d.ts +5 -0
  104. package/dist/command/CardListCommand.js +37 -0
  105. package/dist/command/CardListCommand.js.map +1 -0
  106. package/dist/command/CardTagCommand.d.ts +4 -0
  107. package/dist/command/CardTagCommand.js +23 -0
  108. package/dist/command/CardTagCommand.js.map +1 -0
  109. package/dist/command/CardTagCreateCommand.d.ts +5 -0
  110. package/dist/command/CardTagCreateCommand.js +66 -0
  111. package/dist/command/CardTagCreateCommand.js.map +1 -0
  112. package/dist/command/CardTagDeleteCommand.d.ts +5 -0
  113. package/dist/command/CardTagDeleteCommand.js +37 -0
  114. package/dist/command/CardTagDeleteCommand.js.map +1 -0
  115. package/dist/command/CardTagGetCommand.d.ts +5 -0
  116. package/dist/command/CardTagGetCommand.js +37 -0
  117. package/dist/command/CardTagGetCommand.js.map +1 -0
  118. package/dist/command/CardTagListCommand.d.ts +5 -0
  119. package/dist/command/CardTagListCommand.js +37 -0
  120. package/dist/command/CardTagListCommand.js.map +1 -0
  121. package/dist/command/CardTagUpdateCommand.d.ts +5 -0
  122. package/dist/command/CardTagUpdateCommand.js +66 -0
  123. package/dist/command/CardTagUpdateCommand.js.map +1 -0
  124. package/dist/command/HealthzCommand.d.ts +4 -0
  125. package/dist/command/HealthzCommand.js +15 -0
  126. package/dist/command/HealthzCommand.js.map +1 -0
  127. package/dist/command/HealthzGetCommand.d.ts +5 -0
  128. package/dist/command/HealthzGetCommand.js +37 -0
  129. package/dist/command/HealthzGetCommand.js.map +1 -0
  130. package/dist/command/InvoiceCancelCommand.d.ts +5 -0
  131. package/dist/command/InvoiceCancelCommand.js +37 -0
  132. package/dist/command/InvoiceCancelCommand.js.map +1 -0
  133. package/dist/command/InvoiceCommand.d.ts +4 -0
  134. package/dist/command/InvoiceCommand.js +23 -0
  135. package/dist/command/InvoiceCommand.js.map +1 -0
  136. package/dist/command/InvoiceCreateCommand.d.ts +5 -0
  137. package/dist/command/InvoiceCreateCommand.js +111 -0
  138. package/dist/command/InvoiceCreateCommand.js.map +1 -0
  139. package/dist/command/InvoiceDeleteCommand.d.ts +5 -0
  140. package/dist/command/InvoiceDeleteCommand.js +37 -0
  141. package/dist/command/InvoiceDeleteCommand.js.map +1 -0
  142. package/dist/command/InvoiceGetCommand.d.ts +5 -0
  143. package/dist/command/InvoiceGetCommand.js +37 -0
  144. package/dist/command/InvoiceGetCommand.js.map +1 -0
  145. package/dist/command/InvoiceListCommand.d.ts +5 -0
  146. package/dist/command/InvoiceListCommand.js +37 -0
  147. package/dist/command/InvoiceListCommand.js.map +1 -0
  148. package/dist/command/OfferCommand.d.ts +4 -0
  149. package/dist/command/OfferCommand.js +17 -0
  150. package/dist/command/OfferCommand.js.map +1 -0
  151. package/dist/command/OfferGetCommand.d.ts +5 -0
  152. package/dist/command/OfferGetCommand.js +37 -0
  153. package/dist/command/OfferGetCommand.js.map +1 -0
  154. package/dist/command/OfferListCommand.d.ts +5 -0
  155. package/dist/command/OfferListCommand.js +37 -0
  156. package/dist/command/OfferListCommand.js.map +1 -0
  157. package/dist/command/OneTimeCheckoutCommand.d.ts +5 -0
  158. package/dist/command/OneTimeCheckoutCommand.js +75 -0
  159. package/dist/command/OneTimeCheckoutCommand.js.map +1 -0
  160. package/dist/command/OneTimeCommand.d.ts +4 -0
  161. package/dist/command/OneTimeCommand.js +15 -0
  162. package/dist/command/OneTimeCommand.js.map +1 -0
  163. package/dist/command/PaymentCommand.d.ts +4 -0
  164. package/dist/command/PaymentCommand.js +17 -0
  165. package/dist/command/PaymentCommand.js.map +1 -0
  166. package/dist/command/PaymentGetCommand.d.ts +5 -0
  167. package/dist/command/PaymentGetCommand.js +37 -0
  168. package/dist/command/PaymentGetCommand.js.map +1 -0
  169. package/dist/command/PaymentListCommand.d.ts +5 -0
  170. package/dist/command/PaymentListCommand.js +37 -0
  171. package/dist/command/PaymentListCommand.js.map +1 -0
  172. package/dist/command/SalesItemCommand.d.ts +4 -0
  173. package/dist/command/SalesItemCommand.js +17 -0
  174. package/dist/command/SalesItemCommand.js.map +1 -0
  175. package/dist/command/SalesItemGetCommand.d.ts +5 -0
  176. package/dist/command/SalesItemGetCommand.js +37 -0
  177. package/dist/command/SalesItemGetCommand.js.map +1 -0
  178. package/dist/command/SalesItemListCommand.d.ts +5 -0
  179. package/dist/command/SalesItemListCommand.js +37 -0
  180. package/dist/command/SalesItemListCommand.js.map +1 -0
  181. package/dist/command/SubscriptionCancelCommand.d.ts +5 -0
  182. package/dist/command/SubscriptionCancelCommand.js +37 -0
  183. package/dist/command/SubscriptionCancelCommand.js.map +1 -0
  184. package/dist/command/SubscriptionCategoryCommand.d.ts +4 -0
  185. package/dist/command/SubscriptionCategoryCommand.js +23 -0
  186. package/dist/command/SubscriptionCategoryCommand.js.map +1 -0
  187. package/dist/command/SubscriptionCategoryCreateCommand.d.ts +5 -0
  188. package/dist/command/SubscriptionCategoryCreateCommand.js +48 -0
  189. package/dist/command/SubscriptionCategoryCreateCommand.js.map +1 -0
  190. package/dist/command/SubscriptionCategoryDeleteCommand.d.ts +5 -0
  191. package/dist/command/SubscriptionCategoryDeleteCommand.js +37 -0
  192. package/dist/command/SubscriptionCategoryDeleteCommand.js.map +1 -0
  193. package/dist/command/SubscriptionCategoryGetCommand.d.ts +5 -0
  194. package/dist/command/SubscriptionCategoryGetCommand.js +37 -0
  195. package/dist/command/SubscriptionCategoryGetCommand.js.map +1 -0
  196. package/dist/command/SubscriptionCategoryListCommand.d.ts +5 -0
  197. package/dist/command/SubscriptionCategoryListCommand.js +37 -0
  198. package/dist/command/SubscriptionCategoryListCommand.js.map +1 -0
  199. package/dist/command/SubscriptionCategoryUpdateCommand.d.ts +5 -0
  200. package/dist/command/SubscriptionCategoryUpdateCommand.js +48 -0
  201. package/dist/command/SubscriptionCategoryUpdateCommand.js.map +1 -0
  202. package/dist/command/SubscriptionCheckoutCommand.d.ts +5 -0
  203. package/dist/command/SubscriptionCheckoutCommand.js +75 -0
  204. package/dist/command/SubscriptionCheckoutCommand.js.map +1 -0
  205. package/dist/command/SubscriptionCommand.d.ts +4 -0
  206. package/dist/command/SubscriptionCommand.js +21 -0
  207. package/dist/command/SubscriptionCommand.js.map +1 -0
  208. package/dist/command/SubscriptionFieldCommand.d.ts +4 -0
  209. package/dist/command/SubscriptionFieldCommand.js +23 -0
  210. package/dist/command/SubscriptionFieldCommand.js.map +1 -0
  211. package/dist/command/SubscriptionFieldCreateCommand.d.ts +5 -0
  212. package/dist/command/SubscriptionFieldCreateCommand.js +66 -0
  213. package/dist/command/SubscriptionFieldCreateCommand.js.map +1 -0
  214. package/dist/command/SubscriptionFieldDeleteCommand.d.ts +5 -0
  215. package/dist/command/SubscriptionFieldDeleteCommand.js +37 -0
  216. package/dist/command/SubscriptionFieldDeleteCommand.js.map +1 -0
  217. package/dist/command/SubscriptionFieldGetCommand.d.ts +5 -0
  218. package/dist/command/SubscriptionFieldGetCommand.js +37 -0
  219. package/dist/command/SubscriptionFieldGetCommand.js.map +1 -0
  220. package/dist/command/SubscriptionFieldListCommand.d.ts +5 -0
  221. package/dist/command/SubscriptionFieldListCommand.js +37 -0
  222. package/dist/command/SubscriptionFieldListCommand.js.map +1 -0
  223. package/dist/command/SubscriptionFieldUpdateCommand.d.ts +5 -0
  224. package/dist/command/SubscriptionFieldUpdateCommand.js +66 -0
  225. package/dist/command/SubscriptionFieldUpdateCommand.js.map +1 -0
  226. package/dist/command/SubscriptionGetCommand.d.ts +5 -0
  227. package/dist/command/SubscriptionGetCommand.js +37 -0
  228. package/dist/command/SubscriptionGetCommand.js.map +1 -0
  229. package/dist/command/SubscriptionListCommand.d.ts +5 -0
  230. package/dist/command/SubscriptionListCommand.js +37 -0
  231. package/dist/command/SubscriptionListCommand.js.map +1 -0
  232. package/dist/command/SubscriptionPaidCommand.d.ts +4 -0
  233. package/dist/command/SubscriptionPaidCommand.js +17 -0
  234. package/dist/command/SubscriptionPaidCommand.js.map +1 -0
  235. package/dist/command/SubscriptionPaidGetCommand.d.ts +5 -0
  236. package/dist/command/SubscriptionPaidGetCommand.js +37 -0
  237. package/dist/command/SubscriptionPaidGetCommand.js.map +1 -0
  238. package/dist/command/SubscriptionPaidListCommand.d.ts +5 -0
  239. package/dist/command/SubscriptionPaidListCommand.js +37 -0
  240. package/dist/command/SubscriptionPaidListCommand.js.map +1 -0
  241. package/dist/command/SubscriptionTagCommand.d.ts +4 -0
  242. package/dist/command/SubscriptionTagCommand.js +23 -0
  243. package/dist/command/SubscriptionTagCommand.js.map +1 -0
  244. package/dist/command/SubscriptionTagCreateCommand.d.ts +5 -0
  245. package/dist/command/SubscriptionTagCreateCommand.js +66 -0
  246. package/dist/command/SubscriptionTagCreateCommand.js.map +1 -0
  247. package/dist/command/SubscriptionTagDeleteCommand.d.ts +5 -0
  248. package/dist/command/SubscriptionTagDeleteCommand.js +37 -0
  249. package/dist/command/SubscriptionTagDeleteCommand.js.map +1 -0
  250. package/dist/command/SubscriptionTagGetCommand.d.ts +5 -0
  251. package/dist/command/SubscriptionTagGetCommand.js +37 -0
  252. package/dist/command/SubscriptionTagGetCommand.js.map +1 -0
  253. package/dist/command/SubscriptionTagListCommand.d.ts +5 -0
  254. package/dist/command/SubscriptionTagListCommand.js +37 -0
  255. package/dist/command/SubscriptionTagListCommand.js.map +1 -0
  256. package/dist/command/SubscriptionTagUpdateCommand.d.ts +5 -0
  257. package/dist/command/SubscriptionTagUpdateCommand.js +66 -0
  258. package/dist/command/SubscriptionTagUpdateCommand.js.map +1 -0
  259. package/dist/command/ValueCommand.d.ts +4 -0
  260. package/dist/command/ValueCommand.js +15 -0
  261. package/dist/command/ValueCommand.js.map +1 -0
  262. package/dist/command/ValueListCommand.d.ts +5 -0
  263. package/dist/command/ValueListCommand.js +37 -0
  264. package/dist/command/ValueListCommand.js.map +1 -0
  265. package/dist/command/cli.d.ts +2 -0
  266. package/dist/command/cli.js +42 -0
  267. package/dist/command/cli.js.map +1 -0
  268. package/dist/enum/GatewayType.d.ts +3 -0
  269. package/dist/enum/GatewayType.js +8 -0
  270. package/dist/enum/GatewayType.js.map +1 -0
  271. package/dist/enum/OfferSubscriptionDurationUnit.d.ts +6 -0
  272. package/dist/enum/OfferSubscriptionDurationUnit.js +11 -0
  273. package/dist/enum/OfferSubscriptionDurationUnit.js.map +1 -0
  274. package/dist/enum/PaymentGateway.d.ts +3 -0
  275. package/dist/enum/PaymentGateway.js +8 -0
  276. package/dist/enum/PaymentGateway.js.map +1 -0
  277. package/dist/enum/PaymentStatus.d.ts +6 -0
  278. package/dist/enum/PaymentStatus.js +11 -0
  279. package/dist/enum/PaymentStatus.js.map +1 -0
  280. package/dist/enum/SalesItemMethod.d.ts +5 -0
  281. package/dist/enum/SalesItemMethod.js +10 -0
  282. package/dist/enum/SalesItemMethod.js.map +1 -0
  283. package/dist/enum/SalesItemOnetimeExpireUnit.d.ts +7 -0
  284. package/dist/enum/SalesItemOnetimeExpireUnit.js +12 -0
  285. package/dist/enum/SalesItemOnetimeExpireUnit.js.map +1 -0
  286. package/dist/enum/SalesItemOnetimeLimitUnit.d.ts +7 -0
  287. package/dist/enum/SalesItemOnetimeLimitUnit.js +12 -0
  288. package/dist/enum/SalesItemOnetimeLimitUnit.js.map +1 -0
  289. package/dist/enum/SubscriptionGateway.d.ts +3 -0
  290. package/dist/enum/SubscriptionGateway.js +8 -0
  291. package/dist/enum/SubscriptionGateway.js.map +1 -0
  292. package/dist/enum/SubscriptionStatus.d.ts +11 -0
  293. package/dist/enum/SubscriptionStatus.js +16 -0
  294. package/dist/enum/SubscriptionStatus.js.map +1 -0
  295. package/dist/index.d.ts +129 -0
  296. package/dist/index.js +146 -0
  297. package/dist/index.js.map +1 -0
  298. package/dist/meta/CardCategoryMetaTable.d.ts +10 -0
  299. package/dist/meta/CardCategoryMetaTable.js +18 -0
  300. package/dist/meta/CardCategoryMetaTable.js.map +1 -0
  301. package/dist/meta/CardFieldMetaTable.d.ts +12 -0
  302. package/dist/meta/CardFieldMetaTable.js +20 -0
  303. package/dist/meta/CardFieldMetaTable.js.map +1 -0
  304. package/dist/meta/CardMetaTable.d.ts +10 -0
  305. package/dist/meta/CardMetaTable.js +18 -0
  306. package/dist/meta/CardMetaTable.js.map +1 -0
  307. package/dist/meta/CardTagMetaTable.d.ts +12 -0
  308. package/dist/meta/CardTagMetaTable.js +20 -0
  309. package/dist/meta/CardTagMetaTable.js.map +1 -0
  310. package/dist/meta/InvoiceMetaTable.d.ts +20 -0
  311. package/dist/meta/InvoiceMetaTable.js +28 -0
  312. package/dist/meta/InvoiceMetaTable.js.map +1 -0
  313. package/dist/meta/MetaDatabase.d.ts +28 -0
  314. package/dist/meta/MetaDatabase.js +35 -0
  315. package/dist/meta/MetaDatabase.js.map +1 -0
  316. package/dist/meta/OfferMetaTable.d.ts +16 -0
  317. package/dist/meta/OfferMetaTable.js +24 -0
  318. package/dist/meta/OfferMetaTable.js.map +1 -0
  319. package/dist/meta/PaymentMetaTable.d.ts +18 -0
  320. package/dist/meta/PaymentMetaTable.js +26 -0
  321. package/dist/meta/PaymentMetaTable.js.map +1 -0
  322. package/dist/meta/SalesItemMetaTable.d.ts +17 -0
  323. package/dist/meta/SalesItemMetaTable.js +25 -0
  324. package/dist/meta/SalesItemMetaTable.js.map +1 -0
  325. package/dist/meta/SubscriptionCategoryMetaTable.d.ts +10 -0
  326. package/dist/meta/SubscriptionCategoryMetaTable.js +18 -0
  327. package/dist/meta/SubscriptionCategoryMetaTable.js.map +1 -0
  328. package/dist/meta/SubscriptionFieldMetaTable.d.ts +12 -0
  329. package/dist/meta/SubscriptionFieldMetaTable.js +20 -0
  330. package/dist/meta/SubscriptionFieldMetaTable.js.map +1 -0
  331. package/dist/meta/SubscriptionMetaTable.d.ts +14 -0
  332. package/dist/meta/SubscriptionMetaTable.js +22 -0
  333. package/dist/meta/SubscriptionMetaTable.js.map +1 -0
  334. package/dist/meta/SubscriptionTagMetaTable.d.ts +12 -0
  335. package/dist/meta/SubscriptionTagMetaTable.js +20 -0
  336. package/dist/meta/SubscriptionTagMetaTable.js.map +1 -0
  337. package/dist/row/CardCategoryRow.d.ts +6 -0
  338. package/dist/row/CardCategoryRow.js +3 -0
  339. package/dist/row/CardCategoryRow.js.map +1 -0
  340. package/dist/row/CardFieldRow.d.ts +8 -0
  341. package/dist/row/CardFieldRow.js +3 -0
  342. package/dist/row/CardFieldRow.js.map +1 -0
  343. package/dist/row/CardInputRow.d.ts +7 -0
  344. package/dist/row/CardInputRow.js +3 -0
  345. package/dist/row/CardInputRow.js.map +1 -0
  346. package/dist/row/CardRow.d.ts +6 -0
  347. package/dist/row/CardRow.js +3 -0
  348. package/dist/row/CardRow.js.map +1 -0
  349. package/dist/row/CardTagRow.d.ts +8 -0
  350. package/dist/row/CardTagRow.js +3 -0
  351. package/dist/row/CardTagRow.js.map +1 -0
  352. package/dist/row/EntityCategoryInputRow.d.ts +3 -0
  353. package/dist/row/EntityCategoryInputRow.js +3 -0
  354. package/dist/row/EntityCategoryInputRow.js.map +1 -0
  355. package/dist/row/EntityFieldInputRow.d.ts +5 -0
  356. package/dist/row/EntityFieldInputRow.js +3 -0
  357. package/dist/row/EntityFieldInputRow.js.map +1 -0
  358. package/dist/row/EntityTagInputRow.d.ts +5 -0
  359. package/dist/row/EntityTagInputRow.js +3 -0
  360. package/dist/row/EntityTagInputRow.js.map +1 -0
  361. package/dist/row/InvoiceInputRow.d.ts +11 -0
  362. package/dist/row/InvoiceInputRow.js +3 -0
  363. package/dist/row/InvoiceInputRow.js.map +1 -0
  364. package/dist/row/InvoiceItemInputRow.d.ts +8 -0
  365. package/dist/row/InvoiceItemInputRow.js +3 -0
  366. package/dist/row/InvoiceItemInputRow.js.map +1 -0
  367. package/dist/row/InvoiceRow.d.ts +16 -0
  368. package/dist/row/InvoiceRow.js +3 -0
  369. package/dist/row/InvoiceRow.js.map +1 -0
  370. package/dist/row/OfferRow.d.ts +13 -0
  371. package/dist/row/OfferRow.js +3 -0
  372. package/dist/row/OfferRow.js.map +1 -0
  373. package/dist/row/PaymentRow.d.ts +16 -0
  374. package/dist/row/PaymentRow.js +3 -0
  375. package/dist/row/PaymentRow.js.map +1 -0
  376. package/dist/row/SalesItemRow.d.ts +16 -0
  377. package/dist/row/SalesItemRow.js +3 -0
  378. package/dist/row/SalesItemRow.js.map +1 -0
  379. package/dist/row/SubscriptionCategoryRow.d.ts +6 -0
  380. package/dist/row/SubscriptionCategoryRow.js +3 -0
  381. package/dist/row/SubscriptionCategoryRow.js.map +1 -0
  382. package/dist/row/SubscriptionFieldRow.d.ts +8 -0
  383. package/dist/row/SubscriptionFieldRow.js +3 -0
  384. package/dist/row/SubscriptionFieldRow.js.map +1 -0
  385. package/dist/row/SubscriptionPaidRow.d.ts +10 -0
  386. package/dist/row/SubscriptionPaidRow.js +3 -0
  387. package/dist/row/SubscriptionPaidRow.js.map +1 -0
  388. package/dist/row/SubscriptionRow.d.ts +12 -0
  389. package/dist/row/SubscriptionRow.js +3 -0
  390. package/dist/row/SubscriptionRow.js.map +1 -0
  391. package/dist/row/SubscriptionTagRow.d.ts +8 -0
  392. package/dist/row/SubscriptionTagRow.js +3 -0
  393. package/dist/row/SubscriptionTagRow.js.map +1 -0
  394. package/logo.png +0 -0
  395. package/package.json +28 -0
  396. package/src/NamirasoftPaymentServer.ts +78 -0
  397. package/src/NamirasoftPaymentServerBase.ts +30 -0
  398. package/src/NamirasoftPaymentServerCard.ts +61 -0
  399. package/src/NamirasoftPaymentServerCardCategory.ts +68 -0
  400. package/src/NamirasoftPaymentServerCardField.ts +68 -0
  401. package/src/NamirasoftPaymentServerCardTag.ts +68 -0
  402. package/src/NamirasoftPaymentServerHealthz.ts +36 -0
  403. package/src/NamirasoftPaymentServerInvoice.ts +67 -0
  404. package/src/NamirasoftPaymentServerOffer.ts +47 -0
  405. package/src/NamirasoftPaymentServerOneTime.ts +38 -0
  406. package/src/NamirasoftPaymentServerPayment.ts +47 -0
  407. package/src/NamirasoftPaymentServerSalesItem.ts +47 -0
  408. package/src/NamirasoftPaymentServerSubscription.ts +61 -0
  409. package/src/NamirasoftPaymentServerSubscriptionCategory.ts +68 -0
  410. package/src/NamirasoftPaymentServerSubscriptionField.ts +68 -0
  411. package/src/NamirasoftPaymentServerSubscriptionPaid.ts +47 -0
  412. package/src/NamirasoftPaymentServerSubscriptionTag.ts +68 -0
  413. package/src/NamirasoftPaymentServerValue.ts +37 -0
  414. package/src/command/CardCategoryCommand.ts +40 -0
  415. package/src/command/CardCategoryCreateCommand.ts +55 -0
  416. package/src/command/CardCategoryDeleteCommand.ts +44 -0
  417. package/src/command/CardCategoryGetCommand.ts +44 -0
  418. package/src/command/CardCategoryListCommand.ts +44 -0
  419. package/src/command/CardCategoryUpdateCommand.ts +55 -0
  420. package/src/command/CardCommand.ts +38 -0
  421. package/src/command/CardCreateCommand.ts +91 -0
  422. package/src/command/CardDeleteCommand.ts +44 -0
  423. package/src/command/CardFieldCommand.ts +40 -0
  424. package/src/command/CardFieldCreateCommand.ts +73 -0
  425. package/src/command/CardFieldDeleteCommand.ts +44 -0
  426. package/src/command/CardFieldGetCommand.ts +44 -0
  427. package/src/command/CardFieldListCommand.ts +44 -0
  428. package/src/command/CardFieldUpdateCommand.ts +73 -0
  429. package/src/command/CardGetCommand.ts +44 -0
  430. package/src/command/CardListCommand.ts +44 -0
  431. package/src/command/CardTagCommand.ts +40 -0
  432. package/src/command/CardTagCreateCommand.ts +73 -0
  433. package/src/command/CardTagDeleteCommand.ts +44 -0
  434. package/src/command/CardTagGetCommand.ts +44 -0
  435. package/src/command/CardTagListCommand.ts +44 -0
  436. package/src/command/CardTagUpdateCommand.ts +73 -0
  437. package/src/command/HealthzCommand.ts +32 -0
  438. package/src/command/HealthzGetCommand.ts +44 -0
  439. package/src/command/InvoiceCancelCommand.ts +44 -0
  440. package/src/command/InvoiceCommand.ts +40 -0
  441. package/src/command/InvoiceCreateCommand.ts +118 -0
  442. package/src/command/InvoiceDeleteCommand.ts +44 -0
  443. package/src/command/InvoiceGetCommand.ts +44 -0
  444. package/src/command/InvoiceListCommand.ts +44 -0
  445. package/src/command/OfferCommand.ts +34 -0
  446. package/src/command/OfferGetCommand.ts +44 -0
  447. package/src/command/OfferListCommand.ts +44 -0
  448. package/src/command/OneTimeCheckoutCommand.ts +82 -0
  449. package/src/command/OneTimeCommand.ts +32 -0
  450. package/src/command/PaymentCommand.ts +34 -0
  451. package/src/command/PaymentGetCommand.ts +44 -0
  452. package/src/command/PaymentListCommand.ts +44 -0
  453. package/src/command/SalesItemCommand.ts +34 -0
  454. package/src/command/SalesItemGetCommand.ts +44 -0
  455. package/src/command/SalesItemListCommand.ts +44 -0
  456. package/src/command/SubscriptionCancelCommand.ts +44 -0
  457. package/src/command/SubscriptionCategoryCommand.ts +40 -0
  458. package/src/command/SubscriptionCategoryCreateCommand.ts +55 -0
  459. package/src/command/SubscriptionCategoryDeleteCommand.ts +44 -0
  460. package/src/command/SubscriptionCategoryGetCommand.ts +44 -0
  461. package/src/command/SubscriptionCategoryListCommand.ts +44 -0
  462. package/src/command/SubscriptionCategoryUpdateCommand.ts +55 -0
  463. package/src/command/SubscriptionCheckoutCommand.ts +82 -0
  464. package/src/command/SubscriptionCommand.ts +38 -0
  465. package/src/command/SubscriptionFieldCommand.ts +40 -0
  466. package/src/command/SubscriptionFieldCreateCommand.ts +73 -0
  467. package/src/command/SubscriptionFieldDeleteCommand.ts +44 -0
  468. package/src/command/SubscriptionFieldGetCommand.ts +44 -0
  469. package/src/command/SubscriptionFieldListCommand.ts +44 -0
  470. package/src/command/SubscriptionFieldUpdateCommand.ts +73 -0
  471. package/src/command/SubscriptionGetCommand.ts +44 -0
  472. package/src/command/SubscriptionListCommand.ts +44 -0
  473. package/src/command/SubscriptionPaidCommand.ts +34 -0
  474. package/src/command/SubscriptionPaidGetCommand.ts +44 -0
  475. package/src/command/SubscriptionPaidListCommand.ts +44 -0
  476. package/src/command/SubscriptionTagCommand.ts +40 -0
  477. package/src/command/SubscriptionTagCreateCommand.ts +73 -0
  478. package/src/command/SubscriptionTagDeleteCommand.ts +44 -0
  479. package/src/command/SubscriptionTagGetCommand.ts +44 -0
  480. package/src/command/SubscriptionTagListCommand.ts +44 -0
  481. package/src/command/SubscriptionTagUpdateCommand.ts +73 -0
  482. package/src/command/ValueCommand.ts +32 -0
  483. package/src/command/ValueListCommand.ts +44 -0
  484. package/src/command/cli.ts +61 -0
  485. package/src/enum/GatewayType.ts +24 -0
  486. package/src/enum/OfferSubscriptionDurationUnit.ts +27 -0
  487. package/src/enum/PaymentGateway.ts +24 -0
  488. package/src/enum/PaymentStatus.ts +27 -0
  489. package/src/enum/SalesItemMethod.ts +26 -0
  490. package/src/enum/SalesItemOnetimeExpireUnit.ts +28 -0
  491. package/src/enum/SalesItemOnetimeLimitUnit.ts +28 -0
  492. package/src/enum/SubscriptionGateway.ts +24 -0
  493. package/src/enum/SubscriptionStatus.ts +32 -0
  494. package/src/index.ts +149 -0
  495. package/src/meta/CardCategoryMetaTable.ts +41 -0
  496. package/src/meta/CardFieldMetaTable.ts +45 -0
  497. package/src/meta/CardMetaTable.ts +41 -0
  498. package/src/meta/CardTagMetaTable.ts +45 -0
  499. package/src/meta/InvoiceMetaTable.ts +61 -0
  500. package/src/meta/MetaDatabase.ts +64 -0
  501. package/src/meta/OfferMetaTable.ts +53 -0
  502. package/src/meta/PaymentMetaTable.ts +57 -0
  503. package/src/meta/SalesItemMetaTable.ts +55 -0
  504. package/src/meta/SubscriptionCategoryMetaTable.ts +41 -0
  505. package/src/meta/SubscriptionFieldMetaTable.ts +45 -0
  506. package/src/meta/SubscriptionMetaTable.ts +49 -0
  507. package/src/meta/SubscriptionTagMetaTable.ts +45 -0
  508. package/src/row/CardCategoryRow.ts +27 -0
  509. package/src/row/CardFieldRow.ts +29 -0
  510. package/src/row/CardInputRow.ts +28 -0
  511. package/src/row/CardRow.ts +27 -0
  512. package/src/row/CardTagRow.ts +29 -0
  513. package/src/row/EntityCategoryInputRow.ts +24 -0
  514. package/src/row/EntityFieldInputRow.ts +26 -0
  515. package/src/row/EntityTagInputRow.ts +26 -0
  516. package/src/row/InvoiceInputRow.ts +33 -0
  517. package/src/row/InvoiceItemInputRow.ts +29 -0
  518. package/src/row/InvoiceRow.ts +37 -0
  519. package/src/row/OfferRow.ts +35 -0
  520. package/src/row/PaymentRow.ts +38 -0
  521. package/src/row/SalesItemRow.ts +38 -0
  522. package/src/row/SubscriptionCategoryRow.ts +27 -0
  523. package/src/row/SubscriptionFieldRow.ts +29 -0
  524. package/src/row/SubscriptionPaidRow.ts +31 -0
  525. package/src/row/SubscriptionRow.ts +34 -0
  526. package/src/row/SubscriptionTagRow.ts +29 -0
  527. package/tsconfig.json +42 -0
@@ -0,0 +1,5 @@
1
+ export type EntityFieldInputRow = {
2
+ field_id: string;
3
+ value: string;
4
+ description: (string | null);
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=EntityFieldInputRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityFieldInputRow.js","sourceRoot":"","sources":["../../src/row/EntityFieldInputRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export type EntityTagInputRow = {
2
+ name: string;
3
+ value: string;
4
+ description: (string | null);
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=EntityTagInputRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityTagInputRow.js","sourceRoot":"","sources":["../../src/row/EntityTagInputRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { InvoiceItemInputRow } from "./InvoiceItemInputRow";
2
+ export type InvoiceInputRow = {
3
+ product_id: (string | null);
4
+ transaction_id: (number | null);
5
+ subscription_id: (string | null);
6
+ title: string;
7
+ refund: boolean;
8
+ currency: string;
9
+ description: (string | null);
10
+ invoice_items: InvoiceItemInputRow[];
11
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InvoiceInputRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvoiceInputRow.js","sourceRoot":"","sources":["../../src/row/InvoiceInputRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export type InvoiceItemInputRow = {
2
+ sales_item_id: (string | null);
3
+ offer_id: (string | null);
4
+ name: string;
5
+ quantity: number;
6
+ description: (string | null);
7
+ price: (number | null);
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InvoiceItemInputRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvoiceItemInputRow.js","sourceRoot":"","sources":["../../src/row/InvoiceItemInputRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ export type InvoiceRow = {
2
+ id: string;
3
+ user_id: string;
4
+ product_id: (string | null);
5
+ transaction_id: (number | null);
6
+ subscription_id: (string | null);
7
+ title: string;
8
+ refund: boolean;
9
+ canceled: boolean;
10
+ currency: string;
11
+ total: number;
12
+ total_paid: number;
13
+ total_refunded: number;
14
+ total_balance: number;
15
+ description: (string | null);
16
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InvoiceRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvoiceRow.js","sourceRoot":"","sources":["../../src/row/InvoiceRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { OfferSubscriptionDurationUnit } from "../enum/OfferSubscriptionDurationUnit";
2
+ export type OfferRow = {
3
+ id: string;
4
+ product_id: string;
5
+ sales_item_id: string;
6
+ name: string;
7
+ subscription_duration_unit: OfferSubscriptionDurationUnit;
8
+ subscription_duration_value: number;
9
+ applies_at: (Date | null);
10
+ expires_at: (Date | null);
11
+ recommended: boolean;
12
+ description: string;
13
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OfferRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfferRow.js","sourceRoot":"","sources":["../../src/row/OfferRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { PaymentGateway } from "../enum/PaymentGateway";
2
+ import { PaymentStatus } from "../enum/PaymentStatus";
3
+ export type PaymentRow = {
4
+ id: string;
5
+ user_id: string;
6
+ product_id: (string | null);
7
+ transaction_id: (number | null);
8
+ invoice_id: (number | null);
9
+ subscription_id: (number | null);
10
+ gateway: PaymentGateway;
11
+ refund: boolean;
12
+ status: PaymentStatus;
13
+ currency: string;
14
+ amount: number;
15
+ description: (string | null);
16
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=PaymentRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentRow.js","sourceRoot":"","sources":["../../src/row/PaymentRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { SalesItemMethod } from "../enum/SalesItemMethod";
2
+ import { SalesItemOnetimeExpireUnit } from "../enum/SalesItemOnetimeExpireUnit";
3
+ import { SalesItemOnetimeLimitUnit } from "../enum/SalesItemOnetimeLimitUnit";
4
+ export type SalesItemRow = {
5
+ id: string;
6
+ product_id: string;
7
+ name: string;
8
+ method: SalesItemMethod;
9
+ onetime_consumable: boolean;
10
+ onetime_expire_unit: SalesItemOnetimeExpireUnit;
11
+ onetime_expire_value: number;
12
+ onetime_limit_unit: SalesItemOnetimeLimitUnit;
13
+ onetime_limit_value: number;
14
+ onetime_limit_count: string;
15
+ description: string;
16
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SalesItemRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SalesItemRow.js","sourceRoot":"","sources":["../../src/row/SalesItemRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type SubscriptionCategoryRow = {
2
+ id: number;
3
+ user_id: string;
4
+ entity_id: string;
5
+ category_id: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SubscriptionCategoryRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionCategoryRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionCategoryRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export type SubscriptionFieldRow = {
2
+ id: number;
3
+ user_id: string;
4
+ entity_id: string;
5
+ field_id: string;
6
+ value: string;
7
+ description: (string | null);
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SubscriptionFieldRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionFieldRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionFieldRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export type SubscriptionPaidRow = {
2
+ id: number;
3
+ user_id: string;
4
+ product_id: string;
5
+ invoice_id: string;
6
+ sales_item_id: string;
7
+ offer_id: string;
8
+ applies_at: Date;
9
+ expires_at: Date;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SubscriptionPaidRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionPaidRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionPaidRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { SubscriptionGateway } from "../enum/SubscriptionGateway";
2
+ import { SubscriptionStatus } from "../enum/SubscriptionStatus";
3
+ export type SubscriptionRow = {
4
+ id: string;
5
+ user_id: string;
6
+ product_id: string;
7
+ offer_id: string;
8
+ from_subscription_id: (string | null);
9
+ gateway: SubscriptionGateway;
10
+ status: SubscriptionStatus;
11
+ description: string;
12
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SubscriptionRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export type SubscriptionTagRow = {
2
+ id: number;
3
+ user_id: string;
4
+ entity_id: string;
5
+ name: string;
6
+ value: string;
7
+ description: (string | null);
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SubscriptionTagRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionTagRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionTagRow.ts"],"names":[],"mappings":""}
package/logo.png ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "namirasoft-payment",
3
+ "title": "Namirasoft Payment NPM Package",
4
+ "description": "Namira Software Corporation Payment NPM Package",
5
+ "icon": "logo.png",
6
+ "logo": "https://static.namirasoft.com/image/namirasoft/payment/logo/name.png",
7
+ "language": "ts",
8
+ "framework": "npm",
9
+ "application": "package",
10
+ "private": false,
11
+ "version": "1.3.0",
12
+ "author": "Amir Abolhasani",
13
+ "license": "MIT",
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "scripts": {
17
+ "build": ""
18
+ },
19
+ "dependencies": {
20
+ "namirasoft-core": "^1.3.68",
21
+ "namirasoft-site": "^1.3.5",
22
+ "namirasoft-node-cli": "^1.3.8",
23
+ "namirasoft-account": "^1.3.31"
24
+ },
25
+ "bin": {
26
+ "ns-payment": "./dist/command/cli.js"
27
+ }
28
+ }
@@ -0,0 +1,78 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { NamirasoftPaymentServerCard } from "./NamirasoftPaymentServerCard";
22
+ import { NamirasoftPaymentServerCardCategory } from "./NamirasoftPaymentServerCardCategory";
23
+ import { NamirasoftPaymentServerCardField } from "./NamirasoftPaymentServerCardField";
24
+ import { NamirasoftPaymentServerCardTag } from "./NamirasoftPaymentServerCardTag";
25
+ import { NamirasoftPaymentServerHealthz } from "./NamirasoftPaymentServerHealthz";
26
+ import { NamirasoftPaymentServerInvoice } from "./NamirasoftPaymentServerInvoice";
27
+ import { NamirasoftPaymentServerOffer } from "./NamirasoftPaymentServerOffer";
28
+ import { NamirasoftPaymentServerOneTime } from "./NamirasoftPaymentServerOneTime";
29
+ import { NamirasoftPaymentServerPayment } from "./NamirasoftPaymentServerPayment";
30
+ import { NamirasoftPaymentServerSalesItem } from "./NamirasoftPaymentServerSalesItem";
31
+ import { NamirasoftPaymentServerSubscription } from "./NamirasoftPaymentServerSubscription";
32
+ import { NamirasoftPaymentServerSubscriptionCategory } from "./NamirasoftPaymentServerSubscriptionCategory";
33
+ import { NamirasoftPaymentServerSubscriptionField } from "./NamirasoftPaymentServerSubscriptionField";
34
+ import { NamirasoftPaymentServerSubscriptionPaid } from "./NamirasoftPaymentServerSubscriptionPaid";
35
+ import { NamirasoftPaymentServerSubscriptionTag } from "./NamirasoftPaymentServerSubscriptionTag";
36
+ import { NamirasoftPaymentServerValue } from "./NamirasoftPaymentServerValue";
37
+ import { TokenManager } from "namirasoft-account";
38
+
39
+ export class NamirasoftPaymentServer
40
+ {
41
+ manager: TokenManager;
42
+ healthz: NamirasoftPaymentServerHealthz;
43
+ value: NamirasoftPaymentServerValue;
44
+ card: NamirasoftPaymentServerCard;
45
+ cardcategory: NamirasoftPaymentServerCardCategory;
46
+ cardfield: NamirasoftPaymentServerCardField;
47
+ cardtag: NamirasoftPaymentServerCardTag;
48
+ invoice: NamirasoftPaymentServerInvoice;
49
+ offer: NamirasoftPaymentServerOffer;
50
+ onetime: NamirasoftPaymentServerOneTime;
51
+ payment: NamirasoftPaymentServerPayment;
52
+ salesitem: NamirasoftPaymentServerSalesItem;
53
+ subscriptionpaid: NamirasoftPaymentServerSubscriptionPaid;
54
+ subscription: NamirasoftPaymentServerSubscription;
55
+ subscriptioncategory: NamirasoftPaymentServerSubscriptionCategory;
56
+ subscriptionfield: NamirasoftPaymentServerSubscriptionField;
57
+ subscriptiontag: NamirasoftPaymentServerSubscriptionTag;
58
+ constructor(manager: TokenManager, onError: (error: Error) => void)
59
+ {
60
+ this.manager = manager;
61
+ this.healthz = new NamirasoftPaymentServerHealthz(manager, onError);
62
+ this.value = new NamirasoftPaymentServerValue(manager, onError);
63
+ this.card = new NamirasoftPaymentServerCard(manager, onError);
64
+ this.cardcategory = new NamirasoftPaymentServerCardCategory(manager, onError);
65
+ this.cardfield = new NamirasoftPaymentServerCardField(manager, onError);
66
+ this.cardtag = new NamirasoftPaymentServerCardTag(manager, onError);
67
+ this.invoice = new NamirasoftPaymentServerInvoice(manager, onError);
68
+ this.offer = new NamirasoftPaymentServerOffer(manager, onError);
69
+ this.onetime = new NamirasoftPaymentServerOneTime(manager, onError);
70
+ this.payment = new NamirasoftPaymentServerPayment(manager, onError);
71
+ this.salesitem = new NamirasoftPaymentServerSalesItem(manager, onError);
72
+ this.subscriptionpaid = new NamirasoftPaymentServerSubscriptionPaid(manager, onError);
73
+ this.subscription = new NamirasoftPaymentServerSubscription(manager, onError);
74
+ this.subscriptioncategory = new NamirasoftPaymentServerSubscriptionCategory(manager, onError);
75
+ this.subscriptionfield = new NamirasoftPaymentServerSubscriptionField(manager, onError);
76
+ this.subscriptiontag = new NamirasoftPaymentServerSubscriptionTag(manager, onError);
77
+ }
78
+ };
@@ -0,0 +1,30 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { NamirasoftServerBase } from "namirasoft-account";
22
+ import { TokenManager } from "namirasoft-account";
23
+
24
+ export class NamirasoftPaymentServerBase extends NamirasoftServerBase
25
+ {
26
+ constructor(manager: TokenManager, onError: (error: Error) => void)
27
+ {
28
+ super(`https://payment.namirasoft.com/api/v1`, `1.3.0`, manager, onError);
29
+ }
30
+ };
@@ -0,0 +1,61 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { CardInputRow } from "./row/CardInputRow";
22
+ import { CardRow } from "./row/CardRow";
23
+ import { FilterItem } from "namirasoft-core";
24
+ import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
25
+ import { TokenManager } from "namirasoft-account";
26
+
27
+ export class NamirasoftPaymentServerCard extends NamirasoftPaymentServerBase
28
+ {
29
+ constructor(manager: TokenManager, onError: (error: Error) => void)
30
+ {
31
+ super(manager, onError);
32
+ this.List = this.List.bind(this);
33
+ this.Get = this.Get.bind(this);
34
+ this.Create = this.Create.bind(this);
35
+ this.Delete = this.Delete.bind(this);
36
+ }
37
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: CardRow[], count: (number | null) }>
38
+ {
39
+ let filters_string_value: string = FilterItem.stringify(filters);
40
+ let path = `/card/list`;
41
+ let { data } = await this._get<{ rows: CardRow[], count: (number | null) }>(path, { filters: filters_string_value, page, size });
42
+ return data;
43
+ }
44
+ async Get(id: string): Promise<CardRow>
45
+ {
46
+ let path = `/card/${id}`;
47
+ let { data } = await this._get<CardRow>(path, {});
48
+ return data;
49
+ }
50
+ async Create(body: CardInputRow): Promise<CardRow>
51
+ {
52
+ let path = `/card`;
53
+ let { data } = await this._post<CardRow>(path, {}, body);
54
+ return data;
55
+ }
56
+ async Delete(id: number): Promise<void>
57
+ {
58
+ let path = `/card/${id}`;
59
+ await this._delete<void>(path, {});
60
+ }
61
+ };
@@ -0,0 +1,68 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { CardCategoryRow } from "./row/CardCategoryRow";
22
+ import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
23
+ import { FilterItem } from "namirasoft-core";
24
+ import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
25
+ import { TokenManager } from "namirasoft-account";
26
+
27
+ export class NamirasoftPaymentServerCardCategory extends NamirasoftPaymentServerBase
28
+ {
29
+ constructor(manager: TokenManager, onError: (error: Error) => void)
30
+ {
31
+ super(manager, onError);
32
+ this.Create = this.Create.bind(this);
33
+ this.Delete = this.Delete.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.List = this.List.bind(this);
36
+ this.Update = this.Update.bind(this);
37
+ }
38
+ async Create(body: EntityCategoryInputRow): Promise<CardCategoryRow>
39
+ {
40
+ let path = `card/category`;
41
+ let { data } = await this._post<CardCategoryRow>(path, {}, body);
42
+ return data;
43
+ }
44
+ async Delete(id: string): Promise<void>
45
+ {
46
+ let path = `card/category/${id}`;
47
+ await this._delete<void>(path, {});
48
+ }
49
+ async Get(id: string): Promise<CardCategoryRow>
50
+ {
51
+ let path = `card/category/${id}`;
52
+ let { data } = await this._get<CardCategoryRow>(path, {});
53
+ return data;
54
+ }
55
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: CardCategoryRow[], count: (number | null) }>
56
+ {
57
+ let filters_string_value: string = FilterItem.stringify(filters);
58
+ let path = `card/category/list`;
59
+ let { data } = await this._get<{ rows: CardCategoryRow[], count: (number | null) }>(path, { filters: filters_string_value, page, size });
60
+ return data;
61
+ }
62
+ async Update(id: string, body: EntityCategoryInputRow): Promise<CardCategoryRow>
63
+ {
64
+ let path = `card/category/${id}`;
65
+ let { data } = await this._put<CardCategoryRow>(path, {}, body);
66
+ return data;
67
+ }
68
+ };
@@ -0,0 +1,68 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any changed is reqired, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { CardFieldRow } from "./row/CardFieldRow";
22
+ import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
23
+ import { FilterItem } from "namirasoft-core";
24
+ import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
25
+ import { TokenManager } from "namirasoft-account";
26
+
27
+ export class NamirasoftPaymentServerCardField extends NamirasoftPaymentServerBase
28
+ {
29
+ constructor(manager: TokenManager, onError: (error: Error) => void)
30
+ {
31
+ super(manager, onError);
32
+ this.Create = this.Create.bind(this);
33
+ this.Delete = this.Delete.bind(this);
34
+ this.Get = this.Get.bind(this);
35
+ this.List = this.List.bind(this);
36
+ this.Update = this.Update.bind(this);
37
+ }
38
+ async Create(body: EntityFieldInputRow): Promise<CardFieldRow>
39
+ {
40
+ let path = `card/field`;
41
+ let { data } = await this._post<CardFieldRow>(path, {}, body);
42
+ return data;
43
+ }
44
+ async Delete(id: string): Promise<void>
45
+ {
46
+ let path = `card/field/${id}`;
47
+ await this._delete<void>(path, {});
48
+ }
49
+ async Get(id: string): Promise<CardFieldRow>
50
+ {
51
+ let path = `card/field/${id}`;
52
+ let { data } = await this._get<CardFieldRow>(path, {});
53
+ return data;
54
+ }
55
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: CardFieldRow[], count: (number | null) }>
56
+ {
57
+ let filters_string_value: string = FilterItem.stringify(filters);
58
+ let path = `card/field/list`;
59
+ let { data } = await this._get<{ rows: CardFieldRow[], count: (number | null) }>(path, { filters: filters_string_value, page, size });
60
+ return data;
61
+ }
62
+ async Update(id: string, body: EntityFieldInputRow): Promise<CardFieldRow>
63
+ {
64
+ let path = `card/field/${id}`;
65
+ let { data } = await this._put<CardFieldRow>(path, {}, body);
66
+ return data;
67
+ }
68
+ };