namirasoft-payment 1.4.88 → 1.4.90
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/command/Invoice_CreateForCommand.js +9 -0
- package/dist/command/Invoice_CreateForCommand.js.map +1 -1
- package/dist/meta/InvoiceMetaTable.d.ts +1 -0
- package/dist/meta/InvoiceMetaTable.js +1 -0
- package/dist/meta/InvoiceMetaTable.js.map +1 -1
- package/dist/meta/PaymentMetaTable.d.ts +1 -0
- package/dist/meta/PaymentMetaTable.js +1 -0
- package/dist/meta/PaymentMetaTable.js.map +1 -1
- package/dist/meta/SubscriptionMetaTable.d.ts +1 -0
- package/dist/meta/SubscriptionMetaTable.js +1 -0
- package/dist/meta/SubscriptionMetaTable.js.map +1 -1
- package/dist/row/InvoiceFullRow.d.ts +1 -0
- package/dist/row/InvoiceInputRow.d.ts +1 -0
- package/dist/row/InvoiceRow.d.ts +1 -0
- package/dist/row/PaymentRow.d.ts +1 -0
- package/dist/row/SubscriptionFullRow.d.ts +1 -0
- package/dist/row/SubscriptionRow.d.ts +1 -0
- package/package.json +4 -4
- package/src/NamirasoftPaymentServer.ts +1 -1
- package/src/command/Invoice_CreateForCommand.ts +9 -0
- package/src/meta/InvoiceMetaTable.ts +2 -0
- package/src/meta/PaymentMetaTable.ts +2 -0
- package/src/meta/SubscriptionMetaTable.ts +2 -0
- package/src/row/InvoiceFullRow.ts +1 -0
- package/src/row/InvoiceInputRow.ts +1 -0
- package/src/row/InvoiceRow.ts +1 -0
- package/src/row/PaymentRow.ts +1 -0
- package/src/row/SubscriptionFullRow.ts +1 -0
- package/src/row/SubscriptionRow.ts +1 -0
|
@@ -17,7 +17,7 @@ const NamirasoftPaymentServerSubscriptionPaid_1 = require("./NamirasoftPaymentSe
|
|
|
17
17
|
const NamirasoftPaymentServerValue_1 = require("./NamirasoftPaymentServerValue");
|
|
18
18
|
class NamirasoftPaymentServer extends namirasoft_account_1.NSABaseServer {
|
|
19
19
|
constructor(base_url, manager, onError) {
|
|
20
|
-
super(base_url, `1.4.
|
|
20
|
+
super(base_url, `1.4.90`, manager, onError);
|
|
21
21
|
this.healthz = new NamirasoftPaymentServerHealthz_1.NamirasoftPaymentServerHealthz(this);
|
|
22
22
|
this.value = new NamirasoftPaymentServerValue_1.NamirasoftPaymentServerValue(this);
|
|
23
23
|
this.invoice = new NamirasoftPaymentServerInvoice_1.NamirasoftPaymentServerInvoice(this);
|
|
@@ -33,6 +33,14 @@ class Invoice_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
33
33
|
args: ["subscription_id"],
|
|
34
34
|
defaults: [""]
|
|
35
35
|
},
|
|
36
|
+
{
|
|
37
|
+
name: "date",
|
|
38
|
+
short: "",
|
|
39
|
+
description: "Provides the value of 'date' in body",
|
|
40
|
+
optional: false,
|
|
41
|
+
args: ["date"],
|
|
42
|
+
defaults: [""]
|
|
43
|
+
},
|
|
36
44
|
{
|
|
37
45
|
name: "title",
|
|
38
46
|
short: "",
|
|
@@ -88,6 +96,7 @@ class Invoice_CreateForCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
88
96
|
let ans = yield server.invoice._CreateFor(this.arg_values[0], {
|
|
89
97
|
product_id: this.option_values.product_id,
|
|
90
98
|
subscription_id: this.option_values.subscription_id,
|
|
99
|
+
date: this.option_values.date,
|
|
91
100
|
title: this.option_values.title,
|
|
92
101
|
currency: this.option_values.currency,
|
|
93
102
|
description: this.option_values.description,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/Invoice_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,wEAAqE;AACrE,2DAAkD;AAElD,MAAa,wBAAyB,SAAQ,sCAAgB;IAE1D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,C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,aAAa,CAAC,YAAY;aAChD,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;
|
|
1
|
+
{"version":3,"file":"Invoice_CreateForCommand.js","sourceRoot":"","sources":["../../src/command/Invoice_CreateForCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,wEAAqE;AACrE,2DAAkD;AAElD,MAAa,wBAAyB,SAAQ,sCAAgB;IAE1D,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;YACrB;gBACI,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,4CAA4C;gBACzD,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,YAAY,CAAC;gBACpB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,iDAAiD;gBAC9D,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,iBAAiB,CAAC;gBACzB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,OAAO,CAAC;gBACf,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gB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I,MAAM,GAAG,IAAI,iDAAuB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC9F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBAC1D,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC,eAAe;gBACnD,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;gBAC7B,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;aAChD,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA7FD,4DA6FC;AAAA,CAAC"}
|
|
@@ -10,6 +10,7 @@ export declare class InvoiceMetaTable extends NSBaseMetaTable<NamirasoftPaymentS
|
|
|
10
10
|
transaction_id: BaseMetaColumn;
|
|
11
11
|
transaction_id_reversed: BaseMetaColumn;
|
|
12
12
|
subscription_id: BaseMetaColumn;
|
|
13
|
+
date: BaseMetaColumn;
|
|
13
14
|
title: BaseMetaColumn;
|
|
14
15
|
refund: BaseMetaColumn;
|
|
15
16
|
canceled: BaseMetaColumn;
|
|
@@ -22,6 +22,7 @@ class InvoiceMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
22
22
|
transaction_id: new namirasoft_core_1.BaseMetaColumn(this, "transaction_id", "Transaction ID", "String", false),
|
|
23
23
|
transaction_id_reversed: new namirasoft_core_1.BaseMetaColumn(this, "transaction_id_reversed", "Transaction ID Reversed", "String", false),
|
|
24
24
|
subscription_id: new namirasoft_core_1.BaseMetaColumn(this, "subscription_id", "Subscription ID", "String", false),
|
|
25
|
+
date: new namirasoft_core_1.BaseMetaColumn(this, "date", "Date", "DateTime", true),
|
|
25
26
|
title: new namirasoft_core_1.BaseMetaColumn(this, "title", "Title", "String", true),
|
|
26
27
|
refund: new namirasoft_core_1.BaseMetaColumn(this, "refund", "Refund", "Boolean", true),
|
|
27
28
|
canceled: new namirasoft_core_1.BaseMetaColumn(this, "canceled", "Canceled", "Boolean", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceMetaTable.js","sourceRoot":"","sources":["../../src/meta/InvoiceMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AAEjF,qDAAsE;AAGtE,MAAa,gBAAiB,SAAQ,iCAAoD;
|
|
1
|
+
{"version":3,"file":"InvoiceMetaTable.js","sourceRoot":"","sources":["../../src/meta/InvoiceMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AAEjF,qDAAsE;AAGtE,MAAa,gBAAiB,SAAQ,iCAAoD;IA0BtF,YAAY,QAAqD;QAE7D,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,0BAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI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,KAAK,CAAC,CAAC;QACjE,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AAhED,4CAgEC;AAAA,CAAC"}
|
|
@@ -11,6 +11,7 @@ export declare class PaymentMetaTable extends NSBaseMetaTable<NamirasoftPaymentS
|
|
|
11
11
|
transaction_id_reversed: BaseMetaColumn;
|
|
12
12
|
invoice_id: BaseMetaColumn;
|
|
13
13
|
subscription_id: BaseMetaColumn;
|
|
14
|
+
date: BaseMetaColumn;
|
|
14
15
|
gateway: BaseMetaColumn;
|
|
15
16
|
refund: BaseMetaColumn;
|
|
16
17
|
status: BaseMetaColumn;
|
|
@@ -23,6 +23,7 @@ class PaymentMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
23
23
|
transaction_id_reversed: new namirasoft_core_1.BaseMetaColumn(this, "transaction_id_reversed", "Transaction ID Reversed", "String", false),
|
|
24
24
|
invoice_id: new namirasoft_core_1.BaseMetaColumn(this, "invoice_id", "Invoice ID", "String", false),
|
|
25
25
|
subscription_id: new namirasoft_core_1.BaseMetaColumn(this, "subscription_id", "Subscription ID", "String", false),
|
|
26
|
+
date: new namirasoft_core_1.BaseMetaColumn(this, "date", "Date", "DateTime", true),
|
|
26
27
|
gateway: new namirasoft_core_1.BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
|
|
27
28
|
refund: new namirasoft_core_1.BaseMetaColumn(this, "refund", "Refund", "Boolean", true),
|
|
28
29
|
status: new namirasoft_core_1.BaseMetaColumn(this, "status", "Status", "Enum", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMetaTable.js","sourceRoot":"","sources":["../../src/meta/PaymentMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AACjF,qDAAsE;AAItE,MAAa,gBAAiB,SAAQ,iCAAoD;
|
|
1
|
+
{"version":3,"file":"PaymentMetaTable.js","sourceRoot":"","sources":["../../src/meta/PaymentMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;A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aTable<NamirasoftPay
|
|
|
9
9
|
product_id: BaseMetaColumn;
|
|
10
10
|
sales_item_id: BaseMetaColumn;
|
|
11
11
|
offer_id: BaseMetaColumn;
|
|
12
|
+
date: BaseMetaColumn;
|
|
12
13
|
gateway: BaseMetaColumn;
|
|
13
14
|
status: BaseMetaColumn;
|
|
14
15
|
description: BaseMetaColumn;
|
|
@@ -21,6 +21,7 @@ class SubscriptionMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
21
21
|
product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product ID", "String", true),
|
|
22
22
|
sales_item_id: new namirasoft_core_1.BaseMetaColumn(this, "sales_item_id", "Sales Item ID", "String", true),
|
|
23
23
|
offer_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_id", "Offer ID", "String", true),
|
|
24
|
+
date: new namirasoft_core_1.BaseMetaColumn(this, "date", "Date", "DateTime", true),
|
|
24
25
|
gateway: new namirasoft_core_1.BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
|
|
25
26
|
status: new namirasoft_core_1.BaseMetaColumn(this, "status", "Status", "Enum", true),
|
|
26
27
|
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionMetaTable.js","sourceRoot":"","sources":["../../src/meta/SubscriptionMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AACjF,qDAAsE;AAItE,MAAa,qBAAsB,SAAQ,iCAAyD;
|
|
1
|
+
{"version":3,"file":"SubscriptionMetaTable.js","sourceRoot":"","sources":["../../src/meta/SubscriptionMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AACjF,qDAAsE;AAItE,MAAa,qBAAsB,SAAQ,iCAAyD;IAehG,YAAY,QAAqD;QAE7D,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,0BAAQ,CAAC,SAAS,C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IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC7C,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAO,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACtE,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AA1CD,sDA0CC;AAAA,CAAC"}
|
package/dist/row/InvoiceRow.d.ts
CHANGED
package/dist/row/PaymentRow.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.90",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"build": ""
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"namirasoft-core": "^1.4.
|
|
21
|
-
"namirasoft-site": "^1.4.
|
|
20
|
+
"namirasoft-core": "^1.4.76",
|
|
21
|
+
"namirasoft-site": "^1.4.38",
|
|
22
22
|
"namirasoft-node-cli": "^1.4.7",
|
|
23
|
-
"namirasoft-account": "^1.4.
|
|
23
|
+
"namirasoft-account": "^1.4.79"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
26
|
"ns-payment": "./dist/command/cli.js"
|
|
@@ -51,7 +51,7 @@ export class NamirasoftPaymentServer extends NSABaseServer
|
|
|
51
51
|
product: NamirasoftPaymentServerProduct;
|
|
52
52
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
53
53
|
{
|
|
54
|
-
super(base_url, `1.4.
|
|
54
|
+
super(base_url, `1.4.90`, manager, onError);
|
|
55
55
|
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
56
56
|
this.value = new NamirasoftPaymentServerValue(this);
|
|
57
57
|
this.invoice = new NamirasoftPaymentServerInvoice(this);
|
|
@@ -44,6 +44,14 @@ export class Invoice_CreateForCommand extends BaseFinalCommand
|
|
|
44
44
|
args: ["subscription_id"],
|
|
45
45
|
defaults: [""]
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
name: "date",
|
|
49
|
+
short: "",
|
|
50
|
+
description: "Provides the value of 'date' in body",
|
|
51
|
+
optional: false,
|
|
52
|
+
args: ["date"],
|
|
53
|
+
defaults: [""]
|
|
54
|
+
},
|
|
47
55
|
{
|
|
48
56
|
name: "title",
|
|
49
57
|
short: "",
|
|
@@ -99,6 +107,7 @@ export class Invoice_CreateForCommand extends BaseFinalCommand
|
|
|
99
107
|
let ans = await server.invoice._CreateFor(this.arg_values[0], {
|
|
100
108
|
product_id: this.option_values.product_id,
|
|
101
109
|
subscription_id: this.option_values.subscription_id,
|
|
110
|
+
date: this.option_values.date,
|
|
102
111
|
title: this.option_values.title,
|
|
103
112
|
currency: this.option_values.currency,
|
|
104
113
|
description: this.option_values.description,
|
|
@@ -32,6 +32,7 @@ export class InvoiceMetaTable extends NSBaseMetaTable<NamirasoftPaymentServer, I
|
|
|
32
32
|
transaction_id: BaseMetaColumn;
|
|
33
33
|
transaction_id_reversed: BaseMetaColumn;
|
|
34
34
|
subscription_id: BaseMetaColumn;
|
|
35
|
+
date: BaseMetaColumn;
|
|
35
36
|
title: BaseMetaColumn;
|
|
36
37
|
refund: BaseMetaColumn;
|
|
37
38
|
canceled: BaseMetaColumn;
|
|
@@ -58,6 +59,7 @@ export class InvoiceMetaTable extends NSBaseMetaTable<NamirasoftPaymentServer, I
|
|
|
58
59
|
transaction_id: new BaseMetaColumn(this, "transaction_id", "Transaction ID", "String", false),
|
|
59
60
|
transaction_id_reversed: new BaseMetaColumn(this, "transaction_id_reversed", "Transaction ID Reversed", "String", false),
|
|
60
61
|
subscription_id: new BaseMetaColumn(this, "subscription_id", "Subscription ID", "String", false),
|
|
62
|
+
date: new BaseMetaColumn(this, "date", "Date", "DateTime", true),
|
|
61
63
|
title: new BaseMetaColumn(this, "title", "Title", "String", true),
|
|
62
64
|
refund: new BaseMetaColumn(this, "refund", "Refund", "Boolean", true),
|
|
63
65
|
canceled: new BaseMetaColumn(this, "canceled", "Canceled", "Boolean", true),
|
|
@@ -33,6 +33,7 @@ export class PaymentMetaTable extends NSBaseMetaTable<NamirasoftPaymentServer, P
|
|
|
33
33
|
transaction_id_reversed: BaseMetaColumn;
|
|
34
34
|
invoice_id: BaseMetaColumn;
|
|
35
35
|
subscription_id: BaseMetaColumn;
|
|
36
|
+
date: BaseMetaColumn;
|
|
36
37
|
gateway: BaseMetaColumn;
|
|
37
38
|
refund: BaseMetaColumn;
|
|
38
39
|
status: BaseMetaColumn;
|
|
@@ -53,6 +54,7 @@ export class PaymentMetaTable extends NSBaseMetaTable<NamirasoftPaymentServer, P
|
|
|
53
54
|
transaction_id_reversed: new BaseMetaColumn(this, "transaction_id_reversed", "Transaction ID Reversed", "String", false),
|
|
54
55
|
invoice_id: new BaseMetaColumn(this, "invoice_id", "Invoice ID", "String", false),
|
|
55
56
|
subscription_id: new BaseMetaColumn(this, "subscription_id", "Subscription ID", "String", false),
|
|
57
|
+
date: new BaseMetaColumn(this, "date", "Date", "DateTime", true),
|
|
56
58
|
gateway: new BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
|
|
57
59
|
refund: new BaseMetaColumn(this, "refund", "Refund", "Boolean", true),
|
|
58
60
|
status: new BaseMetaColumn(this, "status", "Status", "Enum", true),
|
|
@@ -31,6 +31,7 @@ export class SubscriptionMetaTable extends NSBaseMetaTable<NamirasoftPaymentServ
|
|
|
31
31
|
product_id: BaseMetaColumn;
|
|
32
32
|
sales_item_id: BaseMetaColumn;
|
|
33
33
|
offer_id: BaseMetaColumn;
|
|
34
|
+
date: BaseMetaColumn;
|
|
34
35
|
gateway: BaseMetaColumn;
|
|
35
36
|
status: BaseMetaColumn;
|
|
36
37
|
description: BaseMetaColumn;
|
|
@@ -46,6 +47,7 @@ export class SubscriptionMetaTable extends NSBaseMetaTable<NamirasoftPaymentServ
|
|
|
46
47
|
product_id: new BaseMetaColumn(this, "product_id", "Product ID", "String", true),
|
|
47
48
|
sales_item_id: new BaseMetaColumn(this, "sales_item_id", "Sales Item ID", "String", true),
|
|
48
49
|
offer_id: new BaseMetaColumn(this, "offer_id", "Offer ID", "String", true),
|
|
50
|
+
date: new BaseMetaColumn(this, "date", "Date", "DateTime", true),
|
|
49
51
|
gateway: new BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
|
|
50
52
|
status: new BaseMetaColumn(this, "status", "Status", "Enum", true),
|
|
51
53
|
description: new BaseMetaColumn(this, "description", "Description", "String", true),
|
package/src/row/InvoiceRow.ts
CHANGED
package/src/row/PaymentRow.ts
CHANGED