@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
41 lines • 917 B
JavaScript
/**
* PayoutsService
* AUTO-GENERATED - Do not edit manually
*
* Payout management - transfer funds to beneficiaries
*/
import { request } from '../core/request.js';
export class PayoutsService {
/**
* List payouts
* Payout management - transfer funds to beneficiaries
*/
static async list(options) {
return await request({
method: 'GET',
url: '/payouts',
query: options,
});
}
/**
* Get a single payout
*/
static async get(id) {
return await request({
method: 'GET',
url: '/payouts/{id}',
path: { id },
});
}
/**
* Create a new payout
*/
static async create(data) {
return await request({
method: 'POST',
url: '/payouts',
body: data,
});
}
}
//# sourceMappingURL=PayoutsService.js.map