@fiado/api-invoker 1.3.84 → 1.3.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/account-beneficiary/AccountBeneficiaryApi.d.ts +10 -0
- package/bin/account-beneficiary/AccountBeneficiaryApi.js +32 -0
- package/bin/account-beneficiary/index.d.ts +2 -0
- package/bin/account-beneficiary/index.js +18 -0
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.d.ts +5 -0
- package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.js +2 -0
- package/bin/account-fiadoinc/AccountFiadoIncApi.d.ts +32 -0
- package/bin/account-fiadoinc/AccountFiadoIncApi.js +84 -0
- package/bin/account-fiadoinc/index.d.ts +4 -0
- package/bin/account-fiadoinc/index.js +20 -0
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.d.ts +18 -0
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.js +2 -0
- package/bin/account-fiadoinc/queue/Publisher.d.ts +9 -0
- package/bin/account-fiadoinc/queue/Publisher.js +34 -0
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.d.ts +7 -0
- package/bin/account-fiadoinc/queue/interfaces/IPublisher.js +2 -0
- package/bin/account-fiadosa/AccountFiadoSAApi.d.ts +15 -0
- package/bin/account-fiadosa/AccountFiadoSAApi.js +47 -0
- package/bin/account-fiadosa/index.d.ts +2 -0
- package/bin/account-fiadosa/index.js +18 -0
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.d.ts +10 -0
- package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.js +2 -0
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.d.ts +17 -0
- package/bin/account-pagoconfiado/AccountPagoConfiadoApi.js +55 -0
- package/bin/account-pagoconfiado/index.d.ts +2 -0
- package/bin/account-pagoconfiado/index.js +18 -0
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.d.ts +12 -0
- package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.js +2 -0
- package/bin/activity-business/ActivityApi.d.ts +12 -0
- package/bin/activity-business/ActivityApi.js +49 -0
- package/bin/activity-business/index.d.ts +4 -0
- package/bin/activity-business/index.js +20 -0
- package/bin/activity-business/interfaces/IActivityApi.d.ts +7 -0
- package/bin/activity-business/interfaces/IActivityApi.js +2 -0
- package/bin/activity-business/queue/ActivityPublisher.d.ts +6 -0
- package/bin/activity-business/queue/ActivityPublisher.js +36 -0
- package/bin/activity-business/queue/IActivityPublisher.d.ts +4 -0
- package/bin/activity-business/queue/IActivityPublisher.js +2 -0
- package/bin/address/AddressApi.d.ts +13 -0
- package/bin/address/AddressApi.js +55 -0
- package/bin/address/index.d.ts +2 -0
- package/bin/address/index.js +18 -0
- package/bin/address/interfaces/IAddressApi.d.ts +26 -0
- package/bin/address/interfaces/IAddressApi.js +2 -0
- package/bin/appselectondata/AppSelectionDataApi.d.ts +12 -0
- package/bin/appselectondata/AppSelectionDataApi.js +47 -0
- package/bin/appselectondata/index.d.ts +2 -0
- package/bin/appselectondata/index.js +18 -0
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.d.ts +18 -0
- package/bin/appselectondata/interfaces/IAppSelectionDataApi.js +2 -0
- package/bin/authentication/AuthenticationApi.d.ts +8 -0
- package/bin/authentication/AuthenticationApi.js +32 -0
- package/bin/authentication/index.d.ts +2 -0
- package/bin/authentication/index.js +18 -0
- package/bin/authentication/interfaces/IAuthenticationApi.d.ts +4 -0
- package/bin/authentication/interfaces/IAuthenticationApi.js +2 -0
- package/bin/bankAccount/BankAccountApi.d.ts +13 -0
- package/bin/bankAccount/BankAccountApi.js +43 -0
- package/bin/bankAccount/index.d.ts +2 -0
- package/bin/bankAccount/index.js +18 -0
- package/bin/bankAccount/interfaces/IBankAccountApi.d.ts +5 -0
- package/bin/bankAccount/interfaces/IBankAccountApi.js +2 -0
- package/bin/bbvaRst/api/BBVARstApi.d.ts +9 -0
- package/bin/bbvaRst/api/BBVARstApi.js +32 -0
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.d.ts +4 -0
- package/bin/bbvaRst/api/interfaces/IBBVARstApi.js +2 -0
- package/bin/bbvaRst/index.d.ts +2 -0
- package/bin/bbvaRst/index.js +18 -0
- package/bin/blacklist/BlackListApi.d.ts +12 -0
- package/bin/blacklist/BlackListApi.js +37 -0
- package/bin/blacklist/index.d.ts +2 -0
- package/bin/blacklist/index.js +18 -0
- package/bin/blacklist/interfaces/IBlackListApi.d.ts +17 -0
- package/bin/blacklist/interfaces/IBlackListApi.js +2 -0
- package/bin/card/CardApi.d.ts +21 -0
- package/bin/card/CardApi.js +69 -0
- package/bin/card/index.d.ts +2 -0
- package/bin/card/index.js +18 -0
- package/bin/card/interfaces/ICardApi.d.ts +15 -0
- package/bin/card/interfaces/ICardApi.js +2 -0
- package/bin/centralPayments/CentralPaymentsConnectorApi.d.ts +67 -0
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +223 -0
- package/bin/centralPayments/index.d.ts +2 -0
- package/bin/centralPayments/index.js +18 -0
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +57 -0
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.js +2 -0
- package/bin/cnbv-business/CnbvApi.d.ts +8 -0
- package/bin/cnbv-business/CnbvApi.js +31 -0
- package/bin/cnbv-business/index.d.ts +2 -0
- package/bin/cnbv-business/index.js +18 -0
- package/bin/cnbv-business/interfaces/ICnbvApi.d.ts +3 -0
- package/bin/cnbv-business/interfaces/ICnbvApi.js +2 -0
- package/bin/cognitoConnector/CognitoConnectorApi.d.ts +16 -0
- package/bin/cognitoConnector/CognitoConnectorApi.js +89 -0
- package/bin/cognitoConnector/CognitoConnectorV2.d.ts +18 -0
- package/bin/cognitoConnector/CognitoConnectorV2.js +74 -0
- package/bin/cognitoConnector/index.d.ts +4 -0
- package/bin/cognitoConnector/index.js +20 -0
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.d.ts +12 -0
- package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.js +2 -0
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.d.ts +46 -0
- package/bin/cognitoConnector/interfaces/ICognitoV2Api.js +2 -0
- package/bin/collector/CollectorApi.d.ts +17 -0
- package/bin/collector/CollectorApi.js +64 -0
- package/bin/collector/index.d.ts +2 -0
- package/bin/collector/index.js +18 -0
- package/bin/collector/interfaces/ICollectorApi.d.ts +22 -0
- package/bin/collector/interfaces/ICollectorApi.js +2 -0
- package/bin/contactInformation/ContactInformationApi.d.ts +9 -0
- package/bin/contactInformation/ContactInformationApi.js +31 -0
- package/bin/contactInformation/index.d.ts +2 -0
- package/bin/contactInformation/index.js +18 -0
- package/bin/contactInformation/interface/IContactInformationApi.d.ts +4 -0
- package/bin/contactInformation/interface/IContactInformationApi.js +2 -0
- package/bin/container.config.d.ts +2 -0
- package/bin/container.config.js +121 -0
- package/bin/contract-generator/ContractGeneratorApi.d.ts +9 -0
- package/bin/contract-generator/ContractGeneratorApi.js +37 -0
- package/bin/contract-generator/index.d.ts +2 -0
- package/bin/contract-generator/index.js +18 -0
- package/bin/contract-generator/interfaces/IContractGeneratorApi.d.ts +14 -0
- package/bin/contract-generator/interfaces/IContractGeneratorApi.js +2 -0
- package/bin/device/DeviceApi.d.ts +14 -0
- package/bin/device/DeviceApi.js +45 -0
- package/bin/device/index.d.ts +2 -0
- package/bin/device/index.js +18 -0
- package/bin/device/interfaces/IDeviceApi.d.ts +30 -0
- package/bin/device/interfaces/IDeviceApi.js +2 -0
- package/bin/directories/DirectoriesApi.d.ts +20 -0
- package/bin/directories/DirectoriesApi.js +61 -0
- package/bin/directories/index.d.ts +2 -0
- package/bin/directories/index.js +18 -0
- package/bin/directories/interfaces/IDirectoriesApi.d.ts +21 -0
- package/bin/directories/interfaces/IDirectoriesApi.js +2 -0
- package/bin/directory/DirectoryApi.d.ts +22 -0
- package/bin/directory/DirectoryApi.js +145 -0
- package/bin/directory/index.d.ts +2 -0
- package/bin/directory/index.js +18 -0
- package/bin/directory/interfaces/IDirectoryApi.d.ts +55 -0
- package/bin/directory/interfaces/IDirectoryApi.js +2 -0
- package/bin/directorySetting/DirectorySettingApi.d.ts +31 -0
- package/bin/directorySetting/DirectorySettingApi.js +56 -0
- package/bin/directorySetting/index.d.ts +2 -0
- package/bin/directorySetting/index.js +18 -0
- package/bin/directorySetting/interfaces/IDirectorySettingApi.d.ts +42 -0
- package/bin/directorySetting/interfaces/IDirectorySettingApi.js +2 -0
- package/bin/disputes/DisputesApi.d.ts +24 -0
- package/bin/disputes/DisputesApi.js +61 -0
- package/bin/disputes/index.d.ts +2 -0
- package/bin/disputes/index.js +18 -0
- package/bin/disputes/interfaces/IDisputesApi.d.ts +48 -0
- package/bin/disputes/interfaces/IDisputesApi.js +2 -0
- package/bin/document-image-processor/DocumentImageProcessorApi.d.ts +11 -0
- package/bin/document-image-processor/DocumentImageProcessorApi.js +36 -0
- package/bin/document-image-processor/index.d.ts +2 -0
- package/bin/document-image-processor/index.js +18 -0
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.d.ts +6 -0
- package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.js +2 -0
- package/bin/estafeta/api/EstafetaApi.d.ts +26 -0
- package/bin/estafeta/api/EstafetaApi.js +71 -0
- package/bin/estafeta/api/interfaces/IEstafetaApi.d.ts +20 -0
- package/bin/estafeta/api/interfaces/IEstafetaApi.js +2 -0
- package/bin/estafeta/index.d.ts +2 -0
- package/bin/estafeta/index.js +18 -0
- package/bin/exchangeRates/ExchangeRatesApi.d.ts +11 -0
- package/bin/exchangeRates/ExchangeRatesApi.js +39 -0
- package/bin/exchangeRates/index.d.ts +2 -0
- package/bin/exchangeRates/index.js +18 -0
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.d.ts +6 -0
- package/bin/exchangeRates/interfaces/IExchangeRatesApi.js +2 -0
- package/bin/fiadoMessages/api/FiadoMessagesApi.d.ts +8 -0
- package/bin/fiadoMessages/api/FiadoMessagesApi.js +37 -0
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.d.ts +3 -0
- package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.js +2 -0
- package/bin/fiadoMessages/index.d.ts +2 -0
- package/bin/fiadoMessages/index.js +18 -0
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.d.ts +11 -0
- package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.js +35 -0
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.d.ts +6 -0
- package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.js +2 -0
- package/bin/fraudPreventionEngine/index.d.ts +2 -0
- package/bin/fraudPreventionEngine/index.js +18 -0
- package/bin/group/GroupApi.d.ts +19 -0
- package/bin/group/GroupApi.js +70 -0
- package/bin/group/index.d.ts +2 -0
- package/bin/group/index.js +18 -0
- package/bin/group/interfaces/IGroupApi.d.ts +28 -0
- package/bin/group/interfaces/IGroupApi.js +2 -0
- package/bin/identity/IdentityApi.d.ts +15 -0
- package/bin/identity/IdentityApi.js +85 -0
- package/bin/identity/index.d.ts +2 -0
- package/bin/identity/index.js +18 -0
- package/bin/identity/interfaces/IIdentityApi.d.ts +33 -0
- package/bin/identity/interfaces/IIdentityApi.js +2 -0
- package/bin/index.d.ts +49 -0
- package/bin/index.js +65 -0
- package/bin/legalDocument/api/LegalDocumentApi.d.ts +8 -0
- package/bin/legalDocument/api/LegalDocumentApi.js +34 -0
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.d.ts +3 -0
- package/bin/legalDocument/api/interfaces/ILegalDocumentApi.js +2 -0
- package/bin/legalDocument/index.d.ts +2 -0
- package/bin/legalDocument/index.js +18 -0
- package/bin/notificationMessages/index.d.ts +2 -0
- package/bin/notificationMessages/index.js +18 -0
- package/bin/notificationMessages/queue/NotificationMessagePublisher.d.ts +12 -0
- package/bin/notificationMessages/queue/NotificationMessagePublisher.js +47 -0
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.d.ts +6 -0
- package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.js +2 -0
- package/bin/observations/ObservationsApi.d.ts +10 -0
- package/bin/observations/ObservationsApi.js +39 -0
- package/bin/observations/index.d.ts +2 -0
- package/bin/observations/index.js +18 -0
- package/bin/observations/interfaces/IObservationsApi.d.ts +8 -0
- package/bin/observations/interfaces/IObservationsApi.js +2 -0
- package/bin/order-collector-business/OrderCollectorApi.d.ts +9 -0
- package/bin/order-collector-business/OrderCollectorApi.js +37 -0
- package/bin/order-collector-business/index.d.ts +2 -0
- package/bin/order-collector-business/index.js +18 -0
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.d.ts +7 -0
- package/bin/order-collector-business/interfaces/IOrderCollectorApi.js +2 -0
- package/bin/p2pContact/api/P2pContactApi.d.ts +9 -0
- package/bin/p2pContact/api/P2pContactApi.js +34 -0
- package/bin/p2pContact/api/interfaces/IP2pContactApi.d.ts +4 -0
- package/bin/p2pContact/api/interfaces/IP2pContactApi.js +2 -0
- package/bin/p2pContact/index.d.ts +2 -0
- package/bin/p2pContact/index.js +18 -0
- package/bin/pomelo/api/PomeloApi.d.ts +23 -0
- package/bin/pomelo/api/PomeloApi.js +86 -0
- package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +17 -0
- package/bin/pomelo/api/interfaces/IPomeloApi.js +2 -0
- package/bin/pomelo/index.d.ts +2 -0
- package/bin/pomelo/index.js +18 -0
- package/bin/pomeloProcessor/api/PomeloProcessorApi.d.ts +8 -0
- package/bin/pomeloProcessor/api/PomeloProcessorApi.js +32 -0
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.d.ts +3 -0
- package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.js +2 -0
- package/bin/pomeloProcessor/index.d.ts +2 -0
- package/bin/pomeloProcessor/index.js +18 -0
- package/bin/pricelist-business/PriceListApi.d.ts +15 -0
- package/bin/pricelist-business/PriceListApi.js +55 -0
- package/bin/pricelist-business/index.d.ts +2 -0
- package/bin/pricelist-business/index.js +18 -0
- package/bin/pricelist-business/interfaces/IPriceListApi.d.ts +18 -0
- package/bin/pricelist-business/interfaces/IPriceListApi.js +2 -0
- package/bin/product-catalog/ProductCatalogApi.d.ts +10 -0
- package/bin/product-catalog/ProductCatalogApi.js +31 -0
- package/bin/product-catalog/index.d.ts +2 -0
- package/bin/product-catalog/index.js +18 -0
- package/bin/product-catalog/interfaces/IProductCatalogApi.d.ts +5 -0
- package/bin/product-catalog/interfaces/IProductCatalogApi.js +2 -0
- package/bin/riskProfile/api/RiskProfileApi.d.ts +15 -0
- package/bin/riskProfile/api/RiskProfileApi.js +47 -0
- package/bin/riskProfile/api/TransactionAlertApi.d.ts +13 -0
- package/bin/riskProfile/api/TransactionAlertApi.js +31 -0
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.d.ts +10 -0
- package/bin/riskProfile/api/interfaces/IRiskProfileApi.js +2 -0
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.d.ts +8 -0
- package/bin/riskProfile/api/interfaces/ITransactionAlertApi.js +2 -0
- package/bin/riskProfile/index.d.ts +6 -0
- package/bin/riskProfile/index.js +22 -0
- package/bin/riskProfile/queue/TransactionAlarmPublisher.d.ts +6 -0
- package/bin/riskProfile/queue/TransactionAlarmPublisher.js +36 -0
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.d.ts +4 -0
- package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.js +2 -0
- package/bin/service-business/ServiceApi.d.ts +32 -0
- package/bin/service-business/ServiceApi.js +89 -0
- package/bin/service-business/index.d.ts +2 -0
- package/bin/service-business/index.js +18 -0
- package/bin/service-business/interfaces/IServiceApi.d.ts +72 -0
- package/bin/service-business/interfaces/IServiceApi.js +2 -0
- package/bin/sessionActivity/index.d.ts +2 -0
- package/bin/sessionActivity/index.js +18 -0
- package/bin/sessionActivity/queue/SessionActivityPublisher.d.ts +6 -0
- package/bin/sessionActivity/queue/SessionActivityPublisher.js +34 -0
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.d.ts +4 -0
- package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.js +2 -0
- package/bin/stpAccount/api/STPAccountApi.d.ts +15 -0
- package/bin/stpAccount/api/STPAccountApi.js +39 -0
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.d.ts +10 -0
- package/bin/stpAccount/api/interfaces/ISTPAccountApi.js +2 -0
- package/bin/stpAccount/index.d.ts +2 -0
- package/bin/stpAccount/index.js +18 -0
- package/bin/stpServicePayment/api/StpServicePaymentApi.d.ts +14 -0
- package/bin/stpServicePayment/api/StpServicePaymentApi.js +50 -0
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.d.ts +9 -0
- package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.js +2 -0
- package/bin/stpServicePayment/index.d.ts +2 -0
- package/bin/stpServicePayment/index.js +18 -0
- package/bin/stpSpei/api/StpSpeiApi.d.ts +10 -0
- package/bin/stpSpei/api/StpSpeiApi.js +47 -0
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.d.ts +5 -0
- package/bin/stpSpei/api/interfaces/IStpSpeiApi.js +2 -0
- package/bin/stpSpei/index.d.ts +2 -0
- package/bin/stpSpei/index.js +18 -0
- package/bin/tern/api/TernApi.d.ts +30 -0
- package/bin/tern/api/TernApi.js +125 -0
- package/bin/tern/api/interfaces/ITernApi.d.ts +26 -0
- package/bin/tern/api/interfaces/ITernApi.js +2 -0
- package/bin/tern/index.d.ts +2 -0
- package/bin/tern/index.js +18 -0
- package/bin/transaction/api/TransactionApi.d.ts +45 -0
- package/bin/transaction/api/TransactionApi.js +84 -0
- package/bin/transaction/api/interfaces/ITransactionApi.d.ts +40 -0
- package/bin/transaction/api/interfaces/ITransactionApi.js +2 -0
- package/bin/transaction/index.d.ts +4 -0
- package/bin/transaction/index.js +20 -0
- package/bin/transaction/queue/TransactionPublisher.d.ts +6 -0
- package/bin/transaction/queue/TransactionPublisher.js +36 -0
- package/bin/transaction/queue/interfaces/ITransactionPublisher.d.ts +4 -0
- package/bin/transaction/queue/interfaces/ITransactionPublisher.js +2 -0
- package/bin/transactionProcessor/api/TransactionProcessorApi.d.ts +16 -0
- package/bin/transactionProcessor/api/TransactionProcessorApi.js +51 -0
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.d.ts +11 -0
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.js +2 -0
- package/bin/transactionProcessor/index.d.ts +2 -0
- package/bin/transactionProcessor/index.js +18 -0
- package/bin/utils/InvokerUtils.d.ts +4 -0
- package/bin/utils/InvokerUtils.js +34 -0
- package/bin/zendesk/ZendeskApi.d.ts +11 -0
- package/bin/zendesk/ZendeskApi.js +41 -0
- package/bin/zendesk/index.d.ts +2 -0
- package/bin/zendesk/index.js +18 -0
- package/bin/zendesk/interfaces/IZendeskApi.d.ts +9 -0
- package/bin/zendesk/interfaces/IZendeskApi.js +2 -0
- package/package.json +2 -2
- package/src/transaction/api/TransactionApi.ts +1 -1
- package/src/transaction/api/interfaces/ITransactionApi.ts +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
2
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
3
|
+
import { CardIssuanceObservationUpdateRequest, CardResponse, CardUpdateIssuanceRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
|
|
4
|
+
import { ICardApi } from "./interfaces/ICardApi";
|
|
5
|
+
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
6
|
+
import { InfoSelfVerifiedStatus } from "@fiado/type-kit/bin/identity";
|
|
7
|
+
export declare class CardApi implements ICardApi {
|
|
8
|
+
private httpRequest;
|
|
9
|
+
private readonly baseUrl;
|
|
10
|
+
constructor(httpRequest: IHttpRequest);
|
|
11
|
+
getByDirectoryId(provider: Provider, directoryId: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>;
|
|
12
|
+
getById(provider: Provider, id: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>;
|
|
13
|
+
getByExternalId(provider: Provider, externalId: string): Promise<ApiGatewayResponse<CardResponse>>;
|
|
14
|
+
getCardByIdExternal(externalCardId: string): Promise<ApiGatewayResponse<any>>;
|
|
15
|
+
evaluateAccountLevelUpdate(directoryId: string): Promise<void>;
|
|
16
|
+
findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
|
|
17
|
+
updateIssuance(provider: Provider, input: CardUpdateIssuanceRequest): Promise<ApiGatewayResponse<void>>;
|
|
18
|
+
updateIssuanceObservation(directoryId: string, input: CardIssuanceObservationUpdateRequest): Promise<ApiGatewayResponse<void>>;
|
|
19
|
+
issuance(directoryId: string, USA_InfoSelfVerified: InfoSelfVerifiedStatus): Promise<void>;
|
|
20
|
+
updateShipping(provider: Provider, shippingId: string, input: UpdateBankAccountCardRequest): Promise<ApiGatewayResponse<void>>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.CardApi = void 0;
|
|
16
|
+
const inversify_1 = require("inversify");
|
|
17
|
+
let CardApi = class CardApi {
|
|
18
|
+
constructor(httpRequest) {
|
|
19
|
+
this.httpRequest = httpRequest;
|
|
20
|
+
this.baseUrl = process.env.CARD_LAMBDA_URL || "";
|
|
21
|
+
}
|
|
22
|
+
async getByDirectoryId(provider, directoryId, onlyDb = false) {
|
|
23
|
+
const url = `${this.baseUrl}${provider}/${directoryId}/find?onlyDb=${onlyDb}`;
|
|
24
|
+
return await this.httpRequest.get(url);
|
|
25
|
+
}
|
|
26
|
+
async getById(provider, id, onlyDb = false) {
|
|
27
|
+
const url = `${this.baseUrl}/${provider}?cardId=${id}&onlyDb=${onlyDb}`;
|
|
28
|
+
return await this.httpRequest.get(url);
|
|
29
|
+
}
|
|
30
|
+
async getByExternalId(provider, externalId) {
|
|
31
|
+
const url = `${this.baseUrl}/${provider}?externalCardId=${externalId}`;
|
|
32
|
+
return await this.httpRequest.get(url);
|
|
33
|
+
}
|
|
34
|
+
async getCardByIdExternal(externalCardId) {
|
|
35
|
+
const url = `${this.baseUrl}/cards/${externalCardId}?raw=true`;
|
|
36
|
+
return await this.httpRequest.get(url);
|
|
37
|
+
}
|
|
38
|
+
async evaluateAccountLevelUpdate(directoryId) {
|
|
39
|
+
const url = `${this.baseUrl}accounts/levels`;
|
|
40
|
+
await this.httpRequest.post(url, { directoryId });
|
|
41
|
+
}
|
|
42
|
+
async findCardIssuanceByIds(directoryIds) {
|
|
43
|
+
const queryparams = directoryIds.map((directoryId) => `directoryId=${directoryId}`).join("&");
|
|
44
|
+
const url = `${this.baseUrl}?${queryparams}`;
|
|
45
|
+
return await this.httpRequest.get(url);
|
|
46
|
+
}
|
|
47
|
+
async updateIssuance(provider, input) {
|
|
48
|
+
const url = `${this.baseUrl}${provider}/issuance`;
|
|
49
|
+
return await this.httpRequest.put(url, input);
|
|
50
|
+
}
|
|
51
|
+
async updateIssuanceObservation(directoryId, input) {
|
|
52
|
+
const url = `${this.baseUrl}/issuance/observations/${directoryId}`;
|
|
53
|
+
return await this.httpRequest.put(url, input);
|
|
54
|
+
}
|
|
55
|
+
async issuance(directoryId, USA_InfoSelfVerified) {
|
|
56
|
+
const url = `${this.baseUrl}`;
|
|
57
|
+
await this.httpRequest.post(url, { USA_InfoSelfVerified, directoryId });
|
|
58
|
+
}
|
|
59
|
+
async updateShipping(provider, shippingId, input) {
|
|
60
|
+
const url = `${this.baseUrl}${provider}/shipping/${shippingId}`;
|
|
61
|
+
return await this.httpRequest.put(url, input);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
exports.CardApi = CardApi;
|
|
65
|
+
exports.CardApi = CardApi = __decorate([
|
|
66
|
+
(0, inversify_1.injectable)(),
|
|
67
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
68
|
+
__metadata("design:paramtypes", [Object])
|
|
69
|
+
], CardApi);
|
|
@@ -0,0 +1,18 @@
|
|
|
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/ICardApi"), exports);
|
|
18
|
+
__exportStar(require("./CardApi"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
2
|
+
import { CardIssuanceObservationUpdateRequest, CardResponse, CardUpdateIssuanceRequest, UpdateBankAccountCardRequest } from "@fiado/type-kit/bin/card";
|
|
3
|
+
import { InfoSelfVerifiedStatus } from "@fiado/type-kit/bin/identity";
|
|
4
|
+
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
5
|
+
export interface ICardApi {
|
|
6
|
+
getByDirectoryId(provider: Provider, directoryId: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>;
|
|
7
|
+
getById(provider: Provider, id: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>;
|
|
8
|
+
getByExternalId(provider: Provider, externalId: string): Promise<ApiGatewayResponse<CardResponse>>;
|
|
9
|
+
getCardByIdExternal(externalCardId: string): Promise<ApiGatewayResponse<any>>;
|
|
10
|
+
findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
|
|
11
|
+
updateIssuance(provider: Provider, input: CardUpdateIssuanceRequest): Promise<ApiGatewayResponse<void>>;
|
|
12
|
+
updateIssuanceObservation(directoryId: string, input: CardIssuanceObservationUpdateRequest): Promise<ApiGatewayResponse<void>>;
|
|
13
|
+
issuance(directoryId: string, USA_InfoSelfVerified: InfoSelfVerifiedStatus): Promise<void>;
|
|
14
|
+
updateShipping(provider: Provider, shippingId: string, input: UpdateBankAccountCardRequest): Promise<ApiGatewayResponse<void>>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { BankAccountAchTransferRequest, BankAccountAchTransferResponse, BankAccountMCSendTransferRequest, BankAccountMCSendTransferResponse, BankAccountP2pTransferRequest, BankAccountPocketTransferRequest, BankAccountPocketTransferResponse, CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountResponse, GetBankAccountSensitiveInformationResponse, GetBankAccountUserResponse, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
|
|
3
|
+
import { BankAccountP2pTransferResponse } from "@fiado/type-kit/bin/account/dtos/BankAccountP2pTransferResponse";
|
|
4
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
5
|
+
import { CreateExternalBankAccountRequest, CreateExternalBankAccountResponse } from "@fiado/type-kit/bin/bankAccount";
|
|
6
|
+
import GetExternalBankAccountResponse from "@fiado/type-kit/bin/bankAccount/dtos/GetExternalBankAccountResponse";
|
|
7
|
+
import { ActivateBankAccountCardRequest, ActivateBankAccountCardResponse, CardBatchRequest, CardBatchResponse, CardStatementListResponse, CreateBankAccountCardRequest, CreateBankAccountCardResponse, GetBankAccountCardBalanceResponse, GetBankAccountCardResponse, ReplaceBankAccountCardRequest, ReplaceBankAccountCardResponse, StatementDocumentResponse, UpdateBankAccountCardRequest, UpdateBankAccountCardResponse } from "@fiado/type-kit/bin/card";
|
|
8
|
+
import { GetMerchantLocationsQueryParams, GetMerchantLocationsResponse, HealthcheckResponse, OOWQuestionsResponse, SubmitOOWQuestionAnswersRequest } from "@fiado/type-kit/bin/centralPayments";
|
|
9
|
+
import { ProviderDocumentUploadRequest, ProviderDocumentUploadResponse } from "@fiado/type-kit/bin/provider";
|
|
10
|
+
import { CentralPaymentsQueryParams, CentralPaymentsTransactionItem, ProviderTransactionCompletionRequest, ProviderTransactionCompletionResponse, ProviderTransactionReversalRequest, ProviderTransactionReversalResponse, TransactionListResponse } from "@fiado/type-kit/bin/transaction";
|
|
11
|
+
import { InvokerUtils } from "../utils/InvokerUtils";
|
|
12
|
+
import { ICentralPaymentsConnectorApi } from "./interfaces/ICentralPaymentsConnectorApi";
|
|
13
|
+
import { ProviderProcessChargebackTransactionRequest, ProviderProcessChargebackTransactionResponse, ProviderProcessMembershipTransactionRequest, ProviderProcessMembershipTransactionResponse } from "@fiado/type-kit/bin/transactionProcessor";
|
|
14
|
+
export declare class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi {
|
|
15
|
+
private readonly httpRequest;
|
|
16
|
+
private readonly _invokerUtils;
|
|
17
|
+
private readonly baseUrl;
|
|
18
|
+
constructor(httpRequest: IHttpRequest, _invokerUtils: InvokerUtils);
|
|
19
|
+
healthcheck(): Promise<FiadoApiResponse<HealthcheckResponse>>;
|
|
20
|
+
createCardholder(request: CreateBankAccountUserRequest): Promise<FiadoApiResponse<CreateBankAccountUserResponse>>;
|
|
21
|
+
getCardholder(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
|
22
|
+
updateCardholder(externalUserId: string, request: UpdateBankAccountUserRequest): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
|
23
|
+
deleteCardholder(externalUserId: string): Promise<FiadoApiResponse<null>>;
|
|
24
|
+
getOOWQuestions(externalUserId: string): Promise<FiadoApiResponse<OOWQuestionsResponse[]>>;
|
|
25
|
+
submitOOWQuestionAnswers(externalUserId: string, request: SubmitOOWQuestionAnswersRequest[]): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
|
26
|
+
uploadDocuments(externalUserId: string, request: ProviderDocumentUploadRequest): Promise<FiadoApiResponse<ProviderDocumentUploadResponse>>;
|
|
27
|
+
changePin(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
|
|
28
|
+
getCardsById(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
29
|
+
getCardByIdExternal(externalCardId: string): Promise<FiadoApiResponse<any>>;
|
|
30
|
+
getCardSensitiveInformation(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountSensitiveInformationResponse>>;
|
|
31
|
+
activateCard(request: ActivateBankAccountCardRequest): Promise<FiadoApiResponse<ActivateBankAccountCardResponse>>;
|
|
32
|
+
getCardBalance(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardBalanceResponse>>;
|
|
33
|
+
updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
|
|
34
|
+
updateCardProgram(externalCardId: string, programId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
35
|
+
createCard(request: CreateBankAccountCardRequest): Promise<FiadoApiResponse<CreateBankAccountCardResponse>>;
|
|
36
|
+
createCardVirtualOrPhysical(request: CreateBankAccountCardRequest): Promise<FiadoApiResponse<CreateBankAccountCardResponse>>;
|
|
37
|
+
replaceCard(externalCardId: string, request: ReplaceBankAccountCardRequest): Promise<FiadoApiResponse<ReplaceBankAccountCardResponse>>;
|
|
38
|
+
reissueCard(externalCardId: string, request: ReplaceBankAccountCardRequest): Promise<FiadoApiResponse<ReplaceBankAccountCardResponse>>;
|
|
39
|
+
createSecondaryCard(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
40
|
+
getCardsByUserId(externalUserId: string, includeSecondary?: boolean): Promise<FiadoApiResponse<GetBankAccountCardResponse[]>>;
|
|
41
|
+
getAccountsByUserId(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountResponse[]>>;
|
|
42
|
+
getAccountByCardId(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountResponse>>;
|
|
43
|
+
generateCardsInBatch(request: CardBatchRequest): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
44
|
+
getCardBatch(batchId: string): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
45
|
+
deleteCardBatch(batchId: string): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
46
|
+
getStatementsList(externalCardId: string): Promise<FiadoApiResponse<CardStatementListResponse[]>>;
|
|
47
|
+
getStatementDocument(statementId: string): Promise<FiadoApiResponse<StatementDocumentResponse>>;
|
|
48
|
+
getTransactionHistory(externalCardId: string, params: CentralPaymentsQueryParams): Promise<FiadoApiResponse<TransactionListResponse<CentralPaymentsTransactionItem>>>;
|
|
49
|
+
getTransactionDetails(externalTransactionId: string): Promise<FiadoApiResponse<CentralPaymentsTransactionItem>>;
|
|
50
|
+
executeCardToCardTransaction(request: BankAccountP2pTransferRequest): Promise<FiadoApiResponse<BankAccountP2pTransferResponse>>;
|
|
51
|
+
executeFinancialOperation(request: BankAccountPocketTransferRequest[]): Promise<FiadoApiResponse<BankAccountPocketTransferResponse[]>>;
|
|
52
|
+
executeAchTransaction(request: BankAccountAchTransferRequest): Promise<FiadoApiResponse<BankAccountAchTransferResponse>>;
|
|
53
|
+
executeMCSendTransaction(request: BankAccountMCSendTransferRequest): Promise<FiadoApiResponse<BankAccountMCSendTransferResponse>>;
|
|
54
|
+
executeFinancialOperationReversal(request: ProviderTransactionReversalRequest): Promise<FiadoApiResponse<ProviderTransactionReversalResponse[]>>;
|
|
55
|
+
/** PROCESSOR TRANSACTIONS **/
|
|
56
|
+
executeFinancialOperationCompletion(request: ProviderTransactionCompletionRequest): Promise<FiadoApiResponse<ProviderTransactionCompletionResponse[]>>;
|
|
57
|
+
executeTransactionProcessorChargeback(request: ProviderProcessChargebackTransactionRequest): Promise<FiadoApiResponse<ProviderProcessChargebackTransactionResponse>>;
|
|
58
|
+
executeTransactionProcessorMembership(request: ProviderProcessMembershipTransactionRequest): Promise<FiadoApiResponse<ProviderProcessMembershipTransactionResponse>>;
|
|
59
|
+
/** ACH BANK ACCOUNTS **/
|
|
60
|
+
getCardholderACHBankAccounts(externalUserId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse[]>>;
|
|
61
|
+
createCardholderACHBankAccount(externalUserId: string, request: CreateExternalBankAccountRequest): Promise<FiadoApiResponse<CreateExternalBankAccountResponse>>;
|
|
62
|
+
getACHBankAccountDetail(bankAccountId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
|
|
63
|
+
deleteACHBankAccount(bankAccountId: string): Promise<FiadoApiResponse<null>>;
|
|
64
|
+
verifyACHBankAccount(bankAccountId: string, request: any): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
|
|
65
|
+
/** MERCHANT LOCATIONS **/
|
|
66
|
+
getMerchantLocations(params: GetMerchantLocationsQueryParams): Promise<FiadoApiResponse<GetMerchantLocationsResponse>>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
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.CentralPaymentsConnectorApi = void 0;
|
|
16
|
+
const inversify_1 = require("inversify");
|
|
17
|
+
const InvokerUtils_1 = require("../utils/InvokerUtils");
|
|
18
|
+
let CentralPaymentsConnectorApi = class CentralPaymentsConnectorApi {
|
|
19
|
+
constructor(httpRequest, _invokerUtils) {
|
|
20
|
+
this.httpRequest = httpRequest;
|
|
21
|
+
this._invokerUtils = _invokerUtils;
|
|
22
|
+
this.baseUrl = process.env.CENTRAL_PAYMENTS_LAMBDA_URL || "";
|
|
23
|
+
}
|
|
24
|
+
/* HEALTHCHECK */
|
|
25
|
+
async healthcheck() {
|
|
26
|
+
const url = `${this.baseUrl}/healthcheck`;
|
|
27
|
+
return await this.httpRequest.get(url);
|
|
28
|
+
}
|
|
29
|
+
/* CARDHOLDERS */
|
|
30
|
+
async createCardholder(request) {
|
|
31
|
+
const url = `${this.baseUrl}/cardholders`;
|
|
32
|
+
return await this.httpRequest.post(url, request);
|
|
33
|
+
}
|
|
34
|
+
async getCardholder(externalUserId) {
|
|
35
|
+
const url = `${this.baseUrl}/cardholders/${externalUserId}`;
|
|
36
|
+
return await this.httpRequest.get(url);
|
|
37
|
+
}
|
|
38
|
+
async updateCardholder(externalUserId, request) {
|
|
39
|
+
const url = `${this.baseUrl}/cardholders/${externalUserId}`;
|
|
40
|
+
return await this.httpRequest.put(url, request);
|
|
41
|
+
}
|
|
42
|
+
async deleteCardholder(externalUserId) {
|
|
43
|
+
const url = `${this.baseUrl}/cardholders/${externalUserId}`;
|
|
44
|
+
return await this.httpRequest.delete(url);
|
|
45
|
+
}
|
|
46
|
+
/* KYC DOCUMENTS */
|
|
47
|
+
async getOOWQuestions(externalUserId) {
|
|
48
|
+
const url = `${this.baseUrl}/kyc/${externalUserId}/oow/questions`;
|
|
49
|
+
return await this.httpRequest.get(url);
|
|
50
|
+
}
|
|
51
|
+
async submitOOWQuestionAnswers(externalUserId, request) {
|
|
52
|
+
const url = `${this.baseUrl}/kyc/${externalUserId}/oow/questions`;
|
|
53
|
+
return await this.httpRequest.post(url, request);
|
|
54
|
+
}
|
|
55
|
+
async uploadDocuments(externalUserId, request) {
|
|
56
|
+
const url = `${this.baseUrl}/kyc/${externalUserId}/documents/upload`;
|
|
57
|
+
return await this.httpRequest.post(url, request);
|
|
58
|
+
}
|
|
59
|
+
/* CARDS */
|
|
60
|
+
async changePin(request) {
|
|
61
|
+
const url = `${this.baseUrl}/cards/pin/change`;
|
|
62
|
+
return await this.httpRequest.post(url, request);
|
|
63
|
+
}
|
|
64
|
+
async getCardsById(externalCardId) {
|
|
65
|
+
const url = `${this.baseUrl}/cards/${externalCardId}`;
|
|
66
|
+
return await this.httpRequest.get(url);
|
|
67
|
+
}
|
|
68
|
+
async getCardByIdExternal(externalCardId) {
|
|
69
|
+
const url = `${this.baseUrl}accounts/cards/${externalCardId}?raw=true`;
|
|
70
|
+
return await this.httpRequest.get(url);
|
|
71
|
+
}
|
|
72
|
+
async getCardSensitiveInformation(externalCardId) {
|
|
73
|
+
const url = `${this.baseUrl}/cards/${externalCardId}/sensitive`;
|
|
74
|
+
return await this.httpRequest.get(url);
|
|
75
|
+
}
|
|
76
|
+
async activateCard(request) {
|
|
77
|
+
const url = `${this.baseUrl}/cards/${request.externalCardId}/activate`;
|
|
78
|
+
return await this.httpRequest.post(url, request);
|
|
79
|
+
}
|
|
80
|
+
async getCardBalance(externalCardId) {
|
|
81
|
+
const url = `${this.baseUrl}/cards/${externalCardId}/balance`;
|
|
82
|
+
return await this.httpRequest.get(url);
|
|
83
|
+
}
|
|
84
|
+
async updateCard(request) {
|
|
85
|
+
const url = `${this.baseUrl}/cards/${request.cardId}`;
|
|
86
|
+
return await this.httpRequest.put(url, request);
|
|
87
|
+
}
|
|
88
|
+
async updateCardProgram(externalCardId, programId) {
|
|
89
|
+
const url = `${this.baseUrl}/cards/${externalCardId}/programs/${programId}`;
|
|
90
|
+
return await this.httpRequest.put(url);
|
|
91
|
+
}
|
|
92
|
+
async createCard(request) {
|
|
93
|
+
const url = `${this.baseUrl}/cards/create`;
|
|
94
|
+
return await this.httpRequest.put(url, request);
|
|
95
|
+
}
|
|
96
|
+
async createCardVirtualOrPhysical(request) {
|
|
97
|
+
const url = `${this.baseUrl}cards/cardholders/${request.externalUserId}`;
|
|
98
|
+
return await this.httpRequest.post(url, request);
|
|
99
|
+
}
|
|
100
|
+
async replaceCard(externalCardId, request) {
|
|
101
|
+
const url = `${this.baseUrl}/cards/${externalCardId}/replace`;
|
|
102
|
+
return await this.httpRequest.put(url, request);
|
|
103
|
+
}
|
|
104
|
+
async reissueCard(externalCardId, request) {
|
|
105
|
+
const url = `${this.baseUrl}/cards/${externalCardId}/reissue`;
|
|
106
|
+
return await this.httpRequest.put(url, request);
|
|
107
|
+
}
|
|
108
|
+
async createSecondaryCard(externalUserId) {
|
|
109
|
+
const url = `${this.baseUrl}/cards/cardholders/${externalUserId}/secondary`;
|
|
110
|
+
return await this.httpRequest.put(url);
|
|
111
|
+
}
|
|
112
|
+
async getCardsByUserId(externalUserId, includeSecondary) {
|
|
113
|
+
const url = `${this.baseUrl}/cards/cardholders/${externalUserId}`;
|
|
114
|
+
const param = includeSecondary ? `?includeSecondary=${includeSecondary}` : null;
|
|
115
|
+
return await this.httpRequest.get(`${url}${param ?? ""}`);
|
|
116
|
+
}
|
|
117
|
+
async getAccountsByUserId(externalUserId) {
|
|
118
|
+
const url = `${this.baseUrl}/accounts/cardholders/${externalUserId}`;
|
|
119
|
+
return await this.httpRequest.get(url);
|
|
120
|
+
}
|
|
121
|
+
async getAccountByCardId(externalCardId) {
|
|
122
|
+
const url = `${this.baseUrl}/accounts/cards/${externalCardId}`;
|
|
123
|
+
return await this.httpRequest.get(url);
|
|
124
|
+
}
|
|
125
|
+
async generateCardsInBatch(request) {
|
|
126
|
+
const url = `${this.baseUrl}/cards/batch`;
|
|
127
|
+
return await this.httpRequest.post(url, request);
|
|
128
|
+
}
|
|
129
|
+
async getCardBatch(batchId) {
|
|
130
|
+
const url = `${this.baseUrl}/cards/batch/${batchId}`;
|
|
131
|
+
return await this.httpRequest.get(url);
|
|
132
|
+
}
|
|
133
|
+
async deleteCardBatch(batchId) {
|
|
134
|
+
const url = `${this.baseUrl}/cards/batch/${batchId}`;
|
|
135
|
+
return await this.httpRequest.delete(url);
|
|
136
|
+
}
|
|
137
|
+
/* STATEMENTS */
|
|
138
|
+
async getStatementsList(externalCardId) {
|
|
139
|
+
const url = `${this.baseUrl}/statements/cards/${externalCardId}`;
|
|
140
|
+
return await this.httpRequest.get(url);
|
|
141
|
+
}
|
|
142
|
+
async getStatementDocument(statementId) {
|
|
143
|
+
const url = `${this.baseUrl}/statements/document-url/${statementId}`;
|
|
144
|
+
return await this.httpRequest.get(url);
|
|
145
|
+
}
|
|
146
|
+
/* TRANSACTIONS */
|
|
147
|
+
async getTransactionHistory(externalCardId, params) {
|
|
148
|
+
const queryParams = this._invokerUtils.toQueryStringParameters(params);
|
|
149
|
+
const url = `${this.baseUrl}/transactions/history/${externalCardId}?${queryParams}`;
|
|
150
|
+
return await this.httpRequest.get(url);
|
|
151
|
+
}
|
|
152
|
+
async getTransactionDetails(externalTransactionId) {
|
|
153
|
+
const url = `${this.baseUrl}/transactions/${externalTransactionId}`;
|
|
154
|
+
return await this.httpRequest.get(url);
|
|
155
|
+
}
|
|
156
|
+
async executeCardToCardTransaction(request) {
|
|
157
|
+
const url = `${this.baseUrl}/transactions/p2p/transfer`;
|
|
158
|
+
return await this.httpRequest.post(url, request);
|
|
159
|
+
}
|
|
160
|
+
async executeFinancialOperation(request) {
|
|
161
|
+
const url = `${this.baseUrl}/transactions/pocket/transfer`;
|
|
162
|
+
return await this.httpRequest.post(url, request);
|
|
163
|
+
}
|
|
164
|
+
async executeAchTransaction(request) {
|
|
165
|
+
const url = `${this.baseUrl}/transactions/ach/transfer`;
|
|
166
|
+
return await this.httpRequest.post(url, request);
|
|
167
|
+
}
|
|
168
|
+
async executeMCSendTransaction(request) {
|
|
169
|
+
const url = `${this.baseUrl}/transactions/mc/transfer`;
|
|
170
|
+
return await this.httpRequest.post(url, request);
|
|
171
|
+
}
|
|
172
|
+
async executeFinancialOperationReversal(request) {
|
|
173
|
+
const url = `${this.baseUrl}/transactions/reversal`;
|
|
174
|
+
return await this.httpRequest.post(url, request);
|
|
175
|
+
}
|
|
176
|
+
/** PROCESSOR TRANSACTIONS **/
|
|
177
|
+
async executeFinancialOperationCompletion(request) {
|
|
178
|
+
const url = `${this.baseUrl}/transactions/completion`;
|
|
179
|
+
return await this.httpRequest.put(url, request);
|
|
180
|
+
}
|
|
181
|
+
async executeTransactionProcessorChargeback(request) {
|
|
182
|
+
const url = `${this.baseUrl}/transactions/processor/chargeback`;
|
|
183
|
+
return await this.httpRequest.post(url, request);
|
|
184
|
+
}
|
|
185
|
+
async executeTransactionProcessorMembership(request) {
|
|
186
|
+
const url = `${this.baseUrl}/transactions/processor/membership`;
|
|
187
|
+
return await this.httpRequest.post(url, request);
|
|
188
|
+
}
|
|
189
|
+
/** ACH BANK ACCOUNTS **/
|
|
190
|
+
async getCardholderACHBankAccounts(externalUserId) {
|
|
191
|
+
const url = `${this.baseUrl}/ach/bank-accounts/cardholders/${externalUserId}`;
|
|
192
|
+
return await this.httpRequest.get(url);
|
|
193
|
+
}
|
|
194
|
+
async createCardholderACHBankAccount(externalUserId, request) {
|
|
195
|
+
const url = `${this.baseUrl}/ach/bank-accounts/cardholders/${externalUserId}`;
|
|
196
|
+
return await this.httpRequest.post(url, request);
|
|
197
|
+
}
|
|
198
|
+
async getACHBankAccountDetail(bankAccountId) {
|
|
199
|
+
const url = `${this.baseUrl}/ach/bank-accounts/${bankAccountId}`;
|
|
200
|
+
return await this.httpRequest.get(url);
|
|
201
|
+
}
|
|
202
|
+
async deleteACHBankAccount(bankAccountId) {
|
|
203
|
+
const url = `${this.baseUrl}/ach/bank-accounts/${bankAccountId}`;
|
|
204
|
+
return await this.httpRequest.delete(url);
|
|
205
|
+
}
|
|
206
|
+
async verifyACHBankAccount(bankAccountId, request) {
|
|
207
|
+
const url = `${this.baseUrl}/ach/bank-accounts/${bankAccountId}`;
|
|
208
|
+
// TODO FALTA DEFINIR EL BODY
|
|
209
|
+
return await this.httpRequest.put(url, request);
|
|
210
|
+
}
|
|
211
|
+
/** MERCHANT LOCATIONS **/
|
|
212
|
+
async getMerchantLocations(params) {
|
|
213
|
+
const url = `${this.baseUrl}/merchants/locations?${this._invokerUtils.toQueryStringParameters(params)}`;
|
|
214
|
+
return await this.httpRequest.get(url);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
exports.CentralPaymentsConnectorApi = CentralPaymentsConnectorApi;
|
|
218
|
+
exports.CentralPaymentsConnectorApi = CentralPaymentsConnectorApi = __decorate([
|
|
219
|
+
(0, inversify_1.injectable)(),
|
|
220
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
221
|
+
__param(1, (0, inversify_1.inject)("InvokerUtils")),
|
|
222
|
+
__metadata("design:paramtypes", [Object, InvokerUtils_1.InvokerUtils])
|
|
223
|
+
], CentralPaymentsConnectorApi);
|
|
@@ -0,0 +1,18 @@
|
|
|
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/ICentralPaymentsConnectorApi"), exports);
|
|
18
|
+
__exportStar(require("./CentralPaymentsConnectorApi"), exports);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { BankAccountAchTransferRequest, BankAccountAchTransferResponse, BankAccountMCSendTransferRequest, BankAccountMCSendTransferResponse, BankAccountP2pTransferRequest, BankAccountPocketTransferRequest, BankAccountPocketTransferResponse, CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountResponse, GetBankAccountSensitiveInformationResponse, GetBankAccountUserResponse, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
|
|
2
|
+
import { BankAccountP2pTransferResponse } from "@fiado/type-kit/bin/account/dtos/BankAccountP2pTransferResponse";
|
|
3
|
+
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
4
|
+
import { CreateExternalBankAccountRequest, CreateExternalBankAccountResponse } from "@fiado/type-kit/bin/bankAccount";
|
|
5
|
+
import GetExternalBankAccountResponse from "@fiado/type-kit/bin/bankAccount/dtos/GetExternalBankAccountResponse";
|
|
6
|
+
import { ActivateBankAccountCardRequest, ActivateBankAccountCardResponse, CardBatchRequest, CardBatchResponse, CardStatementListResponse, CreateBankAccountCardRequest, CreateBankAccountCardResponse, GetBankAccountCardBalanceResponse, GetBankAccountCardResponse, ReplaceBankAccountCardRequest, ReplaceBankAccountCardResponse, StatementDocumentResponse, UpdateBankAccountCardRequest, UpdateBankAccountCardResponse } from "@fiado/type-kit/bin/card";
|
|
7
|
+
import { GetMerchantLocationsQueryParams, GetMerchantLocationsResponse, HealthcheckResponse, OOWQuestionsResponse, SubmitOOWQuestionAnswersRequest } from "@fiado/type-kit/bin/centralPayments";
|
|
8
|
+
import { ProviderDocumentUploadRequest, ProviderDocumentUploadResponse } from "@fiado/type-kit/bin/provider";
|
|
9
|
+
import { CentralPaymentsQueryParams, CentralPaymentsTransactionItem, ProviderTransactionCompletionRequest, ProviderTransactionCompletionResponse, ProviderTransactionReversalRequest, ProviderTransactionReversalResponse, TransactionListResponse } from "@fiado/type-kit/bin/transaction";
|
|
10
|
+
import { ProviderProcessChargebackTransactionRequest, ProviderProcessChargebackTransactionResponse, ProviderProcessMembershipTransactionRequest, ProviderProcessMembershipTransactionResponse } from "@fiado/type-kit/bin/transactionProcessor";
|
|
11
|
+
export interface ICentralPaymentsConnectorApi {
|
|
12
|
+
healthcheck(): Promise<FiadoApiResponse<HealthcheckResponse>>;
|
|
13
|
+
createCardholder(request: CreateBankAccountUserRequest): Promise<FiadoApiResponse<CreateBankAccountUserResponse>>;
|
|
14
|
+
getCardholder(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
|
15
|
+
updateCardholder(externalUserId: string, request: UpdateBankAccountUserRequest): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
|
16
|
+
deleteCardholder(externalUserId: string): Promise<FiadoApiResponse<null>>;
|
|
17
|
+
getOOWQuestions(externalUserId: string): Promise<FiadoApiResponse<OOWQuestionsResponse[]>>;
|
|
18
|
+
submitOOWQuestionAnswers(externalUserId: string, request: SubmitOOWQuestionAnswersRequest[]): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
|
19
|
+
uploadDocuments(externalUserId: string, request: ProviderDocumentUploadRequest): Promise<FiadoApiResponse<ProviderDocumentUploadResponse>>;
|
|
20
|
+
changePin(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
|
|
21
|
+
getCardsById(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
22
|
+
getCardByIdExternal(externalCardId: string): Promise<FiadoApiResponse<any>>;
|
|
23
|
+
getCardSensitiveInformation(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountSensitiveInformationResponse>>;
|
|
24
|
+
activateCard(request: ActivateBankAccountCardRequest): Promise<FiadoApiResponse<ActivateBankAccountCardResponse>>;
|
|
25
|
+
getCardBalance(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountCardBalanceResponse>>;
|
|
26
|
+
updateCard(request: UpdateBankAccountCardRequest): Promise<FiadoApiResponse<UpdateBankAccountCardResponse>>;
|
|
27
|
+
updateCardProgram(externalCardId: string, programId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
28
|
+
createCard(request: CreateBankAccountCardRequest): Promise<FiadoApiResponse<CreateBankAccountCardResponse>>;
|
|
29
|
+
createCardVirtualOrPhysical(CreateBankAccountCardRequest: CreateBankAccountCardRequest): Promise<FiadoApiResponse<CreateBankAccountCardResponse>>;
|
|
30
|
+
replaceCard(externalCardId: string, request: ReplaceBankAccountCardRequest): Promise<FiadoApiResponse<ReplaceBankAccountCardResponse>>;
|
|
31
|
+
reissueCard(externalCardId: string, request: ReplaceBankAccountCardRequest): Promise<FiadoApiResponse<ReplaceBankAccountCardResponse>>;
|
|
32
|
+
createSecondaryCard(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountCardResponse>>;
|
|
33
|
+
getCardsByUserId(externalUserId: string, includeSecondary?: boolean): Promise<FiadoApiResponse<GetBankAccountCardResponse[]>>;
|
|
34
|
+
getAccountsByUserId(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountResponse[]>>;
|
|
35
|
+
getAccountByCardId(externalCardId: string): Promise<FiadoApiResponse<GetBankAccountResponse>>;
|
|
36
|
+
generateCardsInBatch(request: CardBatchRequest): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
37
|
+
getCardBatch(batchId: string): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
38
|
+
deleteCardBatch(batchId: string): Promise<FiadoApiResponse<CardBatchResponse>>;
|
|
39
|
+
getStatementsList(externalCardId: string): Promise<FiadoApiResponse<CardStatementListResponse[]>>;
|
|
40
|
+
getStatementDocument(statementId: string): Promise<FiadoApiResponse<StatementDocumentResponse>>;
|
|
41
|
+
getTransactionHistory(externalCardId: string, params: CentralPaymentsQueryParams): Promise<FiadoApiResponse<TransactionListResponse<CentralPaymentsTransactionItem>>>;
|
|
42
|
+
getTransactionDetails(externalTransactionId: string): Promise<FiadoApiResponse<CentralPaymentsTransactionItem>>;
|
|
43
|
+
executeCardToCardTransaction(request: BankAccountP2pTransferRequest): Promise<FiadoApiResponse<BankAccountP2pTransferResponse>>;
|
|
44
|
+
executeFinancialOperation(request: BankAccountPocketTransferRequest[]): Promise<FiadoApiResponse<BankAccountPocketTransferResponse[]>>;
|
|
45
|
+
executeAchTransaction(request: BankAccountAchTransferRequest): Promise<FiadoApiResponse<BankAccountAchTransferResponse>>;
|
|
46
|
+
executeMCSendTransaction(request: BankAccountMCSendTransferRequest): Promise<FiadoApiResponse<BankAccountMCSendTransferResponse>>;
|
|
47
|
+
executeFinancialOperationReversal(request: ProviderTransactionReversalRequest): Promise<FiadoApiResponse<ProviderTransactionReversalResponse[]>>;
|
|
48
|
+
executeFinancialOperationCompletion(request: ProviderTransactionCompletionRequest): Promise<FiadoApiResponse<ProviderTransactionCompletionResponse[]>>;
|
|
49
|
+
executeTransactionProcessorChargeback(request: ProviderProcessChargebackTransactionRequest): Promise<FiadoApiResponse<ProviderProcessChargebackTransactionResponse>>;
|
|
50
|
+
executeTransactionProcessorMembership(request: ProviderProcessMembershipTransactionRequest): Promise<FiadoApiResponse<ProviderProcessMembershipTransactionResponse>>;
|
|
51
|
+
getCardholderACHBankAccounts(externalUserId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse[]>>;
|
|
52
|
+
createCardholderACHBankAccount(externalUserId: string, request: CreateExternalBankAccountRequest): Promise<FiadoApiResponse<CreateExternalBankAccountResponse>>;
|
|
53
|
+
getACHBankAccountDetail(bankAccountId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
|
|
54
|
+
deleteACHBankAccount(bankAccountId: string): Promise<FiadoApiResponse<null>>;
|
|
55
|
+
verifyACHBankAccount(bankAccountId: string, request: any): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
|
|
56
|
+
getMerchantLocations(params: GetMerchantLocationsQueryParams): Promise<FiadoApiResponse<GetMerchantLocationsResponse>>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { ICnbvApi } from "./interfaces/ICnbvApi";
|
|
3
|
+
export default class CnbvApi implements ICnbvApi {
|
|
4
|
+
private httpRequest;
|
|
5
|
+
private readonly baseUrl;
|
|
6
|
+
constructor(httpRequest: IHttpRequest);
|
|
7
|
+
validateConcidence(fullName: string, yearOfBirth: string): Promise<any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 CnbvApi = class CnbvApi {
|
|
17
|
+
constructor(httpRequest) {
|
|
18
|
+
this.httpRequest = httpRequest;
|
|
19
|
+
this.baseUrl = process.env.CNBV_LAMBDA_URL || "";
|
|
20
|
+
}
|
|
21
|
+
async validateConcidence(fullName, yearOfBirth) {
|
|
22
|
+
const url = `${this.baseUrl}?value=${yearOfBirth}¶m=YEAR_OF_BIRTH&fullName=${fullName}`;
|
|
23
|
+
return await this.httpRequest.get(url);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
CnbvApi = __decorate([
|
|
27
|
+
(0, inversify_1.injectable)(),
|
|
28
|
+
__param(0, (0, inversify_1.inject)("IHttpRequest")),
|
|
29
|
+
__metadata("design:paramtypes", [Object])
|
|
30
|
+
], CnbvApi);
|
|
31
|
+
exports.default = CnbvApi;
|
|
@@ -0,0 +1,18 @@
|
|
|
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/ICnbvApi"), exports);
|
|
18
|
+
__exportStar(require("./CnbvApi"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
+
import { GetUserRequest, GetUserResponse, RefreshTokenRequest, RefreshTokenResponse, RespondToAuthChallengeRequest, SetPasswordRequest, SignInRequest, SignInResponse, SignUpConfirmRequest, SignUpRequest, SignUpResponse } from "@fiado/type-kit/bin/cognitoConnector";
|
|
3
|
+
import { ICognitoConnectorApi } from "./interfaces/ICognitoConnectorApi";
|
|
4
|
+
export default class CognitoConnectorApi implements ICognitoConnectorApi {
|
|
5
|
+
private httpRequest;
|
|
6
|
+
private readonly baseUrl;
|
|
7
|
+
constructor(httpRequest: IHttpRequest);
|
|
8
|
+
signUp(input: SignUpRequest): Promise<SignUpResponse>;
|
|
9
|
+
signIn(input: SignInRequest): Promise<SignInResponse>;
|
|
10
|
+
getUser(input: GetUserRequest): Promise<GetUserResponse>;
|
|
11
|
+
signUpConfirm(input: SignUpConfirmRequest): Promise<void>;
|
|
12
|
+
refreshToken(input: RefreshTokenRequest): Promise<RefreshTokenResponse>;
|
|
13
|
+
changePassword(input: SetPasswordRequest): Promise<void>;
|
|
14
|
+
respondToNewPasswordChallenge(input: RespondToAuthChallengeRequest): Promise<SignInResponse>;
|
|
15
|
+
resetPassword(username: string, typeOfDirectoryId: string): Promise<void>;
|
|
16
|
+
}
|