UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

46 lines 1.55 kB
import { OpenAPI } from '../core/OpenAPI.js'; import { request as __request } from '../core/request.js'; export class BnplService { /** * List installment payments * BNPL installment payments - track installment payments * @returns any Successful response with paginated data * @throws ApiError */ static listInstallmentPayments({ limit = 20, offset, sort, }) { return __request(OpenAPI, { method: 'GET', url: '/installment_payments', query: { 'limit': limit, 'offset': offset, 'sort': sort, }, errors: { 401: `Unauthorized - Invalid or missing API key`, 500: `Internal server error`, }, }); } /** * Retrieve installment payment * Retrieve a specific installment payment by its unique identifier. * @returns installment_payments Installment_payment retrieved successfully * @throws ApiError */ static retrieveInstallmentPayment({ paymentId, }) { return __request(OpenAPI, { method: 'GET', url: '/installment_payments/{payment_id}', path: { 'payment_id': paymentId, }, errors: { 401: `Unauthorized - Invalid or missing API key`, 404: `Not found - Resource does not exist`, 500: `Internal server error`, }, }); } } //# sourceMappingURL=BnplService.js.map