namirasoft-payment 1.4.120 → 1.4.121
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/NamirasoftPaymentServerTrial.d.ts +2 -3
- package/dist/NamirasoftPaymentServerTrial.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/NamirasoftPaymentServer.ts +1 -1
- package/src/NamirasoftPaymentServerTrial.ts +4 -5
- package/src/index.ts +0 -1
- package/dist/row/TrialFullRow.d.ts +0 -13
- package/dist/row/TrialFullRow.js +0 -3
- package/dist/row/TrialFullRow.js.map +0 -1
- package/src/row/TrialFullRow.ts +0 -35
|
@@ -21,7 +21,7 @@ const NamirasoftPaymentServerTrial_1 = require("./NamirasoftPaymentServerTrial")
|
|
|
21
21
|
const NamirasoftPaymentServerValue_1 = require("./NamirasoftPaymentServerValue");
|
|
22
22
|
class NamirasoftPaymentServer extends namirasoft_account_1.NSABaseServer {
|
|
23
23
|
constructor(base_url, manager, onError) {
|
|
24
|
-
super(base_url, `1.4.
|
|
24
|
+
super(base_url, `1.4.121`, manager, onError);
|
|
25
25
|
this.healthz = new NamirasoftPaymentServerHealthz_1.NamirasoftPaymentServerHealthz(this);
|
|
26
26
|
this.metrics = new NamirasoftPaymentServerMetrics_1.NamirasoftPaymentServerMetrics(this);
|
|
27
27
|
this.value = new NamirasoftPaymentServerValue_1.NamirasoftPaymentServerValue(this);
|
|
@@ -2,15 +2,14 @@ import { FilterItem } from "namirasoft-core";
|
|
|
2
2
|
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
3
3
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
4
4
|
import { SortItem } from "namirasoft-core";
|
|
5
|
-
import { TrialFullRow } from "./row/TrialFullRow";
|
|
6
5
|
import { TrialRow } from "./row/TrialRow";
|
|
7
6
|
export declare class NamirasoftPaymentServerTrial extends NamirasoftPaymentServerBase {
|
|
8
7
|
constructor(server: NamirasoftPaymentServer);
|
|
9
8
|
_GetFor(user_id: string, product_id: string, sales_item_id: string): Promise<(TrialRow | null)>;
|
|
10
9
|
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
|
|
11
|
-
rows:
|
|
10
|
+
rows: TrialRow[];
|
|
12
11
|
count: number;
|
|
13
12
|
}>;
|
|
14
13
|
GetBy(product_id: string, sales_item_id: string): Promise<(TrialRow | null)>;
|
|
15
|
-
Get(id: string): Promise<
|
|
14
|
+
Get(id: string): Promise<TrialRow>;
|
|
16
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftPaymentServerTrial.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerTrial.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,+EAA4E;AAC5E,qDAA2C;
|
|
1
|
+
{"version":3,"file":"NamirasoftPaymentServerTrial.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerTrial.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,+EAA4E;AAC5E,qDAA2C;AAG3C,MAAa,4BAA6B,SAAQ,yDAA2B;IAEzE,YAAY,MAA+B;QAEvC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IACK,OAAO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CACJ;AApCD,oEAoCC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -143,6 +143,5 @@ __exportStar(require("./row/SubscriptionFullRow"), exports);
|
|
|
143
143
|
__exportStar(require("./row/SubscriptionItemRow"), exports);
|
|
144
144
|
__exportStar(require("./row/SubscriptionPaidRow"), exports);
|
|
145
145
|
__exportStar(require("./row/SubscriptionRow"), exports);
|
|
146
|
-
__exportStar(require("./row/TrialFullRow"), exports);
|
|
147
146
|
__exportStar(require("./row/TrialRow"), exports);
|
|
148
147
|
//# 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,gEAA8C;AAC9C,mEAAiD;AACjD,mEAAiD;AACjD,iEAA+C;AAC/C,mEAAiD;AACjD,iEAA+C;AAC/C,qEAAmD;AACnD,mEAAiD;AACjD,mEAAiD;AACjD,mEAAiD;AACjD,qEAAmD;AACnD,wEAAsD;AACtD,0FAAwE;AACxE,4EAA0D;AAC1D,4EAA0D;AAC1D,iEAA+C;AAC/C,iEAA+C;AAC/C,gDAA8B;AAC9B,2DAAyC;AACzC,wDAAsC;AACtC,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,8DAA4C;AAC5C,iEAA+C;AAC/C,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,qEAAmD;AACnD,qEAAmD;AACnD,yDAAuC;AACvC,mEAAiD;AACjD,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,4DAA0C;AAC1C,6DAA2C;AAC3C,gEAA8C;AAC9C,iEAA+C;AAC/C,6DAA2C;AAC3C,mEAAiD;AACjD,2DAAyC;AACzC,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,2DAAyC;AACz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DAAmC;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,mDAAiC;AACjC,uDAAqC;AACrC,8DAA4C;AAC5C,8DAA4C;AAC5C,0DAAwC;AACxC,uEAAqD;AACrD,4DAA0C;AAC1C,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC;AACxC,4DAA0C;AAC1C,iFAA+D;AAC/D,mEAAiD;AACjD,+DAA6C;AAC7C,mEAAiD;AACjD,gDAA8B;AAC9B,4DAA0C;AAC1C,uDAAqC;AACrC,uDAAqC;AACrC,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC;AACrC,mDAAiC;AACjC,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,yDAAuC;AACvC,qDAAmC;AACnC,0EAAwD;AACxD,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC;AACtC,iDAA+B"}
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ export class NamirasoftPaymentServer extends NSABaseServer
|
|
|
59
59
|
product: NamirasoftPaymentServerProduct;
|
|
60
60
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
61
61
|
{
|
|
62
|
-
super(base_url, `1.4.
|
|
62
|
+
super(base_url, `1.4.121`, manager, onError);
|
|
63
63
|
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
64
64
|
this.metrics = new NamirasoftPaymentServerMetrics(this);
|
|
65
65
|
this.value = new NamirasoftPaymentServerValue(this);
|
|
@@ -22,7 +22,6 @@ import { FilterItem } from "namirasoft-core";
|
|
|
22
22
|
import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
23
23
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
24
24
|
import { SortItem } from "namirasoft-core";
|
|
25
|
-
import { TrialFullRow } from "./row/TrialFullRow";
|
|
26
25
|
import { TrialRow } from "./row/TrialRow";
|
|
27
26
|
|
|
28
27
|
export class NamirasoftPaymentServerTrial extends NamirasoftPaymentServerBase
|
|
@@ -41,12 +40,12 @@ export class NamirasoftPaymentServerTrial extends NamirasoftPaymentServerBase
|
|
|
41
40
|
let { data } = await this.server._get<(TrialRow | null)>(path, {});
|
|
42
41
|
return data;
|
|
43
42
|
}
|
|
44
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows:
|
|
43
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: TrialRow[], count: number }>
|
|
45
44
|
{
|
|
46
45
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
47
46
|
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
48
47
|
let path = `/trial/list`;
|
|
49
|
-
let { data } = await this.server._get<{ rows:
|
|
48
|
+
let { data } = await this.server._get<{ rows: TrialRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
50
49
|
return data;
|
|
51
50
|
}
|
|
52
51
|
async GetBy(product_id: string, sales_item_id: string): Promise<(TrialRow | null)>
|
|
@@ -55,10 +54,10 @@ export class NamirasoftPaymentServerTrial extends NamirasoftPaymentServerBase
|
|
|
55
54
|
let { data } = await this.server._get<(TrialRow | null)>(path, {});
|
|
56
55
|
return data;
|
|
57
56
|
}
|
|
58
|
-
async Get(id: string): Promise<
|
|
57
|
+
async Get(id: string): Promise<TrialRow>
|
|
59
58
|
{
|
|
60
59
|
let path = `/trial/${id}`;
|
|
61
|
-
let { data } = await this.server._get<
|
|
60
|
+
let { data } = await this.server._get<TrialRow>(path, {});
|
|
62
61
|
return data;
|
|
63
62
|
}
|
|
64
63
|
};
|
package/src/index.ts
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TrialUnit } from "../enum/TrialUnit";
|
|
2
|
-
export type TrialFullRow = {
|
|
3
|
-
id: string;
|
|
4
|
-
user_id: string;
|
|
5
|
-
product_id: string;
|
|
6
|
-
sales_item_id: string;
|
|
7
|
-
starts_at: Date;
|
|
8
|
-
value: number;
|
|
9
|
-
unit: TrialUnit;
|
|
10
|
-
ends_at: Date;
|
|
11
|
-
created_at: Date;
|
|
12
|
-
updated_at: Date;
|
|
13
|
-
};
|
package/dist/row/TrialFullRow.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TrialFullRow.js","sourceRoot":"","sources":["../../src/row/TrialFullRow.ts"],"names":[],"mappings":""}
|
package/src/row/TrialFullRow.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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 { TrialUnit } from "../enum/TrialUnit";
|
|
22
|
-
|
|
23
|
-
export type TrialFullRow =
|
|
24
|
-
{
|
|
25
|
-
id: string;
|
|
26
|
-
user_id: string;
|
|
27
|
-
product_id: string;
|
|
28
|
-
sales_item_id: string;
|
|
29
|
-
starts_at: Date;
|
|
30
|
-
value: number;
|
|
31
|
-
unit: TrialUnit;
|
|
32
|
-
ends_at: Date;
|
|
33
|
-
created_at: Date;
|
|
34
|
-
updated_at: Date;
|
|
35
|
-
}
|