UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

80 lines 2.1 kB
import type { prices } from '../models/prices.js'; import type { prices_create } from '../models/prices_create.js'; import type { prices_update } from '../models/prices_update.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; export declare class PriceService { /** * List prices * Retrieve a paginated list of prices * @returns any Successful response * @throws ApiError */ static getPrices({ 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<prices>; pagination?: { limit?: number; offset?: number; total?: number; }; }>; /** * Create price * Create a new price * @returns prices Successfully created * @throws ApiError */ static postPrices({ requestBody, }: { requestBody: prices_create; }): CancelablePromise<prices>; /** * Get price * Retrieve a specific price by ID * @returns prices Successful response * @throws ApiError */ static getPrices1({ priceId, }: { /** * The price ID */ priceId: string; }): CancelablePromise<prices>; /** * Update price * Update a specific price * @returns prices Successfully updated * @throws ApiError */ static patchPrices({ priceId, requestBody, }: { /** * The price ID */ priceId: string; requestBody: prices_update; }): CancelablePromise<prices>; /** * Delete price * Delete a specific price * @returns void * @throws ApiError */ static deletePrices({ priceId, }: { /** * The price ID */ priceId: string; }): CancelablePromise<void>; } //# sourceMappingURL=PriceService.d.ts.map