@fiado/api-invoker 1.3.6 → 1.3.7

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.
@@ -28,7 +28,7 @@ export declare class CentralPaymentsConnectorApi implements ICentralPaymentsConn
28
28
  getCardSensitiveInformation(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountSensitiveInformationResponse>>;
29
29
  activateCard(request: ActivateBankAccountCardRequest): Promise<FiadoApiResponse<ActivateBankAccountCardResponse>>;
30
30
  getCardBalance(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardBalanceResponse>>;
31
- updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
31
+ updateCard(externalCardId: string, request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
32
32
  updateCardProgram(externalCardId: string, programId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
33
33
  createCard(request: CreateBankAccountCardRequest): Promise<FiadoApiResponse<CreateBankAccountCardResponse>>;
34
34
  replaceCard(externalCardId: string, request: ReplaceBankAccountCardRequest): Promise<FiadoApiResponse<ReplaceBankAccountCardResponse>>;
@@ -77,9 +77,9 @@ let CentralPaymentsConnectorApi = class CentralPaymentsConnectorApi {
77
77
  const url = `${this.baseUrl}/cards/${externalCardId}/balance`;
78
78
  return await this.httpRequest.get(url);
79
79
  }
80
- async updateCard(request) {
81
- const url = `${this.baseUrl}/cards/${request.cardId}/status/${request.status}`;
82
- return await this.httpRequest.put(url);
80
+ async updateCard(externalCardId, request) {
81
+ const url = `${this.baseUrl}/cards/${externalCardId}`;
82
+ return await this.httpRequest.put(url, request);
83
83
  }
84
84
  async updateCardProgram(externalCardId, programId) {
85
85
  const url = `${this.baseUrl}/cards/${externalCardId}/programs/${programId}`;
@@ -21,7 +21,7 @@ export interface ICentralPaymentsConnectorApi {
21
21
  getCardSensitiveInformation(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountSensitiveInformationResponse>>;
22
22
  activateCard(request: ActivateBankAccountCardRequest): Promise<FiadoApiResponse<ActivateBankAccountCardResponse>>;
23
23
  getCardBalance(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardBalanceResponse>>;
24
- updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
24
+ updateCard(externalCardId: string, request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
25
25
  updateCardProgram(externalCardId: string, programId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
26
26
  createCard(request: CreateBankAccountCardRequest): Promise<FiadoApiResponse<CreateBankAccountCardResponse>>;
27
27
  replaceCard(externalCardId: string, request: ReplaceBankAccountCardRequest): Promise<FiadoApiResponse<ReplaceBankAccountCardResponse>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "@fiado/gateway-adapter": "^1.1.40",
17
17
  "@fiado/http-client": "^1.0.5",
18
18
  "@fiado/logger": "^1.0.3",
19
- "@fiado/type-kit": "^1.8.77",
19
+ "@fiado/type-kit": "^1.8.81",
20
20
  "dotenv": "^16.4.7",
21
21
  "inversify": "^6.2.2",
22
22
  "reflect-metadata": "^0.2.2"
@@ -123,9 +123,9 @@ export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi
123
123
  return await this.httpRequest.get(url);
124
124
  }
125
125
 
126
- async updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<GetBankAccountCardResponse>> {
127
- const url = `${this.baseUrl}/cards/${request.cardId}/status/${request.status}`;
128
- return await this.httpRequest.put(url);
126
+ async updateCard(externalCardId: string, request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>> {
127
+ const url = `${this.baseUrl}/cards/${externalCardId}`;
128
+ return await this.httpRequest.put(url, request);
129
129
  }
130
130
 
131
131
  async updateCardProgram(externalCardId: string, programId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>> {
@@ -66,7 +66,7 @@ export interface ICentralPaymentsConnectorApi {
66
66
 
67
67
  getCardBalance(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardBalanceResponse>>;
68
68
 
69
- updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
69
+ updateCard(externalCardId: string, request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
70
70
 
71
71
  updateCardProgram(externalCardId: string, programId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
72
72