UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

80 lines 2.33 kB
import type { payment_links } from '../models/payment_links.js'; import type { payment_links_create } from '../models/payment_links_create.js'; import type { payment_links_update } from '../models/payment_links_update.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; export declare class PaymentLinkService { /** * List payment_links * Retrieve a paginated list of payment_links * @returns any Successful response * @throws ApiError */ static getPaymentLinks({ limit, offset, sort, }: { /** * Maximum number of items to return */ limit?: number; /** * Number of items to skip */ offset?: number; /** * Sort order (e.g., created_at:desc) */ sort?: string; }): CancelablePromise<{ data?: Array<payment_links>; pagination?: { limit?: number; offset?: number; total?: number; }; }>; /** * Create payment_link * Create a new payment_link * @returns payment_links Successfully created * @throws ApiError */ static postPaymentLinks({ requestBody, }: { requestBody: payment_links_create; }): CancelablePromise<payment_links>; /** * Get payment_link * Retrieve a specific payment_link by ID * @returns payment_links Successful response * @throws ApiError */ static getPaymentLinks1({ linkId, }: { /** * The payment_link ID */ linkId: string; }): CancelablePromise<payment_links>; /** * Update payment_link * Update a specific payment_link * @returns payment_links Successfully updated * @throws ApiError */ static patchPaymentLinks({ linkId, requestBody, }: { /** * The payment_link ID */ linkId: string; requestBody: payment_links_update; }): CancelablePromise<payment_links>; /** * Delete payment_link * Delete a specific payment_link * @returns void * @throws ApiError */ static deletePaymentLinks({ linkId, }: { /** * The payment_link ID */ linkId: string; }): CancelablePromise<void>; } //# sourceMappingURL=PaymentLinkService.d.ts.map