moip-sdk-node-karl
Version:
Moip v2 API wrapper
17 lines (11 loc) • 413 B
JavaScript
import api from '../client/api'
const create = (opts, _id, bankAccount) => api.post(opts, `/accounts/${_id}/bankaccounts`, bankAccount)
const getOne = (opts, _id) => api.get(opts, '/bankaccounts', _id)
const getAll = (opts, _id) => api.get(opts, `/accounts/${_id}/bankaccounts`)
const remove = (opts, _id) => api.remove(opts, `/bankaccounts/${_id}`)
export default {
create,
getOne,
getAll,
remove
}