UNPKG

@onfleet/node-onfleet

Version:

Onfleet's Node.js API Wrapper Package

32 lines (29 loc) 652 B
import Resource from '../Resource.js'; /** * @desc this class holds the CRUD methods allowed on the Recipients endpoint */ export default class Recipients extends Resource { constructor(api) { super(api); this.defineTimeout(); this.endpoints({ create: { path: '/recipients', method: 'POST', }, get: { path: '/recipients/:recipientId', method: 'GET', queryParams: true, }, matchMetadata: { path: '/recipients/metadata', method: 'POST', }, update: { path: '/recipients/:recipientId', method: 'PUT', }, }); } }