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 @@
|
|
|
1
|
+
{"version":3,"file":"EntityFieldInputRow.js","sourceRoot":"","sources":["../../src/row/EntityFieldInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityTagInputRow.js","sourceRoot":"","sources":["../../src/row/EntityTagInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InvoiceItemInputRow } from "./InvoiceItemInputRow";
|
|
2
|
+
export type InvoiceInputRow = {
|
|
3
|
+
product_id: (string | null);
|
|
4
|
+
transaction_id: (number | null);
|
|
5
|
+
subscription_id: (string | null);
|
|
6
|
+
title: string;
|
|
7
|
+
refund: boolean;
|
|
8
|
+
currency: string;
|
|
9
|
+
description: (string | null);
|
|
10
|
+
invoice_items: InvoiceItemInputRow[];
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceInputRow.js","sourceRoot":"","sources":["../../src/row/InvoiceInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceItemInputRow.js","sourceRoot":"","sources":["../../src/row/InvoiceItemInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type InvoiceRow = {
|
|
2
|
+
id: string;
|
|
3
|
+
user_id: string;
|
|
4
|
+
product_id: (string | null);
|
|
5
|
+
transaction_id: (number | null);
|
|
6
|
+
subscription_id: (string | null);
|
|
7
|
+
title: string;
|
|
8
|
+
refund: boolean;
|
|
9
|
+
canceled: boolean;
|
|
10
|
+
currency: string;
|
|
11
|
+
total: number;
|
|
12
|
+
total_paid: number;
|
|
13
|
+
total_refunded: number;
|
|
14
|
+
total_balance: number;
|
|
15
|
+
description: (string | null);
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceRow.js","sourceRoot":"","sources":["../../src/row/InvoiceRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OfferSubscriptionDurationUnit } from "../enum/OfferSubscriptionDurationUnit";
|
|
2
|
+
export type OfferRow = {
|
|
3
|
+
id: string;
|
|
4
|
+
product_id: string;
|
|
5
|
+
sales_item_id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
subscription_duration_unit: OfferSubscriptionDurationUnit;
|
|
8
|
+
subscription_duration_value: number;
|
|
9
|
+
applies_at: (Date | null);
|
|
10
|
+
expires_at: (Date | null);
|
|
11
|
+
recommended: boolean;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfferRow.js","sourceRoot":"","sources":["../../src/row/OfferRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PaymentGateway } from "../enum/PaymentGateway";
|
|
2
|
+
import { PaymentStatus } from "../enum/PaymentStatus";
|
|
3
|
+
export type PaymentRow = {
|
|
4
|
+
id: string;
|
|
5
|
+
user_id: string;
|
|
6
|
+
product_id: (string | null);
|
|
7
|
+
transaction_id: (number | null);
|
|
8
|
+
invoice_id: (number | null);
|
|
9
|
+
subscription_id: (number | null);
|
|
10
|
+
gateway: PaymentGateway;
|
|
11
|
+
refund: boolean;
|
|
12
|
+
status: PaymentStatus;
|
|
13
|
+
currency: string;
|
|
14
|
+
amount: number;
|
|
15
|
+
description: (string | null);
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentRow.js","sourceRoot":"","sources":["../../src/row/PaymentRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SalesItemMethod } from "../enum/SalesItemMethod";
|
|
2
|
+
import { SalesItemOnetimeExpireUnit } from "../enum/SalesItemOnetimeExpireUnit";
|
|
3
|
+
import { SalesItemOnetimeLimitUnit } from "../enum/SalesItemOnetimeLimitUnit";
|
|
4
|
+
export type SalesItemRow = {
|
|
5
|
+
id: string;
|
|
6
|
+
product_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
method: SalesItemMethod;
|
|
9
|
+
onetime_consumable: boolean;
|
|
10
|
+
onetime_expire_unit: SalesItemOnetimeExpireUnit;
|
|
11
|
+
onetime_expire_value: number;
|
|
12
|
+
onetime_limit_unit: SalesItemOnetimeLimitUnit;
|
|
13
|
+
onetime_limit_value: number;
|
|
14
|
+
onetime_limit_count: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SalesItemRow.js","sourceRoot":"","sources":["../../src/row/SalesItemRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionCategoryRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionCategoryRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionFieldRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionFieldRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionPaidRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionPaidRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SubscriptionGateway } from "../enum/SubscriptionGateway";
|
|
2
|
+
import { SubscriptionStatus } from "../enum/SubscriptionStatus";
|
|
3
|
+
export type SubscriptionRow = {
|
|
4
|
+
id: string;
|
|
5
|
+
user_id: string;
|
|
6
|
+
product_id: string;
|
|
7
|
+
offer_id: string;
|
|
8
|
+
from_subscription_id: (string | null);
|
|
9
|
+
gateway: SubscriptionGateway;
|
|
10
|
+
status: SubscriptionStatus;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionTagRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionTagRow.ts"],"names":[],"mappings":""}
|
package/logo.png
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "namirasoft-payment",
|
|
3
|
+
"title": "Namirasoft Payment NPM Package",
|
|
4
|
+
"description": "Namira Software Corporation Payment NPM Package",
|
|
5
|
+
"icon": "logo.png",
|
|
6
|
+
"logo": "https://static.namirasoft.com/image/namirasoft/payment/logo/name.png",
|
|
7
|
+
"language": "ts",
|
|
8
|
+
"framework": "npm",
|
|
9
|
+
"application": "package",
|
|
10
|
+
"private": false,
|
|
11
|
+
"version": "1.3.0",
|
|
12
|
+
"author": "Amir Abolhasani",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": ""
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"namirasoft-core": "^1.3.68",
|
|
21
|
+
"namirasoft-site": "^1.3.5",
|
|
22
|
+
"namirasoft-node-cli": "^1.3.8",
|
|
23
|
+
"namirasoft-account": "^1.3.31"
|
|
24
|
+
},
|
|
25
|
+
"bin": {
|
|
26
|
+
"ns-payment": "./dist/command/cli.js"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NamirasoftPaymentServerCard } from "./NamirasoftPaymentServerCard";
|
|
22
|
+
import { NamirasoftPaymentServerCardCategory } from "./NamirasoftPaymentServerCardCategory";
|
|
23
|
+
import { NamirasoftPaymentServerCardField } from "./NamirasoftPaymentServerCardField";
|
|
24
|
+
import { NamirasoftPaymentServerCardTag } from "./NamirasoftPaymentServerCardTag";
|
|
25
|
+
import { NamirasoftPaymentServerHealthz } from "./NamirasoftPaymentServerHealthz";
|
|
26
|
+
import { NamirasoftPaymentServerInvoice } from "./NamirasoftPaymentServerInvoice";
|
|
27
|
+
import { NamirasoftPaymentServerOffer } from "./NamirasoftPaymentServerOffer";
|
|
28
|
+
import { NamirasoftPaymentServerOneTime } from "./NamirasoftPaymentServerOneTime";
|
|
29
|
+
import { NamirasoftPaymentServerPayment } from "./NamirasoftPaymentServerPayment";
|
|
30
|
+
import { NamirasoftPaymentServerSalesItem } from "./NamirasoftPaymentServerSalesItem";
|
|
31
|
+
import { NamirasoftPaymentServerSubscription } from "./NamirasoftPaymentServerSubscription";
|
|
32
|
+
import { NamirasoftPaymentServerSubscriptionCategory } from "./NamirasoftPaymentServerSubscriptionCategory";
|
|
33
|
+
import { NamirasoftPaymentServerSubscriptionField } from "./NamirasoftPaymentServerSubscriptionField";
|
|
34
|
+
import { NamirasoftPaymentServerSubscriptionPaid } from "./NamirasoftPaymentServerSubscriptionPaid";
|
|
35
|
+
import { NamirasoftPaymentServerSubscriptionTag } from "./NamirasoftPaymentServerSubscriptionTag";
|
|
36
|
+
import { NamirasoftPaymentServerValue } from "./NamirasoftPaymentServerValue";
|
|
37
|
+
import { TokenManager } from "namirasoft-account";
|
|
38
|
+
|
|
39
|
+
export class NamirasoftPaymentServer
|
|
40
|
+
{
|
|
41
|
+
manager: TokenManager;
|
|
42
|
+
healthz: NamirasoftPaymentServerHealthz;
|
|
43
|
+
value: NamirasoftPaymentServerValue;
|
|
44
|
+
card: NamirasoftPaymentServerCard;
|
|
45
|
+
cardcategory: NamirasoftPaymentServerCardCategory;
|
|
46
|
+
cardfield: NamirasoftPaymentServerCardField;
|
|
47
|
+
cardtag: NamirasoftPaymentServerCardTag;
|
|
48
|
+
invoice: NamirasoftPaymentServerInvoice;
|
|
49
|
+
offer: NamirasoftPaymentServerOffer;
|
|
50
|
+
onetime: NamirasoftPaymentServerOneTime;
|
|
51
|
+
payment: NamirasoftPaymentServerPayment;
|
|
52
|
+
salesitem: NamirasoftPaymentServerSalesItem;
|
|
53
|
+
subscriptionpaid: NamirasoftPaymentServerSubscriptionPaid;
|
|
54
|
+
subscription: NamirasoftPaymentServerSubscription;
|
|
55
|
+
subscriptioncategory: NamirasoftPaymentServerSubscriptionCategory;
|
|
56
|
+
subscriptionfield: NamirasoftPaymentServerSubscriptionField;
|
|
57
|
+
subscriptiontag: NamirasoftPaymentServerSubscriptionTag;
|
|
58
|
+
constructor(manager: TokenManager, onError: (error: Error) => void)
|
|
59
|
+
{
|
|
60
|
+
this.manager = manager;
|
|
61
|
+
this.healthz = new NamirasoftPaymentServerHealthz(manager, onError);
|
|
62
|
+
this.value = new NamirasoftPaymentServerValue(manager, onError);
|
|
63
|
+
this.card = new NamirasoftPaymentServerCard(manager, onError);
|
|
64
|
+
this.cardcategory = new NamirasoftPaymentServerCardCategory(manager, onError);
|
|
65
|
+
this.cardfield = new NamirasoftPaymentServerCardField(manager, onError);
|
|
66
|
+
this.cardtag = new NamirasoftPaymentServerCardTag(manager, onError);
|
|
67
|
+
this.invoice = new NamirasoftPaymentServerInvoice(manager, onError);
|
|
68
|
+
this.offer = new NamirasoftPaymentServerOffer(manager, onError);
|
|
69
|
+
this.onetime = new NamirasoftPaymentServerOneTime(manager, onError);
|
|
70
|
+
this.payment = new NamirasoftPaymentServerPayment(manager, onError);
|
|
71
|
+
this.salesitem = new NamirasoftPaymentServerSalesItem(manager, onError);
|
|
72
|
+
this.subscriptionpaid = new NamirasoftPaymentServerSubscriptionPaid(manager, onError);
|
|
73
|
+
this.subscription = new NamirasoftPaymentServerSubscription(manager, onError);
|
|
74
|
+
this.subscriptioncategory = new NamirasoftPaymentServerSubscriptionCategory(manager, onError);
|
|
75
|
+
this.subscriptionfield = new NamirasoftPaymentServerSubscriptionField(manager, onError);
|
|
76
|
+
this.subscriptiontag = new NamirasoftPaymentServerSubscriptionTag(manager, onError);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NamirasoftServerBase } from "namirasoft-account";
|
|
22
|
+
import { TokenManager } from "namirasoft-account";
|
|
23
|
+
|
|
24
|
+
export class NamirasoftPaymentServerBase extends NamirasoftServerBase
|
|
25
|
+
{
|
|
26
|
+
constructor(manager: TokenManager, onError: (error: Error) => void)
|
|
27
|
+
{
|
|
28
|
+
super(`https://payment.namirasoft.com/api/v1`, `1.3.0`, manager, onError);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { CardInputRow } from "./row/CardInputRow";
|
|
22
|
+
import { CardRow } from "./row/CardRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
25
|
+
import { TokenManager } from "namirasoft-account";
|
|
26
|
+
|
|
27
|
+
export class NamirasoftPaymentServerCard extends NamirasoftPaymentServerBase
|
|
28
|
+
{
|
|
29
|
+
constructor(manager: TokenManager, onError: (error: Error) => void)
|
|
30
|
+
{
|
|
31
|
+
super(manager, onError);
|
|
32
|
+
this.List = this.List.bind(this);
|
|
33
|
+
this.Get = this.Get.bind(this);
|
|
34
|
+
this.Create = this.Create.bind(this);
|
|
35
|
+
this.Delete = this.Delete.bind(this);
|
|
36
|
+
}
|
|
37
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: CardRow[], count: (number | null) }>
|
|
38
|
+
{
|
|
39
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
40
|
+
let path = `/card/list`;
|
|
41
|
+
let { data } = await this._get<{ rows: CardRow[], count: (number | null) }>(path, { filters: filters_string_value, page, size });
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
async Get(id: string): Promise<CardRow>
|
|
45
|
+
{
|
|
46
|
+
let path = `/card/${id}`;
|
|
47
|
+
let { data } = await this._get<CardRow>(path, {});
|
|
48
|
+
return data;
|
|
49
|
+
}
|
|
50
|
+
async Create(body: CardInputRow): Promise<CardRow>
|
|
51
|
+
{
|
|
52
|
+
let path = `/card`;
|
|
53
|
+
let { data } = await this._post<CardRow>(path, {}, body);
|
|
54
|
+
return data;
|
|
55
|
+
}
|
|
56
|
+
async Delete(id: number): Promise<void>
|
|
57
|
+
{
|
|
58
|
+
let path = `/card/${id}`;
|
|
59
|
+
await this._delete<void>(path, {});
|
|
60
|
+
}
|
|
61
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { CardCategoryRow } from "./row/CardCategoryRow";
|
|
22
|
+
import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
25
|
+
import { TokenManager } from "namirasoft-account";
|
|
26
|
+
|
|
27
|
+
export class NamirasoftPaymentServerCardCategory extends NamirasoftPaymentServerBase
|
|
28
|
+
{
|
|
29
|
+
constructor(manager: TokenManager, onError: (error: Error) => void)
|
|
30
|
+
{
|
|
31
|
+
super(manager, onError);
|
|
32
|
+
this.Create = this.Create.bind(this);
|
|
33
|
+
this.Delete = this.Delete.bind(this);
|
|
34
|
+
this.Get = this.Get.bind(this);
|
|
35
|
+
this.List = this.List.bind(this);
|
|
36
|
+
this.Update = this.Update.bind(this);
|
|
37
|
+
}
|
|
38
|
+
async Create(body: EntityCategoryInputRow): Promise<CardCategoryRow>
|
|
39
|
+
{
|
|
40
|
+
let path = `card/category`;
|
|
41
|
+
let { data } = await this._post<CardCategoryRow>(path, {}, body);
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
async Delete(id: string): Promise<void>
|
|
45
|
+
{
|
|
46
|
+
let path = `card/category/${id}`;
|
|
47
|
+
await this._delete<void>(path, {});
|
|
48
|
+
}
|
|
49
|
+
async Get(id: string): Promise<CardCategoryRow>
|
|
50
|
+
{
|
|
51
|
+
let path = `card/category/${id}`;
|
|
52
|
+
let { data } = await this._get<CardCategoryRow>(path, {});
|
|
53
|
+
return data;
|
|
54
|
+
}
|
|
55
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: CardCategoryRow[], count: (number | null) }>
|
|
56
|
+
{
|
|
57
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
58
|
+
let path = `card/category/list`;
|
|
59
|
+
let { data } = await this._get<{ rows: CardCategoryRow[], count: (number | null) }>(path, { filters: filters_string_value, page, size });
|
|
60
|
+
return data;
|
|
61
|
+
}
|
|
62
|
+
async Update(id: string, body: EntityCategoryInputRow): Promise<CardCategoryRow>
|
|
63
|
+
{
|
|
64
|
+
let path = `card/category/${id}`;
|
|
65
|
+
let { data } = await this._put<CardCategoryRow>(path, {}, body);
|
|
66
|
+
return data;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { CardFieldRow } from "./row/CardFieldRow";
|
|
22
|
+
import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
25
|
+
import { TokenManager } from "namirasoft-account";
|
|
26
|
+
|
|
27
|
+
export class NamirasoftPaymentServerCardField extends NamirasoftPaymentServerBase
|
|
28
|
+
{
|
|
29
|
+
constructor(manager: TokenManager, onError: (error: Error) => void)
|
|
30
|
+
{
|
|
31
|
+
super(manager, onError);
|
|
32
|
+
this.Create = this.Create.bind(this);
|
|
33
|
+
this.Delete = this.Delete.bind(this);
|
|
34
|
+
this.Get = this.Get.bind(this);
|
|
35
|
+
this.List = this.List.bind(this);
|
|
36
|
+
this.Update = this.Update.bind(this);
|
|
37
|
+
}
|
|
38
|
+
async Create(body: EntityFieldInputRow): Promise<CardFieldRow>
|
|
39
|
+
{
|
|
40
|
+
let path = `card/field`;
|
|
41
|
+
let { data } = await this._post<CardFieldRow>(path, {}, body);
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
async Delete(id: string): Promise<void>
|
|
45
|
+
{
|
|
46
|
+
let path = `card/field/${id}`;
|
|
47
|
+
await this._delete<void>(path, {});
|
|
48
|
+
}
|
|
49
|
+
async Get(id: string): Promise<CardFieldRow>
|
|
50
|
+
{
|
|
51
|
+
let path = `card/field/${id}`;
|
|
52
|
+
let { data } = await this._get<CardFieldRow>(path, {});
|
|
53
|
+
return data;
|
|
54
|
+
}
|
|
55
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: CardFieldRow[], count: (number | null) }>
|
|
56
|
+
{
|
|
57
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
58
|
+
let path = `card/field/list`;
|
|
59
|
+
let { data } = await this._get<{ rows: CardFieldRow[], count: (number | null) }>(path, { filters: filters_string_value, page, size });
|
|
60
|
+
return data;
|
|
61
|
+
}
|
|
62
|
+
async Update(id: string, body: EntityFieldInputRow): Promise<CardFieldRow>
|
|
63
|
+
{
|
|
64
|
+
let path = `card/field/${id}`;
|
|
65
|
+
let { data } = await this._put<CardFieldRow>(path, {}, body);
|
|
66
|
+
return data;
|
|
67
|
+
}
|
|
68
|
+
};
|