import Client from './client'; export default class Transfers extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'mard2p API'; super(options); } postCreate(options = {}) { return this.makeRequest(`${this.host}/transfers/create`, { ...options, method: 'POST', }); } putUpdateByTransferid(transferid, options = {}) { return this.makeRequest(`${this.host}/transfers/update/${transferid}`, { ...options, method: 'PUT', }); } deleteDeleteByTransferid(transferid, options = {}) { return this.makeRequest(`${this.host}/transfers/delete/${transferid}`, { ...options, method: 'DELETE', }); } getByTransferid(transferid, options = {}) { return this.makeRequest(`${this.host}/transfers/${transferid}`, options); } getList(options = {}) { return this.makeRequest(`${this.host}/transfers/list`, options); } }