UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

89 lines 2.59 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 PricesService { /** * List prices * Pricing tiers - manage product pricing * @returns any Successful response with paginated data * @throws ApiError */ static listPrices({ limit, offset, sort, }: { /** * Maximum number of items to return (1-100) */ limit?: number; /** * Number of items to skip for pagination */ offset?: number; /** * Sort order. Format: `field:direction` (e.g., `created_at:desc`) */ sort?: string; }): CancelablePromise<{ data?: Array<prices>; pagination?: { /** * Number of items per page */ limit?: number; /** * Number of items skipped */ offset?: number; /** * Total number of items available */ total?: number; }; }>; /** * Create price * Pricing tiers - manage product pricing * @returns prices Price successfully created * @throws ApiError */ static createPrice({ requestBody, }: { requestBody: prices_create; }): CancelablePromise<prices>; /** * Retrieve price * Retrieve a specific price by its unique identifier. * @returns prices Price retrieved successfully * @throws ApiError */ static retrievePrice({ priceId, }: { /** * Unique identifier for the price */ priceId: string; }): CancelablePromise<prices>; /** * Update price * Update a specific price. Only provided fields will be updated. * @returns prices Price successfully updated * @throws ApiError */ static updatePrice({ priceId, requestBody, }: { /** * Unique identifier for the price */ priceId: string; requestBody: prices_update; }): CancelablePromise<prices>; /** * Delete price * Delete a specific price. This action cannot be undone. * @returns void * @throws ApiError */ static deletePrice({ priceId, }: { /** * Unique identifier for the price */ priceId: string; }): CancelablePromise<void>; } //# sourceMappingURL=PricesService.d.ts.map