namirasoft-payment 1.4.3 → 1.4.4
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/NamirasoftPaymentServerInvoice.d.ts +2 -1
- package/dist/NamirasoftPaymentServerInvoice.js.map +1 -1
- package/dist/command/InvoiceCreateCommand.js +10 -1
- package/dist/command/InvoiceCreateCommand.js.map +1 -1
- package/dist/enum/InvoiceCostType.d.ts +4 -0
- package/dist/enum/InvoiceCostType.js +9 -0
- package/dist/enum/InvoiceCostType.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/InvoiceMetaTable.d.ts +2 -0
- package/dist/meta/InvoiceMetaTable.js +2 -0
- package/dist/meta/InvoiceMetaTable.js.map +1 -1
- package/dist/row/InvoiceCostInputRow.d.ts +6 -0
- package/dist/row/InvoiceCostInputRow.js +3 -0
- package/dist/row/InvoiceCostInputRow.js.map +1 -0
- package/dist/row/InvoiceFullRow.d.ts +24 -0
- package/dist/row/InvoiceFullRow.js +3 -0
- package/dist/row/InvoiceFullRow.js.map +1 -0
- package/dist/row/InvoiceInputRow.d.ts +2 -0
- package/dist/row/InvoiceRow.d.ts +2 -0
- package/package.json +2 -2
- package/src/NamirasoftPaymentServerBase.ts +1 -1
- package/src/NamirasoftPaymentServerInvoice.ts +3 -2
- package/src/command/InvoiceCreateCommand.ts +10 -1
- package/src/enum/InvoiceCostType.ts +25 -0
- package/src/index.ts +3 -0
- package/src/meta/InvoiceMetaTable.ts +4 -0
- package/src/row/InvoiceCostInputRow.ts +28 -0
- package/src/row/InvoiceFullRow.ts +46 -0
- package/src/row/InvoiceInputRow.ts +2 -0
- package/src/row/InvoiceRow.ts +2 -0
|
@@ -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.4`, manager, onError);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.NamirasoftPaymentServerBase = NamirasoftPaymentServerBase;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterItem } from "namirasoft-core";
|
|
2
|
+
import { InvoiceFullRow } from "./row/InvoiceFullRow";
|
|
2
3
|
import { InvoiceInputRow } from "./row/InvoiceInputRow";
|
|
3
4
|
import { InvoiceRow } from "./row/InvoiceRow";
|
|
4
5
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
@@ -9,7 +10,7 @@ export declare class NamirasoftPaymentServerInvoice extends NamirasoftPaymentSer
|
|
|
9
10
|
rows: InvoiceRow[];
|
|
10
11
|
count: number;
|
|
11
12
|
}>;
|
|
12
|
-
Get(id: string): Promise<
|
|
13
|
+
Get(id: string): Promise<InvoiceFullRow>;
|
|
13
14
|
Create(body: InvoiceInputRow): Promise<InvoiceRow>;
|
|
14
15
|
Delete(id: number): Promise<void>;
|
|
15
16
|
Cancel(id: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftPaymentServerInvoice.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerInvoice.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;
|
|
1
|
+
{"version":3,"file":"NamirasoftPaymentServerInvoice.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerInvoice.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAI7C,+EAA4E;AAG5E,MAAa,8BAA+B,SAAQ,yDAA2B;IAE3E,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,C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AAC;KAAA;IACK,MAAM,CAAC,EAAU;;YAEnB,IAAI,IAAI,GAAG,YAAY,EAAE,EAAE,CAAC;YAC5B,MAAM,IAAI,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QACvC,CAAC;KAAA;IACK,MAAM,CAAC,EAAU;;YAEnB,IAAI,IAAI,GAAG,mBAAmB,EAAE,EAAE,CAAC;YACnC,MAAM,IAAI,CAAC,IAAI,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QACpC,CAAC;KAAA;CACJ;AAxCD,wEAwCC;AAAA,CAAC"}
|
|
@@ -80,6 +80,14 @@ class InvoiceCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
80
80
|
optional: false,
|
|
81
81
|
args: ["invoice_items"],
|
|
82
82
|
defaults: [""]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "invoice_costs",
|
|
86
|
+
short: "",
|
|
87
|
+
description: "Provides the value of 'invoice_costs' in body",
|
|
88
|
+
optional: false,
|
|
89
|
+
args: ["invoice_costs"],
|
|
90
|
+
defaults: [""]
|
|
83
91
|
}
|
|
84
92
|
]);
|
|
85
93
|
}
|
|
@@ -101,7 +109,8 @@ class InvoiceCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
101
109
|
refund: this.option_values.refund,
|
|
102
110
|
currency: this.option_values.currency,
|
|
103
111
|
description: this.option_values.description,
|
|
104
|
-
invoice_items: this.option_values.invoice_items
|
|
112
|
+
invoice_items: this.option_values.invoice_items,
|
|
113
|
+
invoice_costs: this.option_values.invoice_costs
|
|
105
114
|
});
|
|
106
115
|
this.app.logger.success(JSON.stringify(ans));
|
|
107
116
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceCreateCommand.js","sourceRoot":"","sources":["../../src/command/InvoiceCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,wEAAqE;AACr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S,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAtGD,oDAsGC;AAAA,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceCostType = void 0;
|
|
4
|
+
var InvoiceCostType;
|
|
5
|
+
(function (InvoiceCostType) {
|
|
6
|
+
InvoiceCostType["Discount"] = "Discount";
|
|
7
|
+
InvoiceCostType["Tax"] = "Tax";
|
|
8
|
+
})(InvoiceCostType || (exports.InvoiceCostType = InvoiceCostType = {}));
|
|
9
|
+
//# sourceMappingURL=InvoiceCostType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceCostType.js","sourceRoot":"","sources":["../../src/enum/InvoiceCostType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,eAIX;AAJD,WAAY,eAAe;IAEvB,wCAAqB,CAAA;IACrB,8BAAW,CAAA;AACf,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from "./command/SubscriptionTagUpdateCommand";
|
|
|
60
60
|
export * from "./command/ValueCommand";
|
|
61
61
|
export * from "./command/ValueListCommand";
|
|
62
62
|
export * from "./enum/GatewayType";
|
|
63
|
+
export * from "./enum/InvoiceCostType";
|
|
63
64
|
export * from "./enum/OfferSubscriptionDurationUnit";
|
|
64
65
|
export * from "./enum/PaymentGateway";
|
|
65
66
|
export * from "./enum/PaymentStatus";
|
|
@@ -80,6 +81,8 @@ export * from "./meta/SubscriptionTagMetaTable";
|
|
|
80
81
|
export * from "./row/EntityCategoryInputRow";
|
|
81
82
|
export * from "./row/EntityFieldInputRow";
|
|
82
83
|
export * from "./row/EntityTagInputRow";
|
|
84
|
+
export * from "./row/InvoiceCostInputRow";
|
|
85
|
+
export * from "./row/InvoiceFullRow";
|
|
83
86
|
export * from "./row/InvoiceInputRow";
|
|
84
87
|
export * from "./row/InvoiceItemInputRow";
|
|
85
88
|
export * from "./row/InvoiceRow";
|
package/dist/index.js
CHANGED
|
@@ -76,6 +76,7 @@ __exportStar(require("./command/SubscriptionTagUpdateCommand"), exports);
|
|
|
76
76
|
__exportStar(require("./command/ValueCommand"), exports);
|
|
77
77
|
__exportStar(require("./command/ValueListCommand"), exports);
|
|
78
78
|
__exportStar(require("./enum/GatewayType"), exports);
|
|
79
|
+
__exportStar(require("./enum/InvoiceCostType"), exports);
|
|
79
80
|
__exportStar(require("./enum/OfferSubscriptionDurationUnit"), exports);
|
|
80
81
|
__exportStar(require("./enum/PaymentGateway"), exports);
|
|
81
82
|
__exportStar(require("./enum/PaymentStatus"), exports);
|
|
@@ -96,6 +97,8 @@ __exportStar(require("./meta/SubscriptionTagMetaTable"), exports);
|
|
|
96
97
|
__exportStar(require("./row/EntityCategoryInputRow"), exports);
|
|
97
98
|
__exportStar(require("./row/EntityFieldInputRow"), exports);
|
|
98
99
|
__exportStar(require("./row/EntityTagInputRow"), exports);
|
|
100
|
+
__exportStar(require("./row/InvoiceCostInputRow"), exports);
|
|
101
|
+
__exportStar(require("./row/InvoiceFullRow"), exports);
|
|
99
102
|
__exportStar(require("./row/InvoiceInputRow"), exports);
|
|
100
103
|
__exportStar(require("./row/InvoiceItemInputRow"), exports);
|
|
101
104
|
__exportStar(require("./row/InvoiceRow"), 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,qEAAmD;AACnD,wEAAsD;AACtD,gFAA8D;AAC9D,6EAA2D;AAC3D,4EAA0D;AAC1D,2EAAyD;AACzD,iEAA+C;AAC/C,2DAAyC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4DAA0C;AAC1C,0DAAwC;AACxC,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,4DAA0C;AAC1C,mDAAiC;AACjC,iDAA+B;AAC/B,mDAAiC;AACjC,qDAAmC;AACnC,gEAA8C;AAC9C,6DAA2C;AAC3C,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC"}
|
|
@@ -11,6 +11,8 @@ export declare class InvoiceMetaTable extends BaseMetaTable {
|
|
|
11
11
|
canceled: BaseMetaColumn;
|
|
12
12
|
currency: BaseMetaColumn;
|
|
13
13
|
total: BaseMetaColumn;
|
|
14
|
+
total_cost: BaseMetaColumn;
|
|
15
|
+
total_payable: BaseMetaColumn;
|
|
14
16
|
total_paid: BaseMetaColumn;
|
|
15
17
|
total_refunded: BaseMetaColumn;
|
|
16
18
|
total_balance: BaseMetaColumn;
|
|
@@ -16,6 +16,8 @@ class InvoiceMetaTable extends namirasoft_core_1.BaseMetaTable {
|
|
|
16
16
|
canceled: new namirasoft_core_1.BaseMetaColumn("canceled", "Canceled", "Boolean", true),
|
|
17
17
|
currency: new namirasoft_core_1.BaseMetaColumn("currency", "Currency", "String", true),
|
|
18
18
|
total: new namirasoft_core_1.BaseMetaColumn("total", "Total", "Integer", true),
|
|
19
|
+
total_cost: new namirasoft_core_1.BaseMetaColumn("total_cost", "Total Cost", "Integer", true),
|
|
20
|
+
total_payable: new namirasoft_core_1.BaseMetaColumn("total_payable", "Total Payable", "Integer", true),
|
|
19
21
|
total_paid: new namirasoft_core_1.BaseMetaColumn("total_paid", "Total Paid", "Integer", true),
|
|
20
22
|
total_refunded: new namirasoft_core_1.BaseMetaColumn("total_refunded", "Total Refunded", "Integer", true),
|
|
21
23
|
total_balance: new namirasoft_core_1.BaseMetaColumn("total_balance", "Total Balance", "Integer", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceMetaTable.js","sourceRoot":"","sources":["../../src/meta/InvoiceMetaTable.ts"],"names":[],"mappings":";;;AAo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S,EAAE,IAAI,CAAC;YAC3E,aAAa,EAAE,IAAI,gCAAc,CAAC,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,CAAC;YAC3E,cAAc,EAAE,IAAI,gCAAc,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,IAAI,CAAC;YACvF,aAAa,EAAE,IAAI,gCAAc,CAAC,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,CAAC;YACpF,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;AA9CD,4CA8CC;AAAA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceCostInputRow.js","sourceRoot":"","sources":["../../src/row/InvoiceCostInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { InvoiceItemInputRow } from "./InvoiceItemInputRow";
|
|
2
|
+
export type InvoiceFullRow = {
|
|
3
|
+
id: string;
|
|
4
|
+
user_id: string;
|
|
5
|
+
product_id: (string | null);
|
|
6
|
+
transaction_id: (number | null);
|
|
7
|
+
subscription_id: (string | null);
|
|
8
|
+
title: string;
|
|
9
|
+
refund: boolean;
|
|
10
|
+
canceled: boolean;
|
|
11
|
+
currency: string;
|
|
12
|
+
total: number;
|
|
13
|
+
total_cost: number;
|
|
14
|
+
total_payable: number;
|
|
15
|
+
total_paid: number;
|
|
16
|
+
total_refunded: number;
|
|
17
|
+
total_balance: number;
|
|
18
|
+
description: (string | null);
|
|
19
|
+
created_at: Date;
|
|
20
|
+
updated_at: Date;
|
|
21
|
+
invoice_items: InvoiceItemInputRow[];
|
|
22
|
+
total_tax: number;
|
|
23
|
+
total_discount: number;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceFullRow.js","sourceRoot":"","sources":["../../src/row/InvoiceFullRow.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InvoiceCostInputRow } from "./InvoiceCostInputRow";
|
|
1
2
|
import { InvoiceItemInputRow } from "./InvoiceItemInputRow";
|
|
2
3
|
export type InvoiceInputRow = {
|
|
3
4
|
product_id: (string | null);
|
|
@@ -8,4 +9,5 @@ export type InvoiceInputRow = {
|
|
|
8
9
|
currency: string;
|
|
9
10
|
description: (string | null);
|
|
10
11
|
invoice_items: InvoiceItemInputRow[];
|
|
12
|
+
invoice_costs: InvoiceCostInputRow[];
|
|
11
13
|
};
|
package/dist/row/InvoiceRow.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.4",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"namirasoft-core": "^1.4.12",
|
|
21
21
|
"namirasoft-site": "^1.4.0",
|
|
22
22
|
"namirasoft-node-cli": "^1.4.4",
|
|
23
|
-
"namirasoft-account": "^1.4.
|
|
23
|
+
"namirasoft-account": "^1.4.21"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
26
|
"ns-payment": "./dist/command/cli.js"
|
|
@@ -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.4`, manager, onError);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { FilterItem } from "namirasoft-core";
|
|
22
|
+
import { InvoiceFullRow } from "./row/InvoiceFullRow";
|
|
22
23
|
import { InvoiceInputRow } from "./row/InvoiceInputRow";
|
|
23
24
|
import { InvoiceRow } from "./row/InvoiceRow";
|
|
24
25
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
@@ -42,10 +43,10 @@ export class NamirasoftPaymentServerInvoice extends NamirasoftPaymentServerBase
|
|
|
42
43
|
let { data } = await this._get<{ rows: InvoiceRow[], count: number }>(path, { filters: filters_string_value, page, size, user_id });
|
|
43
44
|
return data;
|
|
44
45
|
}
|
|
45
|
-
async Get(id: string): Promise<
|
|
46
|
+
async Get(id: string): Promise<InvoiceFullRow>
|
|
46
47
|
{
|
|
47
48
|
let path = `/invoice/${id}`;
|
|
48
|
-
let { data } = await this._get<
|
|
49
|
+
let { data } = await this._get<InvoiceFullRow>(path, {});
|
|
49
50
|
return data;
|
|
50
51
|
}
|
|
51
52
|
async Create(body: InvoiceInputRow): Promise<InvoiceRow>
|
|
@@ -91,6 +91,14 @@ export class InvoiceCreateCommand extends BaseFinalCommand
|
|
|
91
91
|
optional: false,
|
|
92
92
|
args: ["invoice_items"],
|
|
93
93
|
defaults: [""]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "invoice_costs",
|
|
97
|
+
short: "",
|
|
98
|
+
description: "Provides the value of 'invoice_costs' in body",
|
|
99
|
+
optional: false,
|
|
100
|
+
args: ["invoice_costs"],
|
|
101
|
+
defaults: [""]
|
|
94
102
|
}
|
|
95
103
|
]);
|
|
96
104
|
}
|
|
@@ -112,7 +120,8 @@ export class InvoiceCreateCommand extends BaseFinalCommand
|
|
|
112
120
|
refund: this.option_values.refund,
|
|
113
121
|
currency: this.option_values.currency,
|
|
114
122
|
description: this.option_values.description,
|
|
115
|
-
invoice_items: this.option_values.invoice_items
|
|
123
|
+
invoice_items: this.option_values.invoice_items,
|
|
124
|
+
invoice_costs: this.option_values.invoice_costs
|
|
116
125
|
});
|
|
117
126
|
this.app.logger.success(JSON.stringify(ans));
|
|
118
127
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
export enum InvoiceCostType
|
|
22
|
+
{
|
|
23
|
+
Discount = "Discount",
|
|
24
|
+
Tax = "Tax",
|
|
25
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -80,6 +80,7 @@ export * from "./command/SubscriptionTagUpdateCommand";
|
|
|
80
80
|
export * from "./command/ValueCommand";
|
|
81
81
|
export * from "./command/ValueListCommand";
|
|
82
82
|
export * from "./enum/GatewayType";
|
|
83
|
+
export * from "./enum/InvoiceCostType";
|
|
83
84
|
export * from "./enum/OfferSubscriptionDurationUnit";
|
|
84
85
|
export * from "./enum/PaymentGateway";
|
|
85
86
|
export * from "./enum/PaymentStatus";
|
|
@@ -100,6 +101,8 @@ export * from "./meta/SubscriptionTagMetaTable";
|
|
|
100
101
|
export * from "./row/EntityCategoryInputRow";
|
|
101
102
|
export * from "./row/EntityFieldInputRow";
|
|
102
103
|
export * from "./row/EntityTagInputRow";
|
|
104
|
+
export * from "./row/InvoiceCostInputRow";
|
|
105
|
+
export * from "./row/InvoiceFullRow";
|
|
103
106
|
export * from "./row/InvoiceInputRow";
|
|
104
107
|
export * from "./row/InvoiceItemInputRow";
|
|
105
108
|
export * from "./row/InvoiceRow";
|
|
@@ -33,6 +33,8 @@ export class InvoiceMetaTable extends BaseMetaTable
|
|
|
33
33
|
canceled: BaseMetaColumn;
|
|
34
34
|
currency: BaseMetaColumn;
|
|
35
35
|
total: BaseMetaColumn;
|
|
36
|
+
total_cost: BaseMetaColumn;
|
|
37
|
+
total_payable: BaseMetaColumn;
|
|
36
38
|
total_paid: BaseMetaColumn;
|
|
37
39
|
total_refunded: BaseMetaColumn;
|
|
38
40
|
total_balance: BaseMetaColumn;
|
|
@@ -54,6 +56,8 @@ export class InvoiceMetaTable extends BaseMetaTable
|
|
|
54
56
|
canceled: new BaseMetaColumn("canceled", "Canceled", "Boolean", true),
|
|
55
57
|
currency: new BaseMetaColumn("currency", "Currency", "String", true),
|
|
56
58
|
total: new BaseMetaColumn("total", "Total", "Integer", true),
|
|
59
|
+
total_cost: new BaseMetaColumn("total_cost", "Total Cost", "Integer", true),
|
|
60
|
+
total_payable: new BaseMetaColumn("total_payable", "Total Payable", "Integer", true),
|
|
57
61
|
total_paid: new BaseMetaColumn("total_paid", "Total Paid", "Integer", true),
|
|
58
62
|
total_refunded: new BaseMetaColumn("total_refunded", "Total Refunded", "Integer", true),
|
|
59
63
|
total_balance: new BaseMetaColumn("total_balance", "Total Balance", "Integer", true),
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { InvoiceCostType } from "../enum/InvoiceCostType";
|
|
22
|
+
|
|
23
|
+
export type InvoiceCostInputRow =
|
|
24
|
+
{
|
|
25
|
+
type: (InvoiceCostType | null);
|
|
26
|
+
amount: number;
|
|
27
|
+
description: (string | null);
|
|
28
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { InvoiceItemInputRow } from "./InvoiceItemInputRow";
|
|
22
|
+
|
|
23
|
+
export type InvoiceFullRow =
|
|
24
|
+
{
|
|
25
|
+
id: string;
|
|
26
|
+
user_id: string;
|
|
27
|
+
product_id: (string | null);
|
|
28
|
+
transaction_id: (number | null);
|
|
29
|
+
subscription_id: (string | null);
|
|
30
|
+
title: string;
|
|
31
|
+
refund: boolean;
|
|
32
|
+
canceled: boolean;
|
|
33
|
+
currency: string;
|
|
34
|
+
total: number;
|
|
35
|
+
total_cost: number;
|
|
36
|
+
total_payable: number;
|
|
37
|
+
total_paid: number;
|
|
38
|
+
total_refunded: number;
|
|
39
|
+
total_balance: number;
|
|
40
|
+
description: (string | null);
|
|
41
|
+
created_at: Date;
|
|
42
|
+
updated_at: Date;
|
|
43
|
+
invoice_items: InvoiceItemInputRow[];
|
|
44
|
+
total_tax: number;
|
|
45
|
+
total_discount: number;
|
|
46
|
+
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
+
import { InvoiceCostInputRow } from "./InvoiceCostInputRow";
|
|
21
22
|
import { InvoiceItemInputRow } from "./InvoiceItemInputRow";
|
|
22
23
|
|
|
23
24
|
export type InvoiceInputRow =
|
|
@@ -30,4 +31,5 @@ export type InvoiceInputRow =
|
|
|
30
31
|
currency: string;
|
|
31
32
|
description: (string | null);
|
|
32
33
|
invoice_items: InvoiceItemInputRow[];
|
|
34
|
+
invoice_costs: InvoiceCostInputRow[];
|
|
33
35
|
}
|