UNPKG

@test-org122/merchant-iframe

Version:

Mediator iFrame package. This is used to sandbox the connector code away from the running hypernet core.

19 lines 1.07 kB
import { ResultAsync } from "neverthrow"; import { IMerchantConnectorRepository } from "@merchant-iframe/interfaces/data"; import { MerchantConnectorError, MerchantValidationError } from "@merchant-iframe/interfaces/objects/errors"; import { IContextProvider } from "@merchant-iframe/interfaces/utils"; import { IMerchantService } from "@merchant-iframe/interfaces/business"; import { IMerchantConnector } from "@test-org122/merchant-connector"; declare global { interface Window { connector: IMerchantConnector; } } export declare class MerchantService implements IMerchantService { protected merchantConnectorRepository: IMerchantConnectorRepository; protected contextProvider: IContextProvider; constructor(merchantConnectorRepository: IMerchantConnectorRepository, contextProvider: IContextProvider); activateMerchantConnector(): ResultAsync<IMerchantConnector, MerchantConnectorError | MerchantValidationError>; validateMerchantConnector(): ResultAsync<string, MerchantValidationError>; } //# sourceMappingURL=MerchantService.d.ts.map