namirasoft-payment 1.4.41 → 1.4.42
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 +1 -2
- package/dist/NamirasoftPaymentServerSubscription.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/NamirasoftPaymentServerSubscription.ts +2 -3
- package/src/index.ts +1 -2
- package/dist/row/SubscrpitionFullRow.d.ts +0 -17
- package/dist/row/SubscrpitionFullRow.js +0 -3
- package/dist/row/SubscrpitionFullRow.js.map +0 -1
- package/src/row/SubscrpitionFullRow.ts +0 -39
|
@@ -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.42`, 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);
|
|
@@ -4,14 +4,13 @@ import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
|
4
4
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
5
5
|
import { SortItem } from "namirasoft-core";
|
|
6
6
|
import { SubscriptionRow } from "./row/SubscriptionRow";
|
|
7
|
-
import { SubscrpitionFullRow } from "./row/SubscrpitionFullRow";
|
|
8
7
|
export declare class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServerBase {
|
|
9
8
|
constructor(server: NamirasoftPaymentServer);
|
|
10
9
|
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
|
|
11
10
|
rows: SubscriptionRow[];
|
|
12
11
|
count: number;
|
|
13
12
|
}>;
|
|
14
|
-
Get(id: string): Promise<
|
|
13
|
+
Get(id: string): Promise<SubscriptionRow>;
|
|
15
14
|
Cancel(id: string, reason: string): Promise<void>;
|
|
16
15
|
Checkout(body: {
|
|
17
16
|
gateway: GatewayType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftPaymentServerSubscription.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerSubscription.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAG7C,+EAA4E;AAC5E,qDAA2C;
|
|
1
|
+
{"version":3,"file":"NamirasoftPaymentServerSubscription.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerSubscription.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAG7C,+EAA4E;AAC5E,qDAA2C;AAG3C,MAAa,mCAAoC,SAAQ,yDAA2B;IAEhF,YAAY,MAA+B;QAEvC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,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,IAAq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./row/SalesItemRow"), exports);
|
|
88
88
|
__exportStar(require("./row/SubscriptionPaidRow"), exports);
|
|
89
89
|
__exportStar(require("./row/SubscriptionRow"), exports);
|
|
90
|
-
__exportStar(require("./row/SubscrpitionFullRow"), exports);
|
|
91
90
|
//# 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,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,oEAAkD;AAClD,uEAAqD;AACrD,wEAAsD;AACtD,4EAA0D;AAC1D,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,+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tC,4DAA0C;AAC1C,mDAAiC;AACjC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,wDAAsC"}
|
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.42`, manager, onError);
|
|
49
49
|
this.healthz = new NamirasoftPaymentServerHealthz(this);
|
|
50
50
|
this.value = new NamirasoftPaymentServerValue(this);
|
|
51
51
|
this.invoice = new NamirasoftPaymentServerInvoice(this);
|
|
@@ -24,7 +24,6 @@ import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
|
|
|
24
24
|
import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
|
|
25
25
|
import { SortItem } from "namirasoft-core";
|
|
26
26
|
import { SubscriptionRow } from "./row/SubscriptionRow";
|
|
27
|
-
import { SubscrpitionFullRow } from "./row/SubscrpitionFullRow";
|
|
28
27
|
|
|
29
28
|
export class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServerBase
|
|
30
29
|
{
|
|
@@ -44,10 +43,10 @@ export class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServer
|
|
|
44
43
|
let { data } = await this.server._get<{ rows: SubscriptionRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
45
44
|
return data;
|
|
46
45
|
}
|
|
47
|
-
async Get(id: string): Promise<
|
|
46
|
+
async Get(id: string): Promise<SubscriptionRow>
|
|
48
47
|
{
|
|
49
48
|
let path = `/subscription/${id}`;
|
|
50
|
-
let { data } = await this.server._get<
|
|
49
|
+
let { data } = await this.server._get<SubscriptionRow>(path, {});
|
|
51
50
|
return data;
|
|
52
51
|
}
|
|
53
52
|
async Cancel(id: string, reason: string): Promise<void>
|
package/src/index.ts
CHANGED
|
@@ -90,5 +90,4 @@ export * from "./row/PaymentRow";
|
|
|
90
90
|
export * from "./row/ProductRow";
|
|
91
91
|
export * from "./row/SalesItemRow";
|
|
92
92
|
export * from "./row/SubscriptionPaidRow";
|
|
93
|
-
export * from "./row/SubscriptionRow";
|
|
94
|
-
export * from "./row/SubscrpitionFullRow";
|
|
93
|
+
export * from "./row/SubscriptionRow";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SubscriptionGateway } from "../enum/SubscriptionGateway";
|
|
2
|
-
import { SubscriptionPaidRow } from "./SubscriptionPaidRow";
|
|
3
|
-
import { SubscriptionStatus } from "../enum/SubscriptionStatus";
|
|
4
|
-
export type SubscrpitionFullRow = {
|
|
5
|
-
id: string;
|
|
6
|
-
stripe_subscription_id: string;
|
|
7
|
-
user_id: string;
|
|
8
|
-
product_id: string;
|
|
9
|
-
offer_id: string;
|
|
10
|
-
gateway: SubscriptionGateway;
|
|
11
|
-
status: SubscriptionStatus;
|
|
12
|
-
reason: (string | null);
|
|
13
|
-
description: string;
|
|
14
|
-
created_at: Date;
|
|
15
|
-
updated_at: Date;
|
|
16
|
-
subscription_paid: SubscriptionPaidRow[];
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SubscrpitionFullRow.js","sourceRoot":"","sources":["../../src/row/SubscrpitionFullRow.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +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 { SubscriptionGateway } from "../enum/SubscriptionGateway";
|
|
22
|
-
import { SubscriptionPaidRow } from "./SubscriptionPaidRow";
|
|
23
|
-
import { SubscriptionStatus } from "../enum/SubscriptionStatus";
|
|
24
|
-
|
|
25
|
-
export type SubscrpitionFullRow =
|
|
26
|
-
{
|
|
27
|
-
id: string;
|
|
28
|
-
stripe_subscription_id: string;
|
|
29
|
-
user_id: string;
|
|
30
|
-
product_id: string;
|
|
31
|
-
offer_id: string;
|
|
32
|
-
gateway: SubscriptionGateway;
|
|
33
|
-
status: SubscriptionStatus;
|
|
34
|
-
reason: (string | null);
|
|
35
|
-
description: string;
|
|
36
|
-
created_at: Date;
|
|
37
|
-
updated_at: Date;
|
|
38
|
-
subscription_paid: SubscriptionPaidRow[];
|
|
39
|
-
}
|