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,73 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftPaymentServer } from "../NamirasoftPaymentServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class CardTagUpdateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], [
31
+ {
32
+ name: "name",
33
+ short: "",
34
+ description: "Provides the value of 'name' in body",
35
+ optional: false,
36
+ args: ["name"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "value",
41
+ short: "",
42
+ description: "Provides the value of 'value' in body",
43
+ optional: false,
44
+ args: ["value"],
45
+ defaults: [""]
46
+ },
47
+ {
48
+ name: "description",
49
+ short: "",
50
+ description: "Provides the value of 'description' in body",
51
+ optional: true,
52
+ args: ["description"],
53
+ defaults: [""]
54
+ }
55
+ ]);
56
+ }
57
+ override async exec()
58
+ {
59
+ let token = this.app.storage.getNSAToken();
60
+ if (token == null)
61
+ throw new Error("Token is not available. Please login first using:\nns-payment account config \nor \n{this.command} account login.");
62
+ let storage = new IStorageMemory();
63
+ let manager = new TokenManager(storage, () => { });
64
+ manager.setValue(token, false);
65
+ let server = new NamirasoftPaymentServer(manager, e => this.app.logger.error(e.message));
66
+ let ans = await server.cardtag.Update(this.arg_values[0], {
67
+ name: this.option_values.name,
68
+ value: this.option_values.value,
69
+ description: this.option_values.description
70
+ });
71
+ this.app.logger.success(JSON.stringify(ans));
72
+ }
73
+ };
@@ -0,0 +1,32 @@
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 { BaseNavigatorCommand } from "namirasoft-node-cli";
22
+ import { HealthzGetCommand } from "./HealthzGetCommand";
23
+
24
+ export class HealthzCommand extends BaseNavigatorCommand
25
+ {
26
+ constructor(argv: string[])
27
+ {
28
+ super(argv, {
29
+ "get": HealthzGetCommand,
30
+ });
31
+ }
32
+ };
@@ -0,0 +1,44 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftPaymentServer } from "../NamirasoftPaymentServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class HealthzGetCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, [], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-payment account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftPaymentServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.healthz.Get();
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };
@@ -0,0 +1,44 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftPaymentServer } from "../NamirasoftPaymentServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class InvoiceCancelCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-payment account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftPaymentServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.invoice.Cancel(this.arg_values[0]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };
@@ -0,0 +1,40 @@
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 { BaseNavigatorCommand } from "namirasoft-node-cli";
22
+ import { InvoiceCancelCommand } from "./InvoiceCancelCommand";
23
+ import { InvoiceCreateCommand } from "./InvoiceCreateCommand";
24
+ import { InvoiceDeleteCommand } from "./InvoiceDeleteCommand";
25
+ import { InvoiceGetCommand } from "./InvoiceGetCommand";
26
+ import { InvoiceListCommand } from "./InvoiceListCommand";
27
+
28
+ export class InvoiceCommand extends BaseNavigatorCommand
29
+ {
30
+ constructor(argv: string[])
31
+ {
32
+ super(argv, {
33
+ "list": InvoiceListCommand,
34
+ "get": InvoiceGetCommand,
35
+ "create": InvoiceCreateCommand,
36
+ "delete": InvoiceDeleteCommand,
37
+ "cancel": InvoiceCancelCommand,
38
+ });
39
+ }
40
+ };
@@ -0,0 +1,118 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftPaymentServer } from "../NamirasoftPaymentServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class InvoiceCreateCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, [], [
31
+ {
32
+ name: "product_id",
33
+ short: "",
34
+ description: "Provides the value of 'product_id' in body",
35
+ optional: true,
36
+ args: ["product_id"],
37
+ defaults: [""]
38
+ },
39
+ {
40
+ name: "transaction_id",
41
+ short: "",
42
+ description: "Provides the value of 'transaction_id' in body",
43
+ optional: true,
44
+ args: ["transaction_id"],
45
+ defaults: [""]
46
+ },
47
+ {
48
+ name: "subscription_id",
49
+ short: "",
50
+ description: "Provides the value of 'subscription_id' in body",
51
+ optional: true,
52
+ args: ["subscription_id"],
53
+ defaults: [""]
54
+ },
55
+ {
56
+ name: "title",
57
+ short: "",
58
+ description: "Provides the value of 'title' in body",
59
+ optional: false,
60
+ args: ["title"],
61
+ defaults: [""]
62
+ },
63
+ {
64
+ name: "refund",
65
+ short: "",
66
+ description: "Provides the value of 'refund' in body",
67
+ optional: false,
68
+ args: ["refund"],
69
+ defaults: [""]
70
+ },
71
+ {
72
+ name: "currency",
73
+ short: "",
74
+ description: "Provides the value of 'currency' in body",
75
+ optional: false,
76
+ args: ["currency"],
77
+ defaults: [""]
78
+ },
79
+ {
80
+ name: "description",
81
+ short: "",
82
+ description: "Provides the value of 'description' in body",
83
+ optional: true,
84
+ args: ["description"],
85
+ defaults: [""]
86
+ },
87
+ {
88
+ name: "invoice_items",
89
+ short: "",
90
+ description: "Provides the value of 'invoice_items' in body",
91
+ optional: false,
92
+ args: ["invoice_items"],
93
+ defaults: [""]
94
+ }
95
+ ]);
96
+ }
97
+ override async exec()
98
+ {
99
+ let token = this.app.storage.getNSAToken();
100
+ if (token == null)
101
+ throw new Error("Token is not available. Please login first using:\nns-payment account config \nor \n{this.command} account login.");
102
+ let storage = new IStorageMemory();
103
+ let manager = new TokenManager(storage, () => { });
104
+ manager.setValue(token, false);
105
+ let server = new NamirasoftPaymentServer(manager, e => this.app.logger.error(e.message));
106
+ let ans = await server.invoice.Create({
107
+ product_id: this.option_values.product_id,
108
+ transaction_id: this.option_values.transaction_id,
109
+ subscription_id: this.option_values.subscription_id,
110
+ title: this.option_values.title,
111
+ refund: this.option_values.refund,
112
+ currency: this.option_values.currency,
113
+ description: this.option_values.description,
114
+ invoice_items: this.option_values.invoice_items
115
+ });
116
+ this.app.logger.success(JSON.stringify(ans));
117
+ }
118
+ };
@@ -0,0 +1,44 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftPaymentServer } from "../NamirasoftPaymentServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class InvoiceDeleteCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-payment account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftPaymentServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.invoice.Delete(this.arg_values[0]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };
@@ -0,0 +1,44 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftPaymentServer } from "../NamirasoftPaymentServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class InvoiceGetCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-payment account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftPaymentServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.invoice.Get(this.arg_values[0]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };
@@ -0,0 +1,44 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftPaymentServer } from "../NamirasoftPaymentServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class InvoiceListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["filters", "page", "size"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-payment account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftPaymentServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.invoice.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };
@@ -0,0 +1,34 @@
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 { BaseNavigatorCommand } from "namirasoft-node-cli";
22
+ import { OfferGetCommand } from "./OfferGetCommand";
23
+ import { OfferListCommand } from "./OfferListCommand";
24
+
25
+ export class OfferCommand extends BaseNavigatorCommand
26
+ {
27
+ constructor(argv: string[])
28
+ {
29
+ super(argv, {
30
+ "get": OfferGetCommand,
31
+ "list": OfferListCommand,
32
+ });
33
+ }
34
+ };
@@ -0,0 +1,44 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftPaymentServer } from "../NamirasoftPaymentServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class OfferGetCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["id"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-payment account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftPaymentServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.offer.Get(this.arg_values[0]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };
@@ -0,0 +1,44 @@
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 { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemory } from "namirasoft-core";
23
+ import { NamirasoftPaymentServer } from "../NamirasoftPaymentServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class OfferListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["filters", "page", "size"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-payment account config \nor \n{this.command} account login.");
37
+ let storage = new IStorageMemory();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let server = new NamirasoftPaymentServer(manager, e => this.app.logger.error(e.message));
41
+ let ans = await server.offer.List(this.arg_values[0], this.arg_values[1], this.arg_values[2]);
42
+ this.app.logger.success(JSON.stringify(ans));
43
+ }
44
+ };