UNPKG

moip-sdk-node-karl

Version:
17 lines (11 loc) 413 B
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 }