UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

46 lines 1.43 kB
import { OpenAPI } from '../core/OpenAPI.js'; import { request as __request } from '../core/request.js'; export class TransactionService { /** * List transactions * Retrieve a paginated list of transactions * @returns any Successful response * @throws ApiError */ static getTransactions({ limit = 20, offset, sort, }) { return __request(OpenAPI, { method: 'GET', url: '/transactions', query: { 'limit': limit, 'offset': offset, 'sort': sort, }, errors: { 401: `Unauthorized - Invalid or missing API key`, 500: `Internal server error`, }, }); } /** * Get transaction * Retrieve a specific transaction by ID * @returns transactions Successful response * @throws ApiError */ static getTransactions1({ transactionId, }) { return __request(OpenAPI, { method: 'GET', url: '/transactions/{transaction_id}', path: { 'transaction_id': transactionId, }, errors: { 401: `Unauthorized - Invalid or missing API key`, 404: `Not found - Resource does not exist`, 500: `Internal server error`, }, }); } } //# sourceMappingURL=TransactionService.js.map