namirasoft-payment 1.4.18 → 1.4.20
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/NamirasoftPaymentServerBase.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/MetaDatabase.d.ts +4 -2
- package/dist/meta/MetaDatabase.js +4 -2
- package/dist/meta/MetaDatabase.js.map +1 -1
- package/dist/meta/OfferMetaTable.js +2 -2
- package/dist/meta/OfferMetaTable.js.map +1 -1
- package/dist/meta/ProductMetaTable.d.ts +13 -0
- package/dist/meta/ProductMetaTable.js +21 -0
- package/dist/meta/ProductMetaTable.js.map +1 -0
- package/dist/meta/SalesItemMetaTable.js +2 -2
- package/dist/meta/SalesItemMetaTable.js.map +1 -1
- package/package.json +1 -1
- package/src/NamirasoftPaymentServerBase.ts +1 -1
- package/src/index.ts +1 -0
- package/src/meta/MetaDatabase.ts +7 -4
- package/src/meta/OfferMetaTable.ts +2 -2
- package/src/meta/ProductMetaTable.ts +47 -0
- package/src/meta/SalesItemMetaTable.ts +2 -2
|
@@ -4,7 +4,7 @@ exports.NamirasoftPaymentServerBase = void 0;
|
|
|
4
4
|
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
5
|
class NamirasoftPaymentServerBase extends namirasoft_account_1.NamirasoftServerBase {
|
|
6
6
|
constructor(base_url, manager, onError) {
|
|
7
|
-
super(base_url, `1.4.
|
|
7
|
+
super(base_url, `1.4.20`, manager, onError);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.NamirasoftPaymentServerBase = NamirasoftPaymentServerBase;
|
package/dist/index.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export * from "./meta/InvoiceMetaTable";
|
|
|
77
77
|
export * from "./meta/MetaDatabase";
|
|
78
78
|
export * from "./meta/OfferMetaTable";
|
|
79
79
|
export * from "./meta/PaymentMetaTable";
|
|
80
|
+
export * from "./meta/ProductMetaTable";
|
|
80
81
|
export * from "./meta/SalesItemMetaTable";
|
|
81
82
|
export * from "./meta/SubscriptionCategoryMetaTable";
|
|
82
83
|
export * from "./meta/SubscriptionFieldMetaTable";
|
package/dist/index.js
CHANGED
|
@@ -93,6 +93,7 @@ __exportStar(require("./meta/InvoiceMetaTable"), exports);
|
|
|
93
93
|
__exportStar(require("./meta/MetaDatabase"), exports);
|
|
94
94
|
__exportStar(require("./meta/OfferMetaTable"), exports);
|
|
95
95
|
__exportStar(require("./meta/PaymentMetaTable"), exports);
|
|
96
|
+
__exportStar(require("./meta/ProductMetaTable"), exports);
|
|
96
97
|
__exportStar(require("./meta/SalesItemMetaTable"), exports);
|
|
97
98
|
__exportStar(require("./meta/SubscriptionCategoryMetaTable"), exports);
|
|
98
99
|
__exportStar(require("./meta/SubscriptionFieldMetaTable"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,4DAA0C;AAC1C,gEAA8C;AAC9C,mEAAiD;AACjD,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,mEAAiD;AACjD,qEAAmD;AACnD,wEAAsD;AACtD,gFAA8D;AAC9D,6EAA2D;AAC3D,4EAA0D;AAC1D,2EAAyD;AACzD,iEAA+C;AAC/C,2DAAyC;AACzC,8DAA4C;AAC5C,iEAA+C;AAC/C,2DAAyC;AACzC,iEAA+C;AAC/C,iEAA+C;AAC/C,8DAA4C;AAC5C,+DAA6C;AAC7C,yDAAuC;AACvC,4DAA0C;AAC1C,6DAA2C;AAC3C,mEAAiD;AACjD,2DAAyC;AACzC,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,gEAA8C;AAC9C,iEAA+C;AAC/C,sEAAoD;AACpD,wEAAsD;AACtD,8EAA4D;AAC5D,8EAA4D;AAC5D,2EAAyD;AACzD,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,qEAAmD;AACnD,2EAAyD;AACzD,2EAAyD;AACzD,wEAAsD;AACtD,yEAAuD;AACvD,2EAAyD;AACzD,mEAAiD;AACjD,oEAAkD;AAClD,oEAAkD;AAClD,uEAAqD;AACrD,wEAAsD;AACtD,0EAAwD;AACxD,mEAAiD;AACjD,yEAAuD;AACvD,yEAAuD;AACvD,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,yDAAuC;AACvC,6DAA2C;AAC3C,qDAAmC;AACnC,yDAAuC;AACvC,uEAAqD;AACrD,wDAAsC;AACtC,uDAAqC;AACrC,yDAAuC;AACvC,oEAAkD;AAClD,mEAAiD;AACjD,6DAA2C;AAC3C,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,wDAAsC;AACtC,0DAAwC;AACxC,4DAA0C;AAC1C,uEAAqD;AACrD,oEAAkD;AAClD,+DAA6C;AAC7C,kEAAgD;AAChD,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,4DAA0C;AAC1C,mDAAiC;AACjC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,gEAA8C;AAC9C,6DAA2C;AAC3C,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,4DAA0C;AAC1C,gEAA8C;AAC9C,mEAAiD;AACjD,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,mEAAiD;AACjD,qEAAmD;AACnD,wEAAsD;AACtD,gFAA8D;AAC9D,6EAA2D;AAC3D,4EAA0D;AAC1D,2EAAy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AmC;AACnC,gEAA8C;AAC9C,6DAA2C;AAC3C,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InvoiceMetaTable } from "./InvoiceMetaTable";
|
|
2
2
|
import { OfferMetaTable } from "./OfferMetaTable";
|
|
3
3
|
import { PaymentMetaTable } from "./PaymentMetaTable";
|
|
4
|
+
import { ProductMetaTable } from "./ProductMetaTable";
|
|
4
5
|
import { SalesItemMetaTable } from "./SalesItemMetaTable";
|
|
5
6
|
import { SubscriptionCategoryMetaTable } from "./SubscriptionCategoryMetaTable";
|
|
6
7
|
import { SubscriptionFieldMetaTable } from "./SubscriptionFieldMetaTable";
|
|
@@ -8,10 +9,11 @@ import { SubscriptionMetaTable } from "./SubscriptionMetaTable";
|
|
|
8
9
|
import { SubscriptionTagMetaTable } from "./SubscriptionTagMetaTable";
|
|
9
10
|
export declare class MetaDatabase {
|
|
10
11
|
static main: MetaDatabase;
|
|
11
|
-
|
|
12
|
+
product: ProductMetaTable;
|
|
13
|
+
sales_item: SalesItemMetaTable;
|
|
12
14
|
offer: OfferMetaTable;
|
|
15
|
+
invoice: InvoiceMetaTable;
|
|
13
16
|
payment: PaymentMetaTable;
|
|
14
|
-
sales_item: SalesItemMetaTable;
|
|
15
17
|
subscription: SubscriptionMetaTable;
|
|
16
18
|
subscription_category: SubscriptionCategoryMetaTable;
|
|
17
19
|
subscription_field: SubscriptionFieldMetaTable;
|
|
@@ -4,6 +4,7 @@ exports.MetaDatabase = void 0;
|
|
|
4
4
|
const InvoiceMetaTable_1 = require("./InvoiceMetaTable");
|
|
5
5
|
const OfferMetaTable_1 = require("./OfferMetaTable");
|
|
6
6
|
const PaymentMetaTable_1 = require("./PaymentMetaTable");
|
|
7
|
+
const ProductMetaTable_1 = require("./ProductMetaTable");
|
|
7
8
|
const SalesItemMetaTable_1 = require("./SalesItemMetaTable");
|
|
8
9
|
const SubscriptionCategoryMetaTable_1 = require("./SubscriptionCategoryMetaTable");
|
|
9
10
|
const SubscriptionFieldMetaTable_1 = require("./SubscriptionFieldMetaTable");
|
|
@@ -11,10 +12,11 @@ const SubscriptionMetaTable_1 = require("./SubscriptionMetaTable");
|
|
|
11
12
|
const SubscriptionTagMetaTable_1 = require("./SubscriptionTagMetaTable");
|
|
12
13
|
class MetaDatabase {
|
|
13
14
|
constructor() {
|
|
14
|
-
this.
|
|
15
|
+
this.product = new ProductMetaTable_1.ProductMetaTable();
|
|
16
|
+
this.sales_item = new SalesItemMetaTable_1.SalesItemMetaTable();
|
|
15
17
|
this.offer = new OfferMetaTable_1.OfferMetaTable();
|
|
18
|
+
this.invoice = new InvoiceMetaTable_1.InvoiceMetaTable();
|
|
16
19
|
this.payment = new PaymentMetaTable_1.PaymentMetaTable();
|
|
17
|
-
this.sales_item = new SalesItemMetaTable_1.SalesItemMetaTable();
|
|
18
20
|
this.subscription = new SubscriptionMetaTable_1.SubscriptionMetaTable();
|
|
19
21
|
this.subscription_category = new SubscriptionCategoryMetaTable_1.SubscriptionCategoryMetaTable();
|
|
20
22
|
this.subscription_field = new SubscriptionFieldMetaTable_1.SubscriptionFieldMetaTable();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetaDatabase.js","sourceRoot":"","sources":["../../src/meta/MetaDatabase.ts"],"names":[],"mappings":";;;AAoBA,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,6DAA0D;AAC1D,mFAAgF;AAChF,6EAA0E;AAC1E,mEAAgE;AAChE,yEAAsE;AAEtE,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"MetaDatabase.js","sourceRoot":"","sources":["../../src/meta/MetaDatabase.ts"],"names":[],"mappings":";;;AAoBA,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,mFAAgF;AAChF,6EAA0E;AAC1E,mEAAgE;AAChE,yEAAsE;AAEtE,MAAa,YAAY;IAYrB;QAEI,IAAI,CAAC,OAAO,GAAG,IAAI,mCAAgB,EAAE,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAI,uCAAkB,EAAE,CAAC;QAC3C,IAAI,CAAC,KAAK,GAAG,IAAI,+BAAc,EAAE,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,IAAI,mCAAgB,EAAE,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,IAAI,mCAAgB,EAAE,CAAC;QACtC,IAAI,CAAC,YAAY,GAAG,IAAI,6CAAqB,EAAE,CAAC;QAChD,IAAI,CAAC,qBAAqB,GAAG,IAAI,6DAA6B,EAAE,CAAC;QACjE,IAAI,CAAC,kBAAkB,GAAG,IAAI,uDAA0B,EAAE,CAAC;QAC3D,IAAI,CAAC,gBAAgB,GAAG,IAAI,mDAAwB,EAAE,CAAC;IAC3D,CAAC;;AAvBL,oCAwBC;AAtBiB,iBAAI,GAAiB,IAAI,YAAY,EAAE,CAAC;AAsBzD,CAAC"}
|
|
@@ -16,8 +16,8 @@ class OfferMetaTable extends namirasoft_core_1.BaseMetaTable {
|
|
|
16
16
|
applies_at: new namirasoft_core_1.BaseMetaColumn("applies_at", "Applies At", "DateTime", false),
|
|
17
17
|
expires_at: new namirasoft_core_1.BaseMetaColumn("expires_at", "Expires At", "DateTime", false),
|
|
18
18
|
currency: new namirasoft_core_1.BaseMetaColumn("currency", "Currency", "String", false),
|
|
19
|
-
orginal_price: new namirasoft_core_1.BaseMetaColumn("orginal_price", "Orginal Price", "
|
|
20
|
-
final_price: new namirasoft_core_1.BaseMetaColumn("final_price", "Final Price", "
|
|
19
|
+
orginal_price: new namirasoft_core_1.BaseMetaColumn("orginal_price", "Orginal Price", "Float", false),
|
|
20
|
+
final_price: new namirasoft_core_1.BaseMetaColumn("final_price", "Final Price", "Float", false),
|
|
21
21
|
recommended: new namirasoft_core_1.BaseMetaColumn("recommended", "Recommended", "Boolean", true),
|
|
22
22
|
description: new namirasoft_core_1.BaseMetaColumn("description", "Description", "String", true),
|
|
23
23
|
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfferMetaTable.js","sourceRoot":"","sources":["../../src/meta/OfferMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAAgE;AAEhE,MAAa,cAAe,SAAQ,+BAAa;IAoB7C;QAEI,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YAClD,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,aAAa,EAAE,IAAI,gCAAc,CAAC,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,CAAC;YACnF,IAAI,EAAE,IAAI,gCAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,IAAI,EAAE,IAAI,gCAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC;YACzD,0BAA0B,EAAE,IAAI,gCAAc,CAAC,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,EAAE,IAAI,CAAC;YACxH,2BAA2B,EAAE,IAAI,gCAAc,CAAC,6BAA6B,EAAE,6BAA6B,EAAE,SAAS,EAAE,IAAI,CAAC;YAC9H,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,CAAC;YAC7E,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,CAAC;YAC7E,QAAQ,EAAE,IAAI,gCAAc,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,CAAC;YACrE,aAAa,EAAE,IAAI,gCAAc,CAAC,eAA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E,IAAI,gCAAc,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,CAAC;YAC7E,WAAW,EAAE,IAAI,gCAAc,CAAC,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,IAAI,CAAC;YAC9E,WAAW,EAAE,IAAI,gCAAc,CAAC,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAC5E,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SAC/E,CAAC;IACN,CAAC;CACJ;AA1CD,wCA0CC;AAAA,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseMetaColumn, BaseMetaTable } from "namirasoft-core";
|
|
2
|
+
export declare class ProductMetaTable extends BaseMetaTable {
|
|
3
|
+
columns: {
|
|
4
|
+
id: BaseMetaColumn;
|
|
5
|
+
name: BaseMetaColumn;
|
|
6
|
+
slug: BaseMetaColumn;
|
|
7
|
+
logo: BaseMetaColumn;
|
|
8
|
+
description: BaseMetaColumn;
|
|
9
|
+
created_at: BaseMetaColumn;
|
|
10
|
+
updated_at: BaseMetaColumn;
|
|
11
|
+
};
|
|
12
|
+
constructor();
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductMetaTable = void 0;
|
|
4
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
+
class ProductMetaTable extends namirasoft_core_1.BaseMetaTable {
|
|
6
|
+
constructor() {
|
|
7
|
+
super("product", "Product");
|
|
8
|
+
this.columns = {
|
|
9
|
+
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "String", true),
|
|
10
|
+
name: new namirasoft_core_1.BaseMetaColumn("name", "Name", "String", true),
|
|
11
|
+
slug: new namirasoft_core_1.BaseMetaColumn("slug", "Slug", "String", true),
|
|
12
|
+
logo: new namirasoft_core_1.BaseMetaColumn("logo", "Logo", "String", true),
|
|
13
|
+
description: new namirasoft_core_1.BaseMetaColumn("description", "Description", "String", false),
|
|
14
|
+
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
15
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ProductMetaTable = ProductMetaTable;
|
|
20
|
+
;
|
|
21
|
+
//# sourceMappingURL=ProductMetaTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProductMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAAgE;AAEhE,MAAa,gBAAiB,SAAQ,+BAAa;IAW/C;QAEI,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YAClD,IAAI,EAAE,IAAI,gCAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,IAAI,EAAE,IAAI,gCAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,IAAI,EAAE,IAAI,gCAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,WAAW,EAAE,IAAI,gCAAc,CAAC,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YAC9E,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAC5E,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SAC/E,CAAC;IACN,CAAC;CACJ;AAxBD,4CAwBC;AAAA,CAAC"}
|
|
@@ -19,8 +19,8 @@ class SalesItemMetaTable extends namirasoft_core_1.BaseMetaTable {
|
|
|
19
19
|
onetime_limit_value: new namirasoft_core_1.BaseMetaColumn("onetime_limit_value", "Onetime Limit Value", "Integer", true),
|
|
20
20
|
onetime_limit_count: new namirasoft_core_1.BaseMetaColumn("onetime_limit_count", "Onetime Limit Count", "String", true),
|
|
21
21
|
currency: new namirasoft_core_1.BaseMetaColumn("currency", "Currency", "String", false),
|
|
22
|
-
orginal_price: new namirasoft_core_1.BaseMetaColumn("orginal_price", "Orginal Price", "
|
|
23
|
-
final_price: new namirasoft_core_1.BaseMetaColumn("final_price", "Final Price", "
|
|
22
|
+
orginal_price: new namirasoft_core_1.BaseMetaColumn("orginal_price", "Orginal Price", "Float", false),
|
|
23
|
+
final_price: new namirasoft_core_1.BaseMetaColumn("final_price", "Final Price", "Float", false),
|
|
24
24
|
description: new namirasoft_core_1.BaseMetaColumn("description", "Description", "String", true),
|
|
25
25
|
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
26
26
|
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SalesItemMetaTable.js","sourceRoot":"","sources":["../../src/meta/SalesItemMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAAgE;AAEhE,MAAa,kBAAmB,SAAQ,+BAAa;IAsBjD;QAEI,KAAK,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YAClD,UAAU,EAAE,IAAI,gCAAc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AC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,CAAC;YACrE,aAAa,EAAE,IAAI,gCAAc,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,KAAK,CAAC;YACnF,WAAW,EAAE,IAAI,gCAAc,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,CAAC;YAC7E,WAAW,EAAE,IAAI,gCAAc,CAAC,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAC5E,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SAC/E,CAAC;IACN,CAAC;CACJ;AA9CD,gDA8CC;AAAA,CAAC"}
|
package/package.json
CHANGED
|
@@ -25,6 +25,6 @@ export class NamirasoftPaymentServerBase extends NamirasoftServerBase
|
|
|
25
25
|
{
|
|
26
26
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
27
27
|
{
|
|
28
|
-
super(base_url, `1.4.
|
|
28
|
+
super(base_url, `1.4.20`, manager, onError);
|
|
29
29
|
}
|
|
30
30
|
};
|
package/src/index.ts
CHANGED
|
@@ -97,6 +97,7 @@ export * from "./meta/InvoiceMetaTable";
|
|
|
97
97
|
export * from "./meta/MetaDatabase";
|
|
98
98
|
export * from "./meta/OfferMetaTable";
|
|
99
99
|
export * from "./meta/PaymentMetaTable";
|
|
100
|
+
export * from "./meta/ProductMetaTable";
|
|
100
101
|
export * from "./meta/SalesItemMetaTable";
|
|
101
102
|
export * from "./meta/SubscriptionCategoryMetaTable";
|
|
102
103
|
export * from "./meta/SubscriptionFieldMetaTable";
|
package/src/meta/MetaDatabase.ts
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
import { InvoiceMetaTable } from "./InvoiceMetaTable";
|
|
22
22
|
import { OfferMetaTable } from "./OfferMetaTable";
|
|
23
23
|
import { PaymentMetaTable } from "./PaymentMetaTable";
|
|
24
|
+
import { ProductMetaTable } from "./ProductMetaTable";
|
|
24
25
|
import { SalesItemMetaTable } from "./SalesItemMetaTable";
|
|
25
26
|
import { SubscriptionCategoryMetaTable } from "./SubscriptionCategoryMetaTable";
|
|
26
27
|
import { SubscriptionFieldMetaTable } from "./SubscriptionFieldMetaTable";
|
|
@@ -30,20 +31,22 @@ import { SubscriptionTagMetaTable } from "./SubscriptionTagMetaTable";
|
|
|
30
31
|
export class MetaDatabase
|
|
31
32
|
{
|
|
32
33
|
public static main: MetaDatabase = new MetaDatabase();
|
|
33
|
-
public
|
|
34
|
+
public product: ProductMetaTable;
|
|
35
|
+
public sales_item: SalesItemMetaTable;
|
|
34
36
|
public offer: OfferMetaTable;
|
|
37
|
+
public invoice: InvoiceMetaTable;
|
|
35
38
|
public payment: PaymentMetaTable;
|
|
36
|
-
public sales_item: SalesItemMetaTable;
|
|
37
39
|
public subscription: SubscriptionMetaTable;
|
|
38
40
|
public subscription_category: SubscriptionCategoryMetaTable;
|
|
39
41
|
public subscription_field: SubscriptionFieldMetaTable;
|
|
40
42
|
public subscription_tag: SubscriptionTagMetaTable;
|
|
41
43
|
constructor()
|
|
42
44
|
{
|
|
43
|
-
this.
|
|
45
|
+
this.product = new ProductMetaTable();
|
|
46
|
+
this.sales_item = new SalesItemMetaTable();
|
|
44
47
|
this.offer = new OfferMetaTable();
|
|
48
|
+
this.invoice = new InvoiceMetaTable();
|
|
45
49
|
this.payment = new PaymentMetaTable();
|
|
46
|
-
this.sales_item = new SalesItemMetaTable();
|
|
47
50
|
this.subscription = new SubscriptionMetaTable();
|
|
48
51
|
this.subscription_category = new SubscriptionCategoryMetaTable();
|
|
49
52
|
this.subscription_field = new SubscriptionFieldMetaTable();
|
|
@@ -54,8 +54,8 @@ export class OfferMetaTable extends BaseMetaTable
|
|
|
54
54
|
applies_at: new BaseMetaColumn("applies_at", "Applies At", "DateTime", false),
|
|
55
55
|
expires_at: new BaseMetaColumn("expires_at", "Expires At", "DateTime", false),
|
|
56
56
|
currency: new BaseMetaColumn("currency", "Currency", "String", false),
|
|
57
|
-
orginal_price: new BaseMetaColumn("orginal_price", "Orginal Price", "
|
|
58
|
-
final_price: new BaseMetaColumn("final_price", "Final Price", "
|
|
57
|
+
orginal_price: new BaseMetaColumn("orginal_price", "Orginal Price", "Float", false),
|
|
58
|
+
final_price: new BaseMetaColumn("final_price", "Final Price", "Float", false),
|
|
59
59
|
recommended: new BaseMetaColumn("recommended", "Recommended", "Boolean", true),
|
|
60
60
|
description: new BaseMetaColumn("description", "Description", "String", true),
|
|
61
61
|
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { BaseMetaColumn, BaseMetaTable } from "namirasoft-core";
|
|
22
|
+
|
|
23
|
+
export class ProductMetaTable extends BaseMetaTable
|
|
24
|
+
{
|
|
25
|
+
public columns!: {
|
|
26
|
+
id: BaseMetaColumn;
|
|
27
|
+
name: BaseMetaColumn;
|
|
28
|
+
slug: BaseMetaColumn;
|
|
29
|
+
logo: BaseMetaColumn;
|
|
30
|
+
description: BaseMetaColumn;
|
|
31
|
+
created_at: BaseMetaColumn;
|
|
32
|
+
updated_at: BaseMetaColumn;
|
|
33
|
+
}
|
|
34
|
+
constructor()
|
|
35
|
+
{
|
|
36
|
+
super("product", "Product");
|
|
37
|
+
this.columns = {
|
|
38
|
+
id: new BaseMetaColumn("id", "Id", "String", true),
|
|
39
|
+
name: new BaseMetaColumn("name", "Name", "String", true),
|
|
40
|
+
slug: new BaseMetaColumn("slug", "Slug", "String", true),
|
|
41
|
+
logo: new BaseMetaColumn("logo", "Logo", "String", true),
|
|
42
|
+
description: new BaseMetaColumn("description", "Description", "String", false),
|
|
43
|
+
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
44
|
+
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
};
|
|
@@ -59,8 +59,8 @@ export class SalesItemMetaTable extends BaseMetaTable
|
|
|
59
59
|
onetime_limit_value: new BaseMetaColumn("onetime_limit_value", "Onetime Limit Value", "Integer", true),
|
|
60
60
|
onetime_limit_count: new BaseMetaColumn("onetime_limit_count", "Onetime Limit Count", "String", true),
|
|
61
61
|
currency: new BaseMetaColumn("currency", "Currency", "String", false),
|
|
62
|
-
orginal_price: new BaseMetaColumn("orginal_price", "Orginal Price", "
|
|
63
|
-
final_price: new BaseMetaColumn("final_price", "Final Price", "
|
|
62
|
+
orginal_price: new BaseMetaColumn("orginal_price", "Orginal Price", "Float", false),
|
|
63
|
+
final_price: new BaseMetaColumn("final_price", "Final Price", "Float", false),
|
|
64
64
|
description: new BaseMetaColumn("description", "Description", "String", true),
|
|
65
65
|
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
66
66
|
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|