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.
- package/dist/NamirasoftPaymentServer.d.ts +37 -0
- package/dist/NamirasoftPaymentServer.js +43 -0
- package/dist/NamirasoftPaymentServer.js.map +1 -0
- package/dist/NamirasoftPaymentServerBase.d.ts +5 -0
- package/dist/NamirasoftPaymentServerBase.js +12 -0
- package/dist/NamirasoftPaymentServerBase.js.map +1 -0
- package/dist/NamirasoftPaymentServerCard.d.ts +15 -0
- package/dist/NamirasoftPaymentServerCard.js +54 -0
- package/dist/NamirasoftPaymentServerCard.js.map +1 -0
- package/dist/NamirasoftPaymentServerCardCategory.d.ts +16 -0
- package/dist/NamirasoftPaymentServerCardCategory.js +62 -0
- package/dist/NamirasoftPaymentServerCardCategory.js.map +1 -0
- package/dist/NamirasoftPaymentServerCardField.d.ts +16 -0
- package/dist/NamirasoftPaymentServerCardField.js +62 -0
- package/dist/NamirasoftPaymentServerCardField.js.map +1 -0
- package/dist/NamirasoftPaymentServerCardTag.d.ts +16 -0
- package/dist/NamirasoftPaymentServerCardTag.js +62 -0
- package/dist/NamirasoftPaymentServerCardTag.js.map +1 -0
- package/dist/NamirasoftPaymentServerHealthz.d.ts +6 -0
- package/dist/NamirasoftPaymentServerHealthz.js +28 -0
- package/dist/NamirasoftPaymentServerHealthz.js.map +1 -0
- package/dist/NamirasoftPaymentServerInvoice.d.ts +16 -0
- package/dist/NamirasoftPaymentServerInvoice.js +61 -0
- package/dist/NamirasoftPaymentServerInvoice.js.map +1 -0
- package/dist/NamirasoftPaymentServerOffer.d.ts +12 -0
- package/dist/NamirasoftPaymentServerOffer.js +39 -0
- package/dist/NamirasoftPaymentServerOffer.js.map +1 -0
- package/dist/NamirasoftPaymentServerOneTime.d.ts +12 -0
- package/dist/NamirasoftPaymentServerOneTime.js +29 -0
- package/dist/NamirasoftPaymentServerOneTime.js.map +1 -0
- package/dist/NamirasoftPaymentServerPayment.d.ts +12 -0
- package/dist/NamirasoftPaymentServerPayment.js +39 -0
- package/dist/NamirasoftPaymentServerPayment.js.map +1 -0
- package/dist/NamirasoftPaymentServerSalesItem.d.ts +12 -0
- package/dist/NamirasoftPaymentServerSalesItem.js +39 -0
- package/dist/NamirasoftPaymentServerSalesItem.js.map +1 -0
- package/dist/NamirasoftPaymentServerSubscription.d.ts +20 -0
- package/dist/NamirasoftPaymentServerSubscription.js +54 -0
- package/dist/NamirasoftPaymentServerSubscription.js.map +1 -0
- package/dist/NamirasoftPaymentServerSubscriptionCategory.d.ts +16 -0
- package/dist/NamirasoftPaymentServerSubscriptionCategory.js +62 -0
- package/dist/NamirasoftPaymentServerSubscriptionCategory.js.map +1 -0
- package/dist/NamirasoftPaymentServerSubscriptionField.d.ts +16 -0
- package/dist/NamirasoftPaymentServerSubscriptionField.js +62 -0
- package/dist/NamirasoftPaymentServerSubscriptionField.js.map +1 -0
- package/dist/NamirasoftPaymentServerSubscriptionPaid.d.ts +12 -0
- package/dist/NamirasoftPaymentServerSubscriptionPaid.js +39 -0
- package/dist/NamirasoftPaymentServerSubscriptionPaid.js.map +1 -0
- package/dist/NamirasoftPaymentServerSubscriptionTag.d.ts +16 -0
- package/dist/NamirasoftPaymentServerSubscriptionTag.js +62 -0
- package/dist/NamirasoftPaymentServerSubscriptionTag.js.map +1 -0
- package/dist/NamirasoftPaymentServerValue.d.ts +6 -0
- package/dist/NamirasoftPaymentServerValue.js +29 -0
- package/dist/NamirasoftPaymentServerValue.js.map +1 -0
- package/dist/command/CardCategoryCommand.d.ts +4 -0
- package/dist/command/CardCategoryCommand.js +23 -0
- package/dist/command/CardCategoryCommand.js.map +1 -0
- package/dist/command/CardCategoryCreateCommand.d.ts +5 -0
- package/dist/command/CardCategoryCreateCommand.js +48 -0
- package/dist/command/CardCategoryCreateCommand.js.map +1 -0
- package/dist/command/CardCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/CardCategoryDeleteCommand.js +37 -0
- package/dist/command/CardCategoryDeleteCommand.js.map +1 -0
- package/dist/command/CardCategoryGetCommand.d.ts +5 -0
- package/dist/command/CardCategoryGetCommand.js +37 -0
- package/dist/command/CardCategoryGetCommand.js.map +1 -0
- package/dist/command/CardCategoryListCommand.d.ts +5 -0
- package/dist/command/CardCategoryListCommand.js +37 -0
- package/dist/command/CardCategoryListCommand.js.map +1 -0
- package/dist/command/CardCategoryUpdateCommand.d.ts +5 -0
- package/dist/command/CardCategoryUpdateCommand.js +48 -0
- package/dist/command/CardCategoryUpdateCommand.js.map +1 -0
- package/dist/command/CardCommand.d.ts +4 -0
- package/dist/command/CardCommand.js +21 -0
- package/dist/command/CardCommand.js.map +1 -0
- package/dist/command/CardCreateCommand.d.ts +5 -0
- package/dist/command/CardCreateCommand.js +84 -0
- package/dist/command/CardCreateCommand.js.map +1 -0
- package/dist/command/CardDeleteCommand.d.ts +5 -0
- package/dist/command/CardDeleteCommand.js +37 -0
- package/dist/command/CardDeleteCommand.js.map +1 -0
- package/dist/command/CardFieldCommand.d.ts +4 -0
- package/dist/command/CardFieldCommand.js +23 -0
- package/dist/command/CardFieldCommand.js.map +1 -0
- package/dist/command/CardFieldCreateCommand.d.ts +5 -0
- package/dist/command/CardFieldCreateCommand.js +66 -0
- package/dist/command/CardFieldCreateCommand.js.map +1 -0
- package/dist/command/CardFieldDeleteCommand.d.ts +5 -0
- package/dist/command/CardFieldDeleteCommand.js +37 -0
- package/dist/command/CardFieldDeleteCommand.js.map +1 -0
- package/dist/command/CardFieldGetCommand.d.ts +5 -0
- package/dist/command/CardFieldGetCommand.js +37 -0
- package/dist/command/CardFieldGetCommand.js.map +1 -0
- package/dist/command/CardFieldListCommand.d.ts +5 -0
- package/dist/command/CardFieldListCommand.js +37 -0
- package/dist/command/CardFieldListCommand.js.map +1 -0
- package/dist/command/CardFieldUpdateCommand.d.ts +5 -0
- package/dist/command/CardFieldUpdateCommand.js +66 -0
- package/dist/command/CardFieldUpdateCommand.js.map +1 -0
- package/dist/command/CardGetCommand.d.ts +5 -0
- package/dist/command/CardGetCommand.js +37 -0
- package/dist/command/CardGetCommand.js.map +1 -0
- package/dist/command/CardListCommand.d.ts +5 -0
- package/dist/command/CardListCommand.js +37 -0
- package/dist/command/CardListCommand.js.map +1 -0
- package/dist/command/CardTagCommand.d.ts +4 -0
- package/dist/command/CardTagCommand.js +23 -0
- package/dist/command/CardTagCommand.js.map +1 -0
- package/dist/command/CardTagCreateCommand.d.ts +5 -0
- package/dist/command/CardTagCreateCommand.js +66 -0
- package/dist/command/CardTagCreateCommand.js.map +1 -0
- package/dist/command/CardTagDeleteCommand.d.ts +5 -0
- package/dist/command/CardTagDeleteCommand.js +37 -0
- package/dist/command/CardTagDeleteCommand.js.map +1 -0
- package/dist/command/CardTagGetCommand.d.ts +5 -0
- package/dist/command/CardTagGetCommand.js +37 -0
- package/dist/command/CardTagGetCommand.js.map +1 -0
- package/dist/command/CardTagListCommand.d.ts +5 -0
- package/dist/command/CardTagListCommand.js +37 -0
- package/dist/command/CardTagListCommand.js.map +1 -0
- package/dist/command/CardTagUpdateCommand.d.ts +5 -0
- package/dist/command/CardTagUpdateCommand.js +66 -0
- package/dist/command/CardTagUpdateCommand.js.map +1 -0
- package/dist/command/HealthzCommand.d.ts +4 -0
- package/dist/command/HealthzCommand.js +15 -0
- package/dist/command/HealthzCommand.js.map +1 -0
- package/dist/command/HealthzGetCommand.d.ts +5 -0
- package/dist/command/HealthzGetCommand.js +37 -0
- package/dist/command/HealthzGetCommand.js.map +1 -0
- package/dist/command/InvoiceCancelCommand.d.ts +5 -0
- package/dist/command/InvoiceCancelCommand.js +37 -0
- package/dist/command/InvoiceCancelCommand.js.map +1 -0
- package/dist/command/InvoiceCommand.d.ts +4 -0
- package/dist/command/InvoiceCommand.js +23 -0
- package/dist/command/InvoiceCommand.js.map +1 -0
- package/dist/command/InvoiceCreateCommand.d.ts +5 -0
- package/dist/command/InvoiceCreateCommand.js +111 -0
- package/dist/command/InvoiceCreateCommand.js.map +1 -0
- package/dist/command/InvoiceDeleteCommand.d.ts +5 -0
- package/dist/command/InvoiceDeleteCommand.js +37 -0
- package/dist/command/InvoiceDeleteCommand.js.map +1 -0
- package/dist/command/InvoiceGetCommand.d.ts +5 -0
- package/dist/command/InvoiceGetCommand.js +37 -0
- package/dist/command/InvoiceGetCommand.js.map +1 -0
- package/dist/command/InvoiceListCommand.d.ts +5 -0
- package/dist/command/InvoiceListCommand.js +37 -0
- package/dist/command/InvoiceListCommand.js.map +1 -0
- package/dist/command/OfferCommand.d.ts +4 -0
- package/dist/command/OfferCommand.js +17 -0
- package/dist/command/OfferCommand.js.map +1 -0
- package/dist/command/OfferGetCommand.d.ts +5 -0
- package/dist/command/OfferGetCommand.js +37 -0
- package/dist/command/OfferGetCommand.js.map +1 -0
- package/dist/command/OfferListCommand.d.ts +5 -0
- package/dist/command/OfferListCommand.js +37 -0
- package/dist/command/OfferListCommand.js.map +1 -0
- package/dist/command/OneTimeCheckoutCommand.d.ts +5 -0
- package/dist/command/OneTimeCheckoutCommand.js +75 -0
- package/dist/command/OneTimeCheckoutCommand.js.map +1 -0
- package/dist/command/OneTimeCommand.d.ts +4 -0
- package/dist/command/OneTimeCommand.js +15 -0
- package/dist/command/OneTimeCommand.js.map +1 -0
- package/dist/command/PaymentCommand.d.ts +4 -0
- package/dist/command/PaymentCommand.js +17 -0
- package/dist/command/PaymentCommand.js.map +1 -0
- package/dist/command/PaymentGetCommand.d.ts +5 -0
- package/dist/command/PaymentGetCommand.js +37 -0
- package/dist/command/PaymentGetCommand.js.map +1 -0
- package/dist/command/PaymentListCommand.d.ts +5 -0
- package/dist/command/PaymentListCommand.js +37 -0
- package/dist/command/PaymentListCommand.js.map +1 -0
- package/dist/command/SalesItemCommand.d.ts +4 -0
- package/dist/command/SalesItemCommand.js +17 -0
- package/dist/command/SalesItemCommand.js.map +1 -0
- package/dist/command/SalesItemGetCommand.d.ts +5 -0
- package/dist/command/SalesItemGetCommand.js +37 -0
- package/dist/command/SalesItemGetCommand.js.map +1 -0
- package/dist/command/SalesItemListCommand.d.ts +5 -0
- package/dist/command/SalesItemListCommand.js +37 -0
- package/dist/command/SalesItemListCommand.js.map +1 -0
- package/dist/command/SubscriptionCancelCommand.d.ts +5 -0
- package/dist/command/SubscriptionCancelCommand.js +37 -0
- package/dist/command/SubscriptionCancelCommand.js.map +1 -0
- package/dist/command/SubscriptionCategoryCommand.d.ts +4 -0
- package/dist/command/SubscriptionCategoryCommand.js +23 -0
- package/dist/command/SubscriptionCategoryCommand.js.map +1 -0
- package/dist/command/SubscriptionCategoryCreateCommand.d.ts +5 -0
- package/dist/command/SubscriptionCategoryCreateCommand.js +48 -0
- package/dist/command/SubscriptionCategoryCreateCommand.js.map +1 -0
- package/dist/command/SubscriptionCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/SubscriptionCategoryDeleteCommand.js +37 -0
- package/dist/command/SubscriptionCategoryDeleteCommand.js.map +1 -0
- package/dist/command/SubscriptionCategoryGetCommand.d.ts +5 -0
- package/dist/command/SubscriptionCategoryGetCommand.js +37 -0
- package/dist/command/SubscriptionCategoryGetCommand.js.map +1 -0
- package/dist/command/SubscriptionCategoryListCommand.d.ts +5 -0
- package/dist/command/SubscriptionCategoryListCommand.js +37 -0
- package/dist/command/SubscriptionCategoryListCommand.js.map +1 -0
- package/dist/command/SubscriptionCategoryUpdateCommand.d.ts +5 -0
- package/dist/command/SubscriptionCategoryUpdateCommand.js +48 -0
- package/dist/command/SubscriptionCategoryUpdateCommand.js.map +1 -0
- package/dist/command/SubscriptionCheckoutCommand.d.ts +5 -0
- package/dist/command/SubscriptionCheckoutCommand.js +75 -0
- package/dist/command/SubscriptionCheckoutCommand.js.map +1 -0
- package/dist/command/SubscriptionCommand.d.ts +4 -0
- package/dist/command/SubscriptionCommand.js +21 -0
- package/dist/command/SubscriptionCommand.js.map +1 -0
- package/dist/command/SubscriptionFieldCommand.d.ts +4 -0
- package/dist/command/SubscriptionFieldCommand.js +23 -0
- package/dist/command/SubscriptionFieldCommand.js.map +1 -0
- package/dist/command/SubscriptionFieldCreateCommand.d.ts +5 -0
- package/dist/command/SubscriptionFieldCreateCommand.js +66 -0
- package/dist/command/SubscriptionFieldCreateCommand.js.map +1 -0
- package/dist/command/SubscriptionFieldDeleteCommand.d.ts +5 -0
- package/dist/command/SubscriptionFieldDeleteCommand.js +37 -0
- package/dist/command/SubscriptionFieldDeleteCommand.js.map +1 -0
- package/dist/command/SubscriptionFieldGetCommand.d.ts +5 -0
- package/dist/command/SubscriptionFieldGetCommand.js +37 -0
- package/dist/command/SubscriptionFieldGetCommand.js.map +1 -0
- package/dist/command/SubscriptionFieldListCommand.d.ts +5 -0
- package/dist/command/SubscriptionFieldListCommand.js +37 -0
- package/dist/command/SubscriptionFieldListCommand.js.map +1 -0
- package/dist/command/SubscriptionFieldUpdateCommand.d.ts +5 -0
- package/dist/command/SubscriptionFieldUpdateCommand.js +66 -0
- package/dist/command/SubscriptionFieldUpdateCommand.js.map +1 -0
- package/dist/command/SubscriptionGetCommand.d.ts +5 -0
- package/dist/command/SubscriptionGetCommand.js +37 -0
- package/dist/command/SubscriptionGetCommand.js.map +1 -0
- package/dist/command/SubscriptionListCommand.d.ts +5 -0
- package/dist/command/SubscriptionListCommand.js +37 -0
- package/dist/command/SubscriptionListCommand.js.map +1 -0
- package/dist/command/SubscriptionPaidCommand.d.ts +4 -0
- package/dist/command/SubscriptionPaidCommand.js +17 -0
- package/dist/command/SubscriptionPaidCommand.js.map +1 -0
- package/dist/command/SubscriptionPaidGetCommand.d.ts +5 -0
- package/dist/command/SubscriptionPaidGetCommand.js +37 -0
- package/dist/command/SubscriptionPaidGetCommand.js.map +1 -0
- package/dist/command/SubscriptionPaidListCommand.d.ts +5 -0
- package/dist/command/SubscriptionPaidListCommand.js +37 -0
- package/dist/command/SubscriptionPaidListCommand.js.map +1 -0
- package/dist/command/SubscriptionTagCommand.d.ts +4 -0
- package/dist/command/SubscriptionTagCommand.js +23 -0
- package/dist/command/SubscriptionTagCommand.js.map +1 -0
- package/dist/command/SubscriptionTagCreateCommand.d.ts +5 -0
- package/dist/command/SubscriptionTagCreateCommand.js +66 -0
- package/dist/command/SubscriptionTagCreateCommand.js.map +1 -0
- package/dist/command/SubscriptionTagDeleteCommand.d.ts +5 -0
- package/dist/command/SubscriptionTagDeleteCommand.js +37 -0
- package/dist/command/SubscriptionTagDeleteCommand.js.map +1 -0
- package/dist/command/SubscriptionTagGetCommand.d.ts +5 -0
- package/dist/command/SubscriptionTagGetCommand.js +37 -0
- package/dist/command/SubscriptionTagGetCommand.js.map +1 -0
- package/dist/command/SubscriptionTagListCommand.d.ts +5 -0
- package/dist/command/SubscriptionTagListCommand.js +37 -0
- package/dist/command/SubscriptionTagListCommand.js.map +1 -0
- package/dist/command/SubscriptionTagUpdateCommand.d.ts +5 -0
- package/dist/command/SubscriptionTagUpdateCommand.js +66 -0
- package/dist/command/SubscriptionTagUpdateCommand.js.map +1 -0
- package/dist/command/ValueCommand.d.ts +4 -0
- package/dist/command/ValueCommand.js +15 -0
- package/dist/command/ValueCommand.js.map +1 -0
- package/dist/command/ValueListCommand.d.ts +5 -0
- package/dist/command/ValueListCommand.js +37 -0
- package/dist/command/ValueListCommand.js.map +1 -0
- package/dist/command/cli.d.ts +2 -0
- package/dist/command/cli.js +42 -0
- package/dist/command/cli.js.map +1 -0
- package/dist/enum/GatewayType.d.ts +3 -0
- package/dist/enum/GatewayType.js +8 -0
- package/dist/enum/GatewayType.js.map +1 -0
- package/dist/enum/OfferSubscriptionDurationUnit.d.ts +6 -0
- package/dist/enum/OfferSubscriptionDurationUnit.js +11 -0
- package/dist/enum/OfferSubscriptionDurationUnit.js.map +1 -0
- package/dist/enum/PaymentGateway.d.ts +3 -0
- package/dist/enum/PaymentGateway.js +8 -0
- package/dist/enum/PaymentGateway.js.map +1 -0
- package/dist/enum/PaymentStatus.d.ts +6 -0
- package/dist/enum/PaymentStatus.js +11 -0
- package/dist/enum/PaymentStatus.js.map +1 -0
- package/dist/enum/SalesItemMethod.d.ts +5 -0
- package/dist/enum/SalesItemMethod.js +10 -0
- package/dist/enum/SalesItemMethod.js.map +1 -0
- package/dist/enum/SalesItemOnetimeExpireUnit.d.ts +7 -0
- package/dist/enum/SalesItemOnetimeExpireUnit.js +12 -0
- package/dist/enum/SalesItemOnetimeExpireUnit.js.map +1 -0
- package/dist/enum/SalesItemOnetimeLimitUnit.d.ts +7 -0
- package/dist/enum/SalesItemOnetimeLimitUnit.js +12 -0
- package/dist/enum/SalesItemOnetimeLimitUnit.js.map +1 -0
- package/dist/enum/SubscriptionGateway.d.ts +3 -0
- package/dist/enum/SubscriptionGateway.js +8 -0
- package/dist/enum/SubscriptionGateway.js.map +1 -0
- package/dist/enum/SubscriptionStatus.d.ts +11 -0
- package/dist/enum/SubscriptionStatus.js +16 -0
- package/dist/enum/SubscriptionStatus.js.map +1 -0
- package/dist/index.d.ts +129 -0
- package/dist/index.js +146 -0
- package/dist/index.js.map +1 -0
- package/dist/meta/CardCategoryMetaTable.d.ts +10 -0
- package/dist/meta/CardCategoryMetaTable.js +18 -0
- package/dist/meta/CardCategoryMetaTable.js.map +1 -0
- package/dist/meta/CardFieldMetaTable.d.ts +12 -0
- package/dist/meta/CardFieldMetaTable.js +20 -0
- package/dist/meta/CardFieldMetaTable.js.map +1 -0
- package/dist/meta/CardMetaTable.d.ts +10 -0
- package/dist/meta/CardMetaTable.js +18 -0
- package/dist/meta/CardMetaTable.js.map +1 -0
- package/dist/meta/CardTagMetaTable.d.ts +12 -0
- package/dist/meta/CardTagMetaTable.js +20 -0
- package/dist/meta/CardTagMetaTable.js.map +1 -0
- package/dist/meta/InvoiceMetaTable.d.ts +20 -0
- package/dist/meta/InvoiceMetaTable.js +28 -0
- package/dist/meta/InvoiceMetaTable.js.map +1 -0
- package/dist/meta/MetaDatabase.d.ts +28 -0
- package/dist/meta/MetaDatabase.js +35 -0
- package/dist/meta/MetaDatabase.js.map +1 -0
- package/dist/meta/OfferMetaTable.d.ts +16 -0
- package/dist/meta/OfferMetaTable.js +24 -0
- package/dist/meta/OfferMetaTable.js.map +1 -0
- package/dist/meta/PaymentMetaTable.d.ts +18 -0
- package/dist/meta/PaymentMetaTable.js +26 -0
- package/dist/meta/PaymentMetaTable.js.map +1 -0
- package/dist/meta/SalesItemMetaTable.d.ts +17 -0
- package/dist/meta/SalesItemMetaTable.js +25 -0
- package/dist/meta/SalesItemMetaTable.js.map +1 -0
- package/dist/meta/SubscriptionCategoryMetaTable.d.ts +10 -0
- package/dist/meta/SubscriptionCategoryMetaTable.js +18 -0
- package/dist/meta/SubscriptionCategoryMetaTable.js.map +1 -0
- package/dist/meta/SubscriptionFieldMetaTable.d.ts +12 -0
- package/dist/meta/SubscriptionFieldMetaTable.js +20 -0
- package/dist/meta/SubscriptionFieldMetaTable.js.map +1 -0
- package/dist/meta/SubscriptionMetaTable.d.ts +14 -0
- package/dist/meta/SubscriptionMetaTable.js +22 -0
- package/dist/meta/SubscriptionMetaTable.js.map +1 -0
- package/dist/meta/SubscriptionTagMetaTable.d.ts +12 -0
- package/dist/meta/SubscriptionTagMetaTable.js +20 -0
- package/dist/meta/SubscriptionTagMetaTable.js.map +1 -0
- package/dist/row/CardCategoryRow.d.ts +6 -0
- package/dist/row/CardCategoryRow.js +3 -0
- package/dist/row/CardCategoryRow.js.map +1 -0
- package/dist/row/CardFieldRow.d.ts +8 -0
- package/dist/row/CardFieldRow.js +3 -0
- package/dist/row/CardFieldRow.js.map +1 -0
- package/dist/row/CardInputRow.d.ts +7 -0
- package/dist/row/CardInputRow.js +3 -0
- package/dist/row/CardInputRow.js.map +1 -0
- package/dist/row/CardRow.d.ts +6 -0
- package/dist/row/CardRow.js +3 -0
- package/dist/row/CardRow.js.map +1 -0
- package/dist/row/CardTagRow.d.ts +8 -0
- package/dist/row/CardTagRow.js +3 -0
- package/dist/row/CardTagRow.js.map +1 -0
- package/dist/row/EntityCategoryInputRow.d.ts +3 -0
- package/dist/row/EntityCategoryInputRow.js +3 -0
- package/dist/row/EntityCategoryInputRow.js.map +1 -0
- package/dist/row/EntityFieldInputRow.d.ts +5 -0
- package/dist/row/EntityFieldInputRow.js +3 -0
- package/dist/row/EntityFieldInputRow.js.map +1 -0
- package/dist/row/EntityTagInputRow.d.ts +5 -0
- package/dist/row/EntityTagInputRow.js +3 -0
- package/dist/row/EntityTagInputRow.js.map +1 -0
- package/dist/row/InvoiceInputRow.d.ts +11 -0
- package/dist/row/InvoiceInputRow.js +3 -0
- package/dist/row/InvoiceInputRow.js.map +1 -0
- package/dist/row/InvoiceItemInputRow.d.ts +8 -0
- package/dist/row/InvoiceItemInputRow.js +3 -0
- package/dist/row/InvoiceItemInputRow.js.map +1 -0
- package/dist/row/InvoiceRow.d.ts +16 -0
- package/dist/row/InvoiceRow.js +3 -0
- package/dist/row/InvoiceRow.js.map +1 -0
- package/dist/row/OfferRow.d.ts +13 -0
- package/dist/row/OfferRow.js +3 -0
- package/dist/row/OfferRow.js.map +1 -0
- package/dist/row/PaymentRow.d.ts +16 -0
- package/dist/row/PaymentRow.js +3 -0
- package/dist/row/PaymentRow.js.map +1 -0
- package/dist/row/SalesItemRow.d.ts +16 -0
- package/dist/row/SalesItemRow.js +3 -0
- package/dist/row/SalesItemRow.js.map +1 -0
- package/dist/row/SubscriptionCategoryRow.d.ts +6 -0
- package/dist/row/SubscriptionCategoryRow.js +3 -0
- package/dist/row/SubscriptionCategoryRow.js.map +1 -0
- package/dist/row/SubscriptionFieldRow.d.ts +8 -0
- package/dist/row/SubscriptionFieldRow.js +3 -0
- package/dist/row/SubscriptionFieldRow.js.map +1 -0
- package/dist/row/SubscriptionPaidRow.d.ts +10 -0
- package/dist/row/SubscriptionPaidRow.js +3 -0
- package/dist/row/SubscriptionPaidRow.js.map +1 -0
- package/dist/row/SubscriptionRow.d.ts +12 -0
- package/dist/row/SubscriptionRow.js +3 -0
- package/dist/row/SubscriptionRow.js.map +1 -0
- package/dist/row/SubscriptionTagRow.d.ts +8 -0
- package/dist/row/SubscriptionTagRow.js +3 -0
- package/dist/row/SubscriptionTagRow.js.map +1 -0
- package/logo.png +0 -0
- package/package.json +28 -0
- package/src/NamirasoftPaymentServer.ts +78 -0
- package/src/NamirasoftPaymentServerBase.ts +30 -0
- package/src/NamirasoftPaymentServerCard.ts +61 -0
- package/src/NamirasoftPaymentServerCardCategory.ts +68 -0
- package/src/NamirasoftPaymentServerCardField.ts +68 -0
- package/src/NamirasoftPaymentServerCardTag.ts +68 -0
- package/src/NamirasoftPaymentServerHealthz.ts +36 -0
- package/src/NamirasoftPaymentServerInvoice.ts +67 -0
- package/src/NamirasoftPaymentServerOffer.ts +47 -0
- package/src/NamirasoftPaymentServerOneTime.ts +38 -0
- package/src/NamirasoftPaymentServerPayment.ts +47 -0
- package/src/NamirasoftPaymentServerSalesItem.ts +47 -0
- package/src/NamirasoftPaymentServerSubscription.ts +61 -0
- package/src/NamirasoftPaymentServerSubscriptionCategory.ts +68 -0
- package/src/NamirasoftPaymentServerSubscriptionField.ts +68 -0
- package/src/NamirasoftPaymentServerSubscriptionPaid.ts +47 -0
- package/src/NamirasoftPaymentServerSubscriptionTag.ts +68 -0
- package/src/NamirasoftPaymentServerValue.ts +37 -0
- package/src/command/CardCategoryCommand.ts +40 -0
- package/src/command/CardCategoryCreateCommand.ts +55 -0
- package/src/command/CardCategoryDeleteCommand.ts +44 -0
- package/src/command/CardCategoryGetCommand.ts +44 -0
- package/src/command/CardCategoryListCommand.ts +44 -0
- package/src/command/CardCategoryUpdateCommand.ts +55 -0
- package/src/command/CardCommand.ts +38 -0
- package/src/command/CardCreateCommand.ts +91 -0
- package/src/command/CardDeleteCommand.ts +44 -0
- package/src/command/CardFieldCommand.ts +40 -0
- package/src/command/CardFieldCreateCommand.ts +73 -0
- package/src/command/CardFieldDeleteCommand.ts +44 -0
- package/src/command/CardFieldGetCommand.ts +44 -0
- package/src/command/CardFieldListCommand.ts +44 -0
- package/src/command/CardFieldUpdateCommand.ts +73 -0
- package/src/command/CardGetCommand.ts +44 -0
- package/src/command/CardListCommand.ts +44 -0
- package/src/command/CardTagCommand.ts +40 -0
- package/src/command/CardTagCreateCommand.ts +73 -0
- package/src/command/CardTagDeleteCommand.ts +44 -0
- package/src/command/CardTagGetCommand.ts +44 -0
- package/src/command/CardTagListCommand.ts +44 -0
- package/src/command/CardTagUpdateCommand.ts +73 -0
- package/src/command/HealthzCommand.ts +32 -0
- package/src/command/HealthzGetCommand.ts +44 -0
- package/src/command/InvoiceCancelCommand.ts +44 -0
- package/src/command/InvoiceCommand.ts +40 -0
- package/src/command/InvoiceCreateCommand.ts +118 -0
- package/src/command/InvoiceDeleteCommand.ts +44 -0
- package/src/command/InvoiceGetCommand.ts +44 -0
- package/src/command/InvoiceListCommand.ts +44 -0
- package/src/command/OfferCommand.ts +34 -0
- package/src/command/OfferGetCommand.ts +44 -0
- package/src/command/OfferListCommand.ts +44 -0
- package/src/command/OneTimeCheckoutCommand.ts +82 -0
- package/src/command/OneTimeCommand.ts +32 -0
- package/src/command/PaymentCommand.ts +34 -0
- package/src/command/PaymentGetCommand.ts +44 -0
- package/src/command/PaymentListCommand.ts +44 -0
- package/src/command/SalesItemCommand.ts +34 -0
- package/src/command/SalesItemGetCommand.ts +44 -0
- package/src/command/SalesItemListCommand.ts +44 -0
- package/src/command/SubscriptionCancelCommand.ts +44 -0
- package/src/command/SubscriptionCategoryCommand.ts +40 -0
- package/src/command/SubscriptionCategoryCreateCommand.ts +55 -0
- package/src/command/SubscriptionCategoryDeleteCommand.ts +44 -0
- package/src/command/SubscriptionCategoryGetCommand.ts +44 -0
- package/src/command/SubscriptionCategoryListCommand.ts +44 -0
- package/src/command/SubscriptionCategoryUpdateCommand.ts +55 -0
- package/src/command/SubscriptionCheckoutCommand.ts +82 -0
- package/src/command/SubscriptionCommand.ts +38 -0
- package/src/command/SubscriptionFieldCommand.ts +40 -0
- package/src/command/SubscriptionFieldCreateCommand.ts +73 -0
- package/src/command/SubscriptionFieldDeleteCommand.ts +44 -0
- package/src/command/SubscriptionFieldGetCommand.ts +44 -0
- package/src/command/SubscriptionFieldListCommand.ts +44 -0
- package/src/command/SubscriptionFieldUpdateCommand.ts +73 -0
- package/src/command/SubscriptionGetCommand.ts +44 -0
- package/src/command/SubscriptionListCommand.ts +44 -0
- package/src/command/SubscriptionPaidCommand.ts +34 -0
- package/src/command/SubscriptionPaidGetCommand.ts +44 -0
- package/src/command/SubscriptionPaidListCommand.ts +44 -0
- package/src/command/SubscriptionTagCommand.ts +40 -0
- package/src/command/SubscriptionTagCreateCommand.ts +73 -0
- package/src/command/SubscriptionTagDeleteCommand.ts +44 -0
- package/src/command/SubscriptionTagGetCommand.ts +44 -0
- package/src/command/SubscriptionTagListCommand.ts +44 -0
- package/src/command/SubscriptionTagUpdateCommand.ts +73 -0
- package/src/command/ValueCommand.ts +32 -0
- package/src/command/ValueListCommand.ts +44 -0
- package/src/command/cli.ts +61 -0
- package/src/enum/GatewayType.ts +24 -0
- package/src/enum/OfferSubscriptionDurationUnit.ts +27 -0
- package/src/enum/PaymentGateway.ts +24 -0
- package/src/enum/PaymentStatus.ts +27 -0
- package/src/enum/SalesItemMethod.ts +26 -0
- package/src/enum/SalesItemOnetimeExpireUnit.ts +28 -0
- package/src/enum/SalesItemOnetimeLimitUnit.ts +28 -0
- package/src/enum/SubscriptionGateway.ts +24 -0
- package/src/enum/SubscriptionStatus.ts +32 -0
- package/src/index.ts +149 -0
- package/src/meta/CardCategoryMetaTable.ts +41 -0
- package/src/meta/CardFieldMetaTable.ts +45 -0
- package/src/meta/CardMetaTable.ts +41 -0
- package/src/meta/CardTagMetaTable.ts +45 -0
- package/src/meta/InvoiceMetaTable.ts +61 -0
- package/src/meta/MetaDatabase.ts +64 -0
- package/src/meta/OfferMetaTable.ts +53 -0
- package/src/meta/PaymentMetaTable.ts +57 -0
- package/src/meta/SalesItemMetaTable.ts +55 -0
- package/src/meta/SubscriptionCategoryMetaTable.ts +41 -0
- package/src/meta/SubscriptionFieldMetaTable.ts +45 -0
- package/src/meta/SubscriptionMetaTable.ts +49 -0
- package/src/meta/SubscriptionTagMetaTable.ts +45 -0
- package/src/row/CardCategoryRow.ts +27 -0
- package/src/row/CardFieldRow.ts +29 -0
- package/src/row/CardInputRow.ts +28 -0
- package/src/row/CardRow.ts +27 -0
- package/src/row/CardTagRow.ts +29 -0
- package/src/row/EntityCategoryInputRow.ts +24 -0
- package/src/row/EntityFieldInputRow.ts +26 -0
- package/src/row/EntityTagInputRow.ts +26 -0
- package/src/row/InvoiceInputRow.ts +33 -0
- package/src/row/InvoiceItemInputRow.ts +29 -0
- package/src/row/InvoiceRow.ts +37 -0
- package/src/row/OfferRow.ts +35 -0
- package/src/row/PaymentRow.ts +38 -0
- package/src/row/SalesItemRow.ts +38 -0
- package/src/row/SubscriptionCategoryRow.ts +27 -0
- package/src/row/SubscriptionFieldRow.ts +29 -0
- package/src/row/SubscriptionPaidRow.ts +31 -0
- package/src/row/SubscriptionRow.ts +34 -0
- package/src/row/SubscriptionTagRow.ts +29 -0
- 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
|
+
};
|