@fiado/api-invoker 1.0.40 → 1.0.41

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.
@@ -10,6 +10,7 @@ export default class TernApi implements ITernApi {
10
10
  createUser(request: CreateBankAccountUserRequest): Promise<any>;
11
11
  getAccount(request: GetBankAccountRequest): Promise<any>;
12
12
  createAccount(request: CreateBankAccountRequest): Promise<any>;
13
+ getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
13
14
  getCardsById(externalCardId: string): Promise<any>;
14
15
  createCard(request: CreateBankAccountCardRequest): Promise<any>;
15
16
  blockCard(request: UpdateBankAccountCardRequest): Promise<any>;
@@ -37,6 +37,10 @@ let TernApi = class TernApi {
37
37
  return await this.httpRequest.post(url, request);
38
38
  }
39
39
  /// CARDS
40
+ async getCardSensitiveInformation(externalCardId, externalUserId) {
41
+ const url = `${this.baseUrl}cards/${externalCardId}/sensitive`;
42
+ return await this.httpRequest.get(url);
43
+ }
40
44
  async getCardsById(externalCardId) {
41
45
  const url = `${this.baseUrl}cards/${externalCardId}/`;
42
46
  return await this.httpRequest.get(url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
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",
@@ -40,6 +40,13 @@ export default class TernApi implements ITernApi {
40
40
  }
41
41
 
42
42
  /// CARDS
43
+
44
+ async getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any> {
45
+
46
+ const url = `${this.baseUrl}cards/${externalCardId}/sensitive`;
47
+ return await this.httpRequest.get(url);
48
+ }
49
+
43
50
  async getCardsById(externalCardId: string): Promise<any> {
44
51
 
45
52
  const url = `${this.baseUrl}cards/${externalCardId}/`;