@fiado/api-invoker 4.59.0 → 4.61.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/.claude/settings.json +33 -33
- package/README.md +600 -600
- package/bin/container.config.js +4 -0
- package/bin/index.d.ts +2 -0
- package/bin/index.js +2 -0
- package/bin/modelias-connector/api/ModeliasConnectorApi.d.ts +11 -0
- package/bin/modelias-connector/api/ModeliasConnectorApi.js +30 -0
- package/bin/modelias-connector/api/interfaces/IModeliasConnectorApi.d.ts +9 -0
- package/bin/modelias-connector/api/interfaces/IModeliasConnectorApi.js +1 -0
- package/bin/modelias-connector/index.d.ts +2 -0
- package/bin/modelias-connector/index.js +2 -0
- package/bin/synergypay-connector/api/SynergyPayConnectorApi.d.ts +17 -0
- package/bin/synergypay-connector/api/SynergyPayConnectorApi.js +48 -0
- package/bin/synergypay-connector/api/interfaces/ISynergyPayConnectorApi.d.ts +45 -0
- package/bin/synergypay-connector/api/interfaces/ISynergyPayConnectorApi.js +1 -0
- package/bin/synergypay-connector/index.d.ts +2 -0
- package/bin/synergypay-connector/index.js +2 -0
- package/docs/TECH_DEBT.md +16 -16
- package/jest.config.cjs +12 -12
- package/package.json +56 -56
- package/src/account-beneficiary/AccountBeneficiaryApi.ts +18 -18
- package/src/account-beneficiary/index.ts +2 -2
- package/src/account-beneficiary/interfaces/IAccountBeneficiaryApi.ts +7 -7
- package/src/account-fiadoinc/AccountFiadoIncApi.ts +126 -126
- package/src/account-fiadoinc/index.ts +4 -4
- package/src/account-fiadoinc/interfaces/IAccountFiadoIncApi.ts +50 -50
- package/src/account-fiadoinc/queue/Publisher.ts +23 -23
- package/src/account-fiadoinc/queue/interfaces/IPublisher.ts +4 -4
- package/src/account-fiadosa/AccountFiadoSAApi.ts +38 -38
- package/src/account-fiadosa/index.ts +1 -1
- package/src/account-fiadosa/interfaces/IAccountFiadoSAApi.ts +16 -16
- package/src/account-pagoconfiado/AccountPagoConfiadoApi.ts +78 -78
- package/src/account-pagoconfiado/index.ts +2 -2
- package/src/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.ts +37 -37
- package/src/activity-business/ActivityApi.ts +36 -36
- package/src/activity-business/index.ts +5 -5
- package/src/activity-business/interfaces/IActivityApi.ts +13 -13
- package/src/activity-business/queue/ActivityPublisher.ts +30 -30
- package/src/activity-business/queue/IActivityPublisher.ts +4 -4
- package/src/address/AddressApi.ts +46 -46
- package/src/address/index.ts +3 -3
- package/src/address/interfaces/IAddressApi.ts +30 -30
- package/src/ai-engine-connector/AiEngineApi.ts +28 -28
- package/src/ai-engine-connector/index.ts +2 -2
- package/src/ai-engine-connector/interfaces/IAiEngineApi.ts +6 -6
- package/src/appselectondata/AppSelectionDataApi.ts +32 -32
- package/src/appselectondata/index.ts +2 -2
- package/src/appselectondata/interfaces/IAppSelectionDataApi.ts +17 -17
- package/src/authentication/AuthenticationApi.ts +56 -56
- package/src/authentication/index.ts +2 -2
- package/src/authentication/interfaces/IAuthenticationApi.ts +49 -49
- package/src/authentication/interfaces/LegacyApiResponse.ts +11 -11
- package/src/bankAccount/BankAccountApi.ts +34 -34
- package/src/bankAccount/index.ts +1 -1
- package/src/bankAccount/interfaces/IBankAccountApi.ts +6 -6
- package/src/bbvaRst/api/BBVARstApi.ts +16 -16
- package/src/bbvaRst/api/interfaces/IBBVARstApi.ts +4 -4
- package/src/bbvaRst/index.ts +1 -1
- package/src/benefits-marketplace/api/BenefitsMarketplaceApi.ts +59 -59
- package/src/benefits-marketplace/api/dtos/BenefitLeafDisplayResponse.ts +33 -33
- package/src/benefits-marketplace/api/interfaces/IBenefitsMarketplaceApi.ts +93 -93
- package/src/benefits-marketplace/index.ts +3 -3
- package/src/blacklist/BlackListApi.ts +19 -19
- package/src/blacklist/index.ts +2 -2
- package/src/blacklist/interfaces/IBlackListApi.ts +20 -20
- package/src/card/CardApi.ts +103 -103
- package/src/card/index.ts +3 -3
- package/src/card/interfaces/ICardApi.ts +32 -32
- package/src/card-business/index.ts +2 -2
- package/src/card-business/queue/CardBusinessPublisher.ts +23 -23
- package/src/card-business/queue/ICardBusinessPublisher.ts +10 -10
- package/src/centralPayments/CentralPaymentsConnectorApi.ts +317 -317
- package/src/centralPayments/index.ts +1 -1
- package/src/centralPayments/interfaces/ICentralPaymentsConnectorApi.ts +153 -153
- package/src/circuloCredito/api/CirculoCreditoApi.ts +21 -21
- package/src/circuloCredito/api/interfaces/ICirculoCreditoApi.ts +7 -7
- package/src/circuloCredito/index.ts +2 -2
- package/src/cnbv-business/CnbvApi.ts +31 -31
- package/src/cnbv-business/index.ts +4 -4
- package/src/cnbv-business/interfaces/ICnbvApi.ts +19 -19
- package/src/cnbv-connector/CnbvConnectorApi.ts +18 -18
- package/src/cnbv-connector/index.ts +1 -1
- package/src/cnbv-connector/interfaces/ICnbvConnectorApi.ts +6 -6
- package/src/cognitoBackofficeConnector/api/CognitoBackofficeConnectorApi.ts +281 -281
- package/src/cognitoBackofficeConnector/api/interfaces/ICognitoBackofficeConnectorApi.ts +216 -216
- package/src/cognitoBackofficeConnector/index.ts +2 -2
- package/src/cognitoConnector/CognitoConnectorApi.ts +112 -112
- package/src/cognitoConnector/CognitoConnectorV2.ts +87 -87
- package/src/cognitoConnector/index.ts +11 -11
- package/src/cognitoConnector/interfaces/ICognitoConnectorApi.ts +16 -16
- package/src/cognitoConnector/interfaces/ICognitoV2Api.ts +63 -63
- package/src/collector/CollectorApi.ts +96 -96
- package/src/collector/index.ts +2 -2
- package/src/collector/interfaces/ICollectorApi.ts +47 -47
- package/src/commission-business/CommissionBusinessApi.ts +19 -19
- package/src/commission-business/index.ts +3 -3
- package/src/commission-business/interfaces/ICommissionBusinessApi.ts +15 -15
- package/src/complaint/ComplaintApi.ts +33 -33
- package/src/complaint/index.ts +2 -2
- package/src/complaint/interfaces/IComplaintApi.ts +22 -22
- package/src/contactInformation/ContactInformationApi.ts +20 -20
- package/src/contactInformation/index.ts +2 -2
- package/src/contactInformation/interface/IContactInformationApi.ts +8 -8
- package/src/contacts-business/api/ContactsBusinessApi.ts +17 -17
- package/src/contacts-business/api/interfaces/IContactsBusinessApi.ts +15 -15
- package/src/contacts-business/index.ts +2 -2
- package/src/container.config.ts +332 -328
- package/src/contract-business/api/ContractBusinessApi.ts +37 -37
- package/src/contract-business/api/interfaces/IContractBusinessApi.ts +32 -32
- package/src/contract-business/index.ts +2 -2
- package/src/contract-generator/ContractGeneratorApi.ts +18 -18
- package/src/contract-generator/index.ts +2 -2
- package/src/contract-generator/interfaces/IContractGeneratorApi.ts +16 -16
- package/src/countries-business/CountriesBusinessApi.ts +26 -26
- package/src/countries-business/index.ts +2 -2
- package/src/countries-business/interfaces/ICountriesBusinessApi.ts +22 -22
- package/src/credit-engine/CreditEngineApi.ts +54 -54
- package/src/credit-engine/index.ts +17 -17
- package/src/credit-engine/interfaces/ICreditEngineApi.ts +46 -46
- package/src/credit-engine/queue/CreditCollectionPublisher.ts +24 -24
- package/src/credit-engine/queue/CreditDelinquencyPublisher.ts +24 -24
- package/src/credit-engine/queue/CreditIncomeDetectionPublisher.ts +24 -24
- package/src/credit-engine/queue/CreditLienCollectionPublisher.ts +24 -24
- package/src/credit-engine/queue/CreditNotificationPublisher.ts +24 -24
- package/src/credit-engine/queue/CreditOfferGenerationPublisher.ts +24 -24
- package/src/credit-engine/queue/CreditReconciliationPublisher.ts +24 -24
- package/src/credit-engine/queue/CreditScoringPublisher.ts +24 -24
- package/src/credit-engine/queue/CreditStatementPublisher.ts +24 -24
- package/src/credit-engine/queue/CreditTransferPublisher.ts +24 -24
- package/src/credit-engine/queue/interfaces/ICreditCollectionPublisher.ts +5 -5
- package/src/credit-engine/queue/interfaces/ICreditDelinquencyPublisher.ts +5 -5
- package/src/credit-engine/queue/interfaces/ICreditIncomeDetectionPublisher.ts +5 -5
- package/src/credit-engine/queue/interfaces/ICreditLienCollectionPublisher.ts +5 -5
- package/src/credit-engine/queue/interfaces/ICreditNotificationPublisher.ts +5 -5
- package/src/credit-engine/queue/interfaces/ICreditOfferGenerationPublisher.ts +5 -5
- package/src/credit-engine/queue/interfaces/ICreditReconciliationPublisher.ts +5 -5
- package/src/credit-engine/queue/interfaces/ICreditScoringPublisher.ts +5 -5
- package/src/credit-engine/queue/interfaces/ICreditStatementPublisher.ts +5 -5
- package/src/credit-engine/queue/interfaces/ICreditTransferPublisher.ts +5 -5
- package/src/credit-payment/CreditPaymentApi.ts +73 -73
- package/src/credit-payment/index.ts +2 -2
- package/src/credit-payment/interfaces/ICreditPaymentApi.ts +52 -52
- package/src/credit-statements/api/CreditStatementsApi.ts +25 -25
- package/src/credit-statements/api/interfaces/ICreditStatementsApi.ts +30 -30
- package/src/credit-statements/index.ts +2 -2
- package/src/device/DeviceApi.ts +32 -32
- package/src/device/index.ts +2 -2
- package/src/device/interfaces/IDeviceApi.ts +41 -41
- package/src/directories/DirectoriesApi.ts +68 -68
- package/src/directories/index.ts +3 -3
- package/src/directories/interfaces/IDirectoriesApi.ts +21 -21
- package/src/directory/DirectoryApi.ts +210 -210
- package/src/directory/index.ts +3 -3
- package/src/directory/interfaces/IDirectoryApi.ts +80 -80
- package/src/directorySetting/DirectorySettingApi.ts +42 -42
- package/src/directorySetting/index.ts +3 -3
- package/src/directorySetting/interfaces/IDirectorySettingApi.ts +56 -56
- package/src/disputes/DisputesApi.ts +66 -66
- package/src/disputes/index.ts +2 -2
- package/src/disputes/interfaces/IDisputesApi.ts +79 -79
- package/src/document-generator/DocumentGeneratorApi.ts +51 -51
- package/src/document-generator/index.ts +2 -2
- package/src/document-generator/interfaces/IDocumentGeneratorApi.ts +34 -34
- package/src/document-image-processor/DocumentImageProcessorApi.ts +22 -22
- package/src/document-image-processor/index.ts +1 -1
- package/src/document-image-processor/interfaces/IDocumentImageProcessorApi.ts +7 -7
- package/src/equality-connector/api/EqualityConnectorApi.ts +101 -101
- package/src/equality-connector/api/interfaces/IEqualityConnectorApi.ts +101 -101
- package/src/equality-connector/index.ts +2 -2
- package/src/estafeta/api/EstafetaApi.ts +67 -67
- package/src/estafeta/api/interfaces/IEstafetaApi.ts +28 -28
- package/src/estafeta/index.ts +1 -1
- package/src/event-history-business/EventHistoryApi.ts +108 -108
- package/src/event-history-business/index.ts +3 -3
- package/src/event-history-business/interfaces/IEventHistoryApi.ts +47 -47
- package/src/exchangeRates/ExchangeRatesApi.ts +27 -27
- package/src/exchangeRates/index.ts +1 -1
- package/src/exchangeRates/interfaces/IExchangeRatesApi.ts +8 -8
- package/src/fiadoMessages/api/FiadoMessagesApi.ts +20 -20
- package/src/fiadoMessages/api/interfaces/IFiadoMessagesApi.ts +2 -2
- package/src/fiadoMessages/index.ts +1 -1
- package/src/firebase-connector/FirebaseConnectorApi.ts +53 -53
- package/src/firebase-connector/index.ts +3 -3
- package/src/firebase-connector/interfaces/IFirebaseConnectorApi.ts +6 -6
- package/src/fraudPreventionEngine/api/FraudPreventionEngineApi.ts +22 -22
- package/src/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.ts +7 -7
- package/src/fraudPreventionEngine/index.ts +1 -1
- package/src/group/GroupApi.ts +74 -74
- package/src/group/index.ts +1 -1
- package/src/group/interfaces/IGroupApi.ts +47 -47
- package/src/identity/IdentityApi.ts +153 -153
- package/src/identity/index.ts +4 -4
- package/src/identity/interfaces/IIdentityApi.ts +66 -66
- package/src/identity/interfaces/LegacyApiResponse.ts +11 -11
- package/src/index.ts +89 -87
- package/src/legalDocument/api/LegalDocumentApi.ts +38 -38
- package/src/legalDocument/api/interfaces/ILegalDocumentApi.ts +7 -7
- package/src/legalDocument/index.ts +3 -3
- package/src/messages-business/api/MessagesBusinessApi.ts +50 -50
- package/src/messages-business/api/interfaces/IMessagesBusinessApi.ts +20 -20
- package/src/messages-business/index.ts +4 -4
- package/src/messages-business/queue/MessagesBusinessPublisher.ts +33 -33
- package/src/messages-business/queue/interfaces/IMessagesBusinessPublisher.ts +5 -5
- package/src/milestone-business/api/MilestoneBusinessApi.ts +56 -56
- package/src/milestone-business/api/interfaces/IMilestoneBusinessApi.ts +17 -17
- package/src/milestone-business/index.ts +2 -2
- package/src/modelias-connector/api/ModeliasConnectorApi.ts +18 -0
- package/src/modelias-connector/api/interfaces/IModeliasConnectorApi.ts +10 -0
- package/src/modelias-connector/index.ts +2 -0
- package/src/multicommServicePayment/api/MulticommServicePaymentApi.ts +119 -119
- package/src/multicommServicePayment/api/interfaces/IMulticommServicePaymentApi.ts +52 -52
- package/src/multicommServicePayment/index.ts +1 -1
- package/src/notificationMessages/index.ts +1 -1
- package/src/notificationMessages/queue/NotificationMessagePublisher.ts +42 -42
- package/src/notificationMessages/queue/interfaces/INotificationMessagesPublisher.ts +7 -7
- package/src/notificationWebsockets/index.ts +1 -1
- package/src/notificationWebsockets/queue/NotificationWSMessagePublisher.ts +29 -29
- package/src/notificationWebsockets/queue/interfaces/INotificationWSMessagesPublisher.ts +4 -4
- package/src/observations/ObservationsApi.ts +23 -23
- package/src/observations/index.ts +3 -3
- package/src/observations/interfaces/IObservationsApi.ts +9 -9
- package/src/onboarding/api/OnboardingApi.ts +29 -29
- package/src/onboarding/api/interfaces/IOnboardingApi.ts +14 -14
- package/src/onboarding/index.ts +1 -1
- package/src/onboarding-business/api/OnboardingBusinessApi.ts +220 -220
- package/src/onboarding-business/api/interfaces/IOnboardingBusinessApi.ts +14 -14
- package/src/onboarding-business/index.ts +1 -1
- package/src/order-collector-business/OrderCollectorApi.ts +20 -20
- package/src/order-collector-business/index.ts +3 -3
- package/src/order-collector-business/interfaces/IOrderCollectorApi.ts +9 -9
- package/src/p2pContact/api/P2pContactApi.ts +19 -19
- package/src/p2pContact/api/interfaces/IP2pContactApi.ts +4 -4
- package/src/p2pContact/index.ts +1 -1
- package/src/payroll-business/PayrollApi.ts +19 -19
- package/src/payroll-business/index.ts +1 -1
- package/src/payroll-business/interfaces/IPayrollApi.ts +18 -18
- package/src/people-business/api/PeopleBusinessApi.ts +32 -32
- package/src/people-business/api/interfaces/IPeopleBusinessApi.ts +7 -7
- package/src/people-business/index.ts +1 -1
- package/src/platform-error-events/index.ts +2 -2
- package/src/platform-error-events/queue/PlatformErrorEventsPublisher.ts +24 -24
- package/src/platform-error-events/queue/interfaces/IPlatformErrorEventsPublisher.ts +5 -5
- package/src/platformRbac/api/PlatformRbacBusinessApi.ts +98 -98
- package/src/platformRbac/api/interfaces/IPlatformRbacBusinessApi.ts +98 -98
- package/src/platformRbac/index.ts +4 -4
- package/src/platformRbac/resolver/ApiInvokerPermissionResolver.ts +59 -59
- package/src/platformRbac/resolver/apiInvokerResolverBindings.ts +23 -23
- package/src/pomelo/api/PomeloApi.ts +109 -109
- package/src/pomelo/api/interfaces/IPomeloApi.ts +29 -29
- package/src/pomelo/index.ts +1 -1
- package/src/pomeloProcessor/api/PomeloProcessorApi.ts +17 -17
- package/src/pomeloProcessor/api/interfaces/IPomeloProcessorApi.ts +2 -2
- package/src/pomeloProcessor/index.ts +2 -2
- package/src/pricelist-business/PriceListApi.ts +45 -45
- package/src/pricelist-business/index.ts +1 -1
- package/src/pricelist-business/interfaces/IPriceListApi.ts +16 -16
- package/src/product-catalog/ProductCatalogApi.ts +17 -17
- package/src/product-catalog/index.ts +1 -1
- package/src/product-catalog/interfaces/IProductCatalogApi.ts +6 -6
- package/src/product-payment/api/ProductPaymentApi.ts +25 -25
- package/src/product-payment/api/interfaces/IProductPaymentApi.ts +8 -8
- package/src/product-payment/index.ts +1 -1
- package/src/referral-business/ReferralBusinessApi.ts +42 -42
- package/src/referral-business/index.ts +1 -1
- package/src/referral-business/interfaces/IReferralBusinessApi.ts +45 -45
- package/src/remittance-business/api/RemittanceBusinessApi.ts +33 -33
- package/src/remittance-business/api/interfaces/IRemittanceBusinessApi.ts +16 -16
- package/src/remittance-business/index.ts +2 -2
- package/src/report-processor-business/api/IReportProcessorBusinessApi.ts +4 -4
- package/src/report-processor-business/api/ReportProcessorBusinessApi.ts +17 -17
- package/src/report-processor-business/index.ts +5 -5
- package/src/riskProfile/api/RiskProfileApi.ts +88 -88
- package/src/riskProfile/api/TransactionAlertApi.ts +49 -49
- package/src/riskProfile/api/interfaces/IRiskProfileApi.ts +69 -69
- package/src/riskProfile/api/interfaces/ITransactionAlertApi.ts +70 -70
- package/src/riskProfile/index.ts +7 -7
- package/src/riskProfile/queue/TransactionAlarmPublisher.ts +25 -25
- package/src/riskProfile/queue/interfaces/ITransactionAlarmPublisher.ts +4 -4
- package/src/service-business/ServiceApi.ts +78 -78
- package/src/service-business/index.ts +2 -2
- package/src/service-business/interfaces/IServiceApi.ts +73 -73
- package/src/sessionActivity/index.ts +2 -2
- package/src/sessionActivity/queue/SessionActivityPublisher.ts +23 -23
- package/src/sessionActivity/queue/interfaces/ISessionActivityPublisher.ts +4 -4
- package/src/sns-ses-connector/api/SnsSesConnectorApi.ts +18 -18
- package/src/sns-ses-connector/api/interfaces/ISnsSesConnectorApi.ts +7 -7
- package/src/sns-ses-connector/index.ts +2 -2
- package/src/stp-business/api/STPBusinessApi.ts +37 -37
- package/src/stp-business/api/interfaces/ISTPBusinessApi.ts +17 -17
- package/src/stp-business/index.ts +1 -1
- package/src/stpAccount/api/STPAccountApi.ts +111 -111
- package/src/stpAccount/api/interfaces/ISTPAccountApi.ts +7 -7
- package/src/stpAccount/index.ts +1 -1
- package/src/stpServicePayment/api/StpServicePaymentApi.ts +119 -119
- package/src/stpServicePayment/api/interfaces/IStpServicePaymentApi.ts +52 -52
- package/src/stpServicePayment/index.ts +1 -1
- package/src/stpSpei/api/StpSpeiApi.ts +32 -32
- package/src/stpSpei/api/interfaces/IStpSpeiApi.ts +6 -6
- package/src/stpSpei/index.ts +1 -1
- package/src/synergypay-connector/api/SynergyPayConnectorApi.ts +52 -0
- package/src/synergypay-connector/api/interfaces/ISynergyPayConnectorApi.ts +61 -0
- package/src/synergypay-connector/index.ts +2 -0
- package/src/teams-connector/index.ts +2 -2
- package/src/teams-connector/queue/TeamsNotificationPublisher.ts +24 -24
- package/src/teams-connector/queue/interfaces/ITeamsNotificationPublisher.ts +5 -5
- package/src/tern/api/TernApi.ts +147 -147
- package/src/tern/api/interfaces/ITernApi.ts +54 -54
- package/src/tern/index.ts +1 -1
- package/src/totp-security/api/TotpSecurityApi.ts +38 -38
- package/src/totp-security/api/interfaces/ITotpSecurityApi.ts +16 -16
- package/src/totp-security/index.ts +2 -2
- package/src/transaction/api/TransactionApi.ts +177 -177
- package/src/transaction/api/interfaces/ITransactionApi.ts +96 -96
- package/src/transaction/index.ts +5 -5
- package/src/transaction/queue/TransactionPublisher.ts +25 -25
- package/src/transaction/queue/interfaces/ITransactionPublisher.ts +4 -4
- package/src/transactionProcessor/api/TransactionProcessorApi.ts +104 -104
- package/src/transactionProcessor/api/interfaces/ITransactionProcessorApi.ts +86 -86
- package/src/transactionProcessor/index.ts +1 -1
- package/src/twilio-connector/api/TwilioConnectorApi.ts +18 -18
- package/src/twilio-connector/api/interfaces/ITwilioConnectorApi.ts +12 -12
- package/src/twilio-connector/index.ts +2 -2
- package/src/uniteller-connector/api/UnitellerConnectorApi.ts +311 -311
- package/src/uniteller-connector/api/interfaces/IUnitellerConnectorApi.ts +231 -231
- package/src/uniteller-connector/index.ts +2 -2
- package/src/utils/InvokerUtils.ts +18 -18
- package/src/wallet-funding-rules/api/WalletFundingRulesApi.ts +37 -37
- package/src/wallet-funding-rules/api/interfaces/IWalletFundingRulesApi.ts +36 -36
- package/src/wallet-funding-rules/index.ts +2 -2
- package/src/walletFundingSettlement/api/WalletFundingSettlementApi.ts +22 -22
- package/src/walletFundingSettlement/api/interfaces/IWalletFundingSettlementApi.ts +31 -31
- package/src/walletFundingSettlement/index.ts +2 -2
- package/src/zendesk/ZendeskApi.ts +24 -24
- package/src/zendesk/index.ts +3 -3
- package/src/zendesk/interfaces/IZendeskApi.ts +10 -10
|
@@ -1,231 +1,231 @@
|
|
|
1
|
-
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
2
|
-
import { ConnectorCatalogItem } from "@fiado/type-kit/bin/benefitCenter/index.js";
|
|
3
|
-
import {
|
|
4
|
-
CohortCountRequest,
|
|
5
|
-
CohortCountResponse,
|
|
6
|
-
CohortUserMatchRequest,
|
|
7
|
-
CohortUserMatchResponse,
|
|
8
|
-
PricingMetricsRequest,
|
|
9
|
-
PricingMetricsResponse,
|
|
10
|
-
PromotionReachRequest,
|
|
11
|
-
PromotionReachResponse,
|
|
12
|
-
SegmentMetricsRequest,
|
|
13
|
-
SegmentMetricsResponse,
|
|
14
|
-
WholesaleRateRequest,
|
|
15
|
-
WholesaleRateResponse,
|
|
16
|
-
RemittanceCorridor,
|
|
17
|
-
PricingScheduleResponse,
|
|
18
|
-
KycUserDetail,
|
|
19
|
-
KycUsersListResponse,
|
|
20
|
-
KycOnboardingAttemptsResponse,
|
|
21
|
-
RefreshUserProfileResponse,
|
|
22
|
-
RegisterOnboardingBlockRequest,
|
|
23
|
-
RegisterOnboardingBlockResponse,
|
|
24
|
-
RemittanceAddBeneficiaryRequest,
|
|
25
|
-
RemittanceBackofficeDashboardSummary,
|
|
26
|
-
RemittanceBackofficeStats,
|
|
27
|
-
RemittanceBackofficeStatsPeriod,
|
|
28
|
-
RemittanceBackofficeTransaction,
|
|
29
|
-
RemittanceBackofficeTxListResponse,
|
|
30
|
-
RemittanceBackofficeUserDetail,
|
|
31
|
-
RemittanceBackofficeUserListResponse,
|
|
32
|
-
RemittanceBeneficiary,
|
|
33
|
-
RemittanceCancelRequest,
|
|
34
|
-
RemittanceCancelResponse,
|
|
35
|
-
RemittanceHomeResponse,
|
|
36
|
-
RemittanceListBeneficiariesResponse,
|
|
37
|
-
RemittanceOnboardRequest,
|
|
38
|
-
RemittanceOnboardResponse,
|
|
39
|
-
RemittancePayRequest,
|
|
40
|
-
RemittancePayResponse,
|
|
41
|
-
RemittancePayerAdditionalFieldDto,
|
|
42
|
-
RemittancePayerBranchDto,
|
|
43
|
-
RemittancePayerDto,
|
|
44
|
-
RemittanceQuoteRequest,
|
|
45
|
-
RemittanceQuoteResponse,
|
|
46
|
-
RemittanceSecurityQuestionsResponse,
|
|
47
|
-
RemittanceSendPreviewRequest,
|
|
48
|
-
RemittanceSendPreviewResponse,
|
|
49
|
-
RemittanceSmsRequest,
|
|
50
|
-
RemittanceStateDto,
|
|
51
|
-
RemittanceTransactionDetail,
|
|
52
|
-
RemittanceTransactionReceipt,
|
|
53
|
-
RemittanceTransactionsListRequest,
|
|
54
|
-
RemittanceTransactionsListResponse,
|
|
55
|
-
RemittanceUpdateBeneficiaryRequest,
|
|
56
|
-
RemittanceUserLimits,
|
|
57
|
-
RemittanceUserLimitsBatchResponse,
|
|
58
|
-
} from "@fiado/type-kit/bin/remittance/index.js";
|
|
59
|
-
|
|
60
|
-
export interface IUnitellerConnectorApi {
|
|
61
|
-
/** Estado del módulo remesas para un directoryId. */
|
|
62
|
-
getHome(directoryId: string): Promise<ApiGatewayResponse<RemittanceHomeResponse>>;
|
|
63
|
-
|
|
64
|
-
/** Lista de preguntas de seguridad UNIR (compliance — no consumido por mobile bajo DP-05). */
|
|
65
|
-
getSecurityQuestions(): Promise<ApiGatewayResponse<RemittanceSecurityQuestionsResponse>>;
|
|
66
|
-
|
|
67
|
-
/** Activa el servicio de remesas (silent signup en UNIR). */
|
|
68
|
-
onboard(request: RemittanceOnboardRequest): Promise<ApiGatewayResponse<RemittanceOnboardResponse>>;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Catálogo en formato estándar ConnectorCatalogItem[] que el
|
|
72
|
-
* CatalogTreeBuilder de benefits-marketplace consume para armar el árbol
|
|
73
|
-
* del benefit Remittance (D-F3.7).
|
|
74
|
-
*/
|
|
75
|
-
getStandardCatalog(): Promise<ApiGatewayResponse<ConnectorCatalogItem[]>>;
|
|
76
|
-
|
|
77
|
-
// ─── Catálogo lazy para el wizard del frontend (F3.6) ──────────────────────
|
|
78
|
-
|
|
79
|
-
/** Estados / departamentos del país destino (ej. GT-GU, SV-SS). */
|
|
80
|
-
countryStates(countryISO: string): Promise<ApiGatewayResponse<RemittanceStateDto[]>>;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Payers disponibles para el país+currency (deduplicado por payerSpecificCode),
|
|
84
|
-
* con `beneAccountRegex`, `isPayerBranchRequired` y `isAdditionalFieldRequired`
|
|
85
|
-
* para que el cliente decida los pasos del wizard.
|
|
86
|
-
*/
|
|
87
|
-
countryPayers(countryISO: string, currencyISO: string): Promise<ApiGatewayResponse<RemittancePayerDto[]>>;
|
|
88
|
-
|
|
89
|
-
/** Sucursales del payer (cuando isPayerBranchRequired = YES y receptionMethod = Cash Pickup). */
|
|
90
|
-
payerBranches(params: {
|
|
91
|
-
payerCode: string;
|
|
92
|
-
receptionMethodName: string;
|
|
93
|
-
countryISO: string;
|
|
94
|
-
currencyISO: string;
|
|
95
|
-
stateISO: string;
|
|
96
|
-
}): Promise<ApiGatewayResponse<RemittancePayerBranchDto[]>>;
|
|
97
|
-
|
|
98
|
-
/** Additional fields requeridos por el payer (cuando isAdditionalFieldRequired = YES). */
|
|
99
|
-
payerAdditionalFields(params: {
|
|
100
|
-
payerCode: string;
|
|
101
|
-
currencyISO: string;
|
|
102
|
-
receptionMethodName: string;
|
|
103
|
-
}): Promise<ApiGatewayResponse<RemittancePayerAdditionalFieldDto[]>>;
|
|
104
|
-
|
|
105
|
-
// ─── Beneficiarios (F4) ──────────────────────────────────────────────────────
|
|
106
|
-
|
|
107
|
-
listBeneficiaries(directoryId: string, includeDeactivated?: boolean): Promise<ApiGatewayResponse<RemittanceListBeneficiariesResponse>>;
|
|
108
|
-
getBeneficiary(directoryId: string, beneficiaryId: string): Promise<ApiGatewayResponse<RemittanceBeneficiary>>;
|
|
109
|
-
addBeneficiary(directoryId: string, request: RemittanceAddBeneficiaryRequest): Promise<ApiGatewayResponse<RemittanceBeneficiary>>;
|
|
110
|
-
updateBeneficiary(directoryId: string, beneficiaryId: string, request: RemittanceUpdateBeneficiaryRequest): Promise<ApiGatewayResponse<RemittanceBeneficiary>>;
|
|
111
|
-
deactivateBeneficiary(directoryId: string, beneficiaryId: string): Promise<ApiGatewayResponse<{ deactivated: boolean; beneficiaryId: string }>>;
|
|
112
|
-
/** Schedule de tramos de service fee + promo automática por corredor (F2 app; passthrough a remittance-business). POST /pricing/schedule. */
|
|
113
|
-
pricingSchedule(directoryId: string, corridor: RemittanceCorridor): Promise<ApiGatewayResponse<PricingScheduleResponse>>;
|
|
114
|
-
|
|
115
|
-
// ─── Quote + Preview (F5) ────────────────────────────────────────────────────
|
|
116
|
-
|
|
117
|
-
/** Cotización rápida (debounce). Read-only. */
|
|
118
|
-
quote(directoryId: string, request: RemittanceQuoteRequest): Promise<ApiGatewayResponse<RemittanceQuoteResponse>>;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Preview formal con previewRef. El previewRef se reusa en F6 al confirmar.
|
|
122
|
-
* Cache 10 min en RemittanceCache_GT (D-F5.4).
|
|
123
|
-
*/
|
|
124
|
-
sendPreview(directoryId: string, request: RemittanceSendPreviewRequest): Promise<ApiGatewayResponse<RemittanceSendPreviewResponse>>;
|
|
125
|
-
|
|
126
|
-
// ─── Send confirm (F6) ────────────────────────────────────────────────────────
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Confirma la remesa previamente previsualizada (UNIR SendMoneyConfirm) y persiste
|
|
130
|
-
* la tx en el connector. Lo invoca el UniTellerConnectorPaymentPublisher de
|
|
131
|
-
* benefits-marketplace cuando el procesador delega el pago.
|
|
132
|
-
*/
|
|
133
|
-
pay(directoryId: string, request: RemittancePayRequest): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Lookup de una tx por el transactionNumber del procesador (consult/reconciliación).
|
|
137
|
-
* Lo consume el consult() de benefits-marketplace para el cron de timeout.
|
|
138
|
-
*/
|
|
139
|
-
getTransactionByMarketplaceRef(ref: string): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Detalle completo de una tx por el transactionNumber del procesador.
|
|
143
|
-
* Requiere directoryId para validar ownership y reconciliar status contra UNIR.
|
|
144
|
-
*/
|
|
145
|
-
getTransactionDetailByMarketplaceRef(
|
|
146
|
-
directoryId: string,
|
|
147
|
-
ref: string,
|
|
148
|
-
): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Recibo HTML-APP de una tx resolviendo el txNumber desde el transactionNumber
|
|
152
|
-
* del procesador (marketplace ref). La app pide el recibo con 1 llamada usando
|
|
153
|
-
* el transactionNumber que ya recibe del authorize. 404 REMITTANCE_TX_NOT_READY
|
|
154
|
-
* si la row de remesa aún no existe (pago diferido/timeout).
|
|
155
|
-
*/
|
|
156
|
-
getTransactionReceiptByMarketplaceRef(
|
|
157
|
-
directoryId: string,
|
|
158
|
-
ref: string,
|
|
159
|
-
): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>>;
|
|
160
|
-
|
|
161
|
-
// ─── Historial + Cancel + Recibo + SMS (F7) ─────────────────────────────────
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Historial paginado del usuario (lee RemittanceTransactions_GT, D-F7.1).
|
|
165
|
-
* Cursor estándar Fiado: `filters.index` opaco; el siguiente viene en
|
|
166
|
-
* `response.index`.
|
|
167
|
-
*/
|
|
168
|
-
listTransactions(directoryId: string, filters?: RemittanceTransactionsListRequest): Promise<ApiGatewayResponse<RemittanceTransactionsListResponse>>;
|
|
169
|
-
|
|
170
|
-
/** Detalle de una tx (status reconciliado contra UNIR, D-F7.2). */
|
|
171
|
-
getTransaction(directoryId: string, txNumber: string): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
172
|
-
|
|
173
|
-
/** Recibo HTML-APP de una tx (UNIR TransactionReceipt). */
|
|
174
|
-
getTransactionReceipt(directoryId: string, txNumber: string): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>>;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Cancela una tx (UNIR v2/CancelTransaction + status local CANCELLED).
|
|
178
|
-
* NO reintegra el wallet (procesador diferido — TODO F7).
|
|
179
|
-
*/
|
|
180
|
-
cancelTransaction(directoryId: string, txNumber: string, request: RemittanceCancelRequest): Promise<ApiGatewayResponse<RemittanceCancelResponse>>;
|
|
181
|
-
|
|
182
|
-
/** SMS de UNIR al beneficiario de la tx (max 3 por tx). ⚠ gated por smoke. */
|
|
183
|
-
smsTransactionAlert(directoryId: string, txNumber: string, request: RemittanceSmsRequest): Promise<ApiGatewayResponse<{ sent: boolean }>>;
|
|
184
|
-
|
|
185
|
-
// ─── Backoffice (F9, read-only — D2: el backoffice frontend entra por benefits) ─
|
|
186
|
-
|
|
187
|
-
backofficeDashboard(): Promise<ApiGatewayResponse<RemittanceBackofficeDashboardSummary>>;
|
|
188
|
-
/** Filtros: status (default ACTIVE en el connector) | email (lookup exacto); pageSize 1-100; index cursor opaco. */
|
|
189
|
-
backofficeListUsers(filters?: { status?: string; email?: string; pageSize?: number; index?: string }): Promise<ApiGatewayResponse<RemittanceBackofficeUserListResponse>>;
|
|
190
|
-
backofficeUserDetail(directoryId: string): Promise<ApiGatewayResponse<RemittanceBackofficeUserDetail>>;
|
|
191
|
-
/** Requiere al menos uno de txNumber | directoryId | status (el connector responde 400 si no). */
|
|
192
|
-
backofficeListTransactions(filters?: { txNumber?: string; directoryId?: string; status?: string; countryISO?: string; from?: string; to?: string; pageSize?: number; index?: string }): Promise<ApiGatewayResponse<RemittanceBackofficeTxListResponse>>;
|
|
193
|
-
backofficeTransactionDetail(txNumber: string): Promise<ApiGatewayResponse<RemittanceBackofficeTransaction>>;
|
|
194
|
-
backofficeStats(period: RemittanceBackofficeStatsPeriod): Promise<ApiGatewayResponse<RemittanceBackofficeStats>>;
|
|
195
|
-
/** Límites por usuario (Operación · read-only): ventanas (límite del provider + usage) + nivel + discrepancia. */
|
|
196
|
-
backofficeUserLimits(directoryId: string): Promise<ApiGatewayResponse<RemittanceUserLimits>>;
|
|
197
|
-
/** Batch de límites para la tabla de Límites (CSV de directoryIds). */
|
|
198
|
-
backofficeUserLimitsBatch(directoryIds: string[]): Promise<ApiGatewayResponse<RemittanceUserLimitsBatchResponse>>;
|
|
199
|
-
|
|
200
|
-
// ─── Aceptación (KYC monitoring, SPEC_06 — read-only + refresh on-demand) ──────
|
|
201
|
-
/** Lista de usuarios KYC. Filtros: status (default PENDING en el connector) | search (email o directoryId); pageSize; index cursor opaco. */
|
|
202
|
-
kycListUsers(filters?: { status?: string; search?: string; pageSize?: number; index?: string }): Promise<ApiGatewayResponse<KycUsersListResponse>>;
|
|
203
|
-
/** Detalle 360 KYC (identidad + snapshot UNIR + último rechazo). 404 si no existe. */
|
|
204
|
-
kycUserDetail(directoryId: string): Promise<ApiGatewayResponse<KycUserDetail>>;
|
|
205
|
-
/** Refresca el perfil del usuario desde UNIR (EP-34). Rate-limited 5/min por directoryId en el connector. */
|
|
206
|
-
kycRefreshUser(directoryId: string): Promise<ApiGatewayResponse<RefreshUserProfileResponse>>;
|
|
207
|
-
/** #6 — Historial de intentos de onboarding (request/response del SignUp, verbatim) de un usuario. */
|
|
208
|
-
kycOnboardingAttempts(directoryId: string): Promise<ApiGatewayResponse<KycOnboardingAttemptsResponse>>;
|
|
209
|
-
/** #3 — Registra un onboarding bloqueado por dirección (deja el usuario PENDING + rejection en el connector). Lo consume benefits. */
|
|
210
|
-
registerOnboardingBlock(request: RegisterOnboardingBlockRequest): Promise<ApiGatewayResponse<RegisterOnboardingBlockResponse>>;
|
|
211
|
-
|
|
212
|
-
// ─── Cohorts (Dashboard Ops · B2 — puente de recálculo Opción A) ────────────────
|
|
213
|
-
/** Cuenta usuarios que cumplen las condiciones (AND) + universo total. Lo consume remittance-business al recalcular un cohort. */
|
|
214
|
-
cohortCount(request: CohortCountRequest): Promise<ApiGatewayResponse<CohortCountResponse>>;
|
|
215
|
-
/** Determina si un usuario puntual matchea las condiciones (AND) de un cohort. Lo consume remittance-business. */
|
|
216
|
-
cohortUserMatch(request: CohortUserMatchRequest): Promise<ApiGatewayResponse<CohortUserMatchResponse>>;
|
|
217
|
-
|
|
218
|
-
// ─── Segmentos (Dashboard Ops — puente de métricas Opción A) ────────────────────
|
|
219
|
-
/** {clientCount, volMonthUSD} para el subconjunto de RemittanceUsers del segmento (mes calendario, sin canceladas). */
|
|
220
|
-
segmentMetrics(request: SegmentMetricsRequest): Promise<ApiGatewayResponse<SegmentMetricsResponse>>;
|
|
221
|
-
|
|
222
|
-
// ─── Precio Base (Dashboard Ops · Variables Operativas — puente Fase A) ─────────
|
|
223
|
-
/** Wholesale vivo (ExternalQuickQuotes) del corredor — Simulador de Precio Base. */
|
|
224
|
-
wholesaleRate(request: WholesaleRateRequest): Promise<ApiGatewayResponse<WholesaleRateResponse>>;
|
|
225
|
-
/** {clientCount, volMonthUSD} del subconjunto de directoryIds FILTRADO por corredor (countryISO). */
|
|
226
|
-
pricingMetrics(request: PricingMetricsRequest): Promise<ApiGatewayResponse<PricingMetricsResponse>>;
|
|
227
|
-
|
|
228
|
-
// ─── Promociones (Dashboard Ops · Variables Operativas — puente Fase A) ─────────
|
|
229
|
-
/** Alcance {reach, total} de una audiencia: directoryIds × conditions × corridor (dimensión ausente = no filtra). */
|
|
230
|
-
promotionReach(request: PromotionReachRequest): Promise<ApiGatewayResponse<PromotionReachResponse>>;
|
|
231
|
-
}
|
|
1
|
+
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
2
|
+
import { ConnectorCatalogItem } from "@fiado/type-kit/bin/benefitCenter/index.js";
|
|
3
|
+
import {
|
|
4
|
+
CohortCountRequest,
|
|
5
|
+
CohortCountResponse,
|
|
6
|
+
CohortUserMatchRequest,
|
|
7
|
+
CohortUserMatchResponse,
|
|
8
|
+
PricingMetricsRequest,
|
|
9
|
+
PricingMetricsResponse,
|
|
10
|
+
PromotionReachRequest,
|
|
11
|
+
PromotionReachResponse,
|
|
12
|
+
SegmentMetricsRequest,
|
|
13
|
+
SegmentMetricsResponse,
|
|
14
|
+
WholesaleRateRequest,
|
|
15
|
+
WholesaleRateResponse,
|
|
16
|
+
RemittanceCorridor,
|
|
17
|
+
PricingScheduleResponse,
|
|
18
|
+
KycUserDetail,
|
|
19
|
+
KycUsersListResponse,
|
|
20
|
+
KycOnboardingAttemptsResponse,
|
|
21
|
+
RefreshUserProfileResponse,
|
|
22
|
+
RegisterOnboardingBlockRequest,
|
|
23
|
+
RegisterOnboardingBlockResponse,
|
|
24
|
+
RemittanceAddBeneficiaryRequest,
|
|
25
|
+
RemittanceBackofficeDashboardSummary,
|
|
26
|
+
RemittanceBackofficeStats,
|
|
27
|
+
RemittanceBackofficeStatsPeriod,
|
|
28
|
+
RemittanceBackofficeTransaction,
|
|
29
|
+
RemittanceBackofficeTxListResponse,
|
|
30
|
+
RemittanceBackofficeUserDetail,
|
|
31
|
+
RemittanceBackofficeUserListResponse,
|
|
32
|
+
RemittanceBeneficiary,
|
|
33
|
+
RemittanceCancelRequest,
|
|
34
|
+
RemittanceCancelResponse,
|
|
35
|
+
RemittanceHomeResponse,
|
|
36
|
+
RemittanceListBeneficiariesResponse,
|
|
37
|
+
RemittanceOnboardRequest,
|
|
38
|
+
RemittanceOnboardResponse,
|
|
39
|
+
RemittancePayRequest,
|
|
40
|
+
RemittancePayResponse,
|
|
41
|
+
RemittancePayerAdditionalFieldDto,
|
|
42
|
+
RemittancePayerBranchDto,
|
|
43
|
+
RemittancePayerDto,
|
|
44
|
+
RemittanceQuoteRequest,
|
|
45
|
+
RemittanceQuoteResponse,
|
|
46
|
+
RemittanceSecurityQuestionsResponse,
|
|
47
|
+
RemittanceSendPreviewRequest,
|
|
48
|
+
RemittanceSendPreviewResponse,
|
|
49
|
+
RemittanceSmsRequest,
|
|
50
|
+
RemittanceStateDto,
|
|
51
|
+
RemittanceTransactionDetail,
|
|
52
|
+
RemittanceTransactionReceipt,
|
|
53
|
+
RemittanceTransactionsListRequest,
|
|
54
|
+
RemittanceTransactionsListResponse,
|
|
55
|
+
RemittanceUpdateBeneficiaryRequest,
|
|
56
|
+
RemittanceUserLimits,
|
|
57
|
+
RemittanceUserLimitsBatchResponse,
|
|
58
|
+
} from "@fiado/type-kit/bin/remittance/index.js";
|
|
59
|
+
|
|
60
|
+
export interface IUnitellerConnectorApi {
|
|
61
|
+
/** Estado del módulo remesas para un directoryId. */
|
|
62
|
+
getHome(directoryId: string): Promise<ApiGatewayResponse<RemittanceHomeResponse>>;
|
|
63
|
+
|
|
64
|
+
/** Lista de preguntas de seguridad UNIR (compliance — no consumido por mobile bajo DP-05). */
|
|
65
|
+
getSecurityQuestions(): Promise<ApiGatewayResponse<RemittanceSecurityQuestionsResponse>>;
|
|
66
|
+
|
|
67
|
+
/** Activa el servicio de remesas (silent signup en UNIR). */
|
|
68
|
+
onboard(request: RemittanceOnboardRequest): Promise<ApiGatewayResponse<RemittanceOnboardResponse>>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Catálogo en formato estándar ConnectorCatalogItem[] que el
|
|
72
|
+
* CatalogTreeBuilder de benefits-marketplace consume para armar el árbol
|
|
73
|
+
* del benefit Remittance (D-F3.7).
|
|
74
|
+
*/
|
|
75
|
+
getStandardCatalog(): Promise<ApiGatewayResponse<ConnectorCatalogItem[]>>;
|
|
76
|
+
|
|
77
|
+
// ─── Catálogo lazy para el wizard del frontend (F3.6) ──────────────────────
|
|
78
|
+
|
|
79
|
+
/** Estados / departamentos del país destino (ej. GT-GU, SV-SS). */
|
|
80
|
+
countryStates(countryISO: string): Promise<ApiGatewayResponse<RemittanceStateDto[]>>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Payers disponibles para el país+currency (deduplicado por payerSpecificCode),
|
|
84
|
+
* con `beneAccountRegex`, `isPayerBranchRequired` y `isAdditionalFieldRequired`
|
|
85
|
+
* para que el cliente decida los pasos del wizard.
|
|
86
|
+
*/
|
|
87
|
+
countryPayers(countryISO: string, currencyISO: string): Promise<ApiGatewayResponse<RemittancePayerDto[]>>;
|
|
88
|
+
|
|
89
|
+
/** Sucursales del payer (cuando isPayerBranchRequired = YES y receptionMethod = Cash Pickup). */
|
|
90
|
+
payerBranches(params: {
|
|
91
|
+
payerCode: string;
|
|
92
|
+
receptionMethodName: string;
|
|
93
|
+
countryISO: string;
|
|
94
|
+
currencyISO: string;
|
|
95
|
+
stateISO: string;
|
|
96
|
+
}): Promise<ApiGatewayResponse<RemittancePayerBranchDto[]>>;
|
|
97
|
+
|
|
98
|
+
/** Additional fields requeridos por el payer (cuando isAdditionalFieldRequired = YES). */
|
|
99
|
+
payerAdditionalFields(params: {
|
|
100
|
+
payerCode: string;
|
|
101
|
+
currencyISO: string;
|
|
102
|
+
receptionMethodName: string;
|
|
103
|
+
}): Promise<ApiGatewayResponse<RemittancePayerAdditionalFieldDto[]>>;
|
|
104
|
+
|
|
105
|
+
// ─── Beneficiarios (F4) ──────────────────────────────────────────────────────
|
|
106
|
+
|
|
107
|
+
listBeneficiaries(directoryId: string, includeDeactivated?: boolean): Promise<ApiGatewayResponse<RemittanceListBeneficiariesResponse>>;
|
|
108
|
+
getBeneficiary(directoryId: string, beneficiaryId: string): Promise<ApiGatewayResponse<RemittanceBeneficiary>>;
|
|
109
|
+
addBeneficiary(directoryId: string, request: RemittanceAddBeneficiaryRequest): Promise<ApiGatewayResponse<RemittanceBeneficiary>>;
|
|
110
|
+
updateBeneficiary(directoryId: string, beneficiaryId: string, request: RemittanceUpdateBeneficiaryRequest): Promise<ApiGatewayResponse<RemittanceBeneficiary>>;
|
|
111
|
+
deactivateBeneficiary(directoryId: string, beneficiaryId: string): Promise<ApiGatewayResponse<{ deactivated: boolean; beneficiaryId: string }>>;
|
|
112
|
+
/** Schedule de tramos de service fee + promo automática por corredor (F2 app; passthrough a remittance-business). POST /pricing/schedule. */
|
|
113
|
+
pricingSchedule(directoryId: string, corridor: RemittanceCorridor): Promise<ApiGatewayResponse<PricingScheduleResponse>>;
|
|
114
|
+
|
|
115
|
+
// ─── Quote + Preview (F5) ────────────────────────────────────────────────────
|
|
116
|
+
|
|
117
|
+
/** Cotización rápida (debounce). Read-only. */
|
|
118
|
+
quote(directoryId: string, request: RemittanceQuoteRequest): Promise<ApiGatewayResponse<RemittanceQuoteResponse>>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Preview formal con previewRef. El previewRef se reusa en F6 al confirmar.
|
|
122
|
+
* Cache 10 min en RemittanceCache_GT (D-F5.4).
|
|
123
|
+
*/
|
|
124
|
+
sendPreview(directoryId: string, request: RemittanceSendPreviewRequest): Promise<ApiGatewayResponse<RemittanceSendPreviewResponse>>;
|
|
125
|
+
|
|
126
|
+
// ─── Send confirm (F6) ────────────────────────────────────────────────────────
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Confirma la remesa previamente previsualizada (UNIR SendMoneyConfirm) y persiste
|
|
130
|
+
* la tx en el connector. Lo invoca el UniTellerConnectorPaymentPublisher de
|
|
131
|
+
* benefits-marketplace cuando el procesador delega el pago.
|
|
132
|
+
*/
|
|
133
|
+
pay(directoryId: string, request: RemittancePayRequest): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Lookup de una tx por el transactionNumber del procesador (consult/reconciliación).
|
|
137
|
+
* Lo consume el consult() de benefits-marketplace para el cron de timeout.
|
|
138
|
+
*/
|
|
139
|
+
getTransactionByMarketplaceRef(ref: string): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Detalle completo de una tx por el transactionNumber del procesador.
|
|
143
|
+
* Requiere directoryId para validar ownership y reconciliar status contra UNIR.
|
|
144
|
+
*/
|
|
145
|
+
getTransactionDetailByMarketplaceRef(
|
|
146
|
+
directoryId: string,
|
|
147
|
+
ref: string,
|
|
148
|
+
): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Recibo HTML-APP de una tx resolviendo el txNumber desde el transactionNumber
|
|
152
|
+
* del procesador (marketplace ref). La app pide el recibo con 1 llamada usando
|
|
153
|
+
* el transactionNumber que ya recibe del authorize. 404 REMITTANCE_TX_NOT_READY
|
|
154
|
+
* si la row de remesa aún no existe (pago diferido/timeout).
|
|
155
|
+
*/
|
|
156
|
+
getTransactionReceiptByMarketplaceRef(
|
|
157
|
+
directoryId: string,
|
|
158
|
+
ref: string,
|
|
159
|
+
): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>>;
|
|
160
|
+
|
|
161
|
+
// ─── Historial + Cancel + Recibo + SMS (F7) ─────────────────────────────────
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Historial paginado del usuario (lee RemittanceTransactions_GT, D-F7.1).
|
|
165
|
+
* Cursor estándar Fiado: `filters.index` opaco; el siguiente viene en
|
|
166
|
+
* `response.index`.
|
|
167
|
+
*/
|
|
168
|
+
listTransactions(directoryId: string, filters?: RemittanceTransactionsListRequest): Promise<ApiGatewayResponse<RemittanceTransactionsListResponse>>;
|
|
169
|
+
|
|
170
|
+
/** Detalle de una tx (status reconciliado contra UNIR, D-F7.2). */
|
|
171
|
+
getTransaction(directoryId: string, txNumber: string): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
172
|
+
|
|
173
|
+
/** Recibo HTML-APP de una tx (UNIR TransactionReceipt). */
|
|
174
|
+
getTransactionReceipt(directoryId: string, txNumber: string): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>>;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Cancela una tx (UNIR v2/CancelTransaction + status local CANCELLED).
|
|
178
|
+
* NO reintegra el wallet (procesador diferido — TODO F7).
|
|
179
|
+
*/
|
|
180
|
+
cancelTransaction(directoryId: string, txNumber: string, request: RemittanceCancelRequest): Promise<ApiGatewayResponse<RemittanceCancelResponse>>;
|
|
181
|
+
|
|
182
|
+
/** SMS de UNIR al beneficiario de la tx (max 3 por tx). ⚠ gated por smoke. */
|
|
183
|
+
smsTransactionAlert(directoryId: string, txNumber: string, request: RemittanceSmsRequest): Promise<ApiGatewayResponse<{ sent: boolean }>>;
|
|
184
|
+
|
|
185
|
+
// ─── Backoffice (F9, read-only — D2: el backoffice frontend entra por benefits) ─
|
|
186
|
+
|
|
187
|
+
backofficeDashboard(): Promise<ApiGatewayResponse<RemittanceBackofficeDashboardSummary>>;
|
|
188
|
+
/** Filtros: status (default ACTIVE en el connector) | email (lookup exacto); pageSize 1-100; index cursor opaco. */
|
|
189
|
+
backofficeListUsers(filters?: { status?: string; email?: string; pageSize?: number; index?: string }): Promise<ApiGatewayResponse<RemittanceBackofficeUserListResponse>>;
|
|
190
|
+
backofficeUserDetail(directoryId: string): Promise<ApiGatewayResponse<RemittanceBackofficeUserDetail>>;
|
|
191
|
+
/** Requiere al menos uno de txNumber | directoryId | status (el connector responde 400 si no). */
|
|
192
|
+
backofficeListTransactions(filters?: { txNumber?: string; directoryId?: string; status?: string; countryISO?: string; from?: string; to?: string; pageSize?: number; index?: string }): Promise<ApiGatewayResponse<RemittanceBackofficeTxListResponse>>;
|
|
193
|
+
backofficeTransactionDetail(txNumber: string): Promise<ApiGatewayResponse<RemittanceBackofficeTransaction>>;
|
|
194
|
+
backofficeStats(period: RemittanceBackofficeStatsPeriod): Promise<ApiGatewayResponse<RemittanceBackofficeStats>>;
|
|
195
|
+
/** Límites por usuario (Operación · read-only): ventanas (límite del provider + usage) + nivel + discrepancia. */
|
|
196
|
+
backofficeUserLimits(directoryId: string): Promise<ApiGatewayResponse<RemittanceUserLimits>>;
|
|
197
|
+
/** Batch de límites para la tabla de Límites (CSV de directoryIds). */
|
|
198
|
+
backofficeUserLimitsBatch(directoryIds: string[]): Promise<ApiGatewayResponse<RemittanceUserLimitsBatchResponse>>;
|
|
199
|
+
|
|
200
|
+
// ─── Aceptación (KYC monitoring, SPEC_06 — read-only + refresh on-demand) ──────
|
|
201
|
+
/** Lista de usuarios KYC. Filtros: status (default PENDING en el connector) | search (email o directoryId); pageSize; index cursor opaco. */
|
|
202
|
+
kycListUsers(filters?: { status?: string; search?: string; pageSize?: number; index?: string }): Promise<ApiGatewayResponse<KycUsersListResponse>>;
|
|
203
|
+
/** Detalle 360 KYC (identidad + snapshot UNIR + último rechazo). 404 si no existe. */
|
|
204
|
+
kycUserDetail(directoryId: string): Promise<ApiGatewayResponse<KycUserDetail>>;
|
|
205
|
+
/** Refresca el perfil del usuario desde UNIR (EP-34). Rate-limited 5/min por directoryId en el connector. */
|
|
206
|
+
kycRefreshUser(directoryId: string): Promise<ApiGatewayResponse<RefreshUserProfileResponse>>;
|
|
207
|
+
/** #6 — Historial de intentos de onboarding (request/response del SignUp, verbatim) de un usuario. */
|
|
208
|
+
kycOnboardingAttempts(directoryId: string): Promise<ApiGatewayResponse<KycOnboardingAttemptsResponse>>;
|
|
209
|
+
/** #3 — Registra un onboarding bloqueado por dirección (deja el usuario PENDING + rejection en el connector). Lo consume benefits. */
|
|
210
|
+
registerOnboardingBlock(request: RegisterOnboardingBlockRequest): Promise<ApiGatewayResponse<RegisterOnboardingBlockResponse>>;
|
|
211
|
+
|
|
212
|
+
// ─── Cohorts (Dashboard Ops · B2 — puente de recálculo Opción A) ────────────────
|
|
213
|
+
/** Cuenta usuarios que cumplen las condiciones (AND) + universo total. Lo consume remittance-business al recalcular un cohort. */
|
|
214
|
+
cohortCount(request: CohortCountRequest): Promise<ApiGatewayResponse<CohortCountResponse>>;
|
|
215
|
+
/** Determina si un usuario puntual matchea las condiciones (AND) de un cohort. Lo consume remittance-business. */
|
|
216
|
+
cohortUserMatch(request: CohortUserMatchRequest): Promise<ApiGatewayResponse<CohortUserMatchResponse>>;
|
|
217
|
+
|
|
218
|
+
// ─── Segmentos (Dashboard Ops — puente de métricas Opción A) ────────────────────
|
|
219
|
+
/** {clientCount, volMonthUSD} para el subconjunto de RemittanceUsers del segmento (mes calendario, sin canceladas). */
|
|
220
|
+
segmentMetrics(request: SegmentMetricsRequest): Promise<ApiGatewayResponse<SegmentMetricsResponse>>;
|
|
221
|
+
|
|
222
|
+
// ─── Precio Base (Dashboard Ops · Variables Operativas — puente Fase A) ─────────
|
|
223
|
+
/** Wholesale vivo (ExternalQuickQuotes) del corredor — Simulador de Precio Base. */
|
|
224
|
+
wholesaleRate(request: WholesaleRateRequest): Promise<ApiGatewayResponse<WholesaleRateResponse>>;
|
|
225
|
+
/** {clientCount, volMonthUSD} del subconjunto de directoryIds FILTRADO por corredor (countryISO). */
|
|
226
|
+
pricingMetrics(request: PricingMetricsRequest): Promise<ApiGatewayResponse<PricingMetricsResponse>>;
|
|
227
|
+
|
|
228
|
+
// ─── Promociones (Dashboard Ops · Variables Operativas — puente Fase A) ─────────
|
|
229
|
+
/** Alcance {reach, total} de una audiencia: directoryIds × conditions × corridor (dimensión ausente = no filtra). */
|
|
230
|
+
promotionReach(request: PromotionReachRequest): Promise<ApiGatewayResponse<PromotionReachResponse>>;
|
|
231
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./api/interfaces/IUnitellerConnectorApi.js";
|
|
2
|
-
export { default as UnitellerConnectorApi } from "./api/UnitellerConnectorApi.js";
|
|
1
|
+
export * from "./api/interfaces/IUnitellerConnectorApi.js";
|
|
2
|
+
export { default as UnitellerConnectorApi } from "./api/UnitellerConnectorApi.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {injectable} from "inversify";
|
|
2
|
-
|
|
3
|
-
@injectable()
|
|
4
|
-
export class InvokerUtils {
|
|
5
|
-
constructor() {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
toQueryStringParameters(object: any): string {
|
|
9
|
-
const records: Record<string, string> = Object.entries(object).reduce((acc, [key, value]) => {
|
|
10
|
-
if (Array.isArray(value)) {
|
|
11
|
-
acc[key] = value.join(','); // Convierte arrays a una cadena separada por comas
|
|
12
|
-
} else {
|
|
13
|
-
acc[key] = String(value); // Convierte todos los demás valores a string
|
|
14
|
-
}
|
|
15
|
-
return acc;
|
|
16
|
-
}, {} as Record<string, string>);
|
|
17
|
-
return new URLSearchParams(records).toString();
|
|
18
|
-
}
|
|
1
|
+
import {injectable} from "inversify";
|
|
2
|
+
|
|
3
|
+
@injectable()
|
|
4
|
+
export class InvokerUtils {
|
|
5
|
+
constructor() {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
toQueryStringParameters(object: any): string {
|
|
9
|
+
const records: Record<string, string> = Object.entries(object).reduce((acc, [key, value]) => {
|
|
10
|
+
if (Array.isArray(value)) {
|
|
11
|
+
acc[key] = value.join(','); // Convierte arrays a una cadena separada por comas
|
|
12
|
+
} else {
|
|
13
|
+
acc[key] = String(value); // Convierte todos los demás valores a string
|
|
14
|
+
}
|
|
15
|
+
return acc;
|
|
16
|
+
}, {} as Record<string, string>);
|
|
17
|
+
return new URLSearchParams(records).toString();
|
|
18
|
+
}
|
|
19
19
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { inject, injectable } from "inversify";
|
|
2
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
-
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
4
|
-
import {
|
|
5
|
-
ReserveExposureRequest,
|
|
6
|
-
ReserveExposureResponse,
|
|
7
|
-
ReleaseExposureRequest,
|
|
8
|
-
ReleaseExposureResponse,
|
|
9
|
-
GetExposureStateResponse,
|
|
10
|
-
} from "@fiado/type-kit/bin/walletFunding/index.js";
|
|
11
|
-
import { IWalletFundingRulesApi } from "./interfaces/IWalletFundingRulesApi.js";
|
|
12
|
-
|
|
13
|
-
@injectable()
|
|
14
|
-
export default class WalletFundingRulesApi implements IWalletFundingRulesApi {
|
|
15
|
-
private readonly baseUrl = process.env.WALLET_FUNDING_RULES_LAMBDA_URL || "";
|
|
16
|
-
|
|
17
|
-
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {}
|
|
18
|
-
|
|
19
|
-
async reserveExposure(
|
|
20
|
-
request: ReserveExposureRequest,
|
|
21
|
-
): Promise<ApiGatewayResponse<ReserveExposureResponse>> {
|
|
22
|
-
const url = `${this.baseUrl}/reserve`;
|
|
23
|
-
return await this.httpRequest.post(url, request);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
async releaseExposure(
|
|
27
|
-
request: ReleaseExposureRequest,
|
|
28
|
-
): Promise<ApiGatewayResponse<ReleaseExposureResponse>> {
|
|
29
|
-
const url = `${this.baseUrl}/release`;
|
|
30
|
-
return await this.httpRequest.post(url, request);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
async getExposureState(): Promise<ApiGatewayResponse<GetExposureStateResponse>> {
|
|
34
|
-
const url = `${this.baseUrl}/state`;
|
|
35
|
-
return await this.httpRequest.get(url);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
1
|
+
import { inject, injectable } from "inversify";
|
|
2
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
+
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
4
|
+
import {
|
|
5
|
+
ReserveExposureRequest,
|
|
6
|
+
ReserveExposureResponse,
|
|
7
|
+
ReleaseExposureRequest,
|
|
8
|
+
ReleaseExposureResponse,
|
|
9
|
+
GetExposureStateResponse,
|
|
10
|
+
} from "@fiado/type-kit/bin/walletFunding/index.js";
|
|
11
|
+
import { IWalletFundingRulesApi } from "./interfaces/IWalletFundingRulesApi.js";
|
|
12
|
+
|
|
13
|
+
@injectable()
|
|
14
|
+
export default class WalletFundingRulesApi implements IWalletFundingRulesApi {
|
|
15
|
+
private readonly baseUrl = process.env.WALLET_FUNDING_RULES_LAMBDA_URL || "";
|
|
16
|
+
|
|
17
|
+
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {}
|
|
18
|
+
|
|
19
|
+
async reserveExposure(
|
|
20
|
+
request: ReserveExposureRequest,
|
|
21
|
+
): Promise<ApiGatewayResponse<ReserveExposureResponse>> {
|
|
22
|
+
const url = `${this.baseUrl}/reserve`;
|
|
23
|
+
return await this.httpRequest.post(url, request);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
async releaseExposure(
|
|
27
|
+
request: ReleaseExposureRequest,
|
|
28
|
+
): Promise<ApiGatewayResponse<ReleaseExposureResponse>> {
|
|
29
|
+
const url = `${this.baseUrl}/release`;
|
|
30
|
+
return await this.httpRequest.post(url, request);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async getExposureState(): Promise<ApiGatewayResponse<GetExposureStateResponse>> {
|
|
34
|
+
const url = `${this.baseUrl}/state`;
|
|
35
|
+
return await this.httpRequest.get(url);
|
|
36
|
+
}
|
|
37
|
+
}
|