@fiado/api-invoker 3.0.41 → 3.0.43
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/collector/CollectorApi.d.ts +3 -0
- package/bin/collector/CollectorApi.js +13 -0
- package/bin/collector/interfaces/ICollectorApi.d.ts +3 -0
- package/bin/pomelo/api/PomeloApi.d.ts +1 -0
- package/bin/pomelo/api/PomeloApi.js +4 -0
- package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +1 -0
- package/package.json +4 -1
- package/src/collector/CollectorApi.ts +17 -1
- package/src/collector/interfaces/ICollectorApi.ts +5 -0
- package/src/pomelo/api/PomeloApi.ts +5 -0
- package/src/pomelo/api/interfaces/IPomeloApi.ts +1 -0
|
@@ -33,4 +33,7 @@ export declare class CollectorApi implements ICollectorApi {
|
|
|
33
33
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
34
34
|
*/
|
|
35
35
|
updateCreditContractByRenewalPreAuth(req: CreditContractUpdateRequest): Promise<FiadoApiResponse<any>>;
|
|
36
|
+
getCreditContractsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any>;
|
|
37
|
+
getCVContractsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any>;
|
|
38
|
+
getCollectorTransactionsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any>;
|
|
36
39
|
}
|
|
@@ -76,6 +76,19 @@ let CollectorApi = class CollectorApi {
|
|
|
76
76
|
const url = `${this.baseUrl}collector/creditcontracts/renewal/preauth`;
|
|
77
77
|
return await this.httpRequest.put(url, req);
|
|
78
78
|
}
|
|
79
|
+
// Reconciliation — query by tenant + date range
|
|
80
|
+
async getCreditContractsByTenant(tenantId, startDate, endDate) {
|
|
81
|
+
const url = `${this.baseUrl}collector/creditcontracts/by-tenant?tenantId=${tenantId}&startDate=${startDate}&endDate=${endDate}`;
|
|
82
|
+
return await this.httpRequest.get(url, { 'operationName': 'getCreditContractsByTenant' });
|
|
83
|
+
}
|
|
84
|
+
async getCVContractsByTenant(tenantId, startDate, endDate) {
|
|
85
|
+
const url = `${this.baseUrl}collector/cvcontracts/by-tenant?tenantId=${tenantId}&startDate=${startDate}&endDate=${endDate}`;
|
|
86
|
+
return await this.httpRequest.get(url, { 'operationName': 'getCVContractsByTenant' });
|
|
87
|
+
}
|
|
88
|
+
async getCollectorTransactionsByTenant(tenantId, startDate, endDate) {
|
|
89
|
+
const url = `${this.baseUrl}collector/collectortransactions/by-tenant?tenantId=${tenantId}&startDate=${startDate}&endDate=${endDate}`;
|
|
90
|
+
return await this.httpRequest.get(url, { 'operationName': 'getCollectorTransactionsByTenant' });
|
|
91
|
+
}
|
|
79
92
|
};
|
|
80
93
|
exports.CollectorApi = CollectorApi;
|
|
81
94
|
exports.CollectorApi = CollectorApi = __decorate([
|
|
@@ -31,4 +31,7 @@ export interface ICollectorApi {
|
|
|
31
31
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
32
32
|
*/
|
|
33
33
|
updateCreditContractByRenewalPreAuth(req: CreditContractUpdateRequest): Promise<FiadoApiResponse<any>>;
|
|
34
|
+
getCreditContractsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any>;
|
|
35
|
+
getCVContractsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any>;
|
|
36
|
+
getCollectorTransactionsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any>;
|
|
34
37
|
}
|
|
@@ -10,6 +10,7 @@ export default class PomeloApi implements IPomeloApi {
|
|
|
10
10
|
getUserById(externalUserId: string): Promise<any>;
|
|
11
11
|
updateUser(object: UpdateBankAccountUserRequest): Promise<any>;
|
|
12
12
|
getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
|
|
13
|
+
getCardById(externalCardId: string): Promise<any>;
|
|
13
14
|
getCardsById(externalCardId: string): Promise<any>;
|
|
14
15
|
getCardsByUserId(externalUserId: string): Promise<any>;
|
|
15
16
|
createCard(object: CreateBankAccountRequest): Promise<any>;
|
|
@@ -36,6 +36,10 @@ let PomeloApi = class PomeloApi {
|
|
|
36
36
|
const url = `${this.baseUrl}cards/${externalCardId}/sensitive?externalUserId=${externalUserId}`;
|
|
37
37
|
return await this.httpRequest.get(url);
|
|
38
38
|
}
|
|
39
|
+
async getCardById(externalCardId) {
|
|
40
|
+
const url = `${this.baseUrl}cards/${externalCardId}/detail`;
|
|
41
|
+
return await this.httpRequest.get(url);
|
|
42
|
+
}
|
|
39
43
|
async getCardsById(externalCardId) {
|
|
40
44
|
const url = `${this.baseUrl}cards?externalCardId=${externalCardId}`;
|
|
41
45
|
return await this.httpRequest.get(url);
|
|
@@ -5,6 +5,7 @@ export interface IPomeloApi {
|
|
|
5
5
|
getUserById(externalUserId: string): Promise<any>;
|
|
6
6
|
createUser(request: CreateBankAccountUserRequest): Promise<any>;
|
|
7
7
|
getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>;
|
|
8
|
+
getCardById(externalCardId: string): Promise<any>;
|
|
8
9
|
getCardsById(externalCardId: string): Promise<any>;
|
|
9
10
|
getCardsByUserId(externalUserId: string): Promise<any>;
|
|
10
11
|
createCard(object: CreateBankAccountRequest): Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
"version": "3.0.43",
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
|
|
5
8
|
"main": "bin/index.js",
|
|
6
9
|
"types": "bin/index.d.ts",
|
|
@@ -78,5 +78,21 @@ export class CollectorApi implements ICollectorApi {
|
|
|
78
78
|
async updateCreditContractByRenewalPreAuth(req: CreditContractUpdateRequest): Promise<FiadoApiResponse<any>> {
|
|
79
79
|
const url = `${this.baseUrl}collector/creditcontracts/renewal/preauth`;
|
|
80
80
|
return await this.httpRequest.put(url, req);
|
|
81
|
-
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Reconciliation — query by tenant + date range
|
|
84
|
+
async getCreditContractsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any> {
|
|
85
|
+
const url = `${this.baseUrl}collector/creditcontracts/by-tenant?tenantId=${tenantId}&startDate=${startDate}&endDate=${endDate}`;
|
|
86
|
+
return await this.httpRequest.get(url, { 'operationName': 'getCreditContractsByTenant' });
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async getCVContractsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any> {
|
|
90
|
+
const url = `${this.baseUrl}collector/cvcontracts/by-tenant?tenantId=${tenantId}&startDate=${startDate}&endDate=${endDate}`;
|
|
91
|
+
return await this.httpRequest.get(url, { 'operationName': 'getCVContractsByTenant' });
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
async getCollectorTransactionsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any> {
|
|
95
|
+
const url = `${this.baseUrl}collector/collectortransactions/by-tenant?tenantId=${tenantId}&startDate=${startDate}&endDate=${endDate}`;
|
|
96
|
+
return await this.httpRequest.get(url, { 'operationName': 'getCollectorTransactionsByTenant' });
|
|
97
|
+
}
|
|
82
98
|
}
|
|
@@ -39,4 +39,9 @@ export interface ICollectorApi {
|
|
|
39
39
|
* @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
|
|
40
40
|
*/
|
|
41
41
|
updateCreditContractByRenewalPreAuth(req: CreditContractUpdateRequest): Promise<FiadoApiResponse<any>>;
|
|
42
|
+
|
|
43
|
+
// Reconciliation — query by tenant + date range
|
|
44
|
+
getCreditContractsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any>;
|
|
45
|
+
getCVContractsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any>;
|
|
46
|
+
getCollectorTransactionsByTenant(tenantId: string, startDate: string, endDate: string): Promise<any>;
|
|
42
47
|
}
|
|
@@ -35,6 +35,11 @@ export default class PomeloApi implements IPomeloApi {
|
|
|
35
35
|
return await this.httpRequest.get(url);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
public async getCardById(externalCardId: string): Promise<any> {
|
|
39
|
+
const url: string = `${this.baseUrl}cards/${externalCardId}/detail`;
|
|
40
|
+
return await this.httpRequest.get(url);
|
|
41
|
+
}
|
|
42
|
+
|
|
38
43
|
public async getCardsById(externalCardId: string): Promise<any> {
|
|
39
44
|
const url: string = `${this.baseUrl}cards?externalCardId=${externalCardId}`;
|
|
40
45
|
return await this.httpRequest.get(url);
|
|
@@ -10,6 +10,7 @@ export interface IPomeloApi {
|
|
|
10
10
|
|
|
11
11
|
// //Card
|
|
12
12
|
getCardSensitiveInformation(externalCardId: string, externalUserId?: string): Promise<any>
|
|
13
|
+
getCardById(externalCardId: string): Promise<any>
|
|
13
14
|
getCardsById(externalCardId: string): Promise<any>
|
|
14
15
|
getCardsByUserId(externalUserId: string): Promise<any>
|
|
15
16
|
createCard(object: CreateBankAccountRequest): Promise<any>
|