namirasoft-payment 1.4.91 → 1.4.93
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/.ns-sdkg-file-keep +1 -1
- package/dist/NamirasoftPaymentServer.js +1 -1
- package/dist/PaymentUUID.d.ts +70 -16
- package/dist/PaymentUUID.js +86 -32
- package/dist/PaymentUUID.js.map +1 -1
- package/package.json +27 -27
- package/src/NamirasoftPaymentServer.ts +74 -74
- package/src/NamirasoftPaymentServerBase.ts +29 -29
- package/src/NamirasoftPaymentServerHealthz.ts +35 -35
- package/src/NamirasoftPaymentServerInvoice.ts +69 -69
- package/src/NamirasoftPaymentServerMeter.ts +36 -36
- package/src/NamirasoftPaymentServerMetrics.ts +35 -35
- package/src/NamirasoftPaymentServerOffer.ts +51 -51
- package/src/NamirasoftPaymentServerOfferItem.ts +37 -37
- 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 +85 -85
- 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 +124 -70
- package/src/SubscriptionValidation.ts +63 -63
- 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 +118 -118
- package/src/command/Invoice_DeleteForCommand.ts +44 -44
- package/src/command/MeterCommand.ts +31 -31
- package/src/command/Meter_RecordForCommand.ts +91 -91
- package/src/command/MetricsCommand.ts +31 -31
- package/src/command/MetricsGetCommand.ts +44 -44
- package/src/command/OfferCommand.ts +33 -33
- package/src/command/OfferGetCommand.ts +44 -44
- package/src/command/OfferItemCommand.ts +31 -31
- package/src/command/OfferItemGetCommand.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 +43 -43
- 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/Subscription_GetValidationForCommand.ts +44 -44
- package/src/command/ValueCommand.ts +31 -31
- package/src/command/ValueListCommand.ts +44 -44
- package/src/command/cli.ts +60 -60
- 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 +132 -132
- package/src/meta/InvoiceCostMetaTable.ts +59 -59
- package/src/meta/InvoiceItemMetaTable.ts +75 -75
- package/src/meta/InvoiceMetaTable.ts +89 -89
- package/src/meta/NamirasoftPaymentMetaDatabase.ts +83 -83
- package/src/meta/OfferItemMetaTable.ts +137 -137
- package/src/meta/OfferMetaTable.ts +77 -77
- package/src/meta/PaymentMetaTable.ts +77 -77
- 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 +67 -67
- 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 +49 -49
- package/src/row/InvoiceInputRow.ts +33 -33
- package/src/row/InvoiceItemInputRow.ts +29 -29
- package/src/row/InvoiceItemRow.ts +37 -37
- package/src/row/InvoiceRow.ts +44 -44
- package/src/row/OfferFullRow.ts +44 -44
- package/src/row/OfferItemRow.ts +77 -77
- package/src/row/OfferRow.ts +40 -40
- package/src/row/PaymentRow.ts +41 -41
- 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 +38 -38
- package/src/row/SubscriptionItemRow.ts +30 -30
- package/src/row/SubscriptionPaidRow.ts +32 -32
- package/src/row/SubscriptionRow.ts +36 -36
package/.ns-sdkg-file-keep
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
src/PaymentUUID.ts
|
|
1
|
+
src/PaymentUUID.ts
|
|
2
2
|
src/SubscriptionValidation.ts
|
|
@@ -19,7 +19,7 @@ const NamirasoftPaymentServerSubscriptionPaid_1 = require("./NamirasoftPaymentSe
|
|
|
19
19
|
const NamirasoftPaymentServerValue_1 = require("./NamirasoftPaymentServerValue");
|
|
20
20
|
class NamirasoftPaymentServer extends namirasoft_account_1.NSABaseServer {
|
|
21
21
|
constructor(base_url, manager, onError) {
|
|
22
|
-
super(base_url, `1.4.
|
|
22
|
+
super(base_url, `1.4.92`, manager, onError);
|
|
23
23
|
this.healthz = new NamirasoftPaymentServerHealthz_1.NamirasoftPaymentServerHealthz(this);
|
|
24
24
|
this.metrics = new NamirasoftPaymentServerMetrics_1.NamirasoftPaymentServerMetrics(this);
|
|
25
25
|
this.value = new NamirasoftPaymentServerValue_1.NamirasoftPaymentServerValue(this);
|
package/dist/PaymentUUID.d.ts
CHANGED
|
@@ -1,21 +1,40 @@
|
|
|
1
1
|
export declare class PaymentUUID {
|
|
2
|
-
static
|
|
2
|
+
static NAMIRASOFT_BILL_WATCH: {
|
|
3
|
+
id: string;
|
|
3
4
|
sales_items: {
|
|
4
|
-
|
|
5
|
+
AWS: {
|
|
5
6
|
id: string;
|
|
6
7
|
offers: {
|
|
7
|
-
|
|
8
|
+
STANDARD: {
|
|
8
9
|
id: string;
|
|
9
10
|
items: {
|
|
10
|
-
|
|
11
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
11
12
|
id: string;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
AZURE: {
|
|
19
|
+
id: string;
|
|
20
|
+
offers: {
|
|
21
|
+
STANDARD: {
|
|
16
22
|
id: string;
|
|
17
23
|
items: {
|
|
18
|
-
|
|
24
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
GCP: {
|
|
32
|
+
id: string;
|
|
33
|
+
offers: {
|
|
34
|
+
STANDARD: {
|
|
35
|
+
id: string;
|
|
36
|
+
items: {
|
|
37
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
19
38
|
id: string;
|
|
20
39
|
};
|
|
21
40
|
};
|
|
@@ -24,41 +43,76 @@ export declare class PaymentUUID {
|
|
|
24
43
|
};
|
|
25
44
|
};
|
|
26
45
|
};
|
|
27
|
-
static
|
|
46
|
+
static NAMIRASOFT_FIELD: {
|
|
47
|
+
id: string;
|
|
28
48
|
sales_items: {
|
|
29
|
-
|
|
49
|
+
CATEGORY: {
|
|
50
|
+
id: string;
|
|
51
|
+
offers: {
|
|
52
|
+
STANDARD: {
|
|
53
|
+
id: string;
|
|
54
|
+
items: {
|
|
55
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
56
|
+
id: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
FIELD: {
|
|
30
63
|
id: string;
|
|
31
64
|
offers: {
|
|
32
|
-
|
|
65
|
+
STANDARD: {
|
|
33
66
|
id: string;
|
|
34
67
|
items: {
|
|
35
|
-
|
|
68
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
36
69
|
id: string;
|
|
37
70
|
};
|
|
38
71
|
};
|
|
39
72
|
};
|
|
40
73
|
};
|
|
41
74
|
};
|
|
42
|
-
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
static NAMIRASOFT_JOB_ARRANGER: {
|
|
78
|
+
id: string;
|
|
79
|
+
sales_items: {
|
|
80
|
+
MEMBERSHIP: {
|
|
43
81
|
id: string;
|
|
44
82
|
offers: {
|
|
45
|
-
|
|
83
|
+
MONTHLY: {
|
|
46
84
|
id: string;
|
|
47
85
|
items: {
|
|
48
|
-
|
|
86
|
+
FIX_PER_MONTH: {
|
|
87
|
+
id: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
ANNUAL: {
|
|
92
|
+
id: string;
|
|
93
|
+
items: {
|
|
94
|
+
FIX_PER_YAER: {
|
|
49
95
|
id: string;
|
|
50
96
|
};
|
|
51
97
|
};
|
|
52
98
|
};
|
|
53
99
|
};
|
|
54
100
|
};
|
|
55
|
-
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
static NAMIRASOFT_SECRET: {
|
|
104
|
+
id: string;
|
|
105
|
+
sales_items: {
|
|
106
|
+
SECRET: {
|
|
56
107
|
id: string;
|
|
57
108
|
offers: {
|
|
58
|
-
|
|
109
|
+
STANDARD: {
|
|
59
110
|
id: string;
|
|
60
111
|
items: {
|
|
61
|
-
|
|
112
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
113
|
+
id: string;
|
|
114
|
+
};
|
|
115
|
+
USAGE_FIX_PER_CALL: {
|
|
62
116
|
id: string;
|
|
63
117
|
};
|
|
64
118
|
};
|
package/dist/PaymentUUID.js
CHANGED
|
@@ -4,24 +4,43 @@ exports.PaymentUUID = void 0;
|
|
|
4
4
|
class PaymentUUID {
|
|
5
5
|
}
|
|
6
6
|
exports.PaymentUUID = PaymentUUID;
|
|
7
|
-
PaymentUUID.
|
|
7
|
+
PaymentUUID.NAMIRASOFT_BILL_WATCH = {
|
|
8
|
+
id: "prd-237ccb143fb04e52",
|
|
8
9
|
sales_items: {
|
|
9
|
-
|
|
10
|
-
id: "pym-sit-0@
|
|
10
|
+
AWS: {
|
|
11
|
+
id: "pym-sit-0@bw-----aws",
|
|
11
12
|
offers: {
|
|
12
|
-
|
|
13
|
-
id: "pym-ofr-
|
|
13
|
+
STANDARD: {
|
|
14
|
+
id: "pym-ofr-98d1fcc64ed2",
|
|
14
15
|
items: {
|
|
15
|
-
|
|
16
|
-
id: "pym-ofr-itm-
|
|
16
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
17
|
+
id: "pym-ofr-itm-969c9ab5"
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
AZURE: {
|
|
24
|
+
id: "pym-sit-0@bw---azure",
|
|
25
|
+
offers: {
|
|
26
|
+
STANDARD: {
|
|
27
|
+
id: "pym-ofr-8e5183c3fa74",
|
|
22
28
|
items: {
|
|
23
|
-
|
|
24
|
-
id: "pym-ofr-itm-
|
|
29
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
30
|
+
id: "pym-ofr-itm-004dddfc"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
GCP: {
|
|
37
|
+
id: "pym-sit-0@bw-----gcp",
|
|
38
|
+
offers: {
|
|
39
|
+
STANDARD: {
|
|
40
|
+
id: "pym-ofr-3b1830f46f19",
|
|
41
|
+
items: {
|
|
42
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
43
|
+
id: "pym-ofr-itm-7ac93d85"
|
|
25
44
|
}
|
|
26
45
|
}
|
|
27
46
|
}
|
|
@@ -29,42 +48,77 @@ PaymentUUID.NAMIRASOFT_JOB_ARRANGER = {
|
|
|
29
48
|
}
|
|
30
49
|
}
|
|
31
50
|
};
|
|
32
|
-
PaymentUUID.
|
|
51
|
+
PaymentUUID.NAMIRASOFT_FIELD = {
|
|
52
|
+
id: "prd-a9fb78ad0b6e4cd3",
|
|
33
53
|
sales_items: {
|
|
34
|
-
|
|
35
|
-
id: "pym-sit-0@
|
|
54
|
+
CATEGORY: {
|
|
55
|
+
id: "pym-sit-0@f-category",
|
|
36
56
|
offers: {
|
|
37
|
-
|
|
38
|
-
id: "pym-ofr-
|
|
57
|
+
STANDARD: {
|
|
58
|
+
id: "pym-ofr-e5eda59e2f4d",
|
|
39
59
|
items: {
|
|
40
|
-
|
|
41
|
-
id: "pym-ofr-itm-
|
|
60
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
61
|
+
id: "pym-ofr-itm-4bc1b267"
|
|
42
62
|
}
|
|
43
63
|
}
|
|
44
64
|
}
|
|
45
65
|
}
|
|
46
66
|
},
|
|
47
|
-
|
|
48
|
-
id: "pym-sit-0@
|
|
67
|
+
FIELD: {
|
|
68
|
+
id: "pym-sit-0@f----field",
|
|
49
69
|
offers: {
|
|
50
|
-
|
|
51
|
-
id: "pym-ofr-
|
|
70
|
+
STANDARD: {
|
|
71
|
+
id: "pym-ofr-715f15d80cec",
|
|
52
72
|
items: {
|
|
53
|
-
|
|
54
|
-
id: "pym-ofr-itm-
|
|
73
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
74
|
+
id: "pym-ofr-itm-ff792299"
|
|
55
75
|
}
|
|
56
76
|
}
|
|
57
77
|
}
|
|
58
78
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
PaymentUUID.NAMIRASOFT_JOB_ARRANGER = {
|
|
83
|
+
id: "prd-23e6a126ab4e4627",
|
|
84
|
+
sales_items: {
|
|
85
|
+
MEMBERSHIP: {
|
|
86
|
+
id: "pym-sit-0@ja--member",
|
|
62
87
|
offers: {
|
|
63
|
-
|
|
64
|
-
id: "pym-ofr-
|
|
88
|
+
MONTHLY: {
|
|
89
|
+
id: "pym-ofr-c882e68827d7",
|
|
65
90
|
items: {
|
|
66
|
-
|
|
67
|
-
id: "pym-ofr-itm-
|
|
91
|
+
FIX_PER_MONTH: {
|
|
92
|
+
id: "pym-ofr-itm-ece89dd6",
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
ANNUAL: {
|
|
97
|
+
id: "pym-ofr-943ff3f16b42",
|
|
98
|
+
items: {
|
|
99
|
+
FIX_PER_YAER: {
|
|
100
|
+
id: "pym-ofr-itm-50ec8c77"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
PaymentUUID.NAMIRASOFT_SECRET = {
|
|
109
|
+
id: "prd-84a5484d86bd4c11",
|
|
110
|
+
sales_items: {
|
|
111
|
+
SECRET: {
|
|
112
|
+
id: "pym-sit-0@----secret",
|
|
113
|
+
offers: {
|
|
114
|
+
STANDARD: {
|
|
115
|
+
id: "pym-ofr-7b5502c41c5e",
|
|
116
|
+
items: {
|
|
117
|
+
USAGE_PER_RECORD_PER_HOUR: {
|
|
118
|
+
id: "pym-ofr-itm-b61f98d1"
|
|
119
|
+
},
|
|
120
|
+
USAGE_FIX_PER_CALL: {
|
|
121
|
+
id: "pym-ofr-itm-0c41a416"
|
|
68
122
|
}
|
|
69
123
|
}
|
|
70
124
|
}
|
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,kCA4HC;AA1HU,iCAAqB,GAAG;IAC3B,EAAE,EAAE,sBAAsB;IAC1B,WAAW,EAAE;QACT,GAAG,EAAE;YACD,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,QAAQ,EAAE;oBACN,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,yBAAyB,EAAE;4BACvB,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;QACD,KAAK,EAAE;YACH,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,QAAQ,EAAE;oBACN,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,yBAAyB,EAAE;4BACvB,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;QACD,GAAG,EAAE;YACD,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,QAAQ,EAAE;oBACN,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,yBAAyB,EAAE;4BACvB,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AACK,4BAAgB,GAAG;IACtB,EAAE,EAAE,sBAAsB;IAC1B,WAAW,EAAE;QACT,QAAQ,EAAE;YACN,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,QAAQ,EAAE;oBACN,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,yBAAyB,EAAE;4BACvB,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;QACD,KAAK,EAAE;YACH,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,QAAQ,EAAE;oBACN,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,yBAAyB,EAAE;4BACvB,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AACK,mCAAuB,GAAG;IAC7B,EAAE,EAAE,sBAAsB;IAC1B,WAAW,EAAE;QACT,UAAU,EAAE;YACR,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,OAAO,EAAE;oBACL,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,aAAa,EAAE;4BACX,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;gBACD,MAAM,EAAE;oBACJ,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,YAAY,EAAE;4BACV,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AACK,6BAAiB,GAAG;IACvB,EAAE,EAAE,sBAAsB;IAC1B,WAAW,EAAE;QACT,MAAM,EAAE;YACJ,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,QAAQ,EAAE;oBACN,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,yBAAyB,EAAE;4BACvB,EAAE,EAAE,sBAAsB;yBAC7B;wBACD,kBAAkB,EAAE;4BAChB,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.
|
|
21
|
-
"namirasoft-site": "^1.4.39",
|
|
22
|
-
"namirasoft-node-cli": "^1.4.7",
|
|
23
|
-
"namirasoft-account": "^1.4.
|
|
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.93",
|
|
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.80",
|
|
21
|
+
"namirasoft-site": "^1.4.39",
|
|
22
|
+
"namirasoft-node-cli": "^1.4.7",
|
|
23
|
+
"namirasoft-account": "^1.4.84"
|
|
24
|
+
},
|
|
25
|
+
"bin": {
|
|
26
|
+
"ns-payment": "./dist/command/cli.js"
|
|
27
|
+
}
|
|
28
28
|
}
|
|
@@ -1,75 +1,75 @@
|
|
|
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 { NamirasoftPaymentServerMeter } from "./NamirasoftPaymentServerMeter";
|
|
25
|
-
import { NamirasoftPaymentServerMetrics } from "./NamirasoftPaymentServerMetrics";
|
|
26
|
-
import { NamirasoftPaymentServerOffer } from "./NamirasoftPaymentServerOffer";
|
|
27
|
-
import { NamirasoftPaymentServerOfferItem } from "./NamirasoftPaymentServerOfferItem";
|
|
28
|
-
import { NamirasoftPaymentServerOneTime } from "./NamirasoftPaymentServerOneTime";
|
|
29
|
-
import { NamirasoftPaymentServerPayment } from "./NamirasoftPaymentServerPayment";
|
|
30
|
-
import { NamirasoftPaymentServerProduct } from "./NamirasoftPaymentServerProduct";
|
|
31
|
-
import { NamirasoftPaymentServerSalesItem } from "./NamirasoftPaymentServerSalesItem";
|
|
32
|
-
import { NamirasoftPaymentServerSubscription } from "./NamirasoftPaymentServerSubscription";
|
|
33
|
-
import { NamirasoftPaymentServerSubscriptionCancellationReason } from "./NamirasoftPaymentServerSubscriptionCancellationReason";
|
|
34
|
-
import { NamirasoftPaymentServerSubscriptionItem } from "./NamirasoftPaymentServerSubscriptionItem";
|
|
35
|
-
import { NamirasoftPaymentServerSubscriptionPaid } from "./NamirasoftPaymentServerSubscriptionPaid";
|
|
36
|
-
import { NamirasoftPaymentServerValue } from "./NamirasoftPaymentServerValue";
|
|
37
|
-
import { TokenManager } from "namirasoft-account";
|
|
38
|
-
|
|
39
|
-
export class NamirasoftPaymentServer extends NSABaseServer
|
|
40
|
-
{
|
|
41
|
-
healthz: NamirasoftPaymentServerHealthz;
|
|
42
|
-
metrics: NamirasoftPaymentServerMetrics;
|
|
43
|
-
value: NamirasoftPaymentServerValue;
|
|
44
|
-
invoice: NamirasoftPaymentServerInvoice;
|
|
45
|
-
meter: NamirasoftPaymentServerMeter;
|
|
46
|
-
offer_item: NamirasoftPaymentServerOfferItem;
|
|
47
|
-
offer: NamirasoftPaymentServerOffer;
|
|
48
|
-
one_time: NamirasoftPaymentServerOneTime;
|
|
49
|
-
payment: NamirasoftPaymentServerPayment;
|
|
50
|
-
sales_item: NamirasoftPaymentServerSalesItem;
|
|
51
|
-
subscription_cancellation_reason: NamirasoftPaymentServerSubscriptionCancellationReason;
|
|
52
|
-
subscription_item: NamirasoftPaymentServerSubscriptionItem;
|
|
53
|
-
subscription_paid: NamirasoftPaymentServerSubscriptionPaid;
|
|
54
|
-
subscription: NamirasoftPaymentServerSubscription;
|
|
55
|
-
product: NamirasoftPaymentServerProduct;
|
|
56
|
-
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
57
|
-
{
|
|
58
|
-
super(base_url, `1.4.
|
|
59
|
-
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
60
|
-
this.metrics = new NamirasoftPaymentServerMetrics(this);
|
|
61
|
-
this.value = new NamirasoftPaymentServerValue(this);
|
|
62
|
-
this.invoice = new NamirasoftPaymentServerInvoice(this);
|
|
63
|
-
this.meter = new NamirasoftPaymentServerMeter(this);
|
|
64
|
-
this.offer_item = new NamirasoftPaymentServerOfferItem(this);
|
|
65
|
-
this.offer = new NamirasoftPaymentServerOffer(this);
|
|
66
|
-
this.one_time = new NamirasoftPaymentServerOneTime(this);
|
|
67
|
-
this.payment = new NamirasoftPaymentServerPayment(this);
|
|
68
|
-
this.sales_item = new NamirasoftPaymentServerSalesItem(this);
|
|
69
|
-
this.subscription_cancellation_reason = new NamirasoftPaymentServerSubscriptionCancellationReason(this);
|
|
70
|
-
this.subscription_item = new NamirasoftPaymentServerSubscriptionItem(this);
|
|
71
|
-
this.subscription_paid = new NamirasoftPaymentServerSubscriptionPaid(this);
|
|
72
|
-
this.subscription = new NamirasoftPaymentServerSubscription(this);
|
|
73
|
-
this.product = new NamirasoftPaymentServerProduct(this);
|
|
74
|
-
}
|
|
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 { NamirasoftPaymentServerMeter } from "./NamirasoftPaymentServerMeter";
|
|
25
|
+
import { NamirasoftPaymentServerMetrics } from "./NamirasoftPaymentServerMetrics";
|
|
26
|
+
import { NamirasoftPaymentServerOffer } from "./NamirasoftPaymentServerOffer";
|
|
27
|
+
import { NamirasoftPaymentServerOfferItem } from "./NamirasoftPaymentServerOfferItem";
|
|
28
|
+
import { NamirasoftPaymentServerOneTime } from "./NamirasoftPaymentServerOneTime";
|
|
29
|
+
import { NamirasoftPaymentServerPayment } from "./NamirasoftPaymentServerPayment";
|
|
30
|
+
import { NamirasoftPaymentServerProduct } from "./NamirasoftPaymentServerProduct";
|
|
31
|
+
import { NamirasoftPaymentServerSalesItem } from "./NamirasoftPaymentServerSalesItem";
|
|
32
|
+
import { NamirasoftPaymentServerSubscription } from "./NamirasoftPaymentServerSubscription";
|
|
33
|
+
import { NamirasoftPaymentServerSubscriptionCancellationReason } from "./NamirasoftPaymentServerSubscriptionCancellationReason";
|
|
34
|
+
import { NamirasoftPaymentServerSubscriptionItem } from "./NamirasoftPaymentServerSubscriptionItem";
|
|
35
|
+
import { NamirasoftPaymentServerSubscriptionPaid } from "./NamirasoftPaymentServerSubscriptionPaid";
|
|
36
|
+
import { NamirasoftPaymentServerValue } from "./NamirasoftPaymentServerValue";
|
|
37
|
+
import { TokenManager } from "namirasoft-account";
|
|
38
|
+
|
|
39
|
+
export class NamirasoftPaymentServer extends NSABaseServer
|
|
40
|
+
{
|
|
41
|
+
healthz: NamirasoftPaymentServerHealthz;
|
|
42
|
+
metrics: NamirasoftPaymentServerMetrics;
|
|
43
|
+
value: NamirasoftPaymentServerValue;
|
|
44
|
+
invoice: NamirasoftPaymentServerInvoice;
|
|
45
|
+
meter: NamirasoftPaymentServerMeter;
|
|
46
|
+
offer_item: NamirasoftPaymentServerOfferItem;
|
|
47
|
+
offer: NamirasoftPaymentServerOffer;
|
|
48
|
+
one_time: NamirasoftPaymentServerOneTime;
|
|
49
|
+
payment: NamirasoftPaymentServerPayment;
|
|
50
|
+
sales_item: NamirasoftPaymentServerSalesItem;
|
|
51
|
+
subscription_cancellation_reason: NamirasoftPaymentServerSubscriptionCancellationReason;
|
|
52
|
+
subscription_item: NamirasoftPaymentServerSubscriptionItem;
|
|
53
|
+
subscription_paid: NamirasoftPaymentServerSubscriptionPaid;
|
|
54
|
+
subscription: NamirasoftPaymentServerSubscription;
|
|
55
|
+
product: NamirasoftPaymentServerProduct;
|
|
56
|
+
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
57
|
+
{
|
|
58
|
+
super(base_url, `1.4.92`, manager, onError);
|
|
59
|
+
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
60
|
+
this.metrics = new NamirasoftPaymentServerMetrics(this);
|
|
61
|
+
this.value = new NamirasoftPaymentServerValue(this);
|
|
62
|
+
this.invoice = new NamirasoftPaymentServerInvoice(this);
|
|
63
|
+
this.meter = new NamirasoftPaymentServerMeter(this);
|
|
64
|
+
this.offer_item = new NamirasoftPaymentServerOfferItem(this);
|
|
65
|
+
this.offer = new NamirasoftPaymentServerOffer(this);
|
|
66
|
+
this.one_time = new NamirasoftPaymentServerOneTime(this);
|
|
67
|
+
this.payment = new NamirasoftPaymentServerPayment(this);
|
|
68
|
+
this.sales_item = new NamirasoftPaymentServerSalesItem(this);
|
|
69
|
+
this.subscription_cancellation_reason = new NamirasoftPaymentServerSubscriptionCancellationReason(this);
|
|
70
|
+
this.subscription_item = new NamirasoftPaymentServerSubscriptionItem(this);
|
|
71
|
+
this.subscription_paid = new NamirasoftPaymentServerSubscriptionPaid(this);
|
|
72
|
+
this.subscription = new NamirasoftPaymentServerSubscription(this);
|
|
73
|
+
this.product = new NamirasoftPaymentServerProduct(this);
|
|
74
|
+
}
|
|
75
75
|
};
|
|
@@ -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
|
};
|