UNPKG

mailinator-client

Version:
18 lines (17 loc) 723 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PublicCustomServiceWebhookRequest = void 0; const MailinatorRestClient_1 = require("../MailinatorRestClient"); const _resolveTemplateUrl = (customService) => { return `https://api.mailinator.com/api/v2/domains/public/${customService}`; }; class PublicCustomServiceWebhookRequest { constructor(customService, webhook) { this.customService = customService; this.webhook = webhook; } execute() { return MailinatorRestClient_1.default.create(_resolveTemplateUrl(this.customService), this.webhook); } } exports.PublicCustomServiceWebhookRequest = PublicCustomServiceWebhookRequest;