import type { price_CreatePriceInput } from '../models/price_CreatePriceInput'; import type { price_GetPricesResponse } from '../models/price_GetPricesResponse'; import type { price_Price } from '../models/price_Price'; import type { CancelablePromise } from '../core/CancelablePromise'; export declare class PricesService { /** * List prices * * Returns a paginated list of prices. When productId is supplied, only * prices belonging to that product are returned; otherwise all prices for * the portal are returned. Requires internal-user privileges. * * @param productId Filter prices by product ID. * @param limit Maximum number of records to return. * @param nextToken Pagination cursor returned by a previous request. * * @example * await assembly.listPrices(); */ static listPrices({ productId, limit, nextToken, }: { /** * Filter prices by product ID. */ productId?: string; /** * Maximum number of records to return. */ limit?: number; /** * Pagination cursor returned by a previous request. */ nextToken?: string; }): CancelablePromise; /** * Create a price * * Creates a price for a product. Requires internal-user privileges. The * product must already exist, and the price must be unique within the * product (a recurring price is unique by amount, currency, and interval; a * one-time price is unique by amount and currency). * * @example * await assembly.createAPrice({ requestBody: ... }); */ static createAPrice({ requestBody, }: { /** * Price to create */ requestBody: price_CreatePriceInput; }): CancelablePromise; /** * Retrieve a price * * Returns a single price by ID scoped to the authenticated portal. * * @param id Price ID * * @example * await assembly.retrievePrice({ id: ... }); */ static retrievePrice({ id, }: { /** * Price ID */ id: string; }): CancelablePromise; }