@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/bin/tern/api/TernApi.js
DELETED
|
@@ -1,125 +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 TernApi = class TernApi {
|
|
17
|
-
constructor(httpRequest) {
|
|
18
|
-
this.httpRequest = httpRequest;
|
|
19
|
-
this.baseUrl = process.env.TERN_LAMBDA_URL || "";
|
|
20
|
-
}
|
|
21
|
-
/// USERS
|
|
22
|
-
async getUser(request) {
|
|
23
|
-
const url = `${this.baseUrl}users/${request.externalUserId}`;
|
|
24
|
-
return await this.httpRequest.get(url);
|
|
25
|
-
}
|
|
26
|
-
async createUser(request) {
|
|
27
|
-
const url = `${this.baseUrl}users/create`;
|
|
28
|
-
return await this.httpRequest.post(url, request);
|
|
29
|
-
}
|
|
30
|
-
/// ACCOUNTS
|
|
31
|
-
async getAccount(request) {
|
|
32
|
-
const url = `${this.baseUrl}accounts/${request.externalAccountId}`;
|
|
33
|
-
return await this.httpRequest.get(url);
|
|
34
|
-
}
|
|
35
|
-
async getBusinessAccount(request) {
|
|
36
|
-
const url = `${this.baseUrl}accounts/${request.externalAccountId}?accountType=BUSINESS`;
|
|
37
|
-
return await this.httpRequest.get(url);
|
|
38
|
-
}
|
|
39
|
-
async createAccount(request) {
|
|
40
|
-
const url = `${this.baseUrl}accounts/create`;
|
|
41
|
-
return await this.httpRequest.post(url, request);
|
|
42
|
-
}
|
|
43
|
-
/// CARDS
|
|
44
|
-
async getCardSensitiveInformation(externalCardId, externalUserId) {
|
|
45
|
-
const url = `${this.baseUrl}cards/${externalCardId}/sensitive`;
|
|
46
|
-
return await this.httpRequest.get(url);
|
|
47
|
-
}
|
|
48
|
-
async getCardsById(externalCardId) {
|
|
49
|
-
const url = `${this.baseUrl}cards/${externalCardId}/`;
|
|
50
|
-
return await this.httpRequest.get(url);
|
|
51
|
-
}
|
|
52
|
-
async createCard(request) {
|
|
53
|
-
const url = `${this.baseUrl}cards/create`;
|
|
54
|
-
return await this.httpRequest.post(url, request);
|
|
55
|
-
}
|
|
56
|
-
async blockCard(request) {
|
|
57
|
-
const url = `${this.baseUrl}cards/block`;
|
|
58
|
-
return await this.httpRequest.post(url, request);
|
|
59
|
-
}
|
|
60
|
-
async changePin(request) {
|
|
61
|
-
const url = `${this.baseUrl}cards/${request.cardId}/`;
|
|
62
|
-
return await this.httpRequest.put(url, request);
|
|
63
|
-
}
|
|
64
|
-
async updateCard(request) {
|
|
65
|
-
const url = `${this.baseUrl}cards/${request.cardId}/`;
|
|
66
|
-
return await this.httpRequest.put(url, request);
|
|
67
|
-
}
|
|
68
|
-
async activateCard(request) {
|
|
69
|
-
const url = `${this.baseUrl}cards/activate`;
|
|
70
|
-
return await this.httpRequest.post(url, request);
|
|
71
|
-
}
|
|
72
|
-
async assignCardToUser(request) {
|
|
73
|
-
const url = `${this.baseUrl}cards/activate`;
|
|
74
|
-
return await this.httpRequest.post(url, request);
|
|
75
|
-
}
|
|
76
|
-
async p2pTransfer(request) {
|
|
77
|
-
const url = `${this.baseUrl}users/accounts/transfer_balances`;
|
|
78
|
-
return await this.httpRequest.patch(url, request);
|
|
79
|
-
}
|
|
80
|
-
//transactions
|
|
81
|
-
async getTransactions(accountId, page, pageSize, startDate, endDate, detail = false, raw = false) {
|
|
82
|
-
try {
|
|
83
|
-
let url = `${this.baseUrl}users/${accountId}/v2/transactions?page=${page}&detail=${detail}&raw=${raw}`;
|
|
84
|
-
// Verificar si pageSize es válido y agregarlo
|
|
85
|
-
if (pageSize != null) {
|
|
86
|
-
url += `&pageSize=${encodeURIComponent(pageSize)}`;
|
|
87
|
-
}
|
|
88
|
-
// Verificar si startDate es válido y agregarlo
|
|
89
|
-
if (startDate) {
|
|
90
|
-
url += `&startDate=${encodeURIComponent(startDate)}`;
|
|
91
|
-
}
|
|
92
|
-
// Verificar si endDate es válido y agregarlo
|
|
93
|
-
if (endDate) {
|
|
94
|
-
url += `&endDate=${encodeURIComponent(endDate)}`;
|
|
95
|
-
}
|
|
96
|
-
return await this.httpRequest.get(url);
|
|
97
|
-
}
|
|
98
|
-
catch (error) {
|
|
99
|
-
console.log(error);
|
|
100
|
-
throw error;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
async getCardTransactions(externalUserId, page, pageSize) {
|
|
104
|
-
const url = `${this.baseUrl}users/${externalUserId}/transactions?page=${page}&pageSize=${pageSize}`;
|
|
105
|
-
return await this.httpRequest.get(url);
|
|
106
|
-
}
|
|
107
|
-
async getAccountTransactions(accountId) {
|
|
108
|
-
const url = `${this.baseUrl}accounts/${accountId}/transactions/all`;
|
|
109
|
-
return await this.httpRequest.get(url);
|
|
110
|
-
}
|
|
111
|
-
async getCardsByUserId(externalUserId) {
|
|
112
|
-
const url = `${this.baseUrl}users/${externalUserId}/cards`;
|
|
113
|
-
return await this.httpRequest.get(url);
|
|
114
|
-
}
|
|
115
|
-
async getAccountsByUserId(externalUserId) {
|
|
116
|
-
const url = `${this.baseUrl}users/${externalUserId}/accounts`;
|
|
117
|
-
return await this.httpRequest.get(url);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
TernApi = __decorate([
|
|
121
|
-
(0, inversify_1.injectable)(),
|
|
122
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
123
|
-
__metadata("design:paramtypes", [Object])
|
|
124
|
-
], TernApi);
|
|
125
|
-
exports.default = TernApi;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BankAccountP2pTransferRequest, CreateBankAccountRequest, CreateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
|
|
2
|
-
import { GetBankAccountUserRequest } from "@fiado/type-kit/bin/account/dtos/GetBankAccountUserRequest";
|
|
3
|
-
import { GetBankAccountRequest } from "@fiado/type-kit/bin/account/dtos/GetBankAccountRequest";
|
|
4
|
-
import { ActivateBankAccountCardRequest, AssignCardRequest, CreateBankAccountCardRequest, UpdateBankAccountCardRequest, UpdateBankAccountCardResponse } from "@fiado/type-kit/bin/card";
|
|
5
|
-
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
6
|
-
import { BankAccountP2pTransferResponse } from "@fiado/type-kit/bin/account/dtos/BankAccountP2pTransferResponse";
|
|
7
|
-
export interface ITernApi {
|
|
8
|
-
getUser(request: GetBankAccountUserRequest): Promise<any>;
|
|
9
|
-
getAccount(request: GetBankAccountRequest): Promise<any>;
|
|
10
|
-
getBusinessAccount(request: GetBankAccountRequest): Promise<any>;
|
|
11
|
-
createUser(request: CreateBankAccountUserRequest): Promise<any>;
|
|
12
|
-
createAccount(request: CreateBankAccountRequest): Promise<any>;
|
|
13
|
-
getCardsById(externalCardId: string): Promise<any>;
|
|
14
|
-
createCard(request: CreateBankAccountCardRequest): Promise<any>;
|
|
15
|
-
blockCard(request: UpdateBankAccountCardRequest): Promise<any>;
|
|
16
|
-
changePin(request: UpdateBankAccountCardRequest): Promise<UpdateBankAccountCardResponse>;
|
|
17
|
-
updateCard(request: UpdateBankAccountCardRequest): Promise<any>;
|
|
18
|
-
activateCard(request: ActivateBankAccountCardRequest): Promise<any>;
|
|
19
|
-
assignCardToUser(request: AssignCardRequest): Promise<any>;
|
|
20
|
-
p2pTransfer(request: BankAccountP2pTransferRequest): Promise<FiadoApiResponse<BankAccountP2pTransferResponse>>;
|
|
21
|
-
getTransactions(accountId: string, page: number, pageSize?: number | null, startDate?: string | null, endDate?: string | null, detail?: boolean, raw?: boolean): Promise<any>;
|
|
22
|
-
getCardTransactions(externalUserId: string, page: number, pageSize: number): Promise<any>;
|
|
23
|
-
getAccountTransactions(accountId: string): Promise<any>;
|
|
24
|
-
getCardsByUserId(externalUserId: string): Promise<any>;
|
|
25
|
-
getAccountsByUserId(externalUserId: string): Promise<any>;
|
|
26
|
-
}
|
package/bin/tern/index.d.ts
DELETED
package/bin/tern/index.js
DELETED
|
@@ -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("./api/TernApi"), exports);
|
|
18
|
-
__exportStar(require("./api/interfaces/ITernApi"), exports);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
-
import { ITransactionApi } from "./interfaces/ITransactionApi";
|
|
3
|
-
import { TransactionSourceEnum } from "@fiado/type-kit/bin/transaction";
|
|
4
|
-
export default class TransactionApi implements ITransactionApi {
|
|
5
|
-
private httpRequest;
|
|
6
|
-
private readonly baseUrl;
|
|
7
|
-
constructor(httpRequest: IHttpRequest);
|
|
8
|
-
getActivityProblemsByStatus(status: string, index?: string, pageSize?: number): Promise<any>;
|
|
9
|
-
updateActivityProblemStatus(id: string, params: {
|
|
10
|
-
status: string;
|
|
11
|
-
observation?: string;
|
|
12
|
-
correctedBy?: string;
|
|
13
|
-
correctedAt?: number;
|
|
14
|
-
updatedBy: string;
|
|
15
|
-
}): Promise<any>;
|
|
16
|
-
getTransactionsByDirectoryIdAndSource(params: {
|
|
17
|
-
directoryId: string;
|
|
18
|
-
source: TransactionSourceEnum;
|
|
19
|
-
index?: string;
|
|
20
|
-
pageSize?: number;
|
|
21
|
-
}): Promise<any>;
|
|
22
|
-
getFiadoTxByDirectoryAndBetweenDates(params: {
|
|
23
|
-
directoryId: string;
|
|
24
|
-
targetOrSource: string;
|
|
25
|
-
startDate: string;
|
|
26
|
-
endDate: string;
|
|
27
|
-
index?: string;
|
|
28
|
-
pageSize?: number;
|
|
29
|
-
}): Promise<any>;
|
|
30
|
-
getTransactionDetailByTransactionNumber(params: {
|
|
31
|
-
transactionNumber: string;
|
|
32
|
-
directoryId: string;
|
|
33
|
-
source: TransactionSourceEnum;
|
|
34
|
-
}): Promise<any>;
|
|
35
|
-
getTransactionDetailById(params: {
|
|
36
|
-
id: string;
|
|
37
|
-
source: TransactionSourceEnum;
|
|
38
|
-
}): Promise<any>;
|
|
39
|
-
updateTransaction(params: {
|
|
40
|
-
id: string;
|
|
41
|
-
source: TransactionSourceEnum;
|
|
42
|
-
params: any;
|
|
43
|
-
}): Promise<any>;
|
|
44
|
-
getTransactionsByDisputeOrFraudLogId(id: string): Promise<any>;
|
|
45
|
-
}
|
|
@@ -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 TransactionApi = class TransactionApi {
|
|
17
|
-
constructor(httpRequest) {
|
|
18
|
-
this.httpRequest = httpRequest;
|
|
19
|
-
this.baseUrl = process.env.TRANSACTION_LAMBDA_URL || "";
|
|
20
|
-
}
|
|
21
|
-
async getActivityProblemsByStatus(status, index, pageSize) {
|
|
22
|
-
let queryParams = [];
|
|
23
|
-
if (index) {
|
|
24
|
-
queryParams.push(`index=${index}`);
|
|
25
|
-
}
|
|
26
|
-
if (pageSize) {
|
|
27
|
-
queryParams.push(`pageSize=${pageSize}`);
|
|
28
|
-
}
|
|
29
|
-
queryParams.push(`status=${status}`);
|
|
30
|
-
const url = `${this.baseUrl}private/activityProblems/?${queryParams.join('&')}`;
|
|
31
|
-
return await this.httpRequest.get(url);
|
|
32
|
-
}
|
|
33
|
-
async updateActivityProblemStatus(id, params) {
|
|
34
|
-
const url = `${this.baseUrl}private/activityProblems/${id}`;
|
|
35
|
-
return await this.httpRequest.put(url, params);
|
|
36
|
-
}
|
|
37
|
-
async getTransactionsByDirectoryIdAndSource(params) {
|
|
38
|
-
let queryParams = [];
|
|
39
|
-
if (!params.index) {
|
|
40
|
-
queryParams.push(`index=${params.index}`);
|
|
41
|
-
}
|
|
42
|
-
if (!params.pageSize) {
|
|
43
|
-
queryParams.push(`pageSize=${params.pageSize}`);
|
|
44
|
-
}
|
|
45
|
-
const url = `${this.baseUrl}trx/transactions/${params.source}/${params.directoryId}?${queryParams.join('&')}`;
|
|
46
|
-
return await this.httpRequest.get(url);
|
|
47
|
-
}
|
|
48
|
-
async getFiadoTxByDirectoryAndBetweenDates(params) {
|
|
49
|
-
let queryParams = [];
|
|
50
|
-
if (!params.index) {
|
|
51
|
-
queryParams.push(`index=${params.index}`);
|
|
52
|
-
}
|
|
53
|
-
if (!params.pageSize) {
|
|
54
|
-
queryParams.push(`pageSize=${params.pageSize}`);
|
|
55
|
-
}
|
|
56
|
-
queryParams.push(`startDate=${params.startDate}`);
|
|
57
|
-
queryParams.push(`endDate=${params.endDate}`);
|
|
58
|
-
queryParams.push(`targetOrSource=${params.targetOrSource}`);
|
|
59
|
-
const url = `${this.baseUrl}trx/fiadotx/${params.directoryId}/bdates?${queryParams.join('&')}`;
|
|
60
|
-
return await this.httpRequest.get(url);
|
|
61
|
-
}
|
|
62
|
-
async getTransactionDetailByTransactionNumber(params) {
|
|
63
|
-
const url = `${this.baseUrl}private/${params.transactionNumber}/${params.directoryId}/${params.source}`;
|
|
64
|
-
return await this.httpRequest.get(url);
|
|
65
|
-
}
|
|
66
|
-
async getTransactionDetailById(params) {
|
|
67
|
-
const url = `${this.baseUrl}private/transaction/${params.source}/${params.id}`;
|
|
68
|
-
return await this.httpRequest.get(url);
|
|
69
|
-
}
|
|
70
|
-
async updateTransaction(params) {
|
|
71
|
-
const url = `${this.baseUrl}private/transaction/${params.source}/${params.id}`;
|
|
72
|
-
return await this.httpRequest.put(url, params.params);
|
|
73
|
-
}
|
|
74
|
-
async getTransactionsByDisputeOrFraudLogId(id) {
|
|
75
|
-
const url = `${this.baseUrl}transactions/disputes/${id}`;
|
|
76
|
-
return await this.httpRequest.get(url);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
TransactionApi = __decorate([
|
|
80
|
-
(0, inversify_1.injectable)(),
|
|
81
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
82
|
-
__metadata("design:paramtypes", [Object])
|
|
83
|
-
], TransactionApi);
|
|
84
|
-
exports.default = TransactionApi;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { TransactionSourceEnum } from "@fiado/type-kit/bin/transaction";
|
|
2
|
-
export interface ITransactionApi {
|
|
3
|
-
getTransactionsByDirectoryIdAndSource(params: {
|
|
4
|
-
directoryId: string;
|
|
5
|
-
source: TransactionSourceEnum;
|
|
6
|
-
index?: string;
|
|
7
|
-
pageSize?: number;
|
|
8
|
-
}): Promise<any>;
|
|
9
|
-
getFiadoTxByDirectoryAndBetweenDates(params: {
|
|
10
|
-
directoryId: string;
|
|
11
|
-
targetOrSource: string;
|
|
12
|
-
startDate: string;
|
|
13
|
-
endDate: string;
|
|
14
|
-
index?: string;
|
|
15
|
-
pageSize?: number;
|
|
16
|
-
}): Promise<any>;
|
|
17
|
-
getTransactionDetailByTransactionNumber(params: {
|
|
18
|
-
transactionNumber: string;
|
|
19
|
-
directoryId: string;
|
|
20
|
-
source: TransactionSourceEnum;
|
|
21
|
-
}): Promise<any>;
|
|
22
|
-
getTransactionDetailById(params: {
|
|
23
|
-
id: string;
|
|
24
|
-
source: TransactionSourceEnum;
|
|
25
|
-
}): Promise<any>;
|
|
26
|
-
updateTransaction(params: {
|
|
27
|
-
id: string;
|
|
28
|
-
source: TransactionSourceEnum;
|
|
29
|
-
params: any;
|
|
30
|
-
}): Promise<any>;
|
|
31
|
-
getTransactionsByDisputeOrFraudLogId(id: string): Promise<any>;
|
|
32
|
-
getActivityProblemsByStatus(status: string, index?: string, pageSize?: number): Promise<any>;
|
|
33
|
-
updateActivityProblemStatus(id: string, params: {
|
|
34
|
-
status: string;
|
|
35
|
-
observation?: string;
|
|
36
|
-
correctedBy?: string;
|
|
37
|
-
correctedAt?: number;
|
|
38
|
-
updatedBy: string;
|
|
39
|
-
}): Promise<any>;
|
|
40
|
-
}
|
package/bin/transaction/index.js
DELETED
|
@@ -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("./queue/TransactionPublisher"), exports);
|
|
18
|
-
__exportStar(require("./queue/interfaces/ITransactionPublisher"), exports);
|
|
19
|
-
__exportStar(require("./api/TransactionApi"), exports);
|
|
20
|
-
__exportStar(require("./api/interfaces/ITransactionApi"), exports);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ITransactionPublisher } from "./interfaces/ITransactionPublisher";
|
|
2
|
-
import { TransactionCreateRequest } from "@fiado/type-kit/bin/transaction";
|
|
3
|
-
export declare class TransactionPublisher implements ITransactionPublisher {
|
|
4
|
-
private readonly TRANSACTION_QUEUE;
|
|
5
|
-
publish(message: TransactionCreateRequest): Promise<void>;
|
|
6
|
-
}
|
|
@@ -1,36 +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.TransactionPublisher = void 0;
|
|
10
|
-
const client_sqs_1 = require("@aws-sdk/client-sqs");
|
|
11
|
-
const inversify_1 = require("inversify");
|
|
12
|
-
let TransactionPublisher = class TransactionPublisher {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.TRANSACTION_QUEUE = process.env.TRANSACTION_QUEUE;
|
|
15
|
-
}
|
|
16
|
-
async publish(message) {
|
|
17
|
-
try {
|
|
18
|
-
const client = new client_sqs_1.SQSClient();
|
|
19
|
-
const sendMessageRequest = {
|
|
20
|
-
QueueUrl: this.TRANSACTION_QUEUE,
|
|
21
|
-
MessageBody: JSON.stringify(message),
|
|
22
|
-
MessageGroupId: message.transactionNumber,
|
|
23
|
-
MessageDeduplicationId: message.transactionNumber
|
|
24
|
-
};
|
|
25
|
-
const command = new client_sqs_1.SendMessageCommand(sendMessageRequest);
|
|
26
|
-
await client.send(command);
|
|
27
|
-
}
|
|
28
|
-
catch (error) {
|
|
29
|
-
throw new Error(`Error publishing message to queue ${': ' + error.message}`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.TransactionPublisher = TransactionPublisher;
|
|
34
|
-
exports.TransactionPublisher = TransactionPublisher = __decorate([
|
|
35
|
-
(0, inversify_1.injectable)()
|
|
36
|
-
], TransactionPublisher);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ITransactionProcessorApi } from "./interfaces/ITransactionProcessorApi";
|
|
2
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
-
import { AuthorizeCollectorOrderRequest, AuthorizeCollectorOrderResponse, AuthorizeCollectorTransactionRequest, AuthorizeCreditCardPurchaseRequest, AuthorizeSpeiBankTransferNcRequest, AuthorizeSpeiMexBankTransferInRequest } from "@fiado/type-kit/bin/transactionProcessor";
|
|
4
|
-
import ProcessUpdateLevelRequest from "@fiado/type-kit/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest";
|
|
5
|
-
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
6
|
-
export default class TransactionProcessorApi implements ITransactionProcessorApi {
|
|
7
|
-
private httpRequest;
|
|
8
|
-
private readonly baseUrl;
|
|
9
|
-
constructor(httpRequest: IHttpRequest);
|
|
10
|
-
authorizeTransaction(request: AuthorizeCreditCardPurchaseRequest): Promise<any>;
|
|
11
|
-
authorizeSpeiBankTransferInTransaction(request: AuthorizeSpeiMexBankTransferInRequest): Promise<any>;
|
|
12
|
-
processUpdateLevel(request: ProcessUpdateLevelRequest): Promise<any>;
|
|
13
|
-
authorizeCollectorTransaction(request: AuthorizeCollectorTransactionRequest): Promise<any>;
|
|
14
|
-
authorizePagoConfiadoSpeiTransaction(request: AuthorizeSpeiBankTransferNcRequest): Promise<any>;
|
|
15
|
-
authorizeCollectorOrderTransaction(request: AuthorizeCollectorOrderRequest): Promise<FiadoApiResponse<AuthorizeCollectorOrderResponse>>;
|
|
16
|
-
}
|
|
@@ -1,51 +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 TransactionProcessorApi = class TransactionProcessorApi {
|
|
17
|
-
constructor(httpRequest) {
|
|
18
|
-
this.httpRequest = httpRequest;
|
|
19
|
-
this.baseUrl = process.env.TRANSACTION_PROCESSOR_LAMBDA_URL || "";
|
|
20
|
-
}
|
|
21
|
-
async authorizeTransaction(request) {
|
|
22
|
-
const url = `${this.baseUrl}authorize`;
|
|
23
|
-
return await this.httpRequest.post(url, request);
|
|
24
|
-
}
|
|
25
|
-
async authorizeSpeiBankTransferInTransaction(request) {
|
|
26
|
-
const url = `${this.baseUrl}spei/authorize`;
|
|
27
|
-
return await this.httpRequest.post(url, request);
|
|
28
|
-
}
|
|
29
|
-
async processUpdateLevel(request) {
|
|
30
|
-
const url = `${this.baseUrl}accountLevel`;
|
|
31
|
-
return await this.httpRequest.put(url, request);
|
|
32
|
-
}
|
|
33
|
-
async authorizeCollectorTransaction(request) {
|
|
34
|
-
const url = `${this.baseUrl}collector`;
|
|
35
|
-
return await this.httpRequest.post(url, request);
|
|
36
|
-
}
|
|
37
|
-
async authorizePagoConfiadoSpeiTransaction(request) {
|
|
38
|
-
const url = `${this.baseUrl}spei/pagoconfiado/authorize`;
|
|
39
|
-
return await this.httpRequest.post(url, request);
|
|
40
|
-
}
|
|
41
|
-
async authorizeCollectorOrderTransaction(request) {
|
|
42
|
-
const url = `${this.baseUrl}collector/orders`;
|
|
43
|
-
return await this.httpRequest.post(url, request);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
TransactionProcessorApi = __decorate([
|
|
47
|
-
(0, inversify_1.injectable)(),
|
|
48
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
49
|
-
__metadata("design:paramtypes", [Object])
|
|
50
|
-
], TransactionProcessorApi);
|
|
51
|
-
exports.default = TransactionProcessorApi;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
2
|
-
import { AuthorizeCollectorOrderRequest, AuthorizeCollectorOrderResponse, AuthorizeCollectorTransactionRequest, AuthorizeCreditCardPurchaseRequest, AuthorizeSpeiBankTransferNcRequest, AuthorizeSpeiMexBankTransferInRequest } from "@fiado/type-kit/bin/transactionProcessor";
|
|
3
|
-
import ProcessUpdateLevelRequest from "@fiado/type-kit/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest";
|
|
4
|
-
export interface ITransactionProcessorApi {
|
|
5
|
-
authorizeTransaction(request: AuthorizeCreditCardPurchaseRequest): Promise<any>;
|
|
6
|
-
authorizeSpeiBankTransferInTransaction(request: AuthorizeSpeiMexBankTransferInRequest): Promise<any>;
|
|
7
|
-
processUpdateLevel(request: ProcessUpdateLevelRequest): Promise<any>;
|
|
8
|
-
authorizeCollectorTransaction(request: AuthorizeCollectorTransactionRequest): Promise<any>;
|
|
9
|
-
authorizePagoConfiadoSpeiTransaction(request: AuthorizeSpeiBankTransferNcRequest): Promise<any>;
|
|
10
|
-
authorizeCollectorOrderTransaction(request: AuthorizeCollectorOrderRequest): Promise<FiadoApiResponse<AuthorizeCollectorOrderResponse>>;
|
|
11
|
-
}
|
|
@@ -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("./api/TransactionProcessorApi"), exports);
|
|
18
|
-
__exportStar(require("./api/interfaces/ITransactionProcessorApi"), exports);
|
|
@@ -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
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.InvokerUtils = void 0;
|
|
13
|
-
const inversify_1 = require("inversify");
|
|
14
|
-
let InvokerUtils = class InvokerUtils {
|
|
15
|
-
constructor() {
|
|
16
|
-
}
|
|
17
|
-
toQueryStringParameters(object) {
|
|
18
|
-
const records = Object.entries(object).reduce((acc, [key, value]) => {
|
|
19
|
-
if (Array.isArray(value)) {
|
|
20
|
-
acc[key] = value.join(','); // Convierte arrays a una cadena separada por comas
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
acc[key] = String(value); // Convierte todos los demás valores a string
|
|
24
|
-
}
|
|
25
|
-
return acc;
|
|
26
|
-
}, {});
|
|
27
|
-
return new URLSearchParams(records).toString();
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.InvokerUtils = InvokerUtils;
|
|
31
|
-
exports.InvokerUtils = InvokerUtils = __decorate([
|
|
32
|
-
(0, inversify_1.injectable)(),
|
|
33
|
-
__metadata("design:paramtypes", [])
|
|
34
|
-
], InvokerUtils);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
-
import { IZendeskApi } from "./interfaces/IZendeskApi";
|
|
3
|
-
import FiadoApiResponse from '@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse';
|
|
4
|
-
import { HelpdeskCreateUserRequest, HelpdeskCreateTicketRequest } from '@fiado/type-kit/bin/helpdesk';
|
|
5
|
-
export declare class ZendeskApi implements IZendeskApi {
|
|
6
|
-
private httpRequest;
|
|
7
|
-
private readonly baseUrl;
|
|
8
|
-
constructor(httpRequest: IHttpRequest);
|
|
9
|
-
createUser(data: HelpdeskCreateUserRequest): Promise<FiadoApiResponse<any>>;
|
|
10
|
-
createTicket(data: HelpdeskCreateTicketRequest): Promise<FiadoApiResponse<any>>;
|
|
11
|
-
}
|
|
@@ -1,41 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
-
};
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ZendeskApi = void 0;
|
|
19
|
-
const dotenv_1 = __importDefault(require("dotenv"));
|
|
20
|
-
const inversify_1 = require("inversify");
|
|
21
|
-
dotenv_1.default.config();
|
|
22
|
-
let ZendeskApi = class ZendeskApi {
|
|
23
|
-
constructor(httpRequest) {
|
|
24
|
-
this.httpRequest = httpRequest;
|
|
25
|
-
this.baseUrl = process.env.ZENDESK_BUSINESS_URL || "";
|
|
26
|
-
}
|
|
27
|
-
async createUser(data) {
|
|
28
|
-
const url = `${this.baseUrl}users/create`;
|
|
29
|
-
return await this.httpRequest.post(url, data);
|
|
30
|
-
}
|
|
31
|
-
async createTicket(data) {
|
|
32
|
-
const url = `${this.baseUrl}tickets/create`;
|
|
33
|
-
return await this.httpRequest.post(url, data);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.ZendeskApi = ZendeskApi;
|
|
37
|
-
exports.ZendeskApi = ZendeskApi = __decorate([
|
|
38
|
-
(0, inversify_1.injectable)(),
|
|
39
|
-
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
40
|
-
__metadata("design:paramtypes", [Object])
|
|
41
|
-
], ZendeskApi);
|
package/bin/zendesk/index.d.ts
DELETED