namirasoft-payment 1.4.32 → 1.4.33
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/NamirasoftPaymentServerSubscription.d.ts +2 -1
- package/dist/NamirasoftPaymentServerSubscription.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/row/SubscrpitionFullRow.d.ts +14 -0
- package/dist/row/SubscrpitionFullRow.js +3 -0
- package/dist/row/SubscrpitionFullRow.js.map +1 -0
- package/package.json +1 -1
- package/src/NamirasoftPaymentServerBase.ts +1 -1
- package/src/NamirasoftPaymentServerSubscription.ts +3 -2
- package/src/index.ts +2 -1
- package/src/row/SubscrpitionFullRow.ts +36 -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.NSABaseServer {
|
|
6
6
|
constructor(base_url, manager, onError) {
|
|
7
|
-
super(base_url, `1.4.
|
|
7
|
+
super(base_url, `1.4.33`, manager, onError);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.NamirasoftPaymentServerBase = NamirasoftPaymentServerBase;
|
|
@@ -3,6 +3,7 @@ import { GatewayType } from "./enum/GatewayType";
|
|
|
3
3
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
4
4
|
import { SortItem } from "namirasoft-core";
|
|
5
5
|
import { SubscriptionRow } from "./row/SubscriptionRow";
|
|
6
|
+
import { SubscrpitionFullRow } from "./row/SubscrpitionFullRow";
|
|
6
7
|
import { TokenManager } from "namirasoft-account";
|
|
7
8
|
export declare class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServerBase {
|
|
8
9
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void);
|
|
@@ -10,7 +11,7 @@ export declare class NamirasoftPaymentServerSubscription extends NamirasoftPayme
|
|
|
10
11
|
rows: SubscriptionRow[];
|
|
11
12
|
count: number;
|
|
12
13
|
}>;
|
|
13
|
-
Get(id: string): Promise<
|
|
14
|
+
Get(id: string): Promise<SubscrpitionFullRow>;
|
|
14
15
|
Cancel(id: string, reason: string): Promise<void>;
|
|
15
16
|
Checkout(body: {
|
|
16
17
|
gateway: GatewayType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftPaymentServerSubscription.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerSubscription.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,+EAA4E;AAC5E,qDAA2C;
|
|
1
|
+
{"version":3,"file":"NamirasoftPaymentServerSubscription.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerSubscription.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,+EAA4E;AAC5E,qDAA2C;AAK3C,MAAa,mCAAoC,SAAQ,yDAA2B;IAEhF,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAClC,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,EAAE,OAAwB;;YAE9H,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,IAAI,CAA6C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,CAAC;YACpK,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,IAAI,CAAsB,IAAI,EAAE,EAAE,CAAC,CAAC;YAC9D,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,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QACvC,CAAC;KAAA;IACK,QAAQ,CAAC,IAAkI;;YAE7I,IAAI,IAAI,GAAG,wBAAwB,CAAC;YACpC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAM,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrD,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAnCD,kFAmCC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -116,4 +116,5 @@ __exportStar(require("./row/SubscriptionFieldRow"), exports);
|
|
|
116
116
|
__exportStar(require("./row/SubscriptionPaidRow"), exports);
|
|
117
117
|
__exportStar(require("./row/SubscriptionRow"), exports);
|
|
118
118
|
__exportStar(require("./row/SubscriptionTagRow"), exports);
|
|
119
|
+
__exportStar(require("./row/SubscrpitionFullRow"), exports);
|
|
119
120
|
//# 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,gFAA8D;AAC9D,6EAA2D;AAC3D,4EAA0D;AAC1D,2EAAyD;AACzD,iEAA+C;AAC/C,2DAAyC;AACzC,8DAA4C;AAC5C,iEAA+C;AAC/C,2DAAyC;AACzC,iEAA+C;AAC/C,iEAA+C;AAC/C,8DAA4C;AAC5C,+DAA6C;AAC7C,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,8EAA4D;AAC5D,8EAA4D;AAC5D,2EAAyD;AACzD,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,qEAAmD;AACnD,2EAAyD;AACzD,2EAAyD;AACzD,wEAAsD;AACtD,yEAAuD;AACvD,2EAAyD;AACzD,mEAAiD;AACjD,oEAAkD;AAClD,oEAAkD;AAClD,uEAAqD;AACrD,wEAAsD;AACtD,0EAAwD;AACxD,mEAAiD;AACjD,yEAAuD;AACvD,yEAAuD;AACvD,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,yDAAuC;AACvC,6DAA2C;AAC3C,qDAAmC;A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D,8EAA4D;AAC5D,2EAAyD;AACzD,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,qEAAmD;AACnD,2EAAyD;AACzD,2EAAyD;AACzD,wEAAsD;AACtD,yEAAuD;AACvD,2EAAyD;AACzD,mEAAiD;AACjD,oEAAkD;AAClD,oEAAkD;AAClD,uEAAqD;AACrD,wEAAsD;AACtD,0EAAwD;AACxD,mEAAiD;AACjD,yEAAuD;AACvD,yEAAuD;AACvD,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,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,uEAAqD;AACrD,oEAAkD;AAClD,+DAA6C;AAC7C,kEAAgD;AAChD,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,4DAA0C;AAC1C,mDAAiC;AACjC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,gEAA8C;AAC9C,6DAA2C;AAC3C,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,4DAA0C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SubscriptionGateway } from "../enum/SubscriptionGateway";
|
|
2
|
+
import { SubscriptionStatus } from "../enum/SubscriptionStatus";
|
|
3
|
+
export type SubscrpitionFullRow = {
|
|
4
|
+
id: string;
|
|
5
|
+
user_id: string;
|
|
6
|
+
product_id: string;
|
|
7
|
+
offer_id: string;
|
|
8
|
+
gateway: SubscriptionGateway;
|
|
9
|
+
status: SubscriptionStatus;
|
|
10
|
+
reason: (string | null);
|
|
11
|
+
description: string;
|
|
12
|
+
created_at: Date;
|
|
13
|
+
updated_at: Date;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscrpitionFullRow.js","sourceRoot":"","sources":["../../src/row/SubscrpitionFullRow.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -25,6 +25,6 @@ export class NamirasoftPaymentServerBase extends NSABaseServer
|
|
|
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.33`, manager, onError);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
@@ -23,6 +23,7 @@ import { GatewayType } from "./enum/GatewayType";
|
|
|
23
23
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
24
24
|
import { SortItem } from "namirasoft-core";
|
|
25
25
|
import { SubscriptionRow } from "./row/SubscriptionRow";
|
|
26
|
+
import { SubscrpitionFullRow } from "./row/SubscrpitionFullRow";
|
|
26
27
|
import { TokenManager } from "namirasoft-account";
|
|
27
28
|
|
|
28
29
|
export class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServerBase
|
|
@@ -43,10 +44,10 @@ export class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServer
|
|
|
43
44
|
let { data } = await this._get<{ rows: SubscriptionRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, user_id });
|
|
44
45
|
return data;
|
|
45
46
|
}
|
|
46
|
-
async Get(id: string): Promise<
|
|
47
|
+
async Get(id: string): Promise<SubscrpitionFullRow>
|
|
47
48
|
{
|
|
48
49
|
let path = `/subscription/${id}`;
|
|
49
|
-
let { data } = await this._get<
|
|
50
|
+
let { data } = await this._get<SubscrpitionFullRow>(path, {});
|
|
50
51
|
return data;
|
|
51
52
|
}
|
|
52
53
|
async Cancel(id: string, reason: string): Promise<void>
|
package/src/index.ts
CHANGED
|
@@ -119,4 +119,5 @@ export * from "./row/SubscriptionCategoryRow";
|
|
|
119
119
|
export * from "./row/SubscriptionFieldRow";
|
|
120
120
|
export * from "./row/SubscriptionPaidRow";
|
|
121
121
|
export * from "./row/SubscriptionRow";
|
|
122
|
-
export * from "./row/SubscriptionTagRow";
|
|
122
|
+
export * from "./row/SubscriptionTagRow";
|
|
123
|
+
export * from "./row/SubscrpitionFullRow";
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { SubscriptionGateway } from "../enum/SubscriptionGateway";
|
|
22
|
+
import { SubscriptionStatus } from "../enum/SubscriptionStatus";
|
|
23
|
+
|
|
24
|
+
export type SubscrpitionFullRow =
|
|
25
|
+
{
|
|
26
|
+
id: string;
|
|
27
|
+
user_id: string;
|
|
28
|
+
product_id: string;
|
|
29
|
+
offer_id: string;
|
|
30
|
+
gateway: SubscriptionGateway;
|
|
31
|
+
status: SubscriptionStatus;
|
|
32
|
+
reason: (string | null);
|
|
33
|
+
description: string;
|
|
34
|
+
created_at: Date;
|
|
35
|
+
updated_at: Date;
|
|
36
|
+
}
|