namirasoft-payment 1.4.41 → 1.4.43
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/NamirasoftPaymentServerSubscription.d.ts +1 -2
- package/dist/NamirasoftPaymentServerSubscription.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/meta/InvoiceCostMetaTable.d.ts +14 -0
- package/dist/meta/InvoiceCostMetaTable.js +22 -0
- package/dist/meta/InvoiceCostMetaTable.js.map +1 -0
- package/dist/meta/InvoiceItemMetaTable.d.ts +19 -0
- package/dist/meta/InvoiceItemMetaTable.js +27 -0
- package/dist/meta/InvoiceItemMetaTable.js.map +1 -0
- package/dist/meta/NamirasoftPaymentMetaDatabase.d.ts +11 -3
- package/dist/meta/NamirasoftPaymentMetaDatabase.js +11 -3
- package/dist/meta/NamirasoftPaymentMetaDatabase.js.map +1 -1
- package/dist/meta/PriceListMetaTable.d.ts +18 -0
- package/dist/meta/PriceListMetaTable.js +26 -0
- package/dist/meta/PriceListMetaTable.js.map +1 -0
- package/dist/meta/SubscriptionPaidMetaTable.d.ts +17 -0
- package/dist/meta/SubscriptionPaidMetaTable.js +25 -0
- package/dist/meta/SubscriptionPaidMetaTable.js.map +1 -0
- package/package.json +1 -1
- package/src/NamirasoftPaymentServer.ts +1 -1
- package/src/NamirasoftPaymentServerSubscription.ts +2 -3
- package/src/index.ts +5 -2
- package/src/{row/SubscrpitionFullRow.ts → meta/InvoiceCostMetaTable.ts} +26 -17
- package/src/meta/InvoiceItemMetaTable.ts +58 -0
- package/src/meta/NamirasoftPaymentMetaDatabase.ts +18 -6
- package/src/meta/PriceListMetaTable.ts +56 -0
- package/src/meta/SubscriptionPaidMetaTable.ts +54 -0
- package/dist/row/SubscrpitionFullRow.d.ts +0 -17
- package/dist/row/SubscrpitionFullRow.js +0 -3
- package/dist/row/SubscrpitionFullRow.js.map +0 -1
|
@@ -14,7 +14,7 @@ const NamirasoftPaymentServerSubscriptionPaid_1 = require("./NamirasoftPaymentSe
|
|
|
14
14
|
const NamirasoftPaymentServerValue_1 = require("./NamirasoftPaymentServerValue");
|
|
15
15
|
class NamirasoftPaymentServer extends namirasoft_account_1.NSABaseServer {
|
|
16
16
|
constructor(base_url, manager, onError) {
|
|
17
|
-
super(base_url, `1.4.
|
|
17
|
+
super(base_url, `1.4.43`, manager, onError);
|
|
18
18
|
this.healthz = new NamirasoftPaymentServerHealthz_1.NamirasoftPaymentServerHealthz(this);
|
|
19
19
|
this.value = new NamirasoftPaymentServerValue_1.NamirasoftPaymentServerValue(this);
|
|
20
20
|
this.invoice = new NamirasoftPaymentServerInvoice_1.NamirasoftPaymentServerInvoice(this);
|
|
@@ -4,14 +4,13 @@ import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
|
4
4
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
5
5
|
import { SortItem } from "namirasoft-core";
|
|
6
6
|
import { SubscriptionRow } from "./row/SubscriptionRow";
|
|
7
|
-
import { SubscrpitionFullRow } from "./row/SubscrpitionFullRow";
|
|
8
7
|
export declare class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServerBase {
|
|
9
8
|
constructor(server: NamirasoftPaymentServer);
|
|
10
9
|
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
|
|
11
10
|
rows: SubscriptionRow[];
|
|
12
11
|
count: number;
|
|
13
12
|
}>;
|
|
14
|
-
Get(id: string): Promise<
|
|
13
|
+
Get(id: string): Promise<SubscriptionRow>;
|
|
15
14
|
Cancel(id: string, reason: string): Promise<void>;
|
|
16
15
|
Checkout(body: {
|
|
17
16
|
gateway: GatewayType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftPaymentServerSubscription.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerSubscription.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAG7C,+EAA4E;AAC5E,qDAA2C;
|
|
1
|
+
{"version":3,"file":"NamirasoftPaymentServerSubscription.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerSubscription.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAG7C,+EAA4E;AAC5E,qDAA2C;AAG3C,MAAa,mCAAoC,SAAQ,yDAA2B;IAEhF,YAAY,MAA+B;QAEvC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,oBAAoB,CAAC;YAChC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAA6C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAClK,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,iBAAiB,EAAE,EAAE,CAAC;YACjC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAkB,IAAI,EAAE,EAAE,CAAC,CAAC;YACjE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAU,EAAE,MAAc;;YAEnC,IAAI,IAAI,GAAG,wBAAwB,EAAE,IAAI,MAAM,EAAE,CAAC;YAClD,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,CAAC;KAAA;IACK,QAAQ,CAAC,IAAkI;;YAE7I,IAAI,IAAI,GAAG,wBAAwB,CAAC;YACpC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAkB,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACxE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAnCD,kFAmCC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -53,13 +53,17 @@ export * from "./enum/SalesItemOnetimeExpireUnit";
|
|
|
53
53
|
export * from "./enum/SalesItemOnetimeLimitUnit";
|
|
54
54
|
export * from "./enum/SubscriptionGateway";
|
|
55
55
|
export * from "./enum/SubscriptionStatus";
|
|
56
|
+
export * from "./meta/InvoiceCostMetaTable";
|
|
57
|
+
export * from "./meta/InvoiceItemMetaTable";
|
|
56
58
|
export * from "./meta/InvoiceMetaTable";
|
|
57
59
|
export * from "./meta/NamirasoftPaymentMetaDatabase";
|
|
58
60
|
export * from "./meta/OfferMetaTable";
|
|
59
61
|
export * from "./meta/PaymentMetaTable";
|
|
62
|
+
export * from "./meta/PriceListMetaTable";
|
|
60
63
|
export * from "./meta/ProductMetaTable";
|
|
61
64
|
export * from "./meta/SalesItemMetaTable";
|
|
62
65
|
export * from "./meta/SubscriptionMetaTable";
|
|
66
|
+
export * from "./meta/SubscriptionPaidMetaTable";
|
|
63
67
|
export * from "./row/InvoiceCostInputRow";
|
|
64
68
|
export * from "./row/InvoiceFullRow";
|
|
65
69
|
export * from "./row/InvoiceInputRow";
|
|
@@ -71,4 +75,3 @@ export * from "./row/ProductRow";
|
|
|
71
75
|
export * from "./row/SalesItemRow";
|
|
72
76
|
export * from "./row/SubscriptionPaidRow";
|
|
73
77
|
export * from "./row/SubscriptionRow";
|
|
74
|
-
export * from "./row/SubscrpitionFullRow";
|
package/dist/index.js
CHANGED
|
@@ -69,13 +69,17 @@ __exportStar(require("./enum/SalesItemOnetimeExpireUnit"), exports);
|
|
|
69
69
|
__exportStar(require("./enum/SalesItemOnetimeLimitUnit"), exports);
|
|
70
70
|
__exportStar(require("./enum/SubscriptionGateway"), exports);
|
|
71
71
|
__exportStar(require("./enum/SubscriptionStatus"), exports);
|
|
72
|
+
__exportStar(require("./meta/InvoiceCostMetaTable"), exports);
|
|
73
|
+
__exportStar(require("./meta/InvoiceItemMetaTable"), exports);
|
|
72
74
|
__exportStar(require("./meta/InvoiceMetaTable"), exports);
|
|
73
75
|
__exportStar(require("./meta/NamirasoftPaymentMetaDatabase"), exports);
|
|
74
76
|
__exportStar(require("./meta/OfferMetaTable"), exports);
|
|
75
77
|
__exportStar(require("./meta/PaymentMetaTable"), exports);
|
|
78
|
+
__exportStar(require("./meta/PriceListMetaTable"), exports);
|
|
76
79
|
__exportStar(require("./meta/ProductMetaTable"), exports);
|
|
77
80
|
__exportStar(require("./meta/SalesItemMetaTable"), exports);
|
|
78
81
|
__exportStar(require("./meta/SubscriptionMetaTable"), exports);
|
|
82
|
+
__exportStar(require("./meta/SubscriptionPaidMetaTable"), exports);
|
|
79
83
|
__exportStar(require("./row/InvoiceCostInputRow"), exports);
|
|
80
84
|
__exportStar(require("./row/InvoiceFullRow"), exports);
|
|
81
85
|
__exportStar(require("./row/InvoiceInputRow"), exports);
|
|
@@ -87,5 +91,4 @@ __exportStar(require("./row/ProductRow"), exports);
|
|
|
87
91
|
__exportStar(require("./row/SalesItemRow"), exports);
|
|
88
92
|
__exportStar(require("./row/SubscriptionPaidRow"), exports);
|
|
89
93
|
__exportStar(require("./row/SubscriptionRow"), exports);
|
|
90
|
-
__exportStar(require("./row/SubscrpitionFullRow"), exports);
|
|
91
94
|
//# sourceMappingURL=index.js.map
|
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,4EAA0D;AAC1D,iEAA+C;AAC/C,2DAAyC;AACzC,8DAA4C;AAC5C,iEAA+C;AAC/C,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,kEAAgD;AAChD,kEAAgD;AAChD,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,gEAA8C;AAC9C,mEAAiD;AACjD,oEAAkD;AAClD,oEAAkD;AAClD,uEAAqD;AACrD,wEAAsD;AACtD,4EAA0D;AAC1D,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,uEAAqD;AACrD,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;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EAAiD;AACjD,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,4DAA0C;AAC1C,mDAAiC;AACjC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,wDAAsC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class InvoiceCostMetaTable extends NSBaseMetaTable {
|
|
4
|
+
columns: {
|
|
5
|
+
id: BaseMetaColumn;
|
|
6
|
+
invoice_id: BaseMetaColumn;
|
|
7
|
+
type: BaseMetaColumn;
|
|
8
|
+
amount: BaseMetaColumn;
|
|
9
|
+
description: BaseMetaColumn;
|
|
10
|
+
created_at: BaseMetaColumn;
|
|
11
|
+
updated_at: BaseMetaColumn;
|
|
12
|
+
};
|
|
13
|
+
constructor(database: NSBaseMetaDatabase);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceCostMetaTable = void 0;
|
|
4
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class InvoiceCostMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "invoice_cost", "Invoice Cost", new namirasoft_core_1.BaseUUID(""));
|
|
9
|
+
this.columns = {
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
11
|
+
invoice_id: new namirasoft_core_1.BaseMetaColumn(this, "invoice_id", "Invoice Id", "String", true),
|
|
12
|
+
type: new namirasoft_core_1.BaseMetaColumn(this, "type", "Type", "Enum", false),
|
|
13
|
+
amount: new namirasoft_core_1.BaseMetaColumn(this, "amount", "Amount", "Integer", true),
|
|
14
|
+
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", false),
|
|
15
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
16
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.InvoiceCostMetaTable = InvoiceCostMetaTable;
|
|
21
|
+
;
|
|
22
|
+
//# sourceMappingURL=InvoiceCostMetaTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceCostMetaTable.js","sourceRoot":"","sources":["../../src/meta/InvoiceCostMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,oBAAqB,SAAQ,iCAAe;IAWrD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAChF,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;YAC7D,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC;YACrE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AAxBD,oDAwBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class InvoiceItemMetaTable extends NSBaseMetaTable {
|
|
4
|
+
columns: {
|
|
5
|
+
id: BaseMetaColumn;
|
|
6
|
+
invoice_id: BaseMetaColumn;
|
|
7
|
+
sales_item_id: BaseMetaColumn;
|
|
8
|
+
offer_id: BaseMetaColumn;
|
|
9
|
+
price_list_id: BaseMetaColumn;
|
|
10
|
+
name: BaseMetaColumn;
|
|
11
|
+
quantity: BaseMetaColumn;
|
|
12
|
+
price: BaseMetaColumn;
|
|
13
|
+
total: BaseMetaColumn;
|
|
14
|
+
description: BaseMetaColumn;
|
|
15
|
+
created_at: BaseMetaColumn;
|
|
16
|
+
updated_at: BaseMetaColumn;
|
|
17
|
+
};
|
|
18
|
+
constructor(database: NSBaseMetaDatabase);
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceItemMetaTable = void 0;
|
|
4
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class InvoiceItemMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "invoice_item", "Invoice Item", new namirasoft_core_1.BaseUUID(""));
|
|
9
|
+
this.columns = {
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
11
|
+
invoice_id: new namirasoft_core_1.BaseMetaColumn(this, "invoice_id", "Invoice Id", "String", true),
|
|
12
|
+
sales_item_id: new namirasoft_core_1.BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", false),
|
|
13
|
+
offer_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_id", "Offer Id", "String", false),
|
|
14
|
+
price_list_id: new namirasoft_core_1.BaseMetaColumn(this, "price_list_id", "Price List Id", "String", false),
|
|
15
|
+
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", true),
|
|
16
|
+
quantity: new namirasoft_core_1.BaseMetaColumn(this, "quantity", "Quantity", "Integer", true),
|
|
17
|
+
price: new namirasoft_core_1.BaseMetaColumn(this, "price", "Price", "Integer", true),
|
|
18
|
+
total: new namirasoft_core_1.BaseMetaColumn(this, "total", "Total", "Integer", true),
|
|
19
|
+
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", false),
|
|
20
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
21
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.InvoiceItemMetaTable = InvoiceItemMetaTable;
|
|
26
|
+
;
|
|
27
|
+
//# sourceMappingURL=InvoiceItemMetaTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceItemMetaTable.js","sourceRoot":"","sources":["../../src/meta/InvoiceItemMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,oBAAqB,SAAQ,iCAAe;IAgBrD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QA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C;CACJ;AAlCD,oDAkCC;AAAA,CAAC"}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
+
import { InvoiceCostMetaTable } from "./InvoiceCostMetaTable";
|
|
2
|
+
import { InvoiceItemMetaTable } from "./InvoiceItemMetaTable";
|
|
1
3
|
import { InvoiceMetaTable } from "./InvoiceMetaTable";
|
|
2
4
|
import { NSBaseMetaDatabase } from "namirasoft-site";
|
|
3
5
|
import { OfferMetaTable } from "./OfferMetaTable";
|
|
4
6
|
import { PaymentMetaTable } from "./PaymentMetaTable";
|
|
7
|
+
import { PriceListMetaTable } from "./PriceListMetaTable";
|
|
5
8
|
import { ProductMetaTable } from "./ProductMetaTable";
|
|
6
9
|
import { SalesItemMetaTable } from "./SalesItemMetaTable";
|
|
7
10
|
import { SubscriptionMetaTable } from "./SubscriptionMetaTable";
|
|
11
|
+
import { SubscriptionPaidMetaTable } from "./SubscriptionPaidMetaTable";
|
|
8
12
|
export declare class NamirasoftPaymentMetaDatabase extends NSBaseMetaDatabase {
|
|
9
13
|
static main: NamirasoftPaymentMetaDatabase;
|
|
10
14
|
tables: {
|
|
11
|
-
product: ProductMetaTable;
|
|
12
|
-
sales_item: SalesItemMetaTable;
|
|
13
|
-
offer: OfferMetaTable;
|
|
14
15
|
invoice: InvoiceMetaTable;
|
|
16
|
+
invoice_cost: InvoiceCostMetaTable;
|
|
17
|
+
invoice_item: InvoiceItemMetaTable;
|
|
18
|
+
offer: OfferMetaTable;
|
|
15
19
|
payment: PaymentMetaTable;
|
|
20
|
+
price_list: PriceListMetaTable;
|
|
21
|
+
product: ProductMetaTable;
|
|
22
|
+
sales_item: SalesItemMetaTable;
|
|
16
23
|
subscription: SubscriptionMetaTable;
|
|
24
|
+
subscription_paid: SubscriptionPaidMetaTable;
|
|
17
25
|
};
|
|
18
26
|
constructor();
|
|
19
27
|
}
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NamirasoftPaymentMetaDatabase = void 0;
|
|
4
|
+
const InvoiceCostMetaTable_1 = require("./InvoiceCostMetaTable");
|
|
5
|
+
const InvoiceItemMetaTable_1 = require("./InvoiceItemMetaTable");
|
|
4
6
|
const InvoiceMetaTable_1 = require("./InvoiceMetaTable");
|
|
5
7
|
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
8
|
const OfferMetaTable_1 = require("./OfferMetaTable");
|
|
7
9
|
const PaymentMetaTable_1 = require("./PaymentMetaTable");
|
|
10
|
+
const PriceListMetaTable_1 = require("./PriceListMetaTable");
|
|
8
11
|
const ProductMetaTable_1 = require("./ProductMetaTable");
|
|
9
12
|
const SalesItemMetaTable_1 = require("./SalesItemMetaTable");
|
|
10
13
|
const SubscriptionMetaTable_1 = require("./SubscriptionMetaTable");
|
|
14
|
+
const SubscriptionPaidMetaTable_1 = require("./SubscriptionPaidMetaTable");
|
|
11
15
|
class NamirasoftPaymentMetaDatabase extends namirasoft_site_1.NSBaseMetaDatabase {
|
|
12
16
|
constructor() {
|
|
13
17
|
super({ id: "prd-f66a2ebf57f149e4", name: "Namirasoft Payment", headline: "Secure Transactions Service", description: "Securely provide invoices, handle transactions, support multiple payment methods, manage subscriptions, and track payment history easily.", logo: "https://static.namirasoft.com/image/namirasoft/payment/logo/base.png", link: "https://payment.namirasoft.com" });
|
|
14
18
|
this.tables = {
|
|
15
|
-
product: new ProductMetaTable_1.ProductMetaTable(this),
|
|
16
|
-
sales_item: new SalesItemMetaTable_1.SalesItemMetaTable(this),
|
|
17
|
-
offer: new OfferMetaTable_1.OfferMetaTable(this),
|
|
18
19
|
invoice: new InvoiceMetaTable_1.InvoiceMetaTable(this),
|
|
20
|
+
invoice_cost: new InvoiceCostMetaTable_1.InvoiceCostMetaTable(this),
|
|
21
|
+
invoice_item: new InvoiceItemMetaTable_1.InvoiceItemMetaTable(this),
|
|
22
|
+
offer: new OfferMetaTable_1.OfferMetaTable(this),
|
|
19
23
|
payment: new PaymentMetaTable_1.PaymentMetaTable(this),
|
|
24
|
+
price_list: new PriceListMetaTable_1.PriceListMetaTable(this),
|
|
25
|
+
product: new ProductMetaTable_1.ProductMetaTable(this),
|
|
26
|
+
sales_item: new SalesItemMetaTable_1.SalesItemMetaTable(this),
|
|
20
27
|
subscription: new SubscriptionMetaTable_1.SubscriptionMetaTable(this),
|
|
28
|
+
subscription_paid: new SubscriptionPaidMetaTable_1.SubscriptionPaidMetaTable(this),
|
|
21
29
|
};
|
|
22
30
|
}
|
|
23
31
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftPaymentMetaDatabase.js","sourceRoot":"","sources":["../../src/meta/NamirasoftPaymentMetaDatabase.ts"],"names":[],"mappings":";;;AAoBA,yDAAsD;AACtD,qDAAqD;AACrD,qDAAkD;AAClD,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,mEAAgE;
|
|
1
|
+
{"version":3,"file":"NamirasoftPaymentMetaDatabase.js","sourceRoot":"","sources":["../../src/meta/NamirasoftPaymentMetaDatabase.ts"],"names":[],"mappings":";;;AAoBA,iEAA8D;AAC9D,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAqD;AACrD,qDAAkD;AAClD,yDAAsD;AACtD,6DAA0D;AAC1D,yDAAsD;AACtD,6DAA0D;AAC1D,mEAAgE;AAChE,2EAAwE;AAExE,MAAa,6BAA8B,SAAQ,oCAAkB;IAejE;QAEI,KAAK,CAAC,EAAE,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,6BAA6B,EAAE,WAAW,EAAE,2IAA2I,EAAE,IAAI,EAAE,sEAAsE,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC,CAAC;QAC3X,IAAI,CAAC,MAAM,GAAG;YACV,OAAO,EAAE,IAAI,mCAAgB,CAAC,IAAI,CAAC;YACnC,YAAY,EAAE,IAAI,2CAAoB,CAAC,IAAI,CAAC;YAC5C,YAAY,EAAE,IAAI,2CAAoB,CAAC,IAAI,CAAC;YAC5C,KAAK,EAAE,IAAI,+BAAc,CAAC,IAAI,CAAC;YAC/B,OAAO,EAAE,IAAI,mCAAgB,CAAC,IAAI,CAAC;YACnC,UAAU,EAAE,IAAI,uCAAkB,CAAC,IAAI,CAAC;YACxC,OAAO,EAAE,IAAI,mCAAgB,CAAC,IAAI,CAAC;YACnC,UAAU,EAAE,IAAI,uCAAkB,CAAC,IAAI,CAAC;YACxC,YAAY,EAAE,IAAI,6CAAqB,CAAC,IAAI,CAAC;YAC7C,iBAAiB,EAAE,IAAI,qDAAyB,CAAC,IAAI,CAAC;SACzD,CAAC;IACN,CAAC;IAAA,CAAC;;AA9BN,sEA+BC;AA7BiB,kCAAI,GAAkC,IAAI,6BAA6B,EAAE,CAAC;AA6B3F,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class PriceListMetaTable extends NSBaseMetaTable {
|
|
4
|
+
columns: {
|
|
5
|
+
id: BaseMetaColumn;
|
|
6
|
+
sales_item_id: BaseMetaColumn;
|
|
7
|
+
offer_id: BaseMetaColumn;
|
|
8
|
+
applies_at: BaseMetaColumn;
|
|
9
|
+
expires_at: BaseMetaColumn;
|
|
10
|
+
currency: BaseMetaColumn;
|
|
11
|
+
orginal_price: BaseMetaColumn;
|
|
12
|
+
final_price: BaseMetaColumn;
|
|
13
|
+
description: BaseMetaColumn;
|
|
14
|
+
created_at: BaseMetaColumn;
|
|
15
|
+
updated_at: BaseMetaColumn;
|
|
16
|
+
};
|
|
17
|
+
constructor(database: NSBaseMetaDatabase);
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PriceListMetaTable = void 0;
|
|
4
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class PriceListMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "price_list", "Price List", new namirasoft_core_1.BaseUUID("pym-pls"));
|
|
9
|
+
this.columns = {
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "String", true),
|
|
11
|
+
sales_item_id: new namirasoft_core_1.BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", true),
|
|
12
|
+
offer_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_id", "Offer Id", "String", false),
|
|
13
|
+
applies_at: new namirasoft_core_1.BaseMetaColumn(this, "applies_at", "Applies At", "DateTime", false),
|
|
14
|
+
expires_at: new namirasoft_core_1.BaseMetaColumn(this, "expires_at", "Expires At", "DateTime", false),
|
|
15
|
+
currency: new namirasoft_core_1.BaseMetaColumn(this, "currency", "Currency", "String", true),
|
|
16
|
+
orginal_price: new namirasoft_core_1.BaseMetaColumn(this, "orginal_price", "Orginal Price", "Float", true),
|
|
17
|
+
final_price: new namirasoft_core_1.BaseMetaColumn(this, "final_price", "Final Price", "Float", true),
|
|
18
|
+
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", true),
|
|
19
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
20
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.PriceListMetaTable = PriceListMetaTable;
|
|
25
|
+
;
|
|
26
|
+
//# sourceMappingURL=PriceListMetaTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriceListMetaTable.js","sourceRoot":"","sources":["../../src/meta/PriceListMetaTable.ts"],"names":[],"mappings":";;;AAoBA,q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AAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AAhCD,gDAgCC;AAAA,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class SubscriptionPaidMetaTable extends NSBaseMetaTable {
|
|
4
|
+
columns: {
|
|
5
|
+
id: BaseMetaColumn;
|
|
6
|
+
user_id: BaseMetaColumn;
|
|
7
|
+
product_id: BaseMetaColumn;
|
|
8
|
+
invoice_id: BaseMetaColumn;
|
|
9
|
+
sales_item_id: BaseMetaColumn;
|
|
10
|
+
offer_id: BaseMetaColumn;
|
|
11
|
+
applies_at: BaseMetaColumn;
|
|
12
|
+
expires_at: BaseMetaColumn;
|
|
13
|
+
created_at: BaseMetaColumn;
|
|
14
|
+
updated_at: BaseMetaColumn;
|
|
15
|
+
};
|
|
16
|
+
constructor(database: NSBaseMetaDatabase);
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionPaidMetaTable = void 0;
|
|
4
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class SubscriptionPaidMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "subscription_paid", "Subscription Paid", new namirasoft_core_1.BaseUUID(""));
|
|
9
|
+
this.columns = {
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product Id", "String", true),
|
|
13
|
+
invoice_id: new namirasoft_core_1.BaseMetaColumn(this, "invoice_id", "Invoice Id", "String", true),
|
|
14
|
+
sales_item_id: new namirasoft_core_1.BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", true),
|
|
15
|
+
offer_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_id", "Offer Id", "String", true),
|
|
16
|
+
applies_at: new namirasoft_core_1.BaseMetaColumn(this, "applies_at", "Applies At", "DateTime", true),
|
|
17
|
+
expires_at: new namirasoft_core_1.BaseMetaColumn(this, "expires_at", "Expires At", "DateTime", true),
|
|
18
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
19
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.SubscriptionPaidMetaTable = SubscriptionPaidMetaTable;
|
|
24
|
+
;
|
|
25
|
+
//# sourceMappingURL=SubscriptionPaidMetaTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionPaidMetaTable.js","sourceRoot":"","sources":["../../src/meta/SubscriptionPaidMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,yBAA0B,SAAQ,iCAAe;IAc1D,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5E,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAChF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAChF,aAAa,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,CAAC;YACzF,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AA9BD,8DA8BC;AAAA,CAAC"}
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ export class NamirasoftPaymentServer extends NSABaseServer
|
|
|
45
45
|
product: NamirasoftPaymentServerProduct;
|
|
46
46
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
47
47
|
{
|
|
48
|
-
super(base_url, `1.4.
|
|
48
|
+
super(base_url, `1.4.43`, manager, onError);
|
|
49
49
|
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
50
50
|
this.value = new NamirasoftPaymentServerValue(this);
|
|
51
51
|
this.invoice = new NamirasoftPaymentServerInvoice(this);
|
|
@@ -24,7 +24,6 @@ import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
|
24
24
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
25
25
|
import { SortItem } from "namirasoft-core";
|
|
26
26
|
import { SubscriptionRow } from "./row/SubscriptionRow";
|
|
27
|
-
import { SubscrpitionFullRow } from "./row/SubscrpitionFullRow";
|
|
28
27
|
|
|
29
28
|
export class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServerBase
|
|
30
29
|
{
|
|
@@ -44,10 +43,10 @@ export class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServer
|
|
|
44
43
|
let { data } = await this.server._get<{ rows: SubscriptionRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
45
44
|
return data;
|
|
46
45
|
}
|
|
47
|
-
async Get(id: string): Promise<
|
|
46
|
+
async Get(id: string): Promise<SubscriptionRow>
|
|
48
47
|
{
|
|
49
48
|
let path = `/subscription/${id}`;
|
|
50
|
-
let { data } = await this.server._get<
|
|
49
|
+
let { data } = await this.server._get<SubscriptionRow>(path, {});
|
|
51
50
|
return data;
|
|
52
51
|
}
|
|
53
52
|
async Cancel(id: string, reason: string): Promise<void>
|
package/src/index.ts
CHANGED
|
@@ -73,13 +73,17 @@ export * from "./enum/SalesItemOnetimeExpireUnit";
|
|
|
73
73
|
export * from "./enum/SalesItemOnetimeLimitUnit";
|
|
74
74
|
export * from "./enum/SubscriptionGateway";
|
|
75
75
|
export * from "./enum/SubscriptionStatus";
|
|
76
|
+
export * from "./meta/InvoiceCostMetaTable";
|
|
77
|
+
export * from "./meta/InvoiceItemMetaTable";
|
|
76
78
|
export * from "./meta/InvoiceMetaTable";
|
|
77
79
|
export * from "./meta/NamirasoftPaymentMetaDatabase";
|
|
78
80
|
export * from "./meta/OfferMetaTable";
|
|
79
81
|
export * from "./meta/PaymentMetaTable";
|
|
82
|
+
export * from "./meta/PriceListMetaTable";
|
|
80
83
|
export * from "./meta/ProductMetaTable";
|
|
81
84
|
export * from "./meta/SalesItemMetaTable";
|
|
82
85
|
export * from "./meta/SubscriptionMetaTable";
|
|
86
|
+
export * from "./meta/SubscriptionPaidMetaTable";
|
|
83
87
|
export * from "./row/InvoiceCostInputRow";
|
|
84
88
|
export * from "./row/InvoiceFullRow";
|
|
85
89
|
export * from "./row/InvoiceInputRow";
|
|
@@ -90,5 +94,4 @@ export * from "./row/PaymentRow";
|
|
|
90
94
|
export * from "./row/ProductRow";
|
|
91
95
|
export * from "./row/SalesItemRow";
|
|
92
96
|
export * from "./row/SubscriptionPaidRow";
|
|
93
|
-
export * from "./row/SubscriptionRow";
|
|
94
|
-
export * from "./row/SubscrpitionFullRow";
|
|
97
|
+
export * from "./row/SubscriptionRow";
|
|
@@ -18,22 +18,31 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { SubscriptionStatus } from "../enum/SubscriptionStatus";
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
24
23
|
|
|
25
|
-
export
|
|
24
|
+
export class InvoiceCostMetaTable extends NSBaseMetaTable
|
|
25
|
+
{
|
|
26
|
+
public override columns: {
|
|
27
|
+
id: BaseMetaColumn;
|
|
28
|
+
invoice_id: BaseMetaColumn;
|
|
29
|
+
type: BaseMetaColumn;
|
|
30
|
+
amount: BaseMetaColumn;
|
|
31
|
+
description: BaseMetaColumn;
|
|
32
|
+
created_at: BaseMetaColumn;
|
|
33
|
+
updated_at: BaseMetaColumn;
|
|
34
|
+
}
|
|
35
|
+
constructor(database: NSBaseMetaDatabase)
|
|
26
36
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
37
|
+
super(database, "invoice_cost", "Invoice Cost", new BaseUUID(""));
|
|
38
|
+
this.columns = {
|
|
39
|
+
id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
40
|
+
invoice_id: new BaseMetaColumn(this, "invoice_id", "Invoice Id", "String", true),
|
|
41
|
+
type: new BaseMetaColumn(this, "type", "Type", "Enum", false),
|
|
42
|
+
amount: new BaseMetaColumn(this, "amount", "Amount", "Integer", true),
|
|
43
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
44
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
45
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
23
|
+
|
|
24
|
+
export class InvoiceItemMetaTable extends NSBaseMetaTable
|
|
25
|
+
{
|
|
26
|
+
public override columns: {
|
|
27
|
+
id: BaseMetaColumn;
|
|
28
|
+
invoice_id: BaseMetaColumn;
|
|
29
|
+
sales_item_id: BaseMetaColumn;
|
|
30
|
+
offer_id: BaseMetaColumn;
|
|
31
|
+
price_list_id: BaseMetaColumn;
|
|
32
|
+
name: BaseMetaColumn;
|
|
33
|
+
quantity: BaseMetaColumn;
|
|
34
|
+
price: BaseMetaColumn;
|
|
35
|
+
total: BaseMetaColumn;
|
|
36
|
+
description: BaseMetaColumn;
|
|
37
|
+
created_at: BaseMetaColumn;
|
|
38
|
+
updated_at: BaseMetaColumn;
|
|
39
|
+
}
|
|
40
|
+
constructor(database: NSBaseMetaDatabase)
|
|
41
|
+
{
|
|
42
|
+
super(database, "invoice_item", "Invoice Item", new BaseUUID(""));
|
|
43
|
+
this.columns = {
|
|
44
|
+
id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
45
|
+
invoice_id: new BaseMetaColumn(this, "invoice_id", "Invoice Id", "String", true),
|
|
46
|
+
sales_item_id: new BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", false),
|
|
47
|
+
offer_id: new BaseMetaColumn(this, "offer_id", "Offer Id", "String", false),
|
|
48
|
+
price_list_id: new BaseMetaColumn(this, "price_list_id", "Price List Id", "String", false),
|
|
49
|
+
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
50
|
+
quantity: new BaseMetaColumn(this, "quantity", "Quantity", "Integer", true),
|
|
51
|
+
price: new BaseMetaColumn(this, "price", "Price", "Integer", true),
|
|
52
|
+
total: new BaseMetaColumn(this, "total", "Total", "Integer", true),
|
|
53
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
54
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
55
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
};
|
|
@@ -18,35 +18,47 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
+
import { InvoiceCostMetaTable } from "./InvoiceCostMetaTable";
|
|
22
|
+
import { InvoiceItemMetaTable } from "./InvoiceItemMetaTable";
|
|
21
23
|
import { InvoiceMetaTable } from "./InvoiceMetaTable";
|
|
22
24
|
import { NSBaseMetaDatabase } from "namirasoft-site";
|
|
23
25
|
import { OfferMetaTable } from "./OfferMetaTable";
|
|
24
26
|
import { PaymentMetaTable } from "./PaymentMetaTable";
|
|
27
|
+
import { PriceListMetaTable } from "./PriceListMetaTable";
|
|
25
28
|
import { ProductMetaTable } from "./ProductMetaTable";
|
|
26
29
|
import { SalesItemMetaTable } from "./SalesItemMetaTable";
|
|
27
30
|
import { SubscriptionMetaTable } from "./SubscriptionMetaTable";
|
|
31
|
+
import { SubscriptionPaidMetaTable } from "./SubscriptionPaidMetaTable";
|
|
28
32
|
|
|
29
33
|
export class NamirasoftPaymentMetaDatabase extends NSBaseMetaDatabase
|
|
30
34
|
{
|
|
31
35
|
public static main: NamirasoftPaymentMetaDatabase = new NamirasoftPaymentMetaDatabase();
|
|
32
36
|
public override tables: {
|
|
33
|
-
product: ProductMetaTable,
|
|
34
|
-
sales_item: SalesItemMetaTable,
|
|
35
|
-
offer: OfferMetaTable,
|
|
36
37
|
invoice: InvoiceMetaTable,
|
|
38
|
+
invoice_cost: InvoiceCostMetaTable,
|
|
39
|
+
invoice_item: InvoiceItemMetaTable,
|
|
40
|
+
offer: OfferMetaTable,
|
|
37
41
|
payment: PaymentMetaTable,
|
|
42
|
+
price_list: PriceListMetaTable,
|
|
43
|
+
product: ProductMetaTable,
|
|
44
|
+
sales_item: SalesItemMetaTable,
|
|
38
45
|
subscription: SubscriptionMetaTable,
|
|
46
|
+
subscription_paid: SubscriptionPaidMetaTable,
|
|
39
47
|
};
|
|
40
48
|
constructor()
|
|
41
49
|
{
|
|
42
50
|
super({ id: "prd-f66a2ebf57f149e4", name: "Namirasoft Payment", headline: "Secure Transactions Service", description: "Securely provide invoices, handle transactions, support multiple payment methods, manage subscriptions, and track payment history easily.", logo: "https://static.namirasoft.com/image/namirasoft/payment/logo/base.png", link: "https://payment.namirasoft.com" });
|
|
43
51
|
this.tables = {
|
|
44
|
-
product: new ProductMetaTable(this),
|
|
45
|
-
sales_item: new SalesItemMetaTable(this),
|
|
46
|
-
offer: new OfferMetaTable(this),
|
|
47
52
|
invoice: new InvoiceMetaTable(this),
|
|
53
|
+
invoice_cost: new InvoiceCostMetaTable(this),
|
|
54
|
+
invoice_item: new InvoiceItemMetaTable(this),
|
|
55
|
+
offer: new OfferMetaTable(this),
|
|
48
56
|
payment: new PaymentMetaTable(this),
|
|
57
|
+
price_list: new PriceListMetaTable(this),
|
|
58
|
+
product: new ProductMetaTable(this),
|
|
59
|
+
sales_item: new SalesItemMetaTable(this),
|
|
49
60
|
subscription: new SubscriptionMetaTable(this),
|
|
61
|
+
subscription_paid: new SubscriptionPaidMetaTable(this),
|
|
50
62
|
};
|
|
51
63
|
};
|
|
52
64
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
23
|
+
|
|
24
|
+
export class PriceListMetaTable extends NSBaseMetaTable
|
|
25
|
+
{
|
|
26
|
+
public override columns: {
|
|
27
|
+
id: BaseMetaColumn;
|
|
28
|
+
sales_item_id: BaseMetaColumn;
|
|
29
|
+
offer_id: BaseMetaColumn;
|
|
30
|
+
applies_at: BaseMetaColumn;
|
|
31
|
+
expires_at: BaseMetaColumn;
|
|
32
|
+
currency: BaseMetaColumn;
|
|
33
|
+
orginal_price: BaseMetaColumn;
|
|
34
|
+
final_price: BaseMetaColumn;
|
|
35
|
+
description: BaseMetaColumn;
|
|
36
|
+
created_at: BaseMetaColumn;
|
|
37
|
+
updated_at: BaseMetaColumn;
|
|
38
|
+
}
|
|
39
|
+
constructor(database: NSBaseMetaDatabase)
|
|
40
|
+
{
|
|
41
|
+
super(database, "price_list", "Price List", new BaseUUID("pym-pls"));
|
|
42
|
+
this.columns = {
|
|
43
|
+
id: new BaseMetaColumn(this, "id", "Id", "String", true),
|
|
44
|
+
sales_item_id: new BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", true),
|
|
45
|
+
offer_id: new BaseMetaColumn(this, "offer_id", "Offer Id", "String", false),
|
|
46
|
+
applies_at: new BaseMetaColumn(this, "applies_at", "Applies At", "DateTime", false),
|
|
47
|
+
expires_at: new BaseMetaColumn(this, "expires_at", "Expires At", "DateTime", false),
|
|
48
|
+
currency: new BaseMetaColumn(this, "currency", "Currency", "String", true),
|
|
49
|
+
orginal_price: new BaseMetaColumn(this, "orginal_price", "Orginal Price", "Float", true),
|
|
50
|
+
final_price: new BaseMetaColumn(this, "final_price", "Final Price", "Float", true),
|
|
51
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", true),
|
|
52
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
53
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
23
|
+
|
|
24
|
+
export class SubscriptionPaidMetaTable extends NSBaseMetaTable
|
|
25
|
+
{
|
|
26
|
+
public override columns: {
|
|
27
|
+
id: BaseMetaColumn;
|
|
28
|
+
user_id: BaseMetaColumn;
|
|
29
|
+
product_id: BaseMetaColumn;
|
|
30
|
+
invoice_id: BaseMetaColumn;
|
|
31
|
+
sales_item_id: BaseMetaColumn;
|
|
32
|
+
offer_id: BaseMetaColumn;
|
|
33
|
+
applies_at: BaseMetaColumn;
|
|
34
|
+
expires_at: BaseMetaColumn;
|
|
35
|
+
created_at: BaseMetaColumn;
|
|
36
|
+
updated_at: BaseMetaColumn;
|
|
37
|
+
}
|
|
38
|
+
constructor(database: NSBaseMetaDatabase)
|
|
39
|
+
{
|
|
40
|
+
super(database, "subscription_paid", "Subscription Paid", new BaseUUID(""));
|
|
41
|
+
this.columns = {
|
|
42
|
+
id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
43
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
44
|
+
product_id: new BaseMetaColumn(this, "product_id", "Product Id", "String", true),
|
|
45
|
+
invoice_id: new BaseMetaColumn(this, "invoice_id", "Invoice Id", "String", true),
|
|
46
|
+
sales_item_id: new BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", true),
|
|
47
|
+
offer_id: new BaseMetaColumn(this, "offer_id", "Offer Id", "String", true),
|
|
48
|
+
applies_at: new BaseMetaColumn(this, "applies_at", "Applies At", "DateTime", true),
|
|
49
|
+
expires_at: new BaseMetaColumn(this, "expires_at", "Expires At", "DateTime", true),
|
|
50
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
51
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SubscriptionGateway } from "../enum/SubscriptionGateway";
|
|
2
|
-
import { SubscriptionPaidRow } from "./SubscriptionPaidRow";
|
|
3
|
-
import { SubscriptionStatus } from "../enum/SubscriptionStatus";
|
|
4
|
-
export type SubscrpitionFullRow = {
|
|
5
|
-
id: string;
|
|
6
|
-
stripe_subscription_id: string;
|
|
7
|
-
user_id: string;
|
|
8
|
-
product_id: string;
|
|
9
|
-
offer_id: string;
|
|
10
|
-
gateway: SubscriptionGateway;
|
|
11
|
-
status: SubscriptionStatus;
|
|
12
|
-
reason: (string | null);
|
|
13
|
-
description: string;
|
|
14
|
-
created_at: Date;
|
|
15
|
-
updated_at: Date;
|
|
16
|
-
subscription_paid: SubscriptionPaidRow[];
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SubscrpitionFullRow.js","sourceRoot":"","sources":["../../src/row/SubscrpitionFullRow.ts"],"names":[],"mappings":""}
|