@fiado/api-invoker 3.18.1 → 4.1.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/bin/account-beneficiary/AccountBeneficiaryApi.js +2 -1
- package/bin/account-fiadoinc/AccountFiadoIncApi.js +3 -1
- package/bin/account-fiadoinc/queue/Publisher.js +3 -4
- package/bin/account-fiadosa/AccountFiadoSAApi.js +2 -1
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.js +2 -1
- package/bin/activity-business/ActivityApi.js +2 -1
- package/bin/activity-business/queue/ActivityPublisher.js +3 -4
- package/bin/address/AddressApi.js +3 -2
- package/bin/ai-engine-connector/AiEngineApi.js +2 -1
- package/bin/appselectondata/AppSelectionDataApi.js +2 -1
- package/bin/authentication/AuthenticationApi.js +1 -0
- package/bin/bankAccount/BankAccountApi.js +2 -1
- package/bin/bbvaRst/api/BBVARstApi.js +2 -1
- package/bin/benefits-marketplace/api/BenefitsMarketplaceApi.js +2 -1
- package/bin/blacklist/BlackListApi.js +2 -1
- package/bin/card/CardApi.js +2 -1
- package/bin/card-business/queue/CardBusinessPublisher.js +3 -4
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +3 -1
- package/bin/circuloCredito/api/CirculoCreditoApi.js +2 -1
- package/bin/cnbv-business/CnbvApi.js +2 -1
- package/bin/cnbv-connector/CnbvConnectorApi.js +2 -1
- package/bin/cognitoConnector/CognitoConnectorApi.js +2 -1
- package/bin/cognitoConnector/CognitoConnectorV2.js +2 -1
- package/bin/collector/CollectorApi.js +2 -1
- package/bin/commission-business/CommissionBusinessApi.js +2 -1
- package/bin/contactInformation/ContactInformationApi.js +2 -1
- package/bin/container.config.js +1 -1
- package/bin/contract-business/api/ContractBusinessApi.js +2 -1
- package/bin/contract-generator/ContractGeneratorApi.js +2 -1
- package/bin/countries-business/CountriesBusinessApi.js +2 -1
- package/bin/credit-engine/CreditEngineApi.js +2 -1
- package/bin/credit-engine/queue/CreditCollectionPublisher.js +3 -4
- package/bin/credit-engine/queue/CreditDelinquencyPublisher.js +3 -4
- package/bin/credit-engine/queue/CreditIncomeDetectionPublisher.js +3 -4
- package/bin/credit-engine/queue/CreditLienCollectionPublisher.js +3 -4
- package/bin/credit-engine/queue/CreditNotificationPublisher.js +3 -4
- package/bin/credit-engine/queue/CreditOfferGenerationPublisher.js +3 -4
- package/bin/credit-engine/queue/CreditReconciliationPublisher.js +3 -4
- package/bin/credit-engine/queue/CreditScoringPublisher.js +3 -4
- package/bin/credit-engine/queue/CreditStatementPublisher.js +3 -4
- package/bin/credit-engine/queue/CreditTransferPublisher.js +3 -4
- package/bin/credit-payment/CreditPaymentApi.js +2 -1
- package/bin/credit-statements/api/CreditStatementsApi.js +2 -1
- package/bin/device/DeviceApi.js +2 -1
- package/bin/directories/DirectoriesApi.js +2 -1
- package/bin/directory/DirectoryApi.d.ts +2 -2
- package/bin/directory/DirectoryApi.js +2 -1
- package/bin/directory/interfaces/IDirectoryApi.d.ts +2 -2
- package/bin/directorySetting/DirectorySettingApi.js +2 -1
- package/bin/disputes/DisputesApi.js +2 -1
- package/bin/document-generator/DocumentGeneratorApi.js +2 -1
- package/bin/document-image-processor/DocumentImageProcessorApi.js +2 -1
- package/bin/estafeta/api/EstafetaApi.js +2 -1
- package/bin/event-history-business/EventHistoryApi.js +2 -1
- package/bin/exchangeRates/ExchangeRatesApi.js +2 -1
- package/bin/fiadoMessages/api/FiadoMessagesApi.js +2 -1
- package/bin/firebase-connector/FirebaseConnectorApi.js +2 -1
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.js +2 -1
- package/bin/group/GroupApi.js +2 -1
- package/bin/identity/IdentityApi.js +2 -1
- package/bin/legalDocument/api/LegalDocumentApi.js +2 -1
- package/bin/milestone-business/api/MilestoneBusinessApi.js +2 -1
- package/bin/multicommServicePayment/api/MulticommServicePaymentApi.js +6 -5
- package/bin/notificationMessages/queue/NotificationMessagePublisher.js +5 -3
- package/bin/notificationWebsockets/queue/NotificationWSMessagePublisher.js +4 -4
- package/bin/observations/ObservationsApi.js +2 -1
- package/bin/onboarding/api/OnboardingApi.js +2 -1
- package/bin/onboarding-business/api/OnboardingBusinessApi.js +2 -1
- package/bin/order-collector-business/OrderCollectorApi.js +2 -1
- package/bin/p2pContact/api/P2pContactApi.js +2 -1
- package/bin/payroll-business/PayrollApi.js +2 -1
- package/bin/people-business/api/PeopleBusinessApi.js +2 -1
- package/bin/platform-error-events/queue/PlatformErrorEventsPublisher.js +3 -4
- package/bin/pomelo/api/PomeloApi.js +2 -1
- package/bin/pomeloProcessor/api/PomeloProcessorApi.js +2 -1
- package/bin/pricelist-business/PriceListApi.js +2 -1
- package/bin/product-catalog/ProductCatalogApi.js +2 -1
- package/bin/product-payment/api/ProductPaymentApi.js +3 -2
- package/bin/referral-business/ReferralBusinessApi.js +2 -1
- package/bin/report-processor-business/api/ReportProcessorBusinessApi.js +2 -1
- package/bin/riskProfile/api/RiskProfileApi.js +2 -1
- package/bin/riskProfile/api/TransactionAlertApi.js +2 -1
- package/bin/riskProfile/queue/TransactionAlarmPublisher.js +3 -4
- package/bin/service-business/ServiceApi.js +2 -1
- package/bin/sessionActivity/queue/SessionActivityPublisher.js +3 -4
- package/bin/stp-business/api/STPBusinessApi.js +2 -1
- package/bin/stpAccount/api/STPAccountApi.js +2 -1
- package/bin/stpServicePayment/api/StpServicePaymentApi.js +5 -4
- package/bin/stpSpei/api/StpSpeiApi.js +2 -1
- package/bin/teams-connector/queue/TeamsNotificationPublisher.js +3 -4
- package/bin/tern/api/TernApi.js +2 -1
- package/bin/transaction/api/TransactionApi.js +2 -1
- package/bin/transaction/queue/TransactionPublisher.js +3 -4
- package/bin/transactionProcessor/api/TransactionProcessorApi.js +2 -1
- package/bin/uniteller-connector/api/UnitellerConnectorApi.d.ts +15 -1
- package/bin/uniteller-connector/api/UnitellerConnectorApi.js +26 -1
- package/bin/uniteller-connector/api/interfaces/IUnitellerConnectorApi.d.ts +23 -1
- package/bin/zendesk/ZendeskApi.js +2 -1
- package/package.json +16 -10
- package/src/account-fiadoinc/queue/Publisher.ts +2 -1
- package/src/activity-business/queue/ActivityPublisher.ts +2 -1
- package/src/address/AddressApi.ts +1 -1
- package/src/card-business/queue/CardBusinessPublisher.ts +2 -1
- package/src/container.config.ts +2 -2
- package/src/credit-engine/queue/CreditCollectionPublisher.ts +2 -1
- package/src/credit-engine/queue/CreditDelinquencyPublisher.ts +2 -1
- package/src/credit-engine/queue/CreditIncomeDetectionPublisher.ts +2 -1
- package/src/credit-engine/queue/CreditLienCollectionPublisher.ts +2 -1
- package/src/credit-engine/queue/CreditNotificationPublisher.ts +2 -1
- package/src/credit-engine/queue/CreditOfferGenerationPublisher.ts +2 -1
- package/src/credit-engine/queue/CreditReconciliationPublisher.ts +2 -1
- package/src/credit-engine/queue/CreditScoringPublisher.ts +2 -1
- package/src/credit-engine/queue/CreditStatementPublisher.ts +2 -1
- package/src/credit-engine/queue/CreditTransferPublisher.ts +2 -1
- package/src/directory/DirectoryApi.ts +2 -2
- package/src/directory/interfaces/IDirectoryApi.ts +2 -2
- package/src/multicommServicePayment/api/MulticommServicePaymentApi.ts +5 -5
- package/src/notificationMessages/queue/NotificationMessagePublisher.ts +2 -1
- package/src/notificationWebsockets/queue/NotificationWSMessagePublisher.ts +2 -1
- package/src/platform-error-events/queue/PlatformErrorEventsPublisher.ts +2 -1
- package/src/pricelist-business/PriceListApi.ts +1 -1
- package/src/product-payment/api/ProductPaymentApi.ts +1 -1
- package/src/riskProfile/queue/TransactionAlarmPublisher.ts +2 -1
- package/src/sessionActivity/queue/SessionActivityPublisher.ts +2 -1
- package/src/stpServicePayment/api/StpServicePaymentApi.ts +4 -4
- package/src/teams-connector/queue/TeamsNotificationPublisher.ts +2 -1
- package/src/transaction/queue/TransactionPublisher.ts +2 -1
- package/src/uniteller-connector/api/UnitellerConnectorApi.ts +32 -0
- package/src/uniteller-connector/api/interfaces/IUnitellerConnectorApi.ts +32 -0
- package/tsconfig.json +0 -21
|
@@ -13,7 +13,7 @@ export default class MulticommServicePaymentApi implements IMulticommServicePaym
|
|
|
13
13
|
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {
|
|
14
14
|
}
|
|
15
15
|
async getSTPTransactionDownload(params: { date: string; index?: string; pageSize?: number; sort?: string; }): Promise<ApiGatewayResponse<any>> {
|
|
16
|
-
const url= `${this.baseUrl}transaction-download?${Object.keys(params).map(key => `${key}=${encodeURIComponent(params[key])}`).join('&')}`;
|
|
16
|
+
const url= `${this.baseUrl}transaction-download?${(Object.keys(params) as (keyof typeof params)[]).map(key => `${key}=${encodeURIComponent(String(params[key]))}`).join('&')}`;
|
|
17
17
|
return await this.httpRequest.get(url);
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -40,22 +40,22 @@ export default class MulticommServicePaymentApi implements IMulticommServicePaym
|
|
|
40
40
|
async getCatalog(params: GetCatalogParams): Promise<ApiGatewayResponse<any>> {
|
|
41
41
|
let url = `${this.baseUrl}/catalog`;
|
|
42
42
|
if (params) {
|
|
43
|
-
url += `?${Object.keys(params).map(key => `${key}=${encodeURIComponent(params[key])}`).join('&')}`;
|
|
43
|
+
url += `?${(Object.keys(params) as (keyof typeof params)[]).map(key => `${key}=${encodeURIComponent(String(params[key]))}`).join('&')}`;
|
|
44
44
|
}
|
|
45
45
|
return await this.httpRequest.get(url);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
async consultTransaction(params: { transactionNumber: string; date: string; serviceId: string; }): Promise<ApiGatewayResponse<any>> {
|
|
49
|
-
const url = `${this.baseUrl}consult-transaction?${Object.keys(params).map(key => `${key}=${encodeURIComponent(params[key])}`).join('&')}`;
|
|
49
|
+
const url = `${this.baseUrl}consult-transaction?${(Object.keys(params) as (keyof typeof params)[]).map(key => `${key}=${encodeURIComponent(String(params[key]))}`).join('&')}`;
|
|
50
50
|
return await this.httpRequest.get(url);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
async getTransactions(params: GetFavoritesParams): Promise<FiadoApiResponse<GetFavoritesResponse>> {
|
|
54
54
|
const { directoryId, ...queryParams } = params;
|
|
55
55
|
let url = `${this.baseUrl}transactions/${directoryId}`;
|
|
56
|
-
const query = Object.keys(queryParams)
|
|
56
|
+
const query = (Object.keys(queryParams) as (keyof typeof queryParams)[])
|
|
57
57
|
.filter(key => queryParams[key] !== undefined)
|
|
58
|
-
.map(key => `${key}=${encodeURIComponent(queryParams[key])}`)
|
|
58
|
+
.map(key => `${key}=${encodeURIComponent(String(queryParams[key]))}`)
|
|
59
59
|
.join('&');
|
|
60
60
|
if (query) url += `?${query}`;
|
|
61
61
|
return await this.httpRequest.get(url);
|
|
@@ -26,7 +26,8 @@ export default class NotificationMessagePublisher implements INotificationMessag
|
|
|
26
26
|
const command: SendMessageCommand = new SendMessageCommand(sendMessageRequest);
|
|
27
27
|
await client.send(command);
|
|
28
28
|
} catch (error) {
|
|
29
|
-
|
|
29
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
30
|
+
throw new Error(`Error publishing message to queue ${': ' + errorMessage}`);
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -24,6 +24,7 @@ export default class NotificationWSMessagePublisher implements INotificationWSMe
|
|
|
24
24
|
const command: SendMessageCommand = new SendMessageCommand(sendMessageRequest);
|
|
25
25
|
await client.send(command);
|
|
26
26
|
} catch (error) {
|
|
27
|
-
|
|
27
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
28
|
+
throw new Error(`Error publishing message to queue ${': ' + errorMessage}`);
|
|
28
29
|
}
|
|
29
30
|
}}
|
|
@@ -17,7 +17,8 @@ export default class PlatformErrorEventsPublisher implements IPlatformErrorEvent
|
|
|
17
17
|
const command: SendMessageCommand = new SendMessageCommand(sendMessageRequest);
|
|
18
18
|
await client.send(command);
|
|
19
19
|
} catch (error) {
|
|
20
|
-
|
|
20
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
21
|
+
throw new Error(`Error publishing message to PlatformErrorEventsQueue${': ' + errorMessage}`);
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
}
|
|
@@ -34,7 +34,7 @@ export class PriceListApi implements IPriceListApi {
|
|
|
34
34
|
|
|
35
35
|
async getDiscountByServiceIdAndDirectories(directories: string[], serviceId: string): Promise<FiadoApiResponse<GetDiscountByServiceIdAndDirectoriesResponse>> {
|
|
36
36
|
|
|
37
|
-
const queryParams = []
|
|
37
|
+
const queryParams: string[] = []
|
|
38
38
|
directories.forEach(directory => {
|
|
39
39
|
queryParams.push(`directoryId=${directory}`)
|
|
40
40
|
});
|
|
@@ -14,7 +14,7 @@ export default class ProductPaymentApi implements IProductPaymentApi {
|
|
|
14
14
|
}
|
|
15
15
|
async getCatalog(params: GetCatalogParams, currencyId: CurrencyId): Promise<ApiGatewayResponse<any>> {
|
|
16
16
|
const paramsWithCountry = { ...params, currencyId };
|
|
17
|
-
const queryParams = Object.keys(paramsWithCountry).map(key => `${key}=${encodeURIComponent(paramsWithCountry[key])}`).join('&');
|
|
17
|
+
const queryParams = (Object.keys(paramsWithCountry) as (keyof typeof paramsWithCountry)[]).map(key => `${key}=${encodeURIComponent(String(paramsWithCountry[key]))}`).join('&');
|
|
18
18
|
const url = `${this.baseUrl}/catalog?${queryParams}`;
|
|
19
19
|
return await this.httpRequest.get(url);
|
|
20
20
|
}
|
|
@@ -19,7 +19,8 @@ export class TransactionAlarmPublisher implements ITransactionAlarmPublisher {
|
|
|
19
19
|
const command: SendMessageCommand = new SendMessageCommand(sendMessageRequest);
|
|
20
20
|
await client.send(command);
|
|
21
21
|
} catch (error) {
|
|
22
|
-
|
|
22
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
23
|
+
throw new Error(`Error publishing message to queue ${': ' + errorMessage}`);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -17,7 +17,8 @@ export class SessionActivityPublisher implements ISessionActivityPublisher {
|
|
|
17
17
|
const command: SendMessageCommand = new SendMessageCommand(sendMessageRequest);
|
|
18
18
|
await client.send(command);
|
|
19
19
|
} catch (error) {
|
|
20
|
-
|
|
20
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
21
|
+
throw new Error(`Error publishing message to queue ${': ' + errorMessage}`);
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
}
|
|
@@ -13,7 +13,7 @@ export default class StpServicePaymentApi implements IStpServicePaymentApi {
|
|
|
13
13
|
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {
|
|
14
14
|
}
|
|
15
15
|
async getSTPTransactionDownload(params: { date: string; index?: string; pageSize?: number; sort?: string; }): Promise<ApiGatewayResponse<any>> {
|
|
16
|
-
const url= `${this.baseUrl}transaction-download?${Object.keys(params).map(key => `${key}=${encodeURIComponent(params[key])}`).join('&')}`;
|
|
16
|
+
const url= `${this.baseUrl}transaction-download?${(Object.keys(params) as (keyof typeof params)[]).map(key => `${key}=${encodeURIComponent(String(params[key]))}`).join('&')}`;
|
|
17
17
|
return await this.httpRequest.get(url);
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -40,7 +40,7 @@ export default class StpServicePaymentApi implements IStpServicePaymentApi {
|
|
|
40
40
|
async getCatalog(params: GetCatalogParams): Promise<ApiGatewayResponse<any>> {
|
|
41
41
|
let url = `${this.baseUrl}/catalog`;
|
|
42
42
|
if (params) {
|
|
43
|
-
url += `?${Object.keys(params).map(key => `${key}=${encodeURIComponent(params[key])}`).join('&')}`;
|
|
43
|
+
url += `?${(Object.keys(params) as (keyof typeof params)[]).map(key => `${key}=${encodeURIComponent(String(params[key]))}`).join('&')}`;
|
|
44
44
|
}
|
|
45
45
|
return await this.httpRequest.get(url);
|
|
46
46
|
}
|
|
@@ -53,9 +53,9 @@ export default class StpServicePaymentApi implements IStpServicePaymentApi {
|
|
|
53
53
|
async getTransactions(params: GetFavoritesParams): Promise<FiadoApiResponse<GetFavoritesResponse>> {
|
|
54
54
|
const { directoryId, ...queryParams } = params;
|
|
55
55
|
let url = `${this.baseUrl}transactions/${directoryId}`;
|
|
56
|
-
const query = Object.keys(queryParams)
|
|
56
|
+
const query = (Object.keys(queryParams) as (keyof typeof queryParams)[])
|
|
57
57
|
.filter(key => queryParams[key] !== undefined)
|
|
58
|
-
.map(key => `${key}=${encodeURIComponent(queryParams[key])}`)
|
|
58
|
+
.map(key => `${key}=${encodeURIComponent(String(queryParams[key]))}`)
|
|
59
59
|
.join('&');
|
|
60
60
|
if (query) url += `?${query}`;
|
|
61
61
|
return await this.httpRequest.get(url);
|
|
@@ -17,7 +17,8 @@ export default class TeamsNotificationPublisher implements ITeamsNotificationPub
|
|
|
17
17
|
const command: SendMessageCommand = new SendMessageCommand(sendMessageRequest);
|
|
18
18
|
await client.send(command);
|
|
19
19
|
} catch (error) {
|
|
20
|
-
|
|
20
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
21
|
+
throw new Error(`Error publishing message to TeamsNotificationQueue${': ' + errorMessage}`);
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
}
|
|
@@ -19,7 +19,8 @@ export class TransactionPublisher implements ITransactionPublisher {
|
|
|
19
19
|
const command: SendMessageCommand = new SendMessageCommand(sendMessageRequest);
|
|
20
20
|
await client.send(command);
|
|
21
21
|
} catch (error) {
|
|
22
|
-
|
|
22
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
23
|
+
throw new Error(`Error publishing message to queue ${': ' + errorMessage}`);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -9,11 +9,15 @@ import {
|
|
|
9
9
|
RemittanceListBeneficiariesResponse,
|
|
10
10
|
RemittanceOnboardRequest,
|
|
11
11
|
RemittanceOnboardResponse,
|
|
12
|
+
RemittancePayerAdditionalFieldDto,
|
|
13
|
+
RemittancePayerBranchDto,
|
|
14
|
+
RemittancePayerDto,
|
|
12
15
|
RemittanceQuoteRequest,
|
|
13
16
|
RemittanceQuoteResponse,
|
|
14
17
|
RemittanceSecurityQuestionsResponse,
|
|
15
18
|
RemittanceSendPreviewRequest,
|
|
16
19
|
RemittanceSendPreviewResponse,
|
|
20
|
+
RemittanceStateDto,
|
|
17
21
|
RemittanceUpdateBeneficiaryRequest,
|
|
18
22
|
} from "@fiado/type-kit/bin/remittance";
|
|
19
23
|
import { IUnitellerConnectorApi } from "./interfaces/IUnitellerConnectorApi";
|
|
@@ -44,6 +48,34 @@ export default class UnitellerConnectorApi implements IUnitellerConnectorApi {
|
|
|
44
48
|
return await this.httpRequest.get(url);
|
|
45
49
|
}
|
|
46
50
|
|
|
51
|
+
async countryStates(countryISO: string): Promise<ApiGatewayResponse<RemittanceStateDto[]>> {
|
|
52
|
+
const url = `${this.baseUrl}/countries/${encodeURIComponent(countryISO)}/states`;
|
|
53
|
+
return await this.httpRequest.get(url);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async countryPayers(countryISO: string, currencyISO: string): Promise<ApiGatewayResponse<RemittancePayerDto[]>> {
|
|
57
|
+
const url = `${this.baseUrl}/countries/${encodeURIComponent(countryISO)}/payers`;
|
|
58
|
+
return await this.httpRequest.get(url, { currencyISO });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async payerBranches(params: { payerCode: string; receptionMethodName: string; countryISO: string; currencyISO: string; stateISO: string }): Promise<ApiGatewayResponse<RemittancePayerBranchDto[]>> {
|
|
62
|
+
const url = `${this.baseUrl}/payers/${encodeURIComponent(params.payerCode)}/branches`;
|
|
63
|
+
return await this.httpRequest.get(url, {
|
|
64
|
+
receptionMethodName: params.receptionMethodName,
|
|
65
|
+
countryISO: params.countryISO,
|
|
66
|
+
currencyISO: params.currencyISO,
|
|
67
|
+
stateISO: params.stateISO,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
async payerAdditionalFields(params: { payerCode: string; currencyISO: string; receptionMethodName: string }): Promise<ApiGatewayResponse<RemittancePayerAdditionalFieldDto[]>> {
|
|
72
|
+
const url = `${this.baseUrl}/payers/${encodeURIComponent(params.payerCode)}/fields`;
|
|
73
|
+
return await this.httpRequest.get(url, {
|
|
74
|
+
currencyISO: params.currencyISO,
|
|
75
|
+
receptionMethodName: params.receptionMethodName,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
47
79
|
async listBeneficiaries(directoryId: string, includeDeactivated?: boolean): Promise<ApiGatewayResponse<RemittanceListBeneficiariesResponse>> {
|
|
48
80
|
const url = `${this.baseUrl}/beneficiaries/list`;
|
|
49
81
|
return await this.httpRequest.post(url, { directoryId, includeDeactivated });
|
|
@@ -7,11 +7,15 @@ import {
|
|
|
7
7
|
RemittanceListBeneficiariesResponse,
|
|
8
8
|
RemittanceOnboardRequest,
|
|
9
9
|
RemittanceOnboardResponse,
|
|
10
|
+
RemittancePayerAdditionalFieldDto,
|
|
11
|
+
RemittancePayerBranchDto,
|
|
12
|
+
RemittancePayerDto,
|
|
10
13
|
RemittanceQuoteRequest,
|
|
11
14
|
RemittanceQuoteResponse,
|
|
12
15
|
RemittanceSecurityQuestionsResponse,
|
|
13
16
|
RemittanceSendPreviewRequest,
|
|
14
17
|
RemittanceSendPreviewResponse,
|
|
18
|
+
RemittanceStateDto,
|
|
15
19
|
RemittanceUpdateBeneficiaryRequest,
|
|
16
20
|
} from "@fiado/type-kit/bin/remittance";
|
|
17
21
|
|
|
@@ -32,6 +36,34 @@ export interface IUnitellerConnectorApi {
|
|
|
32
36
|
*/
|
|
33
37
|
getStandardCatalog(): Promise<ApiGatewayResponse<ConnectorCatalogItem[]>>;
|
|
34
38
|
|
|
39
|
+
// ─── Catálogo lazy para el wizard del frontend (F3.6) ──────────────────────
|
|
40
|
+
|
|
41
|
+
/** Estados / departamentos del país destino (ej. GT-GU, SV-SS). */
|
|
42
|
+
countryStates(countryISO: string): Promise<ApiGatewayResponse<RemittanceStateDto[]>>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Payers disponibles para el país+currency (deduplicado por payerSpecificCode),
|
|
46
|
+
* con `beneAccountRegex`, `isPayerBranchRequired` y `isAdditionalFieldRequired`
|
|
47
|
+
* para que el cliente decida los pasos del wizard.
|
|
48
|
+
*/
|
|
49
|
+
countryPayers(countryISO: string, currencyISO: string): Promise<ApiGatewayResponse<RemittancePayerDto[]>>;
|
|
50
|
+
|
|
51
|
+
/** Sucursales del payer (cuando isPayerBranchRequired = YES y receptionMethod = Cash Pickup). */
|
|
52
|
+
payerBranches(params: {
|
|
53
|
+
payerCode: string;
|
|
54
|
+
receptionMethodName: string;
|
|
55
|
+
countryISO: string;
|
|
56
|
+
currencyISO: string;
|
|
57
|
+
stateISO: string;
|
|
58
|
+
}): Promise<ApiGatewayResponse<RemittancePayerBranchDto[]>>;
|
|
59
|
+
|
|
60
|
+
/** Additional fields requeridos por el payer (cuando isAdditionalFieldRequired = YES). */
|
|
61
|
+
payerAdditionalFields(params: {
|
|
62
|
+
payerCode: string;
|
|
63
|
+
currencyISO: string;
|
|
64
|
+
receptionMethodName: string;
|
|
65
|
+
}): Promise<ApiGatewayResponse<RemittancePayerAdditionalFieldDto[]>>;
|
|
66
|
+
|
|
35
67
|
// ─── Beneficiarios (F4) ──────────────────────────────────────────────────────
|
|
36
68
|
|
|
37
69
|
listBeneficiaries(directoryId: string, includeDeactivated?: boolean): Promise<ApiGatewayResponse<RemittanceListBeneficiariesResponse>>;
|
package/tsconfig.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"esModuleInterop": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"forceConsistentCasingInFileNames": true,
|
|
8
|
-
"experimentalDecorators": true,
|
|
9
|
-
"emitDecoratorMetadata": true,
|
|
10
|
-
"outDir": "./bin",
|
|
11
|
-
"rootDir": "./src",
|
|
12
|
-
"moduleResolution": "node",
|
|
13
|
-
"declaration": true,
|
|
14
|
-
},
|
|
15
|
-
"include": [
|
|
16
|
-
"./src/**/*"
|
|
17
|
-
],
|
|
18
|
-
"exclude": [
|
|
19
|
-
"node_modules"
|
|
20
|
-
]
|
|
21
|
-
}
|