UNPKG

mailinator-client

Version:
20 lines (19 loc) 896 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PrivateCustomServiceInboxWebhookRequest = void 0; const MailinatorRestClient_1 = require("../MailinatorRestClient"); const _resolveTemplateUrl = (whToken, customService, inbox) => { return `https://api.mailinator.com/api/v2/domains/private/${customService}/${inbox}?whtoken=${whToken}`; }; class PrivateCustomServiceInboxWebhookRequest { constructor(whToken, customService, inbox, webhook) { this.whToken = whToken; this.customService = customService; this.inbox = inbox; this.webhook = webhook; } execute() { return MailinatorRestClient_1.default.create(_resolveTemplateUrl(this.whToken, this.customService, this.inbox), this.webhook); } } exports.PrivateCustomServiceInboxWebhookRequest = PrivateCustomServiceInboxWebhookRequest;