@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
46 lines • 1.45 kB
JavaScript
import { OpenAPI } from '../core/OpenAPI.js';
import { request as __request } from '../core/request.js';
export class PayoutMethodService {
/**
* List payout_methods
* Retrieve a paginated list of payout_methods
* @returns any Successful response
* @throws ApiError
*/
static getPayoutMethods({ limit = 20, offset, sort, }) {
return __request(OpenAPI, {
method: 'GET',
url: '/payout_methods',
query: {
'limit': limit,
'offset': offset,
'sort': sort,
},
errors: {
401: `Unauthorized - Invalid or missing API key`,
500: `Internal server error`,
},
});
}
/**
* Get payout_method
* Retrieve a specific payout_method by ID
* @returns payout_methods Successful response
* @throws ApiError
*/
static getPayoutMethods1({ payoutMethodId, }) {
return __request(OpenAPI, {
method: 'GET',
url: '/payout_methods/{payout_method_id}',
path: {
'payout_method_id': payoutMethodId,
},
errors: {
401: `Unauthorized - Invalid or missing API key`,
404: `Not found - Resource does not exist`,
500: `Internal server error`,
},
});
}
}
//# sourceMappingURL=PayoutMethodService.js.map