@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
65 lines • 2.1 kB
JavaScript
import { OpenAPI } from '../core/OpenAPI.js';
import { request as __request } from '../core/request.js';
export class BeneficiaryPayoutService {
/**
* List beneficiary_payouts
* Retrieve a paginated list of beneficiary_payouts
* @returns any Successful response
* @throws ApiError
*/
static getBeneficiaryPayouts({ limit = 20, offset, sort, }) {
return __request(OpenAPI, {
method: 'GET',
url: '/beneficiary_payouts',
query: {
'limit': limit,
'offset': offset,
'sort': sort,
},
errors: {
401: `Unauthorized - Invalid or missing API key`,
500: `Internal server error`,
},
});
}
/**
* Create beneficiary_payout
* Create a new beneficiary_payout
* @returns beneficiary_payouts Successfully created
* @throws ApiError
*/
static postBeneficiaryPayouts({ requestBody, }) {
return __request(OpenAPI, {
method: 'POST',
url: '/beneficiary_payouts',
body: requestBody,
mediaType: 'application/json',
errors: {
400: `Bad request - Invalid input`,
401: `Unauthorized - Invalid or missing API key`,
500: `Internal server error`,
},
});
}
/**
* Get beneficiary_payout
* Retrieve a specific beneficiary_payout by ID
* @returns beneficiary_payouts Successful response
* @throws ApiError
*/
static getBeneficiaryPayouts1({ payoutId, }) {
return __request(OpenAPI, {
method: 'GET',
url: '/beneficiary_payouts/{payout_id}',
path: {
'payout_id': payoutId,
},
errors: {
401: `Unauthorized - Invalid or missing API key`,
404: `Not found - Resource does not exist`,
500: `Internal server error`,
},
});
}
}
//# sourceMappingURL=BeneficiaryPayoutService.js.map