@fiado/api-invoker 1.0.38 → 1.0.39

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/bin/index.d.ts CHANGED
@@ -5,7 +5,6 @@ export * from './sessionActivity';
5
5
  export * from './tern';
6
6
  export * from './pomelo';
7
7
  export * from './address';
8
- export * from './stpAccount';
9
8
  export * from "./container.config";
10
9
  export * from "./account-fiadoinc";
11
10
  export * from "./account-fiadosa";
package/bin/index.js CHANGED
@@ -21,7 +21,6 @@ __exportStar(require("./sessionActivity"), exports);
21
21
  __exportStar(require("./tern"), exports);
22
22
  __exportStar(require("./pomelo"), exports);
23
23
  __exportStar(require("./address"), exports);
24
- __exportStar(require("./stpAccount"), exports);
25
24
  __exportStar(require("./container.config"), exports);
26
25
  __exportStar(require("./account-fiadoinc"), exports);
27
26
  __exportStar(require("./account-fiadosa"), exports);
@@ -1,6 +1,7 @@
1
1
  import { IPomeloApi } from "./interfaces/IPomeloApi";
2
2
  import { IHttpRequest } from "@fiado/http-client";
3
- import { CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
3
+ import { CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
4
+ import { ActivateBankAccountCardRequest, CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
4
5
  export default class PomeloApi implements IPomeloApi {
5
6
  private httpRequest;
6
7
  private readonly baseUrl;
@@ -8,4 +9,14 @@ export default class PomeloApi implements IPomeloApi {
8
9
  createUser(request: CreateBankAccountUserRequest): Promise<any>;
9
10
  getUserById(externalUserId: string): Promise<any>;
10
11
  updateUser(object: UpdateBankAccountUserRequest): Promise<any>;
12
+ getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
13
+ getCardsById(externalCardId: string): Promise<any>;
14
+ getCardsByUserId(externalUserId: string): Promise<any>;
15
+ createCard(object: CreateBankAccountRequest): Promise<any>;
16
+ blockCard(object: UpdateBankAccountCardRequest): Promise<any>;
17
+ changePin(object: UpdateBankAccountCardRequest): Promise<any>;
18
+ activateCard(object: ActivateBankAccountCardRequest): Promise<any>;
19
+ updateCard(object: UpdateBankAccountCardRequest): Promise<any>;
20
+ createShipment(object: CreateBankAccountCardShippingRequest): Promise<any>;
21
+ getShipment(object: GetBankAccountShippingRequest): Promise<any>;
11
22
  }
@@ -31,6 +31,48 @@ let PomeloApi = class PomeloApi {
31
31
  const url = `${this.baseUrl}/users/${object.id}`;
32
32
  return await this.httpRequest.put(url, object);
33
33
  }
34
+ // //Card
35
+ async getCardSensitiveInformation(externalCardId, externalUserId) {
36
+ const url = `${this.baseUrl}cards/${externalCardId}/sensitive?externalUserId=${externalUserId}`;
37
+ return await this.httpRequest.get(url);
38
+ }
39
+ async getCardsById(externalCardId) {
40
+ const url = `${this.baseUrl}cards?externalCardId=${externalCardId}`;
41
+ return await this.httpRequest.get(url);
42
+ }
43
+ async getCardsByUserId(externalUserId) {
44
+ const url = `${this.baseUrl}cards?externalUserId=${externalUserId}`;
45
+ return await this.httpRequest.get(url);
46
+ }
47
+ async createCard(object) {
48
+ const url = `${this.baseUrl}cards/create`;
49
+ return await this.httpRequest.post(url, object);
50
+ }
51
+ async blockCard(object) {
52
+ const url = `${this.baseUrl}cards/${object.cardId}/`;
53
+ return await this.httpRequest.put(url, object);
54
+ }
55
+ async changePin(object) {
56
+ const url = `${this.baseUrl}cards/${object.cardId}/`;
57
+ return await this.httpRequest.put(url, object);
58
+ }
59
+ async activateCard(object) {
60
+ const url = `${this.baseUrl}cards/activate`;
61
+ return await this.httpRequest.post(url, object);
62
+ }
63
+ async updateCard(object) {
64
+ const url = `${this.baseUrl}cards/${object.cardId}/`;
65
+ return await this.httpRequest.put(url, object);
66
+ }
67
+ // //Shipping
68
+ async createShipment(object) {
69
+ const url = `${this.baseUrl}shipment/create`;
70
+ return await this.httpRequest.post(url, object);
71
+ }
72
+ async getShipment(object) {
73
+ const url = `${this.baseUrl}shipment/${object.externalShippingId}`;
74
+ return await this.httpRequest.get(url);
75
+ }
34
76
  };
35
77
  PomeloApi = __decorate([
36
78
  (0, inversify_1.injectable)(),
@@ -1,6 +1,14 @@
1
- import { CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
1
+ import { CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
2
+ import { UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
2
3
  export interface IPomeloApi {
3
4
  updateUser(object: UpdateBankAccountUserRequest): Promise<any>;
4
5
  getUserById(externalUserId: string): Promise<any>;
5
6
  createUser(request: CreateBankAccountUserRequest): Promise<any>;
7
+ getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
8
+ getCardsById(externalCardId: string): Promise<any>;
9
+ getCardsByUserId(externalUserId: string): Promise<any>;
10
+ createCard(object: CreateBankAccountRequest): Promise<any>;
11
+ blockCard(object: UpdateBankAccountCardRequest): Promise<any>;
12
+ changePin(object: UpdateBankAccountCardRequest): Promise<any>;
13
+ activateCard(object: UpdateBankAccountCardRequest): Promise<any>;
6
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a traves de invocaciones http",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "@fiado/api-invoker": "^1.0.19",
17
17
  "@fiado/gateway-adapter": "^1.0.30",
18
18
  "@fiado/http-client": "^1.0.1",
19
- "@fiado/type-kit": "^1.0.79",
19
+ "@fiado/type-kit": "^1.0.77",
20
20
  "dotenv": "^16.4.5",
21
21
  "inversify": "^6.0.2",
22
22
  "reflect-metadata": "^0.2.1",
package/src/index.ts CHANGED
@@ -5,7 +5,6 @@ export * from './sessionActivity';
5
5
  export * from './tern';
6
6
  export * from './pomelo';
7
7
  export * from './address';
8
- export * from './stpAccount'
9
8
  export * from "./container.config";
10
9
  export * from "./account-fiadoinc";
11
10
  export * from "./account-fiadosa";
@@ -1,19 +1,18 @@
1
- import {IPomeloApi } from "./interfaces/IPomeloApi";
2
- import {inject, injectable} from "inversify";
3
- import {IHttpRequest} from "@fiado/http-client";
4
- import {CreateBankAccountUserRequest, UpdateBankAccountUserRequest} from "@fiado/type-kit/bin/account";
1
+ import { IPomeloApi } from "./interfaces/IPomeloApi";
2
+ import { inject, injectable } from "inversify";
3
+ import { IHttpRequest } from "@fiado/http-client";
4
+ import { CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
5
+ import { ActivateBankAccountCardRequest, CreateBankAccountCardShippingRequest, GetBankAccountShippingRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
5
6
 
6
7
 
7
8
  @injectable()
8
9
  export default class PomeloApi implements IPomeloApi {
9
10
 
10
-
11
11
  private readonly baseUrl = process.env.POMELO_LAMBDA_URL || "";
12
12
 
13
13
  constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {
14
14
  }
15
15
 
16
-
17
16
  //USER
18
17
  async createUser(request: CreateBankAccountUserRequest): Promise<any> {
19
18
  const url: string = `${this.baseUrl}users/create`;
@@ -31,65 +30,65 @@ export default class PomeloApi implements IPomeloApi {
31
30
  }
32
31
 
33
32
  // //Card
34
- // public async getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<GetBankAccountSensitiveInformationOutput> {
35
- // const url: string = `${this.baseUrl}cards/${externalCardId}/sensitive?externalUserId=${externalUserId}`;
36
- // return await this.httpRequest.get(url);
37
- // }
33
+ public async getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any> {
34
+ const url: string = `${this.baseUrl}cards/${externalCardId}/sensitive?externalUserId=${externalUserId}`;
35
+ return await this.httpRequest.get(url);
36
+ }
38
37
 
39
- // public async getCardsById(externalCardId: string): Promise<GetBankAccountCardOutput> {
40
- // const url: string = `${this.baseUrl}cards?externalCardId=${externalCardId}`;
41
- // return await this.httpRequest.get(url);
42
- // }
38
+ public async getCardsById(externalCardId: string): Promise<any> {
39
+ const url: string = `${this.baseUrl}cards?externalCardId=${externalCardId}`;
40
+ return await this.httpRequest.get(url);
41
+ }
43
42
 
44
- // public async getCardsByUserId(externalUserId: string): Promise<GetBankAccountCardOutput> {
45
- // const url: string = `${this.baseUrl}cards?externalUserId=${externalUserId}`;
46
- // return await this.httpRequest.get(url);
47
- // }
43
+ public async getCardsByUserId(externalUserId: string): Promise<any> {
44
+ const url: string = `${this.baseUrl}cards?externalUserId=${externalUserId}`;
45
+ return await this.httpRequest.get(url);
46
+ }
48
47
 
49
- // public async createCard(object: CreateBankAccountCardInput): Promise<CreateBankAccountCardOutput> {
50
- // const url: string = `${this.baseUrl}cards/create`;
51
- // return await this.httpRequest.post(url, object);
52
- // }
48
+ public async createCard(object: CreateBankAccountRequest): Promise<any> {
49
+ const url: string = `${this.baseUrl}cards/create`;
50
+ return await this.httpRequest.post(url, object);
51
+ }
53
52
 
54
- // public async blockCard(object: UpdateBankAccountCardInput): Promise<UpdateBankAccountCardOutput> {
55
- // const url: string = `${this.baseUrl}cards/${object.cardId}/`;
56
- // return await this.httpRequest.put(url, object);
57
- // }
53
+ public async blockCard(object: UpdateBankAccountCardRequest): Promise<any> {
54
+ const url: string = `${this.baseUrl}cards/${object.cardId}/`;
55
+ return await this.httpRequest.put(url, object);
56
+ }
58
57
 
59
- // public async changePin(object: UpdateBankAccountCardInput): Promise<UpdateBankAccountCardOutput> {
60
- // const url: string = `${this.baseUrl}cards/${object.cardId}/`;
61
- // return await this.httpRequest.put(url, object);
62
- // }
58
+ public async changePin(object: UpdateBankAccountCardRequest): Promise<any> {
59
+ const url: string = `${this.baseUrl}cards/${object.cardId}/`;
60
+ return await this.httpRequest.put(url, object);
61
+ }
63
62
 
64
- // public async activateCard(object: ActivateBankAccountCardInput): Promise<ActivateBankAccountCardOutput> {
65
- // const url: string = `${this.baseUrl}cards/activate`;
66
- // return await this.httpRequest.post(url, object);
67
- // }
63
+ public async activateCard(object: ActivateBankAccountCardRequest): Promise<any> {
64
+ const url: string = `${this.baseUrl}cards/activate`;
65
+ return await this.httpRequest.post(url, object);
66
+ }
68
67
 
69
- // public async updateCard(object: UpdateBankAccountCardInput): Promise<UpdateBankAccountCardOutput> {
70
- // const url: string = `${this.baseUrl}cards/${object.cardId}/`;
71
- // return await this.httpRequest.put(url, object);
72
- // }
68
+ public async updateCard(object: UpdateBankAccountCardRequest): Promise<any> {
69
+ const url: string = `${this.baseUrl}cards/${object.cardId}/`;
70
+ return await this.httpRequest.put(url, object);
71
+ }
73
72
 
74
73
 
75
74
  // //Shipping
76
75
 
77
- // public async createShipment(object: CreateBankAccountCardShippingInput): Promise<any> {
78
- // const url: string = `${this.baseUrl}shipment/create`;
79
- // return await this.httpRequest.post(url, object);
80
- // }
76
+ public async createShipment(object: CreateBankAccountCardShippingRequest): Promise<any> {
77
+ const url: string = `${this.baseUrl}shipment/create`;
78
+ return await this.httpRequest.post(url, object);
79
+ }
81
80
 
82
- // public async getShipment(object: GetBankAccountShippingInput): Promise<GetBankAccountShippingOutput> {
83
- // const url: string = `${this.baseUrl}shipment/${object.shippingId}`;
84
- // return await this.httpRequest.get(url);
85
- // }
81
+ public async getShipment(object: GetBankAccountShippingRequest): Promise<any> {
82
+ const url: string = `${this.baseUrl}shipment/${object.externalShippingId}`;
83
+ return await this.httpRequest.get(url);
84
+ }
86
85
 
87
- // public async replaceCardByExternalId(object: ExternalReplaceCardInput): Promise<ExternalReplaceCardOutput> {
86
+ // public async replaceCardByExternalId(object: ExternalReplaceCardRequest): Promise<any> {
88
87
  // const url: string = `${this.baseUrl}cards/${object.externalCardId}/replace`;
89
88
  // return await this.httpRequest.put(url, object);
90
89
  // }
91
90
 
92
91
 
93
-
92
+
94
93
 
95
94
  }
@@ -1,8 +1,20 @@
1
- import {CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountUserRequest, GetBankAccountUserResponse, UpdateBankAccountUserRequest, UpdateBankAccountUserResponse} from "@fiado/type-kit/bin/account";
1
+ import {CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
2
+ import { UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
2
3
 
3
4
  export interface IPomeloApi {
4
5
 
5
6
  updateUser(object: UpdateBankAccountUserRequest): Promise<any>
6
7
  getUserById(externalUserId: string): Promise<any>
7
8
  createUser(request: CreateBankAccountUserRequest): Promise<any>;
9
+
10
+
11
+ // //Card
12
+ getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>
13
+ getCardsById(externalCardId: string): Promise<any>
14
+ getCardsByUserId(externalUserId: string): Promise<any>
15
+ createCard(object: CreateBankAccountRequest): Promise<any>
16
+ blockCard(object: UpdateBankAccountCardRequest): Promise<any>
17
+ changePin(object: UpdateBankAccountCardRequest): Promise<any>
18
+ activateCard(object: UpdateBankAccountCardRequest): Promise<any>
19
+
8
20
  }
@@ -1,9 +0,0 @@
1
- import { ISTPAccountApi } from "./interfaces/ISTPAccountApi";
2
- import { IHttpRequest } from "@fiado/http-client";
3
- import { CreateBankAccountRequest } from "@fiado/type-kit/bin/account";
4
- export default class PomeloApi implements ISTPAccountApi {
5
- private httpRequest;
6
- private readonly baseUrl;
7
- constructor(httpRequest: IHttpRequest);
8
- createAccount(request: CreateBankAccountRequest): Promise<any>;
9
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const inversify_1 = require("inversify");
16
- let PomeloApi = class PomeloApi {
17
- constructor(httpRequest) {
18
- this.httpRequest = httpRequest;
19
- this.baseUrl = process.env.STP_ACCOUNT_LAMBDA_URL || "";
20
- }
21
- //ACCOUNT
22
- // //USER
23
- async createAccount(request) {
24
- const url = `${this.baseUrl}account/create`;
25
- return await this.httpRequest.post(url, request);
26
- }
27
- };
28
- PomeloApi = __decorate([
29
- (0, inversify_1.injectable)(),
30
- __param(0, (0, inversify_1.inject)("IHttpRequest")),
31
- __metadata("design:paramtypes", [Object])
32
- ], PomeloApi);
33
- exports.default = PomeloApi;
@@ -1,4 +0,0 @@
1
- import { CreateBankAccountRequest } from "@fiado/type-kit/bin/account";
2
- export interface ISTPAccountApi {
3
- createAccount(request: CreateBankAccountRequest): Promise<any>;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from './api/STPAccountApi';
2
- export * from './api/interfaces/ISTPAccountApi';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./api/STPAccountApi"), exports);
18
- __exportStar(require("./api/interfaces/ISTPAccountApi"), exports);
@@ -1,102 +0,0 @@
1
- import {ISTPAccountApi } from "./interfaces/ISTPAccountApi";
2
- import {inject, injectable} from "inversify";
3
- import {IHttpRequest} from "@fiado/http-client";
4
- import {CreateBankAccountRequest, CreateBankAccountUserRequest, UpdateBankAccountUserRequest} from "@fiado/type-kit/bin/account";
5
-
6
-
7
- @injectable()
8
- export default class PomeloApi implements ISTPAccountApi {
9
-
10
-
11
- private readonly baseUrl = process.env.STP_ACCOUNT_LAMBDA_URL || "";
12
-
13
- constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {
14
- }
15
-
16
- //ACCOUNT
17
- // //USER
18
- async createAccount(request: CreateBankAccountRequest): Promise<any> {
19
- const url: string = `${this.baseUrl}account/create`;
20
- return await this.httpRequest.post(url, request);
21
- }
22
-
23
-
24
- // //USER
25
- // async createUser(request: CreateBankAccountUserRequest): Promise<any> {
26
- // const url: string = `${this.baseUrl}users/create`;
27
- // return await this.httpRequest.post(url, request);
28
- // }
29
-
30
- // public async getUserById(externalUserId: string): Promise<any> {
31
- // const url: string = `${this.baseUrl}users/${externalUserId}`;
32
- // return await this.httpRequest.get(url);
33
- // }
34
-
35
- // public async updateUser(object: UpdateBankAccountUserRequest): Promise<any> {
36
- // const url: string = `${this.baseUrl}/users/${object.id}`;
37
- // return await this.httpRequest.put(url, object);
38
- // }
39
-
40
- // //Card
41
- // public async getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<GetBankAccountSensitiveInformationOutput> {
42
- // const url: string = `${this.baseUrl}cards/${externalCardId}/sensitive?externalUserId=${externalUserId}`;
43
- // return await this.httpRequest.get(url);
44
- // }
45
-
46
- // public async getCardsById(externalCardId: string): Promise<GetBankAccountCardOutput> {
47
- // const url: string = `${this.baseUrl}cards?externalCardId=${externalCardId}`;
48
- // return await this.httpRequest.get(url);
49
- // }
50
-
51
- // public async getCardsByUserId(externalUserId: string): Promise<GetBankAccountCardOutput> {
52
- // const url: string = `${this.baseUrl}cards?externalUserId=${externalUserId}`;
53
- // return await this.httpRequest.get(url);
54
- // }
55
-
56
- // public async createCard(object: CreateBankAccountCardInput): Promise<CreateBankAccountCardOutput> {
57
- // const url: string = `${this.baseUrl}cards/create`;
58
- // return await this.httpRequest.post(url, object);
59
- // }
60
-
61
- // public async blockCard(object: UpdateBankAccountCardInput): Promise<UpdateBankAccountCardOutput> {
62
- // const url: string = `${this.baseUrl}cards/${object.cardId}/`;
63
- // return await this.httpRequest.put(url, object);
64
- // }
65
-
66
- // public async changePin(object: UpdateBankAccountCardInput): Promise<UpdateBankAccountCardOutput> {
67
- // const url: string = `${this.baseUrl}cards/${object.cardId}/`;
68
- // return await this.httpRequest.put(url, object);
69
- // }
70
-
71
- // public async activateCard(object: ActivateBankAccountCardInput): Promise<ActivateBankAccountCardOutput> {
72
- // const url: string = `${this.baseUrl}cards/activate`;
73
- // return await this.httpRequest.post(url, object);
74
- // }
75
-
76
- // public async updateCard(object: UpdateBankAccountCardInput): Promise<UpdateBankAccountCardOutput> {
77
- // const url: string = `${this.baseUrl}cards/${object.cardId}/`;
78
- // return await this.httpRequest.put(url, object);
79
- // }
80
-
81
-
82
- // //Shipping
83
-
84
- // public async createShipment(object: CreateBankAccountCardShippingInput): Promise<any> {
85
- // const url: string = `${this.baseUrl}shipment/create`;
86
- // return await this.httpRequest.post(url, object);
87
- // }
88
-
89
- // public async getShipment(object: GetBankAccountShippingInput): Promise<GetBankAccountShippingOutput> {
90
- // const url: string = `${this.baseUrl}shipment/${object.shippingId}`;
91
- // return await this.httpRequest.get(url);
92
- // }
93
-
94
- // public async replaceCardByExternalId(object: ExternalReplaceCardInput): Promise<ExternalReplaceCardOutput> {
95
- // const url: string = `${this.baseUrl}cards/${object.externalCardId}/replace`;
96
- // return await this.httpRequest.put(url, object);
97
- // }
98
-
99
-
100
-
101
-
102
- }
@@ -1,7 +0,0 @@
1
- import {CreateBankAccountRequest, CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountUserRequest, GetBankAccountUserResponse, UpdateBankAccountUserRequest, UpdateBankAccountUserResponse} from "@fiado/type-kit/bin/account";
2
-
3
- export interface ISTPAccountApi {
4
- // updateUser(object: UpdateBankAccountUserRequest): Promise<any>
5
- // getUserById(externalUserId: string): Promise<any>
6
- createAccount(request: CreateBankAccountRequest): Promise<any>;
7
- }
@@ -1,2 +0,0 @@
1
- export * from './api/STPAccountApi';
2
- export * from './api/interfaces/ISTPAccountApi';