@fiado/api-invoker 1.3.83 → 1.3.84
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/package.json +1 -1
- package/src/centralPayments/CentralPaymentsConnectorApi.ts +1 -1
- package/src/centralPayments/interfaces/ICentralPaymentsConnectorApi.ts +1 -1
- package/src/transaction/api/interfaces/ITransactionApi.ts +35 -16
- package/bin/account-beneficiary/AccountBeneficiaryApi.d.ts +0 -10
- package/bin/account-beneficiary/AccountBeneficiaryApi.js +0 -32
- package/bin/account-beneficiary/index.d.ts +0 -2
- package/bin/account-beneficiary/index.js +0 -18
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.d.ts +0 -5
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.js +0 -2
- package/bin/account-fiadoinc/AccountFiadoIncApi.d.ts +0 -32
- package/bin/account-fiadoinc/AccountFiadoIncApi.js +0 -84
- package/bin/account-fiadoinc/index.d.ts +0 -4
- package/bin/account-fiadoinc/index.js +0 -20
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.d.ts +0 -18
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.js +0 -2
- package/bin/account-fiadoinc/queue/Publisher.d.ts +0 -9
- package/bin/account-fiadoinc/queue/Publisher.js +0 -34
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.d.ts +0 -7
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.js +0 -2
- package/bin/account-fiadosa/AccountFiadoSAApi.d.ts +0 -15
- package/bin/account-fiadosa/AccountFiadoSAApi.js +0 -47
- package/bin/account-fiadosa/index.d.ts +0 -2
- package/bin/account-fiadosa/index.js +0 -18
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.d.ts +0 -10
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.js +0 -2
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.d.ts +0 -17
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.js +0 -55
- package/bin/account-pagoconfiado/index.d.ts +0 -2
- package/bin/account-pagoconfiado/index.js +0 -18
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.d.ts +0 -12
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.js +0 -2
- package/bin/activity-business/ActivityApi.d.ts +0 -12
- package/bin/activity-business/ActivityApi.js +0 -49
- package/bin/activity-business/index.d.ts +0 -4
- package/bin/activity-business/index.js +0 -20
- package/bin/activity-business/interfaces/IActivityApi.d.ts +0 -7
- package/bin/activity-business/interfaces/IActivityApi.js +0 -2
- package/bin/activity-business/queue/ActivityPublisher.d.ts +0 -6
- package/bin/activity-business/queue/ActivityPublisher.js +0 -36
- package/bin/activity-business/queue/IActivityPublisher.d.ts +0 -4
- package/bin/activity-business/queue/IActivityPublisher.js +0 -2
- package/bin/address/AddressApi.d.ts +0 -13
- package/bin/address/AddressApi.js +0 -55
- package/bin/address/index.d.ts +0 -2
- package/bin/address/index.js +0 -18
- package/bin/address/interfaces/IAddressApi.d.ts +0 -26
- package/bin/address/interfaces/IAddressApi.js +0 -2
- package/bin/appselectondata/AppSelectionDataApi.d.ts +0 -12
- package/bin/appselectondata/AppSelectionDataApi.js +0 -47
- package/bin/appselectondata/index.d.ts +0 -2
- package/bin/appselectondata/index.js +0 -18
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.d.ts +0 -18
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.js +0 -2
- package/bin/authentication/AuthenticationApi.d.ts +0 -8
- package/bin/authentication/AuthenticationApi.js +0 -32
- package/bin/authentication/index.d.ts +0 -2
- package/bin/authentication/index.js +0 -18
- package/bin/authentication/interfaces/IAuthenticationApi.d.ts +0 -4
- package/bin/authentication/interfaces/IAuthenticationApi.js +0 -2
- package/bin/bankAccount/BankAccountApi.d.ts +0 -13
- package/bin/bankAccount/BankAccountApi.js +0 -43
- package/bin/bankAccount/index.d.ts +0 -2
- package/bin/bankAccount/index.js +0 -18
- package/bin/bankAccount/interfaces/IBankAccountApi.d.ts +0 -5
- package/bin/bankAccount/interfaces/IBankAccountApi.js +0 -2
- package/bin/bbvaRst/api/BBVARstApi.d.ts +0 -9
- package/bin/bbvaRst/api/BBVARstApi.js +0 -32
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.d.ts +0 -4
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.js +0 -2
- package/bin/bbvaRst/index.d.ts +0 -2
- package/bin/bbvaRst/index.js +0 -18
- package/bin/blacklist/BlackListApi.d.ts +0 -12
- package/bin/blacklist/BlackListApi.js +0 -37
- package/bin/blacklist/index.d.ts +0 -2
- package/bin/blacklist/index.js +0 -18
- package/bin/blacklist/interfaces/IBlackListApi.d.ts +0 -17
- package/bin/blacklist/interfaces/IBlackListApi.js +0 -2
- package/bin/card/CardApi.d.ts +0 -21
- package/bin/card/CardApi.js +0 -69
- package/bin/card/index.d.ts +0 -2
- package/bin/card/index.js +0 -18
- package/bin/card/interfaces/ICardApi.d.ts +0 -15
- package/bin/card/interfaces/ICardApi.js +0 -2
- package/bin/centralPayments/CentralPaymentsConnectorApi.d.ts +0 -67
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +0 -223
- package/bin/centralPayments/index.d.ts +0 -2
- package/bin/centralPayments/index.js +0 -18
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +0 -57
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.js +0 -2
- package/bin/cnbv-business/CnbvApi.d.ts +0 -8
- package/bin/cnbv-business/CnbvApi.js +0 -31
- package/bin/cnbv-business/index.d.ts +0 -2
- package/bin/cnbv-business/index.js +0 -18
- package/bin/cnbv-business/interfaces/ICnbvApi.d.ts +0 -3
- package/bin/cnbv-business/interfaces/ICnbvApi.js +0 -2
- package/bin/cognitoConnector/CognitoConnectorApi.d.ts +0 -16
- package/bin/cognitoConnector/CognitoConnectorApi.js +0 -89
- package/bin/cognitoConnector/CognitoConnectorV2.d.ts +0 -18
- package/bin/cognitoConnector/CognitoConnectorV2.js +0 -74
- package/bin/cognitoConnector/index.d.ts +0 -4
- package/bin/cognitoConnector/index.js +0 -20
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.d.ts +0 -12
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.js +0 -2
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.d.ts +0 -46
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApiV2.js +0 -2
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.d.ts +0 -46
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.js +0 -2
- package/bin/collector/CollectorApi.d.ts +0 -17
- package/bin/collector/CollectorApi.js +0 -64
- package/bin/collector/index.d.ts +0 -2
- package/bin/collector/index.js +0 -18
- package/bin/collector/interfaces/ICollectorApi.d.ts +0 -22
- package/bin/collector/interfaces/ICollectorApi.js +0 -2
- package/bin/contactInformation/ContactInformationApi.d.ts +0 -9
- package/bin/contactInformation/ContactInformationApi.js +0 -31
- package/bin/contactInformation/index.d.ts +0 -2
- package/bin/contactInformation/index.js +0 -18
- package/bin/contactInformation/interface/IContactInformationApi.d.ts +0 -4
- package/bin/contactInformation/interface/IContactInformationApi.js +0 -2
- package/bin/container.config.d.ts +0 -2
- package/bin/container.config.js +0 -121
- package/bin/contract-generator/ContractGeneratorApi.d.ts +0 -9
- package/bin/contract-generator/ContractGeneratorApi.js +0 -37
- package/bin/contract-generator/index.d.ts +0 -2
- package/bin/contract-generator/index.js +0 -18
- package/bin/contract-generator/interfaces/IContractGeneratorApi.d.ts +0 -14
- package/bin/contract-generator/interfaces/IContractGeneratorApi.js +0 -2
- package/bin/device/DeviceApi.d.ts +0 -14
- package/bin/device/DeviceApi.js +0 -45
- package/bin/device/index.d.ts +0 -2
- package/bin/device/index.js +0 -18
- package/bin/device/interfaces/IDeviceApi.d.ts +0 -30
- package/bin/device/interfaces/IDeviceApi.js +0 -2
- package/bin/directories/DirectoriesApi.d.ts +0 -20
- package/bin/directories/DirectoriesApi.js +0 -61
- package/bin/directories/index.d.ts +0 -2
- package/bin/directories/index.js +0 -18
- package/bin/directories/interfaces/IDirectoriesApi.d.ts +0 -21
- package/bin/directories/interfaces/IDirectoriesApi.js +0 -2
- package/bin/directory/DirectoryApi.d.ts +0 -22
- package/bin/directory/DirectoryApi.js +0 -145
- package/bin/directory/index.d.ts +0 -2
- package/bin/directory/index.js +0 -18
- package/bin/directory/interfaces/IDirectoryApi.d.ts +0 -55
- package/bin/directory/interfaces/IDirectoryApi.js +0 -2
- package/bin/directorySetting/DirectorySettingApi.d.ts +0 -31
- package/bin/directorySetting/DirectorySettingApi.js +0 -56
- package/bin/directorySetting/index.d.ts +0 -2
- package/bin/directorySetting/index.js +0 -18
- package/bin/directorySetting/interfaces/IDirectorySettingApi.d.ts +0 -42
- package/bin/directorySetting/interfaces/IDirectorySettingApi.js +0 -2
- package/bin/disputes/DisputesApi.d.ts +0 -24
- package/bin/disputes/DisputesApi.js +0 -61
- package/bin/disputes/index.d.ts +0 -2
- package/bin/disputes/index.js +0 -18
- package/bin/disputes/interfaces/IDisputesApi.d.ts +0 -48
- package/bin/disputes/interfaces/IDisputesApi.js +0 -2
- package/bin/document-image-processor/DocumentImageProcessorApi.d.ts +0 -11
- package/bin/document-image-processor/DocumentImageProcessorApi.js +0 -36
- package/bin/document-image-processor/index.d.ts +0 -2
- package/bin/document-image-processor/index.js +0 -18
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.d.ts +0 -6
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.js +0 -2
- package/bin/estafeta/EstafetaApi.d.ts +0 -0
- package/bin/estafeta/EstafetaApi.js +0 -0
- package/bin/estafeta/api/EstafetaApi.d.ts +0 -26
- package/bin/estafeta/api/EstafetaApi.js +0 -71
- package/bin/estafeta/api/interfaces/IEstafetaApi.d.ts +0 -20
- package/bin/estafeta/api/interfaces/IEstafetaApi.js +0 -2
- package/bin/estafeta/index.d.ts +0 -2
- package/bin/estafeta/index.js +0 -18
- package/bin/exchangeRates/ExchangeRatesApi.d.ts +0 -11
- package/bin/exchangeRates/ExchangeRatesApi.js +0 -39
- package/bin/exchangeRates/index.d.ts +0 -2
- package/bin/exchangeRates/index.js +0 -18
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.d.ts +0 -6
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.js +0 -2
- package/bin/fiadoMessages/api/FiadoMessagesApi.d.ts +0 -8
- package/bin/fiadoMessages/api/FiadoMessagesApi.js +0 -37
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.d.ts +0 -3
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.js +0 -2
- package/bin/fiadoMessages/index.d.ts +0 -2
- package/bin/fiadoMessages/index.js +0 -18
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.d.ts +0 -11
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.js +0 -35
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.d.ts +0 -6
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.js +0 -2
- package/bin/fraudPreventionEngine/index.d.ts +0 -2
- package/bin/fraudPreventionEngine/index.js +0 -18
- package/bin/group/GroupApi.d.ts +0 -19
- package/bin/group/GroupApi.js +0 -70
- package/bin/group/index.d.ts +0 -2
- package/bin/group/index.js +0 -18
- package/bin/group/interfaces/IGroupApi.d.ts +0 -28
- package/bin/group/interfaces/IGroupApi.js +0 -2
- package/bin/identity/IdentityApi.d.ts +0 -15
- package/bin/identity/IdentityApi.js +0 -85
- package/bin/identity/index.d.ts +0 -2
- package/bin/identity/index.js +0 -18
- package/bin/identity/interfaces/IIdentityApi.d.ts +0 -33
- package/bin/identity/interfaces/IIdentityApi.js +0 -2
- package/bin/index.d.ts +0 -49
- package/bin/index.js +0 -65
- package/bin/legalDocument/api/LegalDocumentApi.d.ts +0 -8
- package/bin/legalDocument/api/LegalDocumentApi.js +0 -34
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.d.ts +0 -3
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.js +0 -2
- package/bin/legalDocument/index.d.ts +0 -2
- package/bin/legalDocument/index.js +0 -18
- package/bin/notificationMessages/index.d.ts +0 -2
- package/bin/notificationMessages/index.js +0 -18
- package/bin/notificationMessages/queue/NotificationMessagePublisher.d.ts +0 -12
- package/bin/notificationMessages/queue/NotificationMessagePublisher.js +0 -47
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.d.ts +0 -6
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.js +0 -2
- package/bin/observations/ObservationsApi.d.ts +0 -10
- package/bin/observations/ObservationsApi.js +0 -39
- package/bin/observations/index.d.ts +0 -2
- package/bin/observations/index.js +0 -18
- package/bin/observations/interfaces/IObservationsApi.d.ts +0 -8
- package/bin/observations/interfaces/IObservationsApi.js +0 -2
- package/bin/order-collector-business/OrderCollectorApi.d.ts +0 -9
- package/bin/order-collector-business/OrderCollectorApi.js +0 -37
- package/bin/order-collector-business/index.d.ts +0 -2
- package/bin/order-collector-business/index.js +0 -18
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.d.ts +0 -7
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.js +0 -2
- package/bin/p2pContact/api/P2pContactApi.d.ts +0 -9
- package/bin/p2pContact/api/P2pContactApi.js +0 -34
- package/bin/p2pContact/api/interfaces/IP2pContactApi.d.ts +0 -4
- package/bin/p2pContact/api/interfaces/IP2pContactApi.js +0 -2
- package/bin/p2pContact/index.d.ts +0 -2
- package/bin/p2pContact/index.js +0 -18
- package/bin/pomelo/api/PomeloApi.d.ts +0 -23
- package/bin/pomelo/api/PomeloApi.js +0 -86
- package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +0 -17
- package/bin/pomelo/api/interfaces/IPomeloApi.js +0 -2
- package/bin/pomelo/index.d.ts +0 -2
- package/bin/pomelo/index.js +0 -18
- package/bin/pomeloProcessor/api/PomeloProcessorApi.d.ts +0 -8
- package/bin/pomeloProcessor/api/PomeloProcessorApi.js +0 -32
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.d.ts +0 -3
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.js +0 -2
- package/bin/pomeloProcessor/index.d.ts +0 -2
- package/bin/pomeloProcessor/index.js +0 -18
- package/bin/pricelist-business/PriceListApi.d.ts +0 -15
- package/bin/pricelist-business/PriceListApi.js +0 -55
- package/bin/pricelist-business/index.d.ts +0 -2
- package/bin/pricelist-business/index.js +0 -18
- package/bin/pricelist-business/interfaces/IPriceListApi.d.ts +0 -18
- package/bin/pricelist-business/interfaces/IPriceListApi.js +0 -2
- package/bin/product-catalog/ProductCatalogApi.d.ts +0 -10
- package/bin/product-catalog/ProductCatalogApi.js +0 -31
- package/bin/product-catalog/index.d.ts +0 -2
- package/bin/product-catalog/index.js +0 -18
- package/bin/product-catalog/interfaces/IProductCatalogApi.d.ts +0 -5
- package/bin/product-catalog/interfaces/IProductCatalogApi.js +0 -2
- package/bin/riskProfile/api/RiskProfileApi.d.ts +0 -15
- package/bin/riskProfile/api/RiskProfileApi.js +0 -47
- package/bin/riskProfile/api/TransactionAlertApi.d.ts +0 -13
- package/bin/riskProfile/api/TransactionAlertApi.js +0 -31
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.d.ts +0 -10
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.js +0 -2
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.d.ts +0 -8
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.js +0 -2
- package/bin/riskProfile/index.d.ts +0 -6
- package/bin/riskProfile/index.js +0 -22
- package/bin/riskProfile/queue/TransactionAlarmPublisher.d.ts +0 -6
- package/bin/riskProfile/queue/TransactionAlarmPublisher.js +0 -36
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.d.ts +0 -4
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.js +0 -2
- package/bin/service-business/ServiceApi.d.ts +0 -32
- package/bin/service-business/ServiceApi.js +0 -89
- package/bin/service-business/index.d.ts +0 -2
- package/bin/service-business/index.js +0 -18
- package/bin/service-business/interfaces/IServiceApi.d.ts +0 -72
- package/bin/service-business/interfaces/IServiceApi.js +0 -2
- package/bin/sessionActivity/index.d.ts +0 -2
- package/bin/sessionActivity/index.js +0 -18
- package/bin/sessionActivity/queue/SessionActivityPublisher.d.ts +0 -6
- package/bin/sessionActivity/queue/SessionActivityPublisher.js +0 -34
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.d.ts +0 -4
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.js +0 -2
- package/bin/stpAccount/api/STPAccountApi.d.ts +0 -15
- package/bin/stpAccount/api/STPAccountApi.js +0 -39
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.d.ts +0 -10
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.js +0 -2
- package/bin/stpAccount/index.d.ts +0 -2
- package/bin/stpAccount/index.js +0 -18
- package/bin/stpServicePayment/api/StpServicePaymentApi.d.ts +0 -14
- package/bin/stpServicePayment/api/StpServicePaymentApi.js +0 -50
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.d.ts +0 -9
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.js +0 -2
- package/bin/stpServicePayment/index.d.ts +0 -2
- package/bin/stpServicePayment/index.js +0 -18
- package/bin/stpSpei/api/StpSpeiApi.d.ts +0 -10
- package/bin/stpSpei/api/StpSpeiApi.js +0 -47
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.d.ts +0 -5
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.js +0 -2
- package/bin/stpSpei/index.d.ts +0 -2
- package/bin/stpSpei/index.js +0 -18
- package/bin/tern/api/TernApi.d.ts +0 -30
- package/bin/tern/api/TernApi.js +0 -125
- package/bin/tern/api/interfaces/ITernApi.d.ts +0 -26
- package/bin/tern/api/interfaces/ITernApi.js +0 -2
- package/bin/tern/index.d.ts +0 -2
- package/bin/tern/index.js +0 -18
- package/bin/transaction/api/TransactionApi.d.ts +0 -45
- package/bin/transaction/api/TransactionApi.js +0 -84
- package/bin/transaction/api/interfaces/ITransactionApi.d.ts +0 -40
- package/bin/transaction/api/interfaces/ITransactionApi.js +0 -2
- package/bin/transaction/index.d.ts +0 -4
- package/bin/transaction/index.js +0 -20
- package/bin/transaction/queue/TransactionPublisher.d.ts +0 -6
- package/bin/transaction/queue/TransactionPublisher.js +0 -36
- package/bin/transaction/queue/interfaces/ITransactionPublisher.d.ts +0 -4
- package/bin/transaction/queue/interfaces/ITransactionPublisher.js +0 -2
- package/bin/transactionProcessor/api/TransactionProcessorApi.d.ts +0 -16
- package/bin/transactionProcessor/api/TransactionProcessorApi.js +0 -51
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.d.ts +0 -11
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.js +0 -2
- package/bin/transactionProcessor/index.d.ts +0 -2
- package/bin/transactionProcessor/index.js +0 -18
- package/bin/utils/InvokerUtils.d.ts +0 -4
- package/bin/utils/InvokerUtils.js +0 -34
- package/bin/zendesk/ZendeskApi.d.ts +0 -11
- package/bin/zendesk/ZendeskApi.js +0 -41
- package/bin/zendesk/index.d.ts +0 -2
- package/bin/zendesk/index.js +0 -18
- package/bin/zendesk/interfaces/IZendeskApi.d.ts +0 -9
- package/bin/zendesk/interfaces/IZendeskApi.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.84",
|
|
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",
|
|
@@ -253,7 +253,7 @@ export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi
|
|
|
253
253
|
return await this.httpRequest.post(url, request);
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
async executeFinancialOperationReversal(request: ProviderTransactionReversalRequest): Promise<FiadoApiResponse<ProviderTransactionReversalResponse>> {
|
|
256
|
+
async executeFinancialOperationReversal(request: ProviderTransactionReversalRequest): Promise<FiadoApiResponse<ProviderTransactionReversalResponse[]>> {
|
|
257
257
|
const url = `${this.baseUrl}/transactions/reversal`;
|
|
258
258
|
return await this.httpRequest.post(url, request);
|
|
259
259
|
}
|
|
@@ -128,7 +128,7 @@ export interface ICentralPaymentsConnectorApi {
|
|
|
128
128
|
|
|
129
129
|
executeMCSendTransaction(request: BankAccountMCSendTransferRequest): Promise<FiadoApiResponse<BankAccountMCSendTransferResponse>>;
|
|
130
130
|
|
|
131
|
-
executeFinancialOperationReversal(request: ProviderTransactionReversalRequest): Promise<FiadoApiResponse<ProviderTransactionReversalResponse>>;
|
|
131
|
+
executeFinancialOperationReversal(request: ProviderTransactionReversalRequest): Promise<FiadoApiResponse<ProviderTransactionReversalResponse[]>>;
|
|
132
132
|
|
|
133
133
|
executeFinancialOperationCompletion(request: ProviderTransactionCompletionRequest): Promise<FiadoApiResponse<ProviderTransactionCompletionResponse[]>>;
|
|
134
134
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TransactionSourceEnum } from "@fiado/type-kit/bin/transaction";
|
|
2
2
|
|
|
3
3
|
export interface ITransactionApi {
|
|
4
|
+
|
|
4
5
|
getTransactionsByDirectoryIdAndSource(params: {
|
|
5
6
|
directoryId: string;
|
|
6
7
|
source: TransactionSourceEnum;
|
|
@@ -8,7 +9,6 @@ export interface ITransactionApi {
|
|
|
8
9
|
pageSize?: number;
|
|
9
10
|
}): Promise<any>;
|
|
10
11
|
|
|
11
|
-
|
|
12
12
|
getFiadoTxByDirectoryAndBetweenDates(params:{
|
|
13
13
|
directoryId: string;
|
|
14
14
|
targetOrSource: string;
|
|
@@ -18,19 +18,38 @@ export interface ITransactionApi {
|
|
|
18
18
|
pageSize?: number;
|
|
19
19
|
}): Promise<any>;
|
|
20
20
|
|
|
21
|
-
getTransactionDetailByTransactionNumber(params:{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
getTransactionDetailByTransactionNumber(params:{
|
|
22
|
+
transactionNumber: string,
|
|
23
|
+
directoryId: string,
|
|
24
|
+
source: TransactionSourceEnum
|
|
25
|
+
}): Promise<any>
|
|
26
|
+
|
|
27
|
+
getTransactionDetailById(params:{
|
|
28
|
+
id: string,
|
|
29
|
+
source: TransactionSourceEnum
|
|
30
|
+
}): Promise<any>
|
|
31
|
+
|
|
32
|
+
updateTransaction(params:{
|
|
33
|
+
id: string,
|
|
34
|
+
source: TransactionSourceEnum,
|
|
35
|
+
params: any
|
|
36
|
+
}): Promise<any>
|
|
37
|
+
|
|
38
|
+
getTransactionsByDisputeOrFraudLogId(id: string): Promise<any>
|
|
39
|
+
|
|
40
|
+
getActivityProblemsByStatus(params:{
|
|
41
|
+
status: string,
|
|
42
|
+
index?: string,
|
|
43
|
+
pageSize?: number
|
|
44
|
+
}): Promise<any>
|
|
45
|
+
|
|
46
|
+
updateActivityProblemStatus(
|
|
47
|
+
id: string,
|
|
48
|
+
params:{
|
|
49
|
+
status: string,
|
|
50
|
+
observation?: string,
|
|
51
|
+
correctedBy?: string,
|
|
52
|
+
correctedAt?: number,
|
|
53
|
+
updatedBy: string
|
|
54
|
+
}): Promise<any>
|
|
36
55
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IAccountBeneficiaryApi } from "./interfaces/IAccountBeneficiaryApi";
|
|
2
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
-
import { AccountBeneficiaryCreateRequest } from "@fiado/type-kit/bin/beneficiary";
|
|
4
|
-
import { CountryId } from "@fiado/type-kit/bin/country";
|
|
5
|
-
export declare class AccountBeneficiaryApi implements IAccountBeneficiaryApi {
|
|
6
|
-
private httpRequest;
|
|
7
|
-
private readonly baseUrl;
|
|
8
|
-
constructor(httpRequest: IHttpRequest);
|
|
9
|
-
create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest[]): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.AccountBeneficiaryApi = void 0;
|
|
16
|
-
const inversify_1 = require("inversify");
|
|
17
|
-
let AccountBeneficiaryApi = class AccountBeneficiaryApi {
|
|
18
|
-
constructor(httpRequest) {
|
|
19
|
-
this.httpRequest = httpRequest;
|
|
20
|
-
this.baseUrl = process.env.ACCOUNT_BENEFICIARY_LAMBDA_URL || "";
|
|
21
|
-
}
|
|
22
|
-
async create(directoryId, countryId, input) {
|
|
23
|
-
const url = `${this.baseUrl}${countryId}/users/${directoryId}`;
|
|
24
|
-
return await this.httpRequest.post(url, input);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.AccountBeneficiaryApi = AccountBeneficiaryApi;
|
|
28
|
-
exports.AccountBeneficiaryApi = AccountBeneficiaryApi = __decorate([
|
|
29
|
-
(0, inversify_1.injectable)(),
|
|
30
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
31
|
-
__metadata("design:paramtypes", [Object])
|
|
32
|
-
], AccountBeneficiaryApi);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./interfaces/IAccountBeneficiaryApi"), exports);
|
|
18
|
-
__exportStar(require("./AccountBeneficiaryApi"), exports);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AccountBeneficiaryCreateRequest } from "@fiado/type-kit/bin/beneficiary";
|
|
2
|
-
import { CountryId } from "@fiado/type-kit/bin/country";
|
|
3
|
-
export interface IAccountBeneficiaryApi {
|
|
4
|
-
create(directoryId: string, countryId: CountryId, input: AccountBeneficiaryCreateRequest[]): Promise<void>;
|
|
5
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
-
import { AccountCreateRequest, AccountCreateResponse, AccountUpdateBalanceRequest, AccountUpdateRequest, ExecuteP2pOperationRequest, ExecuteP2pOperationResponse, ExecutePocketOperationRequest, ExecutePocketOperationResponse, GetAccountResponse, GetPocketBalanceResponse } from "@fiado/type-kit/bin/account";
|
|
3
|
-
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
4
|
-
import { Provider, ProviderDocumentUploadRequest } from "@fiado/type-kit/bin/provider";
|
|
5
|
-
import { IAccountFiadoIncApi } from "./interfaces/IAccountFiadoIncApi";
|
|
6
|
-
import { IPublisher } from "./queue/interfaces/IPublisher";
|
|
7
|
-
export default class AccountFiadoIncApi implements IAccountFiadoIncApi {
|
|
8
|
-
private readonly httpRequest;
|
|
9
|
-
private readonly publisher;
|
|
10
|
-
private readonly baseUrl;
|
|
11
|
-
constructor(httpRequest: IHttpRequest, publisher: IPublisher);
|
|
12
|
-
replaceExternalAccount(provider: Provider, directoryId: string, externalAccountId: string, isPrincipal: boolean): Promise<FiadoApiResponse<void>>;
|
|
13
|
-
/** ACCOUNTS **/
|
|
14
|
-
confirmUserCreation(provider: Provider, externalUserId: string, request: AccountCreateRequest): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
15
|
-
createAccount(provider: Provider, data: AccountCreateRequest): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
16
|
-
getAccountByDirectoryId(provider: Provider, directoryId: string): Promise<FiadoApiResponse<GetAccountResponse[]>>;
|
|
17
|
-
getAccountByExternalAccountId(provider: Provider, externalAccountId: string): Promise<FiadoApiResponse<GetAccountResponse[]>>;
|
|
18
|
-
/** POCKETS **/
|
|
19
|
-
getPocketBalance(provider: Provider, directoryId: string): Promise<FiadoApiResponse<GetPocketBalanceResponse>>;
|
|
20
|
-
updatePocketBalance(provider: Provider, pocketId: string, request: AccountUpdateBalanceRequest): Promise<FiadoApiResponse<null>>;
|
|
21
|
-
getPocketBalanceById(provider: Provider, pocketId: string): Promise<FiadoApiResponse<GetPocketBalanceResponse>>;
|
|
22
|
-
deletePocket(provider: Provider, pocketId: string): Promise<FiadoApiResponse<void>>;
|
|
23
|
-
/** TRANSACTIONS **/
|
|
24
|
-
executeP2pTransaction(provider: Provider, request: ExecuteP2pOperationRequest): Promise<FiadoApiResponse<ExecuteP2pOperationResponse>>;
|
|
25
|
-
executePocketTransaction(provider: Provider, pocketId: string, request: ExecutePocketOperationRequest): Promise<FiadoApiResponse<ExecutePocketOperationResponse[]>>;
|
|
26
|
-
/** USERS **/
|
|
27
|
-
update(provider: Provider, directoryId: string, data: AccountUpdateRequest): Promise<FiadoApiResponse<void>>;
|
|
28
|
-
publish(provider: Provider, params: {
|
|
29
|
-
externalUserId: string;
|
|
30
|
-
input: ProviderDocumentUploadRequest;
|
|
31
|
-
}): Promise<void>;
|
|
32
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const inversify_1 = require("inversify");
|
|
16
|
-
let AccountFiadoIncApi = class AccountFiadoIncApi {
|
|
17
|
-
constructor(httpRequest, publisher) {
|
|
18
|
-
this.httpRequest = httpRequest;
|
|
19
|
-
this.publisher = publisher;
|
|
20
|
-
this.baseUrl = process.env.ACCOUNT_FIADOINC_LAMBDA_URL || "";
|
|
21
|
-
}
|
|
22
|
-
async replaceExternalAccount(provider, directoryId, externalAccountId, isPrincipal) {
|
|
23
|
-
const url = `${this.baseUrl}${provider}/account/replace`;
|
|
24
|
-
return await this.httpRequest.post(url, { directoryId, externalAccountId, isPrincipal });
|
|
25
|
-
}
|
|
26
|
-
/** ACCOUNTS **/
|
|
27
|
-
async confirmUserCreation(provider, externalUserId, request) {
|
|
28
|
-
const url = `${this.baseUrl}${provider}/users/confirm/${externalUserId}`;
|
|
29
|
-
return await this.httpRequest.put(url, request);
|
|
30
|
-
}
|
|
31
|
-
async createAccount(provider, data) {
|
|
32
|
-
const url = `${this.baseUrl}${provider}`;
|
|
33
|
-
return await this.httpRequest.post(url, data);
|
|
34
|
-
}
|
|
35
|
-
async getAccountByDirectoryId(provider, directoryId) {
|
|
36
|
-
const url = `${this.baseUrl}${provider}/users/${directoryId}/`;
|
|
37
|
-
return await this.httpRequest.get(url);
|
|
38
|
-
}
|
|
39
|
-
async getAccountByExternalAccountId(provider, externalAccountId) {
|
|
40
|
-
const url = `${this.baseUrl}${provider}/accounts/external/${externalAccountId}`;
|
|
41
|
-
return await this.httpRequest.get(url);
|
|
42
|
-
}
|
|
43
|
-
/** POCKETS **/
|
|
44
|
-
async getPocketBalance(provider, directoryId) {
|
|
45
|
-
const url = `${this.baseUrl}${provider}/pockets/users/${directoryId}/balance`;
|
|
46
|
-
return await this.httpRequest.get(url);
|
|
47
|
-
}
|
|
48
|
-
async updatePocketBalance(provider, pocketId, request) {
|
|
49
|
-
const url = `${this.baseUrl}${provider}/pockets/${pocketId}/balance`;
|
|
50
|
-
return await this.httpRequest.put(url, request);
|
|
51
|
-
}
|
|
52
|
-
async getPocketBalanceById(provider, pocketId) {
|
|
53
|
-
const url = `${this.baseUrl}${provider}/pockets/${pocketId}/balance`;
|
|
54
|
-
return await this.httpRequest.get(url);
|
|
55
|
-
}
|
|
56
|
-
async deletePocket(provider, pocketId) {
|
|
57
|
-
const url = `${this.baseUrl}${provider}/pockets/${pocketId}`;
|
|
58
|
-
return await this.httpRequest.delete(url);
|
|
59
|
-
}
|
|
60
|
-
/** TRANSACTIONS **/
|
|
61
|
-
async executeP2pTransaction(provider, request) {
|
|
62
|
-
const url = `${this.baseUrl}${provider}/p2p/send`;
|
|
63
|
-
return await this.httpRequest.post(url, request);
|
|
64
|
-
}
|
|
65
|
-
async executePocketTransaction(provider, pocketId, request) {
|
|
66
|
-
const url = `${this.baseUrl}${provider}/pockets/${pocketId}/transaction`;
|
|
67
|
-
return await this.httpRequest.post(url, request);
|
|
68
|
-
}
|
|
69
|
-
/** USERS **/
|
|
70
|
-
async update(provider, directoryId, data) {
|
|
71
|
-
const url = `${this.baseUrl}${provider}/users/${directoryId}`;
|
|
72
|
-
return await this.httpRequest.put(url, data);
|
|
73
|
-
}
|
|
74
|
-
async publish(provider, params) {
|
|
75
|
-
return await this.publisher.publish(provider, params);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
AccountFiadoIncApi = __decorate([
|
|
79
|
-
(0, inversify_1.injectable)(),
|
|
80
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
81
|
-
__param(1, (0, inversify_1.inject)("IPublisher")),
|
|
82
|
-
__metadata("design:paramtypes", [Object, Object])
|
|
83
|
-
], AccountFiadoIncApi);
|
|
84
|
-
exports.default = AccountFiadoIncApi;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./interfaces/IAccountFiadoIncApi"), exports);
|
|
18
|
-
__exportStar(require("./AccountFiadoIncApi"), exports);
|
|
19
|
-
__exportStar(require("./queue/interfaces/IPublisher"), exports);
|
|
20
|
-
__exportStar(require("./queue/Publisher"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AccountCreateRequest, AccountCreateResponse, AccountUpdateBalanceRequest, AccountUpdateRequest, ExecuteP2pOperationRequest, ExecuteP2pOperationResponse, ExecutePocketOperationRequest, ExecutePocketOperationResponse, GetAccountResponse, GetPocketBalanceResponse } from "@fiado/type-kit/bin/account";
|
|
2
|
-
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
3
|
-
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
4
|
-
import { IPublisher } from "../queue/interfaces/IPublisher";
|
|
5
|
-
export interface IAccountFiadoIncApi extends IPublisher {
|
|
6
|
-
confirmUserCreation(provider: Provider, externalUserId: string, request: AccountCreateRequest): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
7
|
-
createAccount(provider: Provider, data: AccountCreateRequest): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
8
|
-
getAccountByDirectoryId(provider: Provider, directoryId: string): Promise<FiadoApiResponse<GetAccountResponse[]>>;
|
|
9
|
-
getPocketBalance(provider: Provider, directoryId: string): Promise<FiadoApiResponse<GetPocketBalanceResponse>>;
|
|
10
|
-
updatePocketBalance(provider: Provider, pocketId: string, request: AccountUpdateBalanceRequest): Promise<FiadoApiResponse<null>>;
|
|
11
|
-
getPocketBalanceById(provider: Provider, pocketId: string): Promise<FiadoApiResponse<GetPocketBalanceResponse>>;
|
|
12
|
-
executeP2pTransaction(provider: Provider, request: ExecuteP2pOperationRequest): Promise<FiadoApiResponse<ExecuteP2pOperationResponse>>;
|
|
13
|
-
executePocketTransaction(provider: Provider, pocketId: string, request: ExecutePocketOperationRequest): Promise<FiadoApiResponse<ExecutePocketOperationResponse[]>>;
|
|
14
|
-
deletePocket(provider: Provider, pocketId: string): Promise<FiadoApiResponse<void>>;
|
|
15
|
-
update(provider: Provider, directoryId: string, data: AccountUpdateRequest): Promise<FiadoApiResponse<void>>;
|
|
16
|
-
replaceExternalAccount(provider: Provider, directoryId: string, externalAccountId: string, isPrincipal: boolean): Promise<FiadoApiResponse<void>>;
|
|
17
|
-
getAccountByExternalAccountId(provider: Provider, externalAccountId: string): Promise<FiadoApiResponse<GetAccountResponse[]>>;
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Provider, ProviderDocumentUploadRequest } from "@fiado/type-kit/bin/provider";
|
|
2
|
-
import { IPublisher } from "./interfaces/IPublisher";
|
|
3
|
-
export declare class Publisher implements IPublisher {
|
|
4
|
-
private readonly FIADO_INC_KYC_MESSAGE_QUEUE;
|
|
5
|
-
publish(provider: Provider, message: {
|
|
6
|
-
externalUserId: string;
|
|
7
|
-
input: ProviderDocumentUploadRequest;
|
|
8
|
-
}): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.Publisher = void 0;
|
|
10
|
-
const client_sqs_1 = require("@aws-sdk/client-sqs");
|
|
11
|
-
const inversify_1 = require("inversify");
|
|
12
|
-
let Publisher = class Publisher {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.FIADO_INC_KYC_MESSAGE_QUEUE = process.env.FIADO_INC_KYC_MESSAGE_QUEUE;
|
|
15
|
-
}
|
|
16
|
-
async publish(provider, message) {
|
|
17
|
-
try {
|
|
18
|
-
const client = new client_sqs_1.SQSClient();
|
|
19
|
-
const sendMessageRequest = {
|
|
20
|
-
QueueUrl: this.FIADO_INC_KYC_MESSAGE_QUEUE,
|
|
21
|
-
MessageBody: JSON.stringify(message),
|
|
22
|
-
};
|
|
23
|
-
const command = new client_sqs_1.SendMessageCommand(sendMessageRequest);
|
|
24
|
-
await client.send(command);
|
|
25
|
-
}
|
|
26
|
-
catch (error) {
|
|
27
|
-
throw new Error(`Error publishing message to queue ${': ' + error.message}`);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.Publisher = Publisher;
|
|
32
|
-
exports.Publisher = Publisher = __decorate([
|
|
33
|
-
(0, inversify_1.injectable)()
|
|
34
|
-
], Publisher);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IAccountFiadoSAApi } from "./interfaces/IAccountFiadoSAApi";
|
|
2
|
-
import { AccountCreateRequest, AccountCreateResponse, AccountUpdateRequest, GetAccountResponse, SPEITransferUpdateRequest } from "@fiado/type-kit/bin/account";
|
|
3
|
-
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
4
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
5
|
-
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
6
|
-
export default class AccountFiadoSAApi implements IAccountFiadoSAApi {
|
|
7
|
-
private httpRequest;
|
|
8
|
-
private readonly baseUrl;
|
|
9
|
-
constructor(httpRequest: IHttpRequest);
|
|
10
|
-
cancelAccount(directoryId: string, accountNumber: string, documentNumber: string): Promise<ApiGatewayResponse<void>>;
|
|
11
|
-
createAccount(provider: Provider, data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse[]>>;
|
|
12
|
-
getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse[]>>;
|
|
13
|
-
update(directoryId: string, data: AccountUpdateRequest): Promise<ApiGatewayResponse<void>>;
|
|
14
|
-
updateSpeiTransferRequest(transactionNumber: string, input: Partial<SPEITransferUpdateRequest>): Promise<ApiGatewayResponse<void>>;
|
|
15
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const inversify_1 = require("inversify");
|
|
16
|
-
let AccountFiadoSAApi = class AccountFiadoSAApi {
|
|
17
|
-
constructor(httpRequest) {
|
|
18
|
-
this.httpRequest = httpRequest;
|
|
19
|
-
this.baseUrl = process.env.ACCOUNT_FIADOSA_LAMBDA_URL || "";
|
|
20
|
-
}
|
|
21
|
-
async cancelAccount(directoryId, accountNumber, documentNumber) {
|
|
22
|
-
const url = `${this.baseUrl}/cancel`;
|
|
23
|
-
return await this.httpRequest.post(url, { directoryId, accountNumber, documentNumber });
|
|
24
|
-
}
|
|
25
|
-
async createAccount(provider, data) {
|
|
26
|
-
const url = `${this.baseUrl}`;
|
|
27
|
-
return await this.httpRequest.post(url, data);
|
|
28
|
-
}
|
|
29
|
-
async getAccountByDirectoryId(directoryId) {
|
|
30
|
-
const url = `${this.baseUrl}users/${directoryId}`;
|
|
31
|
-
return await this.httpRequest.get(url);
|
|
32
|
-
}
|
|
33
|
-
async update(directoryId, data) {
|
|
34
|
-
const url = `${this.baseUrl}users/${directoryId}`;
|
|
35
|
-
return await this.httpRequest.put(url, data);
|
|
36
|
-
}
|
|
37
|
-
async updateSpeiTransferRequest(transactionNumber, input) {
|
|
38
|
-
const url = `${this.baseUrl}/spei/${transactionNumber}`;
|
|
39
|
-
return await this.httpRequest.put(url, input);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
AccountFiadoSAApi = __decorate([
|
|
43
|
-
(0, inversify_1.injectable)(),
|
|
44
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
45
|
-
__metadata("design:paramtypes", [Object])
|
|
46
|
-
], AccountFiadoSAApi);
|
|
47
|
-
exports.default = AccountFiadoSAApi;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./interfaces/IAccountFiadoSAApi"), exports);
|
|
18
|
-
__exportStar(require("./AccountFiadoSAApi"), exports);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AccountCreateRequest, AccountCreateResponse, AccountUpdateRequest, GetAccountResponse, SPEITransferUpdateRequest } from "@fiado/type-kit/bin/account";
|
|
2
|
-
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
3
|
-
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
4
|
-
export interface IAccountFiadoSAApi {
|
|
5
|
-
createAccount(provider: Provider, data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse[]>>;
|
|
6
|
-
getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse[]>>;
|
|
7
|
-
update(directoryId: string, data: AccountUpdateRequest): Promise<ApiGatewayResponse<void>>;
|
|
8
|
-
cancelAccount(directoryId: string, accountNumber: string, documentNumber: string): Promise<ApiGatewayResponse<void>>;
|
|
9
|
-
updateSpeiTransferRequest(id: string, input: Partial<SPEITransferUpdateRequest>): Promise<ApiGatewayResponse<void>>;
|
|
10
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IAccountPagoConfiadoApi } from "./interfaces/IAccountPagoConfiadoApi";
|
|
2
|
-
import { AccountCreateRequest, AccountCreateResponse, AccountUpdateBalanceRequest, AccountUpdateRequest, GetAccountResponse } from "@fiado/type-kit/bin/account";
|
|
3
|
-
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
4
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
5
|
-
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
6
|
-
export default class AccountPagoConfiadoApi implements IAccountPagoConfiadoApi {
|
|
7
|
-
private httpRequest;
|
|
8
|
-
private readonly baseUrl;
|
|
9
|
-
constructor(httpRequest: IHttpRequest);
|
|
10
|
-
cancelAccount(directoryId: string, accountNumber?: string, documentNumber?: string): Promise<ApiGatewayResponse<void>>;
|
|
11
|
-
createAccount(provider: Provider, data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse>>;
|
|
12
|
-
getAccountByDirectoryId(directoryId: string): Promise<ApiGatewayResponse<GetAccountResponse[]>>;
|
|
13
|
-
updateAccountBalance(accountId: string, params: AccountUpdateBalanceRequest): Promise<ApiGatewayResponse<Boolean>>;
|
|
14
|
-
update(directoryId: string, data: AccountUpdateRequest): Promise<ApiGatewayResponse<void>>;
|
|
15
|
-
updateByAccountNumber(accountNumber: string, data: AccountUpdateRequest): Promise<ApiGatewayResponse<void>>;
|
|
16
|
-
getAccountByAccountNumber(accountNumber: string): Promise<ApiGatewayResponse<void>>;
|
|
17
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const inversify_1 = require("inversify");
|
|
16
|
-
let AccountPagoConfiadoApi = class AccountPagoConfiadoApi {
|
|
17
|
-
constructor(httpRequest) {
|
|
18
|
-
this.httpRequest = httpRequest;
|
|
19
|
-
this.baseUrl = process.env.ACCOUNT_PAGOCONFIADO_LAMBDA_URL || "";
|
|
20
|
-
}
|
|
21
|
-
async cancelAccount(directoryId, accountNumber, documentNumber) {
|
|
22
|
-
const url = `${this.baseUrl}/cancel`;
|
|
23
|
-
return await this.httpRequest.post(url, { directoryId, accountNumber, documentNumber });
|
|
24
|
-
}
|
|
25
|
-
async createAccount(provider, data) {
|
|
26
|
-
const url = `${this.baseUrl}`;
|
|
27
|
-
return await this.httpRequest.post(url, data);
|
|
28
|
-
}
|
|
29
|
-
async getAccountByDirectoryId(directoryId) {
|
|
30
|
-
const url = `${this.baseUrl}users/${directoryId}`;
|
|
31
|
-
return await this.httpRequest.get(url);
|
|
32
|
-
}
|
|
33
|
-
async updateAccountBalance(accountId, params) {
|
|
34
|
-
const url = `${this.baseUrl}${accountId}/balance`;
|
|
35
|
-
return await this.httpRequest.put(url, params);
|
|
36
|
-
}
|
|
37
|
-
async update(directoryId, data) {
|
|
38
|
-
const url = `${this.baseUrl}users/${directoryId}`;
|
|
39
|
-
return await this.httpRequest.put(url, data);
|
|
40
|
-
}
|
|
41
|
-
async updateByAccountNumber(accountNumber, data) {
|
|
42
|
-
const url = `${this.baseUrl}users/accountNumber/${accountNumber}`;
|
|
43
|
-
return await this.httpRequest.put(url, data);
|
|
44
|
-
}
|
|
45
|
-
async getAccountByAccountNumber(accountNumber) {
|
|
46
|
-
const url = `${this.baseUrl}users/accountNumber/${accountNumber}`;
|
|
47
|
-
return await this.httpRequest.get(url);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
AccountPagoConfiadoApi = __decorate([
|
|
51
|
-
(0, inversify_1.injectable)(),
|
|
52
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
53
|
-
__metadata("design:paramtypes", [Object])
|
|
54
|
-
], AccountPagoConfiadoApi);
|
|
55
|
-
exports.default = AccountPagoConfiadoApi;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./interfaces/IAccountPagoConfiadoApi"), exports);
|
|
18
|
-
__exportStar(require("./AccountPagoConfiadoApi"), exports);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AccountCreateRequest, AccountCreateResponse, AccountUpdateBalanceRequest, AccountUpdateRequest, GetAccountResponse } from "@fiado/type-kit/bin/account";
|
|
2
|
-
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
3
|
-
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
4
|
-
export interface IAccountPagoConfiadoApi {
|
|
5
|
-
createAccount(provider: Provider, data: AccountCreateRequest): Promise<ApiGatewayResponse<AccountCreateResponse>>;
|
|
6
|
-
getAccountByDirectoryId(directoryId: string, provider: string): Promise<ApiGatewayResponse<GetAccountResponse[]>>;
|
|
7
|
-
updateAccountBalance(accountId: string, params: AccountUpdateBalanceRequest): Promise<ApiGatewayResponse<Boolean>>;
|
|
8
|
-
update(directoryId: string, data: AccountUpdateRequest): Promise<ApiGatewayResponse<void>>;
|
|
9
|
-
updateByAccountNumber(accountNumber: string, data: AccountUpdateRequest): Promise<ApiGatewayResponse<void>>;
|
|
10
|
-
getAccountByAccountNumber(accountNumber: string): Promise<ApiGatewayResponse<void>>;
|
|
11
|
-
cancelAccount(directoryId: string, accountNumber?: string, documentNumber?: string): Promise<ApiGatewayResponse<void>>;
|
|
12
|
-
}
|