namirasoft-payment 1.4.53 → 1.4.54
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 +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/row/{SubscrpitionFullRow.d.ts → SubscriptionFullRow.d.ts} +2 -2
- package/dist/row/{SubscrpitionFullRow.js → SubscriptionFullRow.js} +1 -1
- package/dist/row/SubscriptionFullRow.js.map +1 -0
- package/package.json +1 -1
- package/src/NamirasoftPaymentServer.ts +1 -1
- package/src/NamirasoftPaymentServerSubscription.ts +3 -3
- package/src/index.ts +2 -2
- package/src/row/{SubscrpitionFullRow.ts → SubscriptionFullRow.ts} +2 -2
- package/dist/row/SubscrpitionFullRow.js.map +0 -1
|
@@ -15,7 +15,7 @@ const NamirasoftPaymentServerSubscriptionPaid_1 = require("./NamirasoftPaymentSe
|
|
|
15
15
|
const NamirasoftPaymentServerValue_1 = require("./NamirasoftPaymentServerValue");
|
|
16
16
|
class NamirasoftPaymentServer extends namirasoft_account_1.NSABaseServer {
|
|
17
17
|
constructor(base_url, manager, onError) {
|
|
18
|
-
super(base_url, `1.4.
|
|
18
|
+
super(base_url, `1.4.54`, manager, onError);
|
|
19
19
|
this.healthz = new NamirasoftPaymentServerHealthz_1.NamirasoftPaymentServerHealthz(this);
|
|
20
20
|
this.value = new NamirasoftPaymentServerValue_1.NamirasoftPaymentServerValue(this);
|
|
21
21
|
this.invoice = new NamirasoftPaymentServerInvoice_1.NamirasoftPaymentServerInvoice(this);
|
|
@@ -3,15 +3,15 @@ import { GatewayType } from "./enum/GatewayType";
|
|
|
3
3
|
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
4
4
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
5
5
|
import { SortItem } from "namirasoft-core";
|
|
6
|
+
import { SubscriptionFullRow } from "./row/SubscriptionFullRow";
|
|
6
7
|
import { SubscriptionRow } from "./row/SubscriptionRow";
|
|
7
|
-
import { SubscrpitionFullRow } from "./row/SubscrpitionFullRow";
|
|
8
8
|
export declare class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServerBase {
|
|
9
9
|
constructor(server: NamirasoftPaymentServer);
|
|
10
10
|
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
|
|
11
11
|
rows: SubscriptionRow[];
|
|
12
12
|
count: number;
|
|
13
13
|
}>;
|
|
14
|
-
Get(id: string): Promise<
|
|
14
|
+
Get(id: string): Promise<SubscriptionFullRow>;
|
|
15
15
|
Cancel(id: string, reason: string): Promise<void>;
|
|
16
16
|
Checkout(body: {
|
|
17
17
|
gateway: GatewayType;
|
package/dist/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export * from "./row/OfferRow";
|
|
|
87
87
|
export * from "./row/PaymentRow";
|
|
88
88
|
export * from "./row/ProductRow";
|
|
89
89
|
export * from "./row/SalesItemRow";
|
|
90
|
+
export * from "./row/SubscriptionFullRow";
|
|
90
91
|
export * from "./row/SubscriptionItemRow";
|
|
91
92
|
export * from "./row/SubscriptionPaidRow";
|
|
92
93
|
export * from "./row/SubscriptionRow";
|
|
93
|
-
export * from "./row/SubscrpitionFullRow";
|
package/dist/index.js
CHANGED
|
@@ -103,8 +103,8 @@ __exportStar(require("./row/OfferRow"), exports);
|
|
|
103
103
|
__exportStar(require("./row/PaymentRow"), exports);
|
|
104
104
|
__exportStar(require("./row/ProductRow"), exports);
|
|
105
105
|
__exportStar(require("./row/SalesItemRow"), exports);
|
|
106
|
+
__exportStar(require("./row/SubscriptionFullRow"), exports);
|
|
106
107
|
__exportStar(require("./row/SubscriptionItemRow"), exports);
|
|
107
108
|
__exportStar(require("./row/SubscriptionPaidRow"), exports);
|
|
108
109
|
__exportStar(require("./row/SubscriptionRow"), exports);
|
|
109
|
-
__exportStar(require("./row/SubscrpitionFullRow"), exports);
|
|
110
110
|
//# 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,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,wEAAsD;AACtD,oEAAkD;AAClD,oEAAkD;AAClD,uEAAqD;AACrD,wEAAsD;AACtD,4EAA0D;AAC1D,yDAAuC;AACvC,6DAA2C;AAC3C,qDAAmC;AACnC,yDAAuC;AACvC,6DAA2C;AAC3C,8DAA4C;AAC5C,wEAAsD;AACtD,iEAA+C;AAC/C,sEAAoD;AACpD,2EAAyD;AACzD,qEAAmD;AACnD,uDAAqC;AACrC,oEAAkD;AAClD,wDAAsC;AACtC,uDAAqC;AACrC,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,8DAA4C;AAC5C,8DAA4C;AAC5C,0DAAwC;AACxC,uEAAqD;AACrD,4DAA0C;A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AC/C,sEAAoD;AACpD,2EAAyD;AACzD,qEAAmD;AACnD,uDAAqC;AACrC,oEAAkD;AAClD,wDAAsC;AACtC,uDAAqC;AACrC,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,8DAA4C;AAC5C,8DAA4C;AAC5C,0DAAwC;AACxC,uEAAqD;AACrD,4DAA0C;AAC1C,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC;AACxC,iEAA+C;AAC/C,4DAA0C;AAC1C,mEAAiD;AACjD,+DAA6C;AAC7C,mEAAiD;AACjD,uDAAqC;AACrC,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SubscriptionGateway } from "../enum/SubscriptionGateway";
|
|
2
2
|
import { SubscriptionItemRow } from "./SubscriptionItemRow";
|
|
3
3
|
import { SubscriptionStatus } from "../enum/SubscriptionStatus";
|
|
4
|
-
export type
|
|
4
|
+
export type SubscriptionFullRow = {
|
|
5
5
|
id: string;
|
|
6
6
|
user_id: string;
|
|
7
7
|
product_id: string;
|
|
@@ -13,5 +13,5 @@ export type SubscrpitionFullRow = {
|
|
|
13
13
|
description: string;
|
|
14
14
|
created_at: Date;
|
|
15
15
|
updated_at: Date;
|
|
16
|
-
|
|
16
|
+
subscription_item: SubscriptionItemRow[];
|
|
17
17
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionFullRow.js","sourceRoot":"","sources":["../../src/row/SubscriptionFullRow.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ export class NamirasoftPaymentServer extends NSABaseServer
|
|
|
47
47
|
product: NamirasoftPaymentServerProduct;
|
|
48
48
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
49
49
|
{
|
|
50
|
-
super(base_url, `1.4.
|
|
50
|
+
super(base_url, `1.4.54`, manager, onError);
|
|
51
51
|
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
52
52
|
this.value = new NamirasoftPaymentServerValue(this);
|
|
53
53
|
this.invoice = new NamirasoftPaymentServerInvoice(this);
|
|
@@ -23,8 +23,8 @@ import { GatewayType } from "./enum/GatewayType";
|
|
|
23
23
|
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
24
24
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
25
25
|
import { SortItem } from "namirasoft-core";
|
|
26
|
+
import { SubscriptionFullRow } from "./row/SubscriptionFullRow";
|
|
26
27
|
import { SubscriptionRow } from "./row/SubscriptionRow";
|
|
27
|
-
import { SubscrpitionFullRow } from "./row/SubscrpitionFullRow";
|
|
28
28
|
|
|
29
29
|
export class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServerBase
|
|
30
30
|
{
|
|
@@ -44,10 +44,10 @@ export class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServer
|
|
|
44
44
|
let { data } = await this.server._get<{ rows: SubscriptionRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
45
45
|
return data;
|
|
46
46
|
}
|
|
47
|
-
async Get(id: string): Promise<
|
|
47
|
+
async Get(id: string): Promise<SubscriptionFullRow>
|
|
48
48
|
{
|
|
49
49
|
let path = `/subscription/${id}`;
|
|
50
|
-
let { data } = await this.server._get<
|
|
50
|
+
let { data } = await this.server._get<SubscriptionFullRow>(path, {});
|
|
51
51
|
return data;
|
|
52
52
|
}
|
|
53
53
|
async Cancel(id: string, reason: string): Promise<void>
|
package/src/index.ts
CHANGED
|
@@ -107,7 +107,7 @@ export * from "./row/OfferRow";
|
|
|
107
107
|
export * from "./row/PaymentRow";
|
|
108
108
|
export * from "./row/ProductRow";
|
|
109
109
|
export * from "./row/SalesItemRow";
|
|
110
|
+
export * from "./row/SubscriptionFullRow";
|
|
110
111
|
export * from "./row/SubscriptionItemRow";
|
|
111
112
|
export * from "./row/SubscriptionPaidRow";
|
|
112
|
-
export * from "./row/SubscriptionRow";
|
|
113
|
-
export * from "./row/SubscrpitionFullRow";
|
|
113
|
+
export * from "./row/SubscriptionRow";
|
|
@@ -22,7 +22,7 @@ import { SubscriptionGateway } from "../enum/SubscriptionGateway";
|
|
|
22
22
|
import { SubscriptionItemRow } from "./SubscriptionItemRow";
|
|
23
23
|
import { SubscriptionStatus } from "../enum/SubscriptionStatus";
|
|
24
24
|
|
|
25
|
-
export type
|
|
25
|
+
export type SubscriptionFullRow =
|
|
26
26
|
{
|
|
27
27
|
id: string;
|
|
28
28
|
user_id: string;
|
|
@@ -35,5 +35,5 @@ export type SubscrpitionFullRow =
|
|
|
35
35
|
description: string;
|
|
36
36
|
created_at: Date;
|
|
37
37
|
updated_at: Date;
|
|
38
|
-
|
|
38
|
+
subscription_item: SubscriptionItemRow[];
|
|
39
39
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SubscrpitionFullRow.js","sourceRoot":"","sources":["../../src/row/SubscrpitionFullRow.ts"],"names":[],"mappings":""}
|