import Client from './client'; export default class Invoices extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'Zola Takehome'; super(options); } put(options = {}) { return this.makeRequest(`${this.host}/v1/invoices`, { ...options, method: 'PUT', }); } get(options = {}) { return this.makeRequest(`${this.host}/v1/invoices`, options); } }