namirasoft-payment 1.4.44 → 1.4.45
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/enum/InvoiceCostType.d.ts +1 -0
- package/dist/enum/InvoiceCostType.js +1 -0
- package/dist/enum/InvoiceCostType.js.map +1 -1
- package/dist/meta/InvoiceMetaTable.d.ts +3 -1
- package/dist/meta/InvoiceMetaTable.js +3 -1
- package/dist/meta/InvoiceMetaTable.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 +3 -3
- package/dist/row/InvoiceRow.d.ts +3 -1
- package/dist/row/SubscriptionRow.d.ts +1 -0
- package/package.json +1 -1
- package/src/NamirasoftPaymentServer.ts +1 -1
- package/src/enum/InvoiceCostType.ts +1 -0
- package/src/meta/InvoiceMetaTable.ts +6 -2
- package/src/meta/SubscriptionMetaTable.ts +2 -0
- package/src/row/InvoiceFullRow.ts +3 -3
- package/src/row/InvoiceRow.ts +3 -1
- package/src/row/SubscriptionRow.ts +1 -0
|
@@ -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.45`, 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);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InvoiceCostType = void 0;
|
|
4
4
|
var InvoiceCostType;
|
|
5
5
|
(function (InvoiceCostType) {
|
|
6
|
+
InvoiceCostType["Fee"] = "Fee";
|
|
6
7
|
InvoiceCostType["Discount"] = "Discount";
|
|
7
8
|
InvoiceCostType["Tax"] = "Tax";
|
|
8
9
|
})(InvoiceCostType || (exports.InvoiceCostType = InvoiceCostType = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceCostType.js","sourceRoot":"","sources":["../../src/enum/InvoiceCostType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,
|
|
1
|
+
{"version":3,"file":"InvoiceCostType.js","sourceRoot":"","sources":["../../src/enum/InvoiceCostType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,eAKX;AALD,WAAY,eAAe;IAEvB,8BAAW,CAAA;IACX,wCAAqB,CAAA;IACrB,8BAAW,CAAA;AACf,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B"}
|
|
@@ -14,7 +14,9 @@ export declare class InvoiceMetaTable extends NSBaseMetaTable {
|
|
|
14
14
|
canceled: BaseMetaColumn;
|
|
15
15
|
currency: BaseMetaColumn;
|
|
16
16
|
total: BaseMetaColumn;
|
|
17
|
-
|
|
17
|
+
total_fee: BaseMetaColumn;
|
|
18
|
+
total_discount: BaseMetaColumn;
|
|
19
|
+
total_tax: BaseMetaColumn;
|
|
18
20
|
total_payable: BaseMetaColumn;
|
|
19
21
|
total_paid: BaseMetaColumn;
|
|
20
22
|
total_refunded: BaseMetaColumn;
|
|
@@ -19,7 +19,9 @@ class InvoiceMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
19
19
|
canceled: new namirasoft_core_1.BaseMetaColumn(this, "canceled", "Canceled", "Boolean", true),
|
|
20
20
|
currency: new namirasoft_core_1.BaseMetaColumn(this, "currency", "Currency", "String", true),
|
|
21
21
|
total: new namirasoft_core_1.BaseMetaColumn(this, "total", "Total", "Integer", true),
|
|
22
|
-
|
|
22
|
+
total_fee: new namirasoft_core_1.BaseMetaColumn(this, "total_fee", "Total Fee", "Integer", true),
|
|
23
|
+
total_discount: new namirasoft_core_1.BaseMetaColumn(this, "total_discount", "Total Discount", "Integer", true),
|
|
24
|
+
total_tax: new namirasoft_core_1.BaseMetaColumn(this, "total_tax", "Total Tax", "Integer", true),
|
|
23
25
|
total_payable: new namirasoft_core_1.BaseMetaColumn(this, "total_payable", "Total Payable", "Integer", true),
|
|
24
26
|
total_paid: new namirasoft_core_1.BaseMetaColumn(this, "total_paid", "Total Paid", "Integer", true),
|
|
25
27
|
total_refunded: new namirasoft_core_1.BaseMetaColumn(this, "total_refunded", "Total Refunded", "Integer", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceMetaTable.js","sourceRoot":"","sources":["../../src/meta/InvoiceMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,gBAAiB,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"InvoiceMetaTable.js","sourceRoot":"","sources":["../../src/meta/InvoiceMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,gBAAiB,SAAQ,iCAAe;IA0BjD,YAAY,QAA4B;QAEpC,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,iBAAiB,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,CAAC;YACrG,OAAO,EAAE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AAI,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,CAAC;YAC9E,aAAa,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,CAAC;YAC1F,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,CAAC;YACjF,cAAc,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,IAAI,CAAC;YAC7F,aAAa,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,CAAC;YAC1F,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;AAtDD,4CAsDC;AAAA,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare class SubscriptionMetaTable extends NSBaseMetaTable {
|
|
|
6
6
|
stripe_subscription_id: BaseMetaColumn;
|
|
7
7
|
user_id: BaseMetaColumn;
|
|
8
8
|
product_id: BaseMetaColumn;
|
|
9
|
+
sales_item_id: BaseMetaColumn;
|
|
9
10
|
offer_id: BaseMetaColumn;
|
|
10
11
|
gateway: BaseMetaColumn;
|
|
11
12
|
status: BaseMetaColumn;
|
|
@@ -11,6 +11,7 @@ class SubscriptionMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
11
11
|
stripe_subscription_id: new namirasoft_core_1.BaseMetaColumn(this, "stripe_subscription_id", "Stripe Subscription Id", "String", true),
|
|
12
12
|
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
13
13
|
product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product Id", "String", true),
|
|
14
|
+
sales_item_id: new namirasoft_core_1.BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", true),
|
|
14
15
|
offer_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_id", "Offer Id", "String", true),
|
|
15
16
|
gateway: new namirasoft_core_1.BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
|
|
16
17
|
status: new namirasoft_core_1.BaseMetaColumn(this, "status", "Status", "Enum", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionMetaTable.js","sourceRoot":"","sources":["../../src/meta/SubscriptionMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,qBAAsB,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"SubscriptionMetaTable.js","sourceRoot":"","sources":["../../src/meta/SubscriptionMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,qBAAsB,SAAQ,iCAAe;IAgBtD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,0BAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;QACzE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,sBAAsB,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,QAAQ,EAAE,IAAI,CAAC;YACpH,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,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,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC;YACrE,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC;YAClE,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;YACrE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YACnF,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;AAlCD,sDAkCC;AAAA,CAAC"}
|
|
@@ -13,7 +13,9 @@ export type InvoiceFullRow = {
|
|
|
13
13
|
canceled: boolean;
|
|
14
14
|
currency: string;
|
|
15
15
|
total: number;
|
|
16
|
-
|
|
16
|
+
total_fee: number;
|
|
17
|
+
total_discount: number;
|
|
18
|
+
total_tax: number;
|
|
17
19
|
total_payable: number;
|
|
18
20
|
total_paid: number;
|
|
19
21
|
total_refunded: number;
|
|
@@ -23,6 +25,4 @@ export type InvoiceFullRow = {
|
|
|
23
25
|
updated_at: Date;
|
|
24
26
|
invoice_items: InvoiceItemInputRow[];
|
|
25
27
|
invoice_costs: InvoiceCostInputRow[];
|
|
26
|
-
total_tax: number;
|
|
27
|
-
total_discount: number;
|
|
28
28
|
};
|
package/dist/row/InvoiceRow.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ export type InvoiceRow = {
|
|
|
11
11
|
canceled: boolean;
|
|
12
12
|
currency: string;
|
|
13
13
|
total: number;
|
|
14
|
-
|
|
14
|
+
total_fee: number;
|
|
15
|
+
total_discount: number;
|
|
16
|
+
total_tax: number;
|
|
15
17
|
total_payable: number;
|
|
16
18
|
total_paid: number;
|
|
17
19
|
total_refunded: number;
|
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.45`, manager, onError);
|
|
49
49
|
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
50
50
|
this.value = new NamirasoftPaymentServerValue(this);
|
|
51
51
|
this.invoice = new NamirasoftPaymentServerInvoice(this);
|
|
@@ -36,7 +36,9 @@ export class InvoiceMetaTable extends NSBaseMetaTable
|
|
|
36
36
|
canceled: BaseMetaColumn;
|
|
37
37
|
currency: BaseMetaColumn;
|
|
38
38
|
total: BaseMetaColumn;
|
|
39
|
-
|
|
39
|
+
total_fee: BaseMetaColumn;
|
|
40
|
+
total_discount: BaseMetaColumn;
|
|
41
|
+
total_tax: BaseMetaColumn;
|
|
40
42
|
total_payable: BaseMetaColumn;
|
|
41
43
|
total_paid: BaseMetaColumn;
|
|
42
44
|
total_refunded: BaseMetaColumn;
|
|
@@ -61,7 +63,9 @@ export class InvoiceMetaTable extends NSBaseMetaTable
|
|
|
61
63
|
canceled: new BaseMetaColumn(this, "canceled", "Canceled", "Boolean", true),
|
|
62
64
|
currency: new BaseMetaColumn(this, "currency", "Currency", "String", true),
|
|
63
65
|
total: new BaseMetaColumn(this, "total", "Total", "Integer", true),
|
|
64
|
-
|
|
66
|
+
total_fee: new BaseMetaColumn(this, "total_fee", "Total Fee", "Integer", true),
|
|
67
|
+
total_discount: new BaseMetaColumn(this, "total_discount", "Total Discount", "Integer", true),
|
|
68
|
+
total_tax: new BaseMetaColumn(this, "total_tax", "Total Tax", "Integer", true),
|
|
65
69
|
total_payable: new BaseMetaColumn(this, "total_payable", "Total Payable", "Integer", true),
|
|
66
70
|
total_paid: new BaseMetaColumn(this, "total_paid", "Total Paid", "Integer", true),
|
|
67
71
|
total_refunded: new BaseMetaColumn(this, "total_refunded", "Total Refunded", "Integer", true),
|
|
@@ -28,6 +28,7 @@ export class SubscriptionMetaTable extends NSBaseMetaTable
|
|
|
28
28
|
stripe_subscription_id: BaseMetaColumn;
|
|
29
29
|
user_id: BaseMetaColumn;
|
|
30
30
|
product_id: BaseMetaColumn;
|
|
31
|
+
sales_item_id: BaseMetaColumn;
|
|
31
32
|
offer_id: BaseMetaColumn;
|
|
32
33
|
gateway: BaseMetaColumn;
|
|
33
34
|
status: BaseMetaColumn;
|
|
@@ -44,6 +45,7 @@ export class SubscriptionMetaTable extends NSBaseMetaTable
|
|
|
44
45
|
stripe_subscription_id: new BaseMetaColumn(this, "stripe_subscription_id", "Stripe Subscription Id", "String", true),
|
|
45
46
|
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
46
47
|
product_id: new BaseMetaColumn(this, "product_id", "Product Id", "String", true),
|
|
48
|
+
sales_item_id: new BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", true),
|
|
47
49
|
offer_id: new BaseMetaColumn(this, "offer_id", "Offer Id", "String", true),
|
|
48
50
|
gateway: new BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
|
|
49
51
|
status: new BaseMetaColumn(this, "status", "Status", "Enum", true),
|
|
@@ -35,7 +35,9 @@ export type InvoiceFullRow =
|
|
|
35
35
|
canceled: boolean;
|
|
36
36
|
currency: string;
|
|
37
37
|
total: number;
|
|
38
|
-
|
|
38
|
+
total_fee: number;
|
|
39
|
+
total_discount: number;
|
|
40
|
+
total_tax: number;
|
|
39
41
|
total_payable: number;
|
|
40
42
|
total_paid: number;
|
|
41
43
|
total_refunded: number;
|
|
@@ -45,6 +47,4 @@ export type InvoiceFullRow =
|
|
|
45
47
|
updated_at: Date;
|
|
46
48
|
invoice_items: InvoiceItemInputRow[];
|
|
47
49
|
invoice_costs: InvoiceCostInputRow[];
|
|
48
|
-
total_tax: number;
|
|
49
|
-
total_discount: number;
|
|
50
50
|
}
|
package/src/row/InvoiceRow.ts
CHANGED