UNPKG

@hyperse/paypal-node-sdk

Version:

NodeJS SDK for PayPal Checkout APIs

19 lines (18 loc) 626 B
import querystring from 'querystring'; import { HttpRequestBase } from '../core/HttpRequestBase.js'; import {} from '../types/type-payment.js'; /** * Shows details for a refund, by ID. * @see {@link https://developer.paypal.com/api/payments/v2/#refunds_get} */ export class RefundsGetRequest extends HttpRequestBase { constructor(refundId) { super(); this.path = '/v2/payments/refunds/{refund_id}?'; this.path = this.path.replace('{refund_id}', querystring.escape(refundId)); this.verb = 'GET'; this.headers = { 'Content-Type': 'application/json', }; } }