@test-org122/hypernet-core
Version:
Hypernet Core. Represents the SDK for running the Hypernet Protocol.
14 lines (12 loc) • 521 B
text/typescript
import { ResultAsync } from "@interfaces/objects";
import {
CoreUninitializedError,
MerchantConnectorError,
MerchantValidationError,
PersistenceError,
} from "@interfaces/objects/errors";
export interface IMerchantService {
authorizeMerchant(merchantUrl: string): ResultAsync<void, CoreUninitializedError | MerchantValidationError>;
getAuthorizedMerchants(): ResultAsync<Map<string, string>, PersistenceError>;
activateAuthorizedMerchants(): ResultAsync<void, MerchantConnectorError | PersistenceError>;
}