namirasoft-payment 1.4.69 → 1.4.71
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.js +1 -1
- package/dist/PaymentUUID.d.ts +25 -11
- package/dist/PaymentUUID.js +31 -17
- package/dist/PaymentUUID.js.map +1 -1
- package/package.json +27 -27
- package/src/NamirasoftPaymentServer.ts +65 -65
- package/src/NamirasoftPaymentServerBase.ts +29 -29
- package/src/NamirasoftPaymentServerHealthz.ts +35 -35
- package/src/NamirasoftPaymentServerInvoice.ts +69 -69
- package/src/NamirasoftPaymentServerOffer.ts +51 -51
- package/src/NamirasoftPaymentServerOneTime.ts +37 -37
- package/src/NamirasoftPaymentServerPayment.ts +48 -48
- package/src/NamirasoftPaymentServerProduct.ts +48 -48
- package/src/NamirasoftPaymentServerSalesItem.ts +48 -48
- package/src/NamirasoftPaymentServerSubscription.ts +77 -77
- package/src/NamirasoftPaymentServerSubscriptionCancellationReason.ts +48 -48
- package/src/NamirasoftPaymentServerSubscriptionItem.ts +41 -41
- package/src/NamirasoftPaymentServerSubscriptionPaid.ts +55 -55
- package/src/NamirasoftPaymentServerValue.ts +36 -36
- package/src/PaymentUUID.ts +70 -56
- package/src/command/HealthzCommand.ts +31 -31
- package/src/command/HealthzGetCommand.ts +44 -44
- package/src/command/InvoiceCancelCommand.ts +44 -44
- package/src/command/InvoiceCommand.ts +39 -39
- package/src/command/InvoiceGetCommand.ts +44 -44
- package/src/command/InvoiceListCommand.ts +44 -44
- package/src/command/Invoice_CreateForCommand.ts +109 -109
- package/src/command/Invoice_DeleteForCommand.ts +44 -44
- package/src/command/OfferCommand.ts +33 -33
- package/src/command/OfferGetCommand.ts +44 -44
- package/src/command/OfferListCommand.ts +44 -44
- package/src/command/OneTimeCheckoutCommand.ts +82 -82
- package/src/command/OneTimeCommand.ts +31 -31
- package/src/command/PaymentCommand.ts +33 -33
- package/src/command/PaymentGetCommand.ts +44 -44
- package/src/command/PaymentListCommand.ts +44 -44
- package/src/command/ProductCommand.ts +33 -33
- package/src/command/ProductGetCommand.ts +44 -44
- package/src/command/ProductListCommand.ts +44 -44
- package/src/command/SalesItemCommand.ts +33 -33
- package/src/command/SalesItemGetCommand.ts +44 -44
- package/src/command/SalesItemListCommand.ts +44 -44
- package/src/command/SubscriptionAcceptCancellationOfferCommand.ts +73 -73
- package/src/command/SubscriptionCancelCommand.ts +64 -64
- package/src/command/SubscriptionCancellationReasonCommand.ts +33 -33
- package/src/command/SubscriptionCancellationReasonGetCommand.ts +44 -44
- package/src/command/SubscriptionCancellationReasonListCommand.ts +44 -44
- package/src/command/SubscriptionCheckoutOfferCommand.ts +73 -73
- package/src/command/SubscriptionCommand.ts +41 -41
- package/src/command/SubscriptionGetCancellationOfferCommand.ts +44 -44
- package/src/command/SubscriptionGetCommand.ts +44 -44
- package/src/command/SubscriptionItemCommand.ts +31 -31
- package/src/command/SubscriptionItemListCommand.ts +44 -44
- package/src/command/SubscriptionListCommand.ts +44 -44
- package/src/command/SubscriptionPaidCommand.ts +35 -35
- package/src/command/SubscriptionPaidGetCommand.ts +44 -44
- package/src/command/SubscriptionPaidListCommand.ts +44 -44
- package/src/command/SubscriptionPaid_ListForCommand.ts +44 -44
- package/src/command/ValueCommand.ts +31 -31
- package/src/command/ValueListCommand.ts +44 -44
- package/src/command/cli.ts +54 -54
- package/src/enum/GatewayType.ts +23 -23
- package/src/enum/InvoiceCostType.ts +25 -25
- package/src/enum/OfferItemExpireUnit.ts +27 -27
- package/src/enum/OfferItemOneOffModel.ts +25 -25
- package/src/enum/OfferItemRecurringDurationUnit.ts +26 -26
- package/src/enum/OfferItemRecurringModel.ts +26 -26
- package/src/enum/OfferItemRecurringTieredType.ts +24 -24
- package/src/enum/OfferItemRecurringUsageTieredType.ts +24 -24
- package/src/enum/OfferItemRecurringUsageType.ts +25 -25
- package/src/enum/OfferItemType.ts +24 -24
- package/src/enum/OfferRecurringDurationUnit.ts +26 -26
- package/src/enum/PaymentGateway.ts +23 -23
- package/src/enum/PaymentStatus.ts +26 -26
- package/src/enum/SalesItemExpireUnit.ts +27 -27
- package/src/enum/SubscriptionGateway.ts +23 -23
- package/src/enum/SubscriptionStatus.ts +30 -30
- package/src/index.ts +121 -121
- package/src/meta/InvoiceCostMetaTable.ts +59 -59
- package/src/meta/InvoiceItemMetaTable.ts +75 -75
- package/src/meta/InvoiceMetaTable.ts +87 -87
- package/src/meta/NamirasoftPaymentMetaDatabase.ts +83 -83
- package/src/meta/OfferItemMetaTable.ts +135 -135
- package/src/meta/OfferMetaTable.ts +77 -77
- package/src/meta/PaymentMetaTable.ts +75 -75
- package/src/meta/ProductMetaTable.ts +59 -59
- package/src/meta/SalesItemMetaTable.ts +73 -73
- package/src/meta/SubscriptionCancellationReasonMetaTable.ts +67 -67
- package/src/meta/SubscriptionItemMetaTable.ts +61 -61
- package/src/meta/SubscriptionMetaTable.ts +65 -65
- package/src/meta/SubscriptionPaidMetaTable.ts +65 -65
- package/src/row/InvoiceCostInputRow.ts +27 -27
- package/src/row/InvoiceCostRow.ts +31 -31
- package/src/row/InvoiceFullRow.ts +48 -48
- package/src/row/InvoiceInputRow.ts +32 -32
- package/src/row/InvoiceItemInputRow.ts +29 -29
- package/src/row/InvoiceItemRow.ts +37 -37
- package/src/row/InvoiceRow.ts +43 -43
- package/src/row/OfferFullRow.ts +44 -44
- package/src/row/OfferItemRow.ts +76 -76
- package/src/row/OfferRow.ts +40 -40
- package/src/row/PaymentRow.ts +40 -40
- package/src/row/ProductRow.ts +29 -29
- package/src/row/SalesItemRow.ts +38 -38
- package/src/row/SubscriptionCancellationReasonRow.ts +33 -33
- package/src/row/SubscriptionFullRow.ts +37 -37
- package/src/row/SubscriptionItemRow.ts +30 -30
- package/src/row/SubscriptionPaidRow.ts +32 -32
- package/src/row/SubscriptionRow.ts +35 -35
|
@@ -16,7 +16,7 @@ const NamirasoftPaymentServerSubscriptionPaid_1 = require("./NamirasoftPaymentSe
|
|
|
16
16
|
const NamirasoftPaymentServerValue_1 = require("./NamirasoftPaymentServerValue");
|
|
17
17
|
class NamirasoftPaymentServer extends namirasoft_account_1.NSABaseServer {
|
|
18
18
|
constructor(base_url, manager, onError) {
|
|
19
|
-
super(base_url, `1.4.
|
|
19
|
+
super(base_url, `1.4.70`, manager, onError);
|
|
20
20
|
this.healthz = new NamirasoftPaymentServerHealthz_1.NamirasoftPaymentServerHealthz(this);
|
|
21
21
|
this.value = new NamirasoftPaymentServerValue_1.NamirasoftPaymentServerValue(this);
|
|
22
22
|
this.invoice = new NamirasoftPaymentServerInvoice_1.NamirasoftPaymentServerInvoice(this);
|
package/dist/PaymentUUID.d.ts
CHANGED
|
@@ -26,26 +26,40 @@ export declare class PaymentUUID {
|
|
|
26
26
|
};
|
|
27
27
|
static NAMIRASOFT_BILL_WATCH: {
|
|
28
28
|
sales_items: {
|
|
29
|
-
|
|
29
|
+
BILL_WATCH_AWS: {
|
|
30
30
|
id: string;
|
|
31
31
|
offers: {
|
|
32
|
-
|
|
32
|
+
TIME_USAGE: {
|
|
33
33
|
id: string;
|
|
34
34
|
items: {
|
|
35
|
-
|
|
35
|
+
FIX_HOUR: {
|
|
36
36
|
id: string;
|
|
37
|
-
USAGE_NAME: string;
|
|
38
|
-
USAGE_UNIT: string;
|
|
39
37
|
};
|
|
40
|
-
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
BILL_WATCH_AZURE: {
|
|
43
|
+
id: string;
|
|
44
|
+
offers: {
|
|
45
|
+
TIME_USAGE: {
|
|
46
|
+
id: string;
|
|
47
|
+
items: {
|
|
48
|
+
FIX_HOUR: {
|
|
41
49
|
id: string;
|
|
42
|
-
USAGE_NAME: string;
|
|
43
|
-
USAGE_UNIT: string;
|
|
44
50
|
};
|
|
45
|
-
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
BILL_WATCH_GCP: {
|
|
56
|
+
id: string;
|
|
57
|
+
offers: {
|
|
58
|
+
TIME_USAGE: {
|
|
59
|
+
id: string;
|
|
60
|
+
items: {
|
|
61
|
+
FIX_HOUR: {
|
|
46
62
|
id: string;
|
|
47
|
-
USAGE_NAME: string;
|
|
48
|
-
USAGE_UNIT: string;
|
|
49
63
|
};
|
|
50
64
|
};
|
|
51
65
|
};
|
package/dist/PaymentUUID.js
CHANGED
|
@@ -31,26 +31,40 @@ PaymentUUID.NAMIRASOFT_JOB_ARRANGER = {
|
|
|
31
31
|
};
|
|
32
32
|
PaymentUUID.NAMIRASOFT_BILL_WATCH = {
|
|
33
33
|
sales_items: {
|
|
34
|
-
|
|
35
|
-
id: "pym-sit-0@bw
|
|
34
|
+
BILL_WATCH_AWS: {
|
|
35
|
+
id: "pym-sit-0@bw-----aws",
|
|
36
36
|
offers: {
|
|
37
|
-
|
|
37
|
+
TIME_USAGE: {
|
|
38
38
|
id: "pym-ofr-98d1fcc64ed2",
|
|
39
39
|
items: {
|
|
40
|
-
|
|
41
|
-
id: "pym-ofr-itm-969c9ab5"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
FIX_HOUR: {
|
|
41
|
+
id: "pym-ofr-itm-969c9ab5"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
BILL_WATCH_AZURE: {
|
|
48
|
+
id: "pym-sit-0@bw---azure",
|
|
49
|
+
offers: {
|
|
50
|
+
TIME_USAGE: {
|
|
51
|
+
id: "pym-ofr-8e5183c3fa74",
|
|
52
|
+
items: {
|
|
53
|
+
FIX_HOUR: {
|
|
54
|
+
id: "pym-ofr-itm-004dddfc"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
BILL_WATCH_GCP: {
|
|
61
|
+
id: "pym-sit-0@bw-----gcp",
|
|
62
|
+
offers: {
|
|
63
|
+
TIME_USAGE: {
|
|
64
|
+
id: "pym-ofr-3b1830f46f19",
|
|
65
|
+
items: {
|
|
66
|
+
FIX_HOUR: {
|
|
67
|
+
id: "pym-ofr-itm-7ac93d85"
|
|
54
68
|
}
|
|
55
69
|
}
|
|
56
70
|
}
|
package/dist/PaymentUUID.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentUUID.js","sourceRoot":"","sources":["../src/PaymentUUID.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;;AAAxB,
|
|
1
|
+
{"version":3,"file":"PaymentUUID.js","sourceRoot":"","sources":["../src/PaymentUUID.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;;AAAxB,kCAsEC;AApEU,mCAAuB,GAAG;IAC7B,WAAW,EAAE;QACT,uBAAuB,EAAE;YACrB,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,kBAAkB,EAAE;oBAChB,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,OAAO,EAAE;4BACL,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;gBACD,iBAAiB,EAAE;oBACf,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,QAAQ,EAAE;4BACN,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AACK,iCAAqB,GAAG;IAC3B,WAAW,EAAE;QACT,cAAc,EAAE;YACZ,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,UAAU,EAAE;oBACR,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,QAAQ,EAAE;4BACN,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;QACD,gBAAgB,EAAE;YACd,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,UAAU,EAAE;oBACR,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,QAAQ,EAAE;4BACN,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;QACD,cAAc,EAAE;YACZ,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,UAAU,EAAE;oBACR,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,QAAQ,EAAE;4BACN,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,28 +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/base.png",
|
|
7
|
-
"language": "ts",
|
|
8
|
-
"framework": "npm",
|
|
9
|
-
"application": "package",
|
|
10
|
-
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
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.4.71",
|
|
21
|
-
"namirasoft-site": "^1.4.37",
|
|
22
|
-
"namirasoft-node-cli": "^1.4.7",
|
|
23
|
-
"namirasoft-account": "^1.4.72"
|
|
24
|
-
},
|
|
25
|
-
"bin": {
|
|
26
|
-
"ns-payment": "./dist/command/cli.js"
|
|
27
|
-
}
|
|
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/base.png",
|
|
7
|
+
"language": "ts",
|
|
8
|
+
"framework": "npm",
|
|
9
|
+
"application": "package",
|
|
10
|
+
"private": false,
|
|
11
|
+
"version": "1.4.71",
|
|
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.4.71",
|
|
21
|
+
"namirasoft-site": "^1.4.37",
|
|
22
|
+
"namirasoft-node-cli": "^1.4.7",
|
|
23
|
+
"namirasoft-account": "^1.4.72"
|
|
24
|
+
},
|
|
25
|
+
"bin": {
|
|
26
|
+
"ns-payment": "./dist/command/cli.js"
|
|
27
|
+
}
|
|
28
28
|
}
|
|
@@ -1,66 +1,66 @@
|
|
|
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 change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { NSABaseServer } from "namirasoft-account";
|
|
22
|
-
import { NamirasoftPaymentServerHealthz } from "./NamirasoftPaymentServerHealthz";
|
|
23
|
-
import { NamirasoftPaymentServerInvoice } from "./NamirasoftPaymentServerInvoice";
|
|
24
|
-
import { NamirasoftPaymentServerOffer } from "./NamirasoftPaymentServerOffer";
|
|
25
|
-
import { NamirasoftPaymentServerOneTime } from "./NamirasoftPaymentServerOneTime";
|
|
26
|
-
import { NamirasoftPaymentServerPayment } from "./NamirasoftPaymentServerPayment";
|
|
27
|
-
import { NamirasoftPaymentServerProduct } from "./NamirasoftPaymentServerProduct";
|
|
28
|
-
import { NamirasoftPaymentServerSalesItem } from "./NamirasoftPaymentServerSalesItem";
|
|
29
|
-
import { NamirasoftPaymentServerSubscription } from "./NamirasoftPaymentServerSubscription";
|
|
30
|
-
import { NamirasoftPaymentServerSubscriptionCancellationReason } from "./NamirasoftPaymentServerSubscriptionCancellationReason";
|
|
31
|
-
import { NamirasoftPaymentServerSubscriptionItem } from "./NamirasoftPaymentServerSubscriptionItem";
|
|
32
|
-
import { NamirasoftPaymentServerSubscriptionPaid } from "./NamirasoftPaymentServerSubscriptionPaid";
|
|
33
|
-
import { NamirasoftPaymentServerValue } from "./NamirasoftPaymentServerValue";
|
|
34
|
-
import { TokenManager } from "namirasoft-account";
|
|
35
|
-
|
|
36
|
-
export class NamirasoftPaymentServer extends NSABaseServer
|
|
37
|
-
{
|
|
38
|
-
healthz: NamirasoftPaymentServerHealthz;
|
|
39
|
-
value: NamirasoftPaymentServerValue;
|
|
40
|
-
invoice: NamirasoftPaymentServerInvoice;
|
|
41
|
-
offer: NamirasoftPaymentServerOffer;
|
|
42
|
-
one_time: NamirasoftPaymentServerOneTime;
|
|
43
|
-
payment: NamirasoftPaymentServerPayment;
|
|
44
|
-
sales_item: NamirasoftPaymentServerSalesItem;
|
|
45
|
-
subscription_cancellation_reason: NamirasoftPaymentServerSubscriptionCancellationReason;
|
|
46
|
-
subscription_item: NamirasoftPaymentServerSubscriptionItem;
|
|
47
|
-
subscription_paid: NamirasoftPaymentServerSubscriptionPaid;
|
|
48
|
-
subscription: NamirasoftPaymentServerSubscription;
|
|
49
|
-
product: NamirasoftPaymentServerProduct;
|
|
50
|
-
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
51
|
-
{
|
|
52
|
-
super(base_url, `1.4.
|
|
53
|
-
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
54
|
-
this.value = new NamirasoftPaymentServerValue(this);
|
|
55
|
-
this.invoice = new NamirasoftPaymentServerInvoice(this);
|
|
56
|
-
this.offer = new NamirasoftPaymentServerOffer(this);
|
|
57
|
-
this.one_time = new NamirasoftPaymentServerOneTime(this);
|
|
58
|
-
this.payment = new NamirasoftPaymentServerPayment(this);
|
|
59
|
-
this.sales_item = new NamirasoftPaymentServerSalesItem(this);
|
|
60
|
-
this.subscription_cancellation_reason = new NamirasoftPaymentServerSubscriptionCancellationReason(this);
|
|
61
|
-
this.subscription_item = new NamirasoftPaymentServerSubscriptionItem(this);
|
|
62
|
-
this.subscription_paid = new NamirasoftPaymentServerSubscriptionPaid(this);
|
|
63
|
-
this.subscription = new NamirasoftPaymentServerSubscription(this);
|
|
64
|
-
this.product = new NamirasoftPaymentServerProduct(this);
|
|
65
|
-
}
|
|
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 change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
22
|
+
import { NamirasoftPaymentServerHealthz } from "./NamirasoftPaymentServerHealthz";
|
|
23
|
+
import { NamirasoftPaymentServerInvoice } from "./NamirasoftPaymentServerInvoice";
|
|
24
|
+
import { NamirasoftPaymentServerOffer } from "./NamirasoftPaymentServerOffer";
|
|
25
|
+
import { NamirasoftPaymentServerOneTime } from "./NamirasoftPaymentServerOneTime";
|
|
26
|
+
import { NamirasoftPaymentServerPayment } from "./NamirasoftPaymentServerPayment";
|
|
27
|
+
import { NamirasoftPaymentServerProduct } from "./NamirasoftPaymentServerProduct";
|
|
28
|
+
import { NamirasoftPaymentServerSalesItem } from "./NamirasoftPaymentServerSalesItem";
|
|
29
|
+
import { NamirasoftPaymentServerSubscription } from "./NamirasoftPaymentServerSubscription";
|
|
30
|
+
import { NamirasoftPaymentServerSubscriptionCancellationReason } from "./NamirasoftPaymentServerSubscriptionCancellationReason";
|
|
31
|
+
import { NamirasoftPaymentServerSubscriptionItem } from "./NamirasoftPaymentServerSubscriptionItem";
|
|
32
|
+
import { NamirasoftPaymentServerSubscriptionPaid } from "./NamirasoftPaymentServerSubscriptionPaid";
|
|
33
|
+
import { NamirasoftPaymentServerValue } from "./NamirasoftPaymentServerValue";
|
|
34
|
+
import { TokenManager } from "namirasoft-account";
|
|
35
|
+
|
|
36
|
+
export class NamirasoftPaymentServer extends NSABaseServer
|
|
37
|
+
{
|
|
38
|
+
healthz: NamirasoftPaymentServerHealthz;
|
|
39
|
+
value: NamirasoftPaymentServerValue;
|
|
40
|
+
invoice: NamirasoftPaymentServerInvoice;
|
|
41
|
+
offer: NamirasoftPaymentServerOffer;
|
|
42
|
+
one_time: NamirasoftPaymentServerOneTime;
|
|
43
|
+
payment: NamirasoftPaymentServerPayment;
|
|
44
|
+
sales_item: NamirasoftPaymentServerSalesItem;
|
|
45
|
+
subscription_cancellation_reason: NamirasoftPaymentServerSubscriptionCancellationReason;
|
|
46
|
+
subscription_item: NamirasoftPaymentServerSubscriptionItem;
|
|
47
|
+
subscription_paid: NamirasoftPaymentServerSubscriptionPaid;
|
|
48
|
+
subscription: NamirasoftPaymentServerSubscription;
|
|
49
|
+
product: NamirasoftPaymentServerProduct;
|
|
50
|
+
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
51
|
+
{
|
|
52
|
+
super(base_url, `1.4.70`, manager, onError);
|
|
53
|
+
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
54
|
+
this.value = new NamirasoftPaymentServerValue(this);
|
|
55
|
+
this.invoice = new NamirasoftPaymentServerInvoice(this);
|
|
56
|
+
this.offer = new NamirasoftPaymentServerOffer(this);
|
|
57
|
+
this.one_time = new NamirasoftPaymentServerOneTime(this);
|
|
58
|
+
this.payment = new NamirasoftPaymentServerPayment(this);
|
|
59
|
+
this.sales_item = new NamirasoftPaymentServerSalesItem(this);
|
|
60
|
+
this.subscription_cancellation_reason = new NamirasoftPaymentServerSubscriptionCancellationReason(this);
|
|
61
|
+
this.subscription_item = new NamirasoftPaymentServerSubscriptionItem(this);
|
|
62
|
+
this.subscription_paid = new NamirasoftPaymentServerSubscriptionPaid(this);
|
|
63
|
+
this.subscription = new NamirasoftPaymentServerSubscription(this);
|
|
64
|
+
this.product = new NamirasoftPaymentServerProduct(this);
|
|
65
|
+
}
|
|
66
66
|
};
|
|
@@ -1,30 +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 change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
22
|
-
|
|
23
|
-
export class NamirasoftPaymentServerBase
|
|
24
|
-
{
|
|
25
|
-
public server: NamirasoftPaymentServer;
|
|
26
|
-
constructor(server: NamirasoftPaymentServer)
|
|
27
|
-
{
|
|
28
|
-
this.server = server;
|
|
29
|
-
}
|
|
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 change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
22
|
+
|
|
23
|
+
export class NamirasoftPaymentServerBase
|
|
24
|
+
{
|
|
25
|
+
public server: NamirasoftPaymentServer;
|
|
26
|
+
constructor(server: NamirasoftPaymentServer)
|
|
27
|
+
{
|
|
28
|
+
this.server = server;
|
|
29
|
+
}
|
|
30
30
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
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 change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
22
|
-
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
23
|
-
|
|
24
|
-
export class NamirasoftPaymentServerHealthz extends NamirasoftPaymentServerBase
|
|
25
|
-
{
|
|
26
|
-
constructor(server: NamirasoftPaymentServer)
|
|
27
|
-
{
|
|
28
|
-
super(server);
|
|
29
|
-
this.Get = this.Get.bind(this);
|
|
30
|
-
}
|
|
31
|
-
async Get(): Promise<void>
|
|
32
|
-
{
|
|
33
|
-
let path = `/healthz`;
|
|
34
|
-
await this.server._get<void>(path, {});
|
|
35
|
-
}
|
|
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 change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
22
|
+
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
23
|
+
|
|
24
|
+
export class NamirasoftPaymentServerHealthz extends NamirasoftPaymentServerBase
|
|
25
|
+
{
|
|
26
|
+
constructor(server: NamirasoftPaymentServer)
|
|
27
|
+
{
|
|
28
|
+
super(server);
|
|
29
|
+
this.Get = this.Get.bind(this);
|
|
30
|
+
}
|
|
31
|
+
async Get(): Promise<void>
|
|
32
|
+
{
|
|
33
|
+
let path = `/healthz`;
|
|
34
|
+
await this.server._get<void>(path, {});
|
|
35
|
+
}
|
|
36
36
|
};
|
|
@@ -1,70 +1,70 @@
|
|
|
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 change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { FilterItem } from "namirasoft-core";
|
|
22
|
-
import { InvoiceFullRow } from "./row/InvoiceFullRow";
|
|
23
|
-
import { InvoiceInputRow } from "./row/InvoiceInputRow";
|
|
24
|
-
import { InvoiceRow } from "./row/InvoiceRow";
|
|
25
|
-
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
26
|
-
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
27
|
-
import { SortItem } from "namirasoft-core";
|
|
28
|
-
|
|
29
|
-
export class NamirasoftPaymentServerInvoice extends NamirasoftPaymentServerBase
|
|
30
|
-
{
|
|
31
|
-
constructor(server: NamirasoftPaymentServer)
|
|
32
|
-
{
|
|
33
|
-
super(server);
|
|
34
|
-
this.List = this.List.bind(this);
|
|
35
|
-
this.Get = this.Get.bind(this);
|
|
36
|
-
this._CreateFor = this._CreateFor.bind(this);
|
|
37
|
-
this._DeleteFor = this._DeleteFor.bind(this);
|
|
38
|
-
this.Cancel = this.Cancel.bind(this);
|
|
39
|
-
}
|
|
40
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: InvoiceRow[], count: number }>
|
|
41
|
-
{
|
|
42
|
-
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
-
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
-
let path = `/invoice/list`;
|
|
45
|
-
let { data } = await this.server._get<{ rows: InvoiceRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
46
|
-
return data;
|
|
47
|
-
}
|
|
48
|
-
async Get(id: string): Promise<InvoiceFullRow>
|
|
49
|
-
{
|
|
50
|
-
let path = `/invoice/${id}`;
|
|
51
|
-
let { data } = await this.server._get<InvoiceFullRow>(path, {});
|
|
52
|
-
return data;
|
|
53
|
-
}
|
|
54
|
-
async _CreateFor(user_id: string, body: InvoiceInputRow): Promise<InvoiceFullRow>
|
|
55
|
-
{
|
|
56
|
-
let path = `/application/user/${user_id}/invoice`;
|
|
57
|
-
let { data } = await this.server._post<InvoiceFullRow>(path, {}, body);
|
|
58
|
-
return data;
|
|
59
|
-
}
|
|
60
|
-
async _DeleteFor(user_id: string, id: string): Promise<void>
|
|
61
|
-
{
|
|
62
|
-
let path = `/application/user/${user_id}/invoice/${id}`;
|
|
63
|
-
await this.server._delete<void>(path, {});
|
|
64
|
-
}
|
|
65
|
-
async Cancel(id: string): Promise<void>
|
|
66
|
-
{
|
|
67
|
-
let path = `/invoice/cancel/${id}`;
|
|
68
|
-
await this.server._put<void>(path, {});
|
|
69
|
-
}
|
|
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 change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { FilterItem } from "namirasoft-core";
|
|
22
|
+
import { InvoiceFullRow } from "./row/InvoiceFullRow";
|
|
23
|
+
import { InvoiceInputRow } from "./row/InvoiceInputRow";
|
|
24
|
+
import { InvoiceRow } from "./row/InvoiceRow";
|
|
25
|
+
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
26
|
+
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftPaymentServerInvoice extends NamirasoftPaymentServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftPaymentServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this._CreateFor = this._CreateFor.bind(this);
|
|
37
|
+
this._DeleteFor = this._DeleteFor.bind(this);
|
|
38
|
+
this.Cancel = this.Cancel.bind(this);
|
|
39
|
+
}
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: InvoiceRow[], count: number }>
|
|
41
|
+
{
|
|
42
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
+
let path = `/invoice/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: InvoiceRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Get(id: string): Promise<InvoiceFullRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `/invoice/${id}`;
|
|
51
|
+
let { data } = await this.server._get<InvoiceFullRow>(path, {});
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async _CreateFor(user_id: string, body: InvoiceInputRow): Promise<InvoiceFullRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `/application/user/${user_id}/invoice`;
|
|
57
|
+
let { data } = await this.server._post<InvoiceFullRow>(path, {}, body);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async _DeleteFor(user_id: string, id: string): Promise<void>
|
|
61
|
+
{
|
|
62
|
+
let path = `/application/user/${user_id}/invoice/${id}`;
|
|
63
|
+
await this.server._delete<void>(path, {});
|
|
64
|
+
}
|
|
65
|
+
async Cancel(id: string): Promise<void>
|
|
66
|
+
{
|
|
67
|
+
let path = `/invoice/cancel/${id}`;
|
|
68
|
+
await this.server._put<void>(path, {});
|
|
69
|
+
}
|
|
70
70
|
};
|