@hyperse/paypal-node-sdk
Version:
NodeJS SDK for PayPal Checkout APIs
20 lines (19 loc) • 661 B
JavaScript
import querystring from 'querystring';
import { HttpRequestBase } from '../core/HttpRequestBase.js';
import {} from '../types/type-webhook.js';
/**
* Delete webhook, Deletes a webhook, by ID.
* @see {@link https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_delete}
*
*/
export class WebhookDeleteRequest extends HttpRequestBase {
constructor(webhookId) {
super();
this.verb = 'DELETE';
this.path = '/v1/notifications/webhooks/{webhook_id}?';
this.path = this.path.replace('{webhook_id}', querystring.escape(webhookId));
this.headers = {
'Content-Type': 'application/json',
};
}
}