namirasoft-payment 1.4.108 → 1.4.111

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.
Files changed (34) hide show
  1. package/dist/NamirasoftPaymentServer.js +1 -1
  2. package/dist/NamirasoftPaymentServerOffer.d.ts +1 -8
  3. package/dist/NamirasoftPaymentServerOffer.js.map +1 -1
  4. package/dist/NamirasoftPaymentServerOfferItem.d.ts +1 -8
  5. package/dist/NamirasoftPaymentServerOfferItem.js.map +1 -1
  6. package/dist/NamirasoftPaymentServerSalesItem.d.ts +1 -4
  7. package/dist/NamirasoftPaymentServerSalesItem.js.map +1 -1
  8. package/dist/index.d.ts +0 -3
  9. package/dist/index.js +0 -3
  10. package/dist/index.js.map +1 -1
  11. package/dist/row/OfferItemRow.d.ts +6 -0
  12. package/dist/row/OfferRow.d.ts +6 -0
  13. package/dist/row/SalesItemRow.d.ts +2 -0
  14. package/package.json +3 -3
  15. package/src/NamirasoftPaymentServer.ts +1 -1
  16. package/src/NamirasoftPaymentServerOffer.ts +4 -8
  17. package/src/NamirasoftPaymentServerOfferItem.ts +4 -8
  18. package/src/NamirasoftPaymentServerSalesItem.ts +4 -6
  19. package/src/index.ts +0 -3
  20. package/src/row/OfferItemRow.ts +6 -0
  21. package/src/row/OfferRow.ts +6 -0
  22. package/src/row/SalesItemRow.ts +2 -0
  23. package/dist/row/OfferFullRow.d.ts +0 -25
  24. package/dist/row/OfferFullRow.js +0 -3
  25. package/dist/row/OfferFullRow.js.map +0 -1
  26. package/dist/row/OfferItemFullRow.d.ts +0 -61
  27. package/dist/row/OfferItemFullRow.js +0 -3
  28. package/dist/row/OfferItemFullRow.js.map +0 -1
  29. package/dist/row/SalesItemFullRow.d.ts +0 -19
  30. package/dist/row/SalesItemFullRow.js +0 -3
  31. package/dist/row/SalesItemFullRow.js.map +0 -1
  32. package/src/row/OfferFullRow.ts +0 -47
  33. package/src/row/OfferItemFullRow.ts +0 -83
  34. package/src/row/SalesItemFullRow.ts +0 -41
@@ -20,7 +20,7 @@ const NamirasoftPaymentServerTrial_1 = require("./NamirasoftPaymentServerTrial")
20
20
  const NamirasoftPaymentServerValue_1 = require("./NamirasoftPaymentServerValue");
21
21
  class NamirasoftPaymentServer extends namirasoft_account_1.NSABaseServer {
22
22
  constructor(base_url, manager, onError) {
23
- super(base_url, `1.4.108`, manager, onError);
23
+ super(base_url, `1.4.111`, manager, onError);
24
24
  this.healthz = new NamirasoftPaymentServerHealthz_1.NamirasoftPaymentServerHealthz(this);
25
25
  this.metrics = new NamirasoftPaymentServerMetrics_1.NamirasoftPaymentServerMetrics(this);
26
26
  this.value = new NamirasoftPaymentServerValue_1.NamirasoftPaymentServerValue(this);
@@ -1,20 +1,13 @@
1
1
  import { FilterItem } from "namirasoft-core";
2
2
  import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
3
3
  import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
4
- import { OfferFullRow } from "./row/OfferFullRow";
5
4
  import { OfferRow } from "./row/OfferRow";
6
- import { ProductRow } from "./row/ProductRow";
7
- import { SalesItemRow } from "./row/SalesItemRow";
8
5
  import { SortItem } from "namirasoft-core";
9
- import { SubscriptionRow } from "./row/SubscriptionRow";
10
6
  export declare class NamirasoftPaymentServerOffer extends NamirasoftPaymentServerBase {
11
7
  constructor(server: NamirasoftPaymentServer);
12
8
  List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
13
9
  rows: OfferRow[];
14
10
  count: number;
15
- product: ProductRow;
16
- sales_item: SalesItemRow;
17
- subscriptions: SubscriptionRow;
18
11
  }>;
19
- Get(id: string): Promise<OfferFullRow>;
12
+ Get(id: string): Promise<OfferRow>;
20
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftPaymentServerOffer.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerOffer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,+EAA4E;A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AA+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;IACnC,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,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,aAAa,CAAC;YACzB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAsC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC3J,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,UAAU,EAAE,EAAE,CAAC;YAC1B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAW,IAAI,EAAE,EAAE,CAAC,CAAC;YAC1D,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAtBD,oEAsBC;AAAA,CAAC"}
@@ -1,20 +1,13 @@
1
1
  import { FilterItem } from "namirasoft-core";
2
2
  import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
3
3
  import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
4
- import { OfferItemFullRow } from "./row/OfferItemFullRow";
5
4
  import { OfferItemRow } from "./row/OfferItemRow";
6
- import { OfferRow } from "./row/OfferRow";
7
- import { ProductRow } from "./row/ProductRow";
8
- import { SalesItemRow } from "./row/SalesItemRow";
9
5
  import { SortItem } from "namirasoft-core";
10
6
  export declare class NamirasoftPaymentServerOfferItem extends NamirasoftPaymentServerBase {
11
7
  constructor(server: NamirasoftPaymentServer);
12
8
  List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
13
9
  rows: OfferItemRow[];
14
10
  count: number;
15
- product: ProductRow;
16
- offer: OfferRow;
17
- sales_item: SalesItemRow;
18
11
  }>;
19
- Get(id: string): Promise<OfferItemFullRow>;
12
+ Get(id: string): Promise<OfferItemRow>;
20
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftPaymentServerOfferItem.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerOfferItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,+EAA4E;AAM5E,qDAA2C;AAE3C,MAAa,gCAAiC,SAAQ,yDAA2B;IAE7E,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;IACnC,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,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,kBAAkB,CAAC;YAC9B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAA0G,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EA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;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,eAAe,EAAE,EAAE,CAAC;YAC/B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,IAAI,EAAE,EAAE,CAAC,CAAC;YAC9D,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAtBD,4EAsBC;AAAA,CAAC"}
@@ -1,8 +1,6 @@
1
1
  import { FilterItem } from "namirasoft-core";
2
2
  import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
3
3
  import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
4
- import { ProductRow } from "./row/ProductRow";
5
- import { SalesItemFullRow } from "./row/SalesItemFullRow";
6
4
  import { SalesItemRow } from "./row/SalesItemRow";
7
5
  import { SortItem } from "namirasoft-core";
8
6
  export declare class NamirasoftPaymentServerSalesItem extends NamirasoftPaymentServerBase {
@@ -10,7 +8,6 @@ export declare class NamirasoftPaymentServerSalesItem extends NamirasoftPaymentS
10
8
  List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
11
9
  rows: SalesItemRow[];
12
10
  count: number;
13
- product: ProductRow;
14
11
  }>;
15
- Get(id: string): Promise<SalesItemFullRow>;
12
+ Get(id: string): Promise<SalesItemRow>;
16
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftPaymentServerSalesItem.js","sourceRoot":"","sources":["../src/NamirasoftPaymentServerSalesItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,+EAA4E;AAI5E,qDAA2C;AAE3C,MAAa,gCAAiC,SAAQ,yDAA2B;IAE7E,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,G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AAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,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,kBAAkB,CAAC;YAC9B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAA0C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC/J,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,eAAe,EAAE,EAAE,CAAC;YAC/B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,IAAI,EAAE,EAAE,CAAC,CAAC;YAC9D,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAtBD,4EAsBC;AAAA,CAAC"}
package/dist/index.d.ts CHANGED
@@ -105,13 +105,10 @@ export * from "./row/InvoiceInputRow";
105
105
  export * from "./row/InvoiceItemInputRow";
106
106
  export * from "./row/InvoiceItemRow";
107
107
  export * from "./row/InvoiceRow";
108
- export * from "./row/OfferFullRow";
109
- export * from "./row/OfferItemFullRow";
110
108
  export * from "./row/OfferItemRow";
111
109
  export * from "./row/OfferRow";
112
110
  export * from "./row/PaymentRow";
113
111
  export * from "./row/ProductRow";
114
- export * from "./row/SalesItemFullRow";
115
112
  export * from "./row/SalesItemRow";
116
113
  export * from "./row/SubscriptionCancellationReasonRow";
117
114
  export * from "./row/SubscriptionFullRow";
package/dist/index.js CHANGED
@@ -121,13 +121,10 @@ __exportStar(require("./row/InvoiceInputRow"), exports);
121
121
  __exportStar(require("./row/InvoiceItemInputRow"), exports);
122
122
  __exportStar(require("./row/InvoiceItemRow"), exports);
123
123
  __exportStar(require("./row/InvoiceRow"), exports);
124
- __exportStar(require("./row/OfferFullRow"), exports);
125
- __exportStar(require("./row/OfferItemFullRow"), exports);
126
124
  __exportStar(require("./row/OfferItemRow"), exports);
127
125
  __exportStar(require("./row/OfferRow"), exports);
128
126
  __exportStar(require("./row/PaymentRow"), exports);
129
127
  __exportStar(require("./row/ProductRow"), exports);
130
- __exportStar(require("./row/SalesItemFullRow"), exports);
131
128
  __exportStar(require("./row/SalesItemRow"), exports);
132
129
  __exportStar(require("./row/SubscriptionCancellationReasonRow"), exports);
133
130
  __exportStar(require("./row/SubscriptionFullRow"), exports);
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,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,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;AACzC,8DAA4C;AAC5C,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AC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,mDAAiC;AACjC,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,4DAA0C;AAC1C,uDAAqC;AACrC,uDAAqC;AACrC,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC;AACrC,mDAAiC;AACjC,qDAAmC;AACnC,iDAA+B;AAC/B,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,0EAAwD;AACxD,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,wDAAsC;AACtC,iDAA+B"}
@@ -6,6 +6,9 @@ import { OfferItemRecurringTieredType } from "../enum/OfferItemRecurringTieredTy
6
6
  import { OfferItemRecurringUsageTieredType } from "../enum/OfferItemRecurringUsageTieredType";
7
7
  import { OfferItemRecurringUsageType } from "../enum/OfferItemRecurringUsageType";
8
8
  import { OfferItemType } from "../enum/OfferItemType";
9
+ import { OfferRow } from "./OfferRow";
10
+ import { ProductRow } from "./ProductRow";
11
+ import { SalesItemRow } from "./SalesItemRow";
9
12
  export type OfferItemRow = {
10
13
  id: string;
11
14
  product_id: string;
@@ -52,4 +55,7 @@ export type OfferItemRow = {
52
55
  description: string;
53
56
  created_at: Date;
54
57
  updated_at: Date;
58
+ product: ProductRow;
59
+ sales_item: SalesItemRow;
60
+ offer: OfferRow;
55
61
  };
@@ -1,4 +1,7 @@
1
1
  import { OfferRecurringDurationUnit } from "../enum/OfferRecurringDurationUnit";
2
+ import { ProductRow } from "./ProductRow";
3
+ import { SalesItemRow } from "./SalesItemRow";
4
+ import { SubscriptionRow } from "./SubscriptionRow";
2
5
  export type OfferRow = {
3
6
  id: string;
4
7
  product_id: string;
@@ -16,4 +19,7 @@ export type OfferRow = {
16
19
  description: string;
17
20
  created_at: Date;
18
21
  updated_at: Date;
22
+ product: ProductRow;
23
+ sales_item: SalesItemRow;
24
+ subscription: SubscriptionRow;
19
25
  };
@@ -1,3 +1,4 @@
1
+ import { ProductRow } from "./ProductRow";
1
2
  import { SalesItemExpireUnit } from "../enum/SalesItemExpireUnit";
2
3
  export type SalesItemRow = {
3
4
  id: string;
@@ -14,4 +15,5 @@ export type SalesItemRow = {
14
15
  description: string;
15
16
  created_at: Date;
16
17
  updated_at: Date;
18
+ product: ProductRow;
17
19
  };
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.108",
11
+ "version": "1.4.111",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/index.js",
@@ -17,9 +17,9 @@
17
17
  "build": ""
18
18
  },
19
19
  "dependencies": {
20
- "namirasoft-core": "^1.4.80",
20
+ "namirasoft-core": "^1.4.81",
21
21
  "namirasoft-site": "^1.4.39",
22
- "namirasoft-node-cli": "^1.4.7",
22
+ "namirasoft-node-cli": "^1.4.8",
23
23
  "namirasoft-account": "^1.4.85"
24
24
  },
25
25
  "bin": {
@@ -57,7 +57,7 @@ export class NamirasoftPaymentServer extends NSABaseServer
57
57
  product: NamirasoftPaymentServerProduct;
58
58
  constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
59
59
  {
60
- super(base_url, `1.4.108`, manager, onError);
60
+ super(base_url, `1.4.111`, manager, onError);
61
61
  this.healthz = new NamirasoftPaymentServerHealthz(this);
62
62
  this.metrics = new NamirasoftPaymentServerMetrics(this);
63
63
  this.value = new NamirasoftPaymentServerValue(this);
@@ -21,12 +21,8 @@
21
21
  import { FilterItem } from "namirasoft-core";
22
22
  import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
23
23
  import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
24
- import { OfferFullRow } from "./row/OfferFullRow";
25
24
  import { OfferRow } from "./row/OfferRow";
26
- import { ProductRow } from "./row/ProductRow";
27
- import { SalesItemRow } from "./row/SalesItemRow";
28
25
  import { SortItem } from "namirasoft-core";
29
- import { SubscriptionRow } from "./row/SubscriptionRow";
30
26
 
31
27
  export class NamirasoftPaymentServerOffer extends NamirasoftPaymentServerBase
32
28
  {
@@ -36,18 +32,18 @@ export class NamirasoftPaymentServerOffer extends NamirasoftPaymentServerBase
36
32
  this.List = this.List.bind(this);
37
33
  this.Get = this.Get.bind(this);
38
34
  }
39
- async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: OfferRow[], count: number, product: ProductRow, sales_item: SalesItemRow, subscriptions: SubscriptionRow }>
35
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: OfferRow[], count: number }>
40
36
  {
41
37
  let filters_string_value: string = FilterItem.stringify(filters);
42
38
  let sorts_string_value: string = SortItem.stringify(sorts);
43
39
  let path = `/offer/list`;
44
- let { data } = await this.server._get<{ rows: OfferRow[], count: number, product: ProductRow, sales_item: SalesItemRow, subscriptions: SubscriptionRow }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
40
+ let { data } = await this.server._get<{ rows: OfferRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
45
41
  return data;
46
42
  }
47
- async Get(id: string): Promise<OfferFullRow>
43
+ async Get(id: string): Promise<OfferRow>
48
44
  {
49
45
  let path = `/offer/${id}`;
50
- let { data } = await this.server._get<OfferFullRow>(path, {});
46
+ let { data } = await this.server._get<OfferRow>(path, {});
51
47
  return data;
52
48
  }
53
49
  };
@@ -21,11 +21,7 @@
21
21
  import { FilterItem } from "namirasoft-core";
22
22
  import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
23
23
  import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
24
- import { OfferItemFullRow } from "./row/OfferItemFullRow";
25
24
  import { OfferItemRow } from "./row/OfferItemRow";
26
- import { OfferRow } from "./row/OfferRow";
27
- import { ProductRow } from "./row/ProductRow";
28
- import { SalesItemRow } from "./row/SalesItemRow";
29
25
  import { SortItem } from "namirasoft-core";
30
26
 
31
27
  export class NamirasoftPaymentServerOfferItem extends NamirasoftPaymentServerBase
@@ -36,18 +32,18 @@ export class NamirasoftPaymentServerOfferItem extends NamirasoftPaymentServerBas
36
32
  this.List = this.List.bind(this);
37
33
  this.Get = this.Get.bind(this);
38
34
  }
39
- async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: OfferItemRow[], count: number, product: ProductRow, offer: OfferRow, sales_item: SalesItemRow }>
35
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: OfferItemRow[], count: number }>
40
36
  {
41
37
  let filters_string_value: string = FilterItem.stringify(filters);
42
38
  let sorts_string_value: string = SortItem.stringify(sorts);
43
39
  let path = `/offer/item/list`;
44
- let { data } = await this.server._get<{ rows: OfferItemRow[], count: number, product: ProductRow, offer: OfferRow, sales_item: SalesItemRow }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
40
+ let { data } = await this.server._get<{ rows: OfferItemRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
45
41
  return data;
46
42
  }
47
- async Get(id: string): Promise<OfferItemFullRow>
43
+ async Get(id: string): Promise<OfferItemRow>
48
44
  {
49
45
  let path = `/offer/item/${id}`;
50
- let { data } = await this.server._get<OfferItemFullRow>(path, {});
46
+ let { data } = await this.server._get<OfferItemRow>(path, {});
51
47
  return data;
52
48
  }
53
49
  };
@@ -21,8 +21,6 @@
21
21
  import { FilterItem } from "namirasoft-core";
22
22
  import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
23
23
  import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
24
- import { ProductRow } from "./row/ProductRow";
25
- import { SalesItemFullRow } from "./row/SalesItemFullRow";
26
24
  import { SalesItemRow } from "./row/SalesItemRow";
27
25
  import { SortItem } from "namirasoft-core";
28
26
 
@@ -34,18 +32,18 @@ export class NamirasoftPaymentServerSalesItem extends NamirasoftPaymentServerBas
34
32
  this.List = this.List.bind(this);
35
33
  this.Get = this.Get.bind(this);
36
34
  }
37
- async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: SalesItemRow[], count: number, product: ProductRow }>
35
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: SalesItemRow[], count: number }>
38
36
  {
39
37
  let filters_string_value: string = FilterItem.stringify(filters);
40
38
  let sorts_string_value: string = SortItem.stringify(sorts);
41
39
  let path = `/sales/item/list`;
42
- let { data } = await this.server._get<{ rows: SalesItemRow[], count: number, product: ProductRow }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
40
+ let { data } = await this.server._get<{ rows: SalesItemRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
43
41
  return data;
44
42
  }
45
- async Get(id: string): Promise<SalesItemFullRow>
43
+ async Get(id: string): Promise<SalesItemRow>
46
44
  {
47
45
  let path = `/sales/item/${id}`;
48
- let { data } = await this.server._get<SalesItemFullRow>(path, {});
46
+ let { data } = await this.server._get<SalesItemRow>(path, {});
49
47
  return data;
50
48
  }
51
49
  };
package/src/index.ts CHANGED
@@ -125,13 +125,10 @@ export * from "./row/InvoiceInputRow";
125
125
  export * from "./row/InvoiceItemInputRow";
126
126
  export * from "./row/InvoiceItemRow";
127
127
  export * from "./row/InvoiceRow";
128
- export * from "./row/OfferFullRow";
129
- export * from "./row/OfferItemFullRow";
130
128
  export * from "./row/OfferItemRow";
131
129
  export * from "./row/OfferRow";
132
130
  export * from "./row/PaymentRow";
133
131
  export * from "./row/ProductRow";
134
- export * from "./row/SalesItemFullRow";
135
132
  export * from "./row/SalesItemRow";
136
133
  export * from "./row/SubscriptionCancellationReasonRow";
137
134
  export * from "./row/SubscriptionFullRow";
@@ -26,6 +26,9 @@ import { OfferItemRecurringTieredType } from "../enum/OfferItemRecurringTieredTy
26
26
  import { OfferItemRecurringUsageTieredType } from "../enum/OfferItemRecurringUsageTieredType";
27
27
  import { OfferItemRecurringUsageType } from "../enum/OfferItemRecurringUsageType";
28
28
  import { OfferItemType } from "../enum/OfferItemType";
29
+ import { OfferRow } from "./OfferRow";
30
+ import { ProductRow } from "./ProductRow";
31
+ import { SalesItemRow } from "./SalesItemRow";
29
32
 
30
33
  export type OfferItemRow =
31
34
  {
@@ -74,4 +77,7 @@ export type OfferItemRow =
74
77
  description: string;
75
78
  created_at: Date;
76
79
  updated_at: Date;
80
+ product: ProductRow;
81
+ sales_item: SalesItemRow;
82
+ offer: OfferRow;
77
83
  }
@@ -19,6 +19,9 @@
19
19
  /****************************************************************/
20
20
 
21
21
  import { OfferRecurringDurationUnit } from "../enum/OfferRecurringDurationUnit";
22
+ import { ProductRow } from "./ProductRow";
23
+ import { SalesItemRow } from "./SalesItemRow";
24
+ import { SubscriptionRow } from "./SubscriptionRow";
22
25
 
23
26
  export type OfferRow =
24
27
  {
@@ -38,4 +41,7 @@ export type OfferRow =
38
41
  description: string;
39
42
  created_at: Date;
40
43
  updated_at: Date;
44
+ product: ProductRow;
45
+ sales_item: SalesItemRow;
46
+ subscription: SubscriptionRow;
41
47
  }
@@ -18,6 +18,7 @@
18
18
  /* */
19
19
  /****************************************************************/
20
20
 
21
+ import { ProductRow } from "./ProductRow";
21
22
  import { SalesItemExpireUnit } from "../enum/SalesItemExpireUnit";
22
23
 
23
24
  export type SalesItemRow =
@@ -36,4 +37,5 @@ export type SalesItemRow =
36
37
  description: string;
37
38
  created_at: Date;
38
39
  updated_at: Date;
40
+ product: ProductRow;
39
41
  }
@@ -1,25 +0,0 @@
1
- import { OfferRecurringDurationUnit } from "../enum/OfferRecurringDurationUnit";
2
- import { ProductRow } from "./ProductRow";
3
- import { SalesItemRow } from "./SalesItemRow";
4
- import { SubscriptionRow } from "./SubscriptionRow";
5
- export type OfferFullRow = {
6
- id: string;
7
- product_id: string;
8
- sales_item_id: string;
9
- name: string;
10
- logo: (string | null);
11
- order: number;
12
- recurring: number;
13
- recurring_duration_value: (number | null);
14
- recurring_duration_unit: (OfferRecurringDurationUnit | null);
15
- applies_at: (Date | null);
16
- expires_at: (Date | null);
17
- recommended: boolean;
18
- features: string;
19
- description: string;
20
- created_at: Date;
21
- updated_at: Date;
22
- product: ProductRow;
23
- sales_item: SalesItemRow;
24
- subscription: SubscriptionRow;
25
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=OfferFullRow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OfferFullRow.js","sourceRoot":"","sources":["../../src/row/OfferFullRow.ts"],"names":[],"mappings":""}
@@ -1,61 +0,0 @@
1
- import { OfferItemExpireUnit } from "../enum/OfferItemExpireUnit";
2
- import { OfferItemOneOffModel } from "../enum/OfferItemOneOffModel";
3
- import { OfferItemRecurringDurationUnit } from "../enum/OfferItemRecurringDurationUnit";
4
- import { OfferItemRecurringModel } from "../enum/OfferItemRecurringModel";
5
- import { OfferItemRecurringTieredType } from "../enum/OfferItemRecurringTieredType";
6
- import { OfferItemRecurringUsageTieredType } from "../enum/OfferItemRecurringUsageTieredType";
7
- import { OfferItemRecurringUsageType } from "../enum/OfferItemRecurringUsageType";
8
- import { OfferItemType } from "../enum/OfferItemType";
9
- import { OfferRow } from "./OfferRow";
10
- import { ProductRow } from "./ProductRow";
11
- import { SalesItemRow } from "./SalesItemRow";
12
- export type OfferItemFullRow = {
13
- id: string;
14
- product_id: string;
15
- sales_item_id: string;
16
- offer_id: string;
17
- name: string;
18
- logo: (string | null);
19
- order: number;
20
- dominant: boolean;
21
- consumable: boolean;
22
- consumable_asset_id: (string | null);
23
- expire_value: (number | null);
24
- expire_unit: (OfferItemExpireUnit | null);
25
- type: OfferItemType;
26
- one_off_model: (OfferItemOneOffModel | null);
27
- one_off_flat_amount: (number | null);
28
- one_off_package_amount: (number | null);
29
- one_off_package_per_value: (number | null);
30
- one_off_package_per_unit: (string | null);
31
- one_off_choosable_on_gateway: (boolean | null);
32
- one_off_choosable_suggested_amount: (number | null);
33
- one_off_choosable_limit_min: (number | null);
34
- one_off_choosable_limit_max: (number | null);
35
- recurring_model: (OfferItemRecurringModel | null);
36
- recurring_duration_value: (number | null);
37
- recurring_duration_unit: (OfferItemRecurringDurationUnit | null);
38
- recurring_flat_amount: (number | null);
39
- recurring_package_amount: (number | null);
40
- recurring_package_per_value: (number | null);
41
- recurring_package_per_unit: (string | null);
42
- recurring_tiered_type: (OfferItemRecurringTieredType | null);
43
- recurring_tiered_amounts: (any | null);
44
- recurring_usage_type: (OfferItemRecurringUsageType | null);
45
- recurring_usage_unit: (string | null);
46
- recurring_usage_meter_event_name: (string | null);
47
- recurring_usage_unit_amount: (number | null);
48
- recurring_usage_package_amount: (number | null);
49
- recurring_usage_package_per_value: (number | null);
50
- recurring_usage_package_per_unit: (string | null);
51
- recurring_usage_tiered_type: (OfferItemRecurringUsageTieredType | null);
52
- recurring_usage_tiered_amounts: (any | null);
53
- currency: string;
54
- was_price: (string | null);
55
- description: string;
56
- created_at: Date;
57
- updated_at: Date;
58
- product: ProductRow;
59
- offer: OfferRow;
60
- sales_item: SalesItemRow;
61
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=OfferItemFullRow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OfferItemFullRow.js","sourceRoot":"","sources":["../../src/row/OfferItemFullRow.ts"],"names":[],"mappings":""}
@@ -1,19 +0,0 @@
1
- import { ProductRow } from "./ProductRow";
2
- import { SalesItemExpireUnit } from "../enum/SalesItemExpireUnit";
3
- export type SalesItemFullRow = {
4
- id: string;
5
- product_id: string;
6
- sales_item_group_id: (string | null);
7
- name: string;
8
- slug: string;
9
- logo: string;
10
- order: number;
11
- consumable: boolean;
12
- consumable_asset_id: (string | null);
13
- expire_value: number;
14
- expire_unit: SalesItemExpireUnit;
15
- description: string;
16
- created_at: Date;
17
- updated_at: Date;
18
- product: ProductRow;
19
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=SalesItemFullRow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SalesItemFullRow.js","sourceRoot":"","sources":["../../src/row/SalesItemFullRow.ts"],"names":[],"mappings":""}
@@ -1,47 +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 { OfferRecurringDurationUnit } from "../enum/OfferRecurringDurationUnit";
22
- import { ProductRow } from "./ProductRow";
23
- import { SalesItemRow } from "./SalesItemRow";
24
- import { SubscriptionRow } from "./SubscriptionRow";
25
-
26
- export type OfferFullRow =
27
- {
28
- id: string;
29
- product_id: string;
30
- sales_item_id: string;
31
- name: string;
32
- logo: (string | null);
33
- order: number;
34
- recurring: number;
35
- recurring_duration_value: (number | null);
36
- recurring_duration_unit: (OfferRecurringDurationUnit | null);
37
- applies_at: (Date | null);
38
- expires_at: (Date | null);
39
- recommended: boolean;
40
- features: string;
41
- description: string;
42
- created_at: Date;
43
- updated_at: Date;
44
- product: ProductRow;
45
- sales_item: SalesItemRow;
46
- subscription: SubscriptionRow;
47
- }
@@ -1,83 +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 { OfferItemExpireUnit } from "../enum/OfferItemExpireUnit";
22
- import { OfferItemOneOffModel } from "../enum/OfferItemOneOffModel";
23
- import { OfferItemRecurringDurationUnit } from "../enum/OfferItemRecurringDurationUnit";
24
- import { OfferItemRecurringModel } from "../enum/OfferItemRecurringModel";
25
- import { OfferItemRecurringTieredType } from "../enum/OfferItemRecurringTieredType";
26
- import { OfferItemRecurringUsageTieredType } from "../enum/OfferItemRecurringUsageTieredType";
27
- import { OfferItemRecurringUsageType } from "../enum/OfferItemRecurringUsageType";
28
- import { OfferItemType } from "../enum/OfferItemType";
29
- import { OfferRow } from "./OfferRow";
30
- import { ProductRow } from "./ProductRow";
31
- import { SalesItemRow } from "./SalesItemRow";
32
-
33
- export type OfferItemFullRow =
34
- {
35
- id: string;
36
- product_id: string;
37
- sales_item_id: string;
38
- offer_id: string;
39
- name: string;
40
- logo: (string | null);
41
- order: number;
42
- dominant: boolean;
43
- consumable: boolean;
44
- consumable_asset_id: (string | null);
45
- expire_value: (number | null);
46
- expire_unit: (OfferItemExpireUnit | null);
47
- type: OfferItemType;
48
- one_off_model: (OfferItemOneOffModel | null);
49
- one_off_flat_amount: (number | null);
50
- one_off_package_amount: (number | null);
51
- one_off_package_per_value: (number | null);
52
- one_off_package_per_unit: (string | null);
53
- one_off_choosable_on_gateway: (boolean | null);
54
- one_off_choosable_suggested_amount: (number | null);
55
- one_off_choosable_limit_min: (number | null);
56
- one_off_choosable_limit_max: (number | null);
57
- recurring_model: (OfferItemRecurringModel | null);
58
- recurring_duration_value: (number | null);
59
- recurring_duration_unit: (OfferItemRecurringDurationUnit | null);
60
- recurring_flat_amount: (number | null);
61
- recurring_package_amount: (number | null);
62
- recurring_package_per_value: (number | null);
63
- recurring_package_per_unit: (string | null);
64
- recurring_tiered_type: (OfferItemRecurringTieredType | null);
65
- recurring_tiered_amounts: (any | null);
66
- recurring_usage_type: (OfferItemRecurringUsageType | null);
67
- recurring_usage_unit: (string | null);
68
- recurring_usage_meter_event_name: (string | null);
69
- recurring_usage_unit_amount: (number | null);
70
- recurring_usage_package_amount: (number | null);
71
- recurring_usage_package_per_value: (number | null);
72
- recurring_usage_package_per_unit: (string | null);
73
- recurring_usage_tiered_type: (OfferItemRecurringUsageTieredType | null);
74
- recurring_usage_tiered_amounts: (any | null);
75
- currency: string;
76
- was_price: (string | null);
77
- description: string;
78
- created_at: Date;
79
- updated_at: Date;
80
- product: ProductRow;
81
- offer: OfferRow;
82
- sales_item: SalesItemRow;
83
- }
@@ -1,41 +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 { ProductRow } from "./ProductRow";
22
- import { SalesItemExpireUnit } from "../enum/SalesItemExpireUnit";
23
-
24
- export type SalesItemFullRow =
25
- {
26
- id: string;
27
- product_id: string;
28
- sales_item_group_id: (string | null);
29
- name: string;
30
- slug: string;
31
- logo: string;
32
- order: number;
33
- consumable: boolean;
34
- consumable_asset_id: (string | null);
35
- expire_value: number;
36
- expire_unit: SalesItemExpireUnit;
37
- description: string;
38
- created_at: Date;
39
- updated_at: Date;
40
- product: ProductRow;
41
- }