@smartsoft001/trans-shell-app-services 2.111.0 → 2.113.0

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/index.js CHANGED
@@ -31,32 +31,34 @@ var TransService = class {
31
31
  this.paynowService = paynowService;
32
32
  this.paypalService = paypalService;
33
33
  this.revolutService = revolutService;
34
- this._paymentService = {
34
+ }
35
+ get _paymentService() {
36
+ return {
35
37
  payu: this.payuService,
36
38
  paypal: this.paypalService,
37
39
  paynow: this.paynowService,
38
40
  revolut: this.revolutService
39
41
  };
40
- this._internalService = {
41
- create: (trans) => {
42
- if (!this.config.internalApiUrl)
43
- return Promise.resolve({
44
- date: /* @__PURE__ */ new Date(),
45
- req: trans
46
- });
47
- return this.httpService.post(this.config.internalApiUrl, trans).toPromise().then((res) => res.data);
48
- },
49
- refresh: (trans) => {
50
- if (!this.config.internalApiUrl)
51
- return Promise.resolve({
52
- date: /* @__PURE__ */ new Date(),
53
- req: trans,
54
- id: trans.id
55
- });
56
- return this.httpService.put(this.config.internalApiUrl + "/" + trans.id, trans).toPromise().then((res) => res.data);
57
- }
58
- };
59
42
  }
43
+ _internalService = {
44
+ create: (trans) => {
45
+ if (!this.config.internalApiUrl)
46
+ return Promise.resolve({
47
+ date: /* @__PURE__ */ new Date(),
48
+ req: trans
49
+ });
50
+ return this.httpService.post(this.config.internalApiUrl, trans).toPromise().then((res) => res.data);
51
+ },
52
+ refresh: (trans) => {
53
+ if (!this.config.internalApiUrl)
54
+ return Promise.resolve({
55
+ date: /* @__PURE__ */ new Date(),
56
+ req: trans,
57
+ id: trans.id
58
+ });
59
+ return this.httpService.put(this.config.internalApiUrl + "/" + trans.id, trans).toPromise().then((res) => res.data);
60
+ }
61
+ };
60
62
  create(ops) {
61
63
  return this.creatorService.create(
62
64
  ops,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/trans-shell-app-services",
3
- "version": "2.111.0",
3
+ "version": "2.113.0",
4
4
  "description": "This library was generated with [Nx](https://nx.dev).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@ export declare class TransService {
18
18
  private paynowService;
19
19
  private paypalService;
20
20
  private revolutService;
21
- private _paymentService;
21
+ private get _paymentService();
22
22
  private _internalService;
23
23
  constructor(moduleRef: ModuleRef, creatorService: CreatorService<any>, refresherService: RefresherService<any>, refundService: RefundService<any>, httpService: HttpService, config: TransConfig, repository: IItemRepository<Trans<any>>, payuService: PayuService, paynowService: PaynowService, paypalService: PaypalService, revolutService: RevolutService);
24
24
  create<T>(ops: ITransCreate<T>): Promise<{