@mft/moneyhub-api-client
Version:
Node.JS client for the Moneyhub API
22 lines • 692 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = ({ config, request }) => {
const { identityServiceUrl } = config;
const getStandingOrder = ({ id }, options) => request(`${identityServiceUrl}/standing-orders/${id}`, {
cc: {
scope: "payment:read",
},
options,
});
return {
getStandingOrder,
getStandingOrders: (params = {}, options) => request(`${identityServiceUrl}/standing-orders`, {
searchParams: params,
cc: {
scope: "payment:read",
},
options,
}),
};
};
//# sourceMappingURL=standing-orders.js.map