UNPKG

@liquidcommerce/cloud-sdk

Version:

LiquidCommerce Cloud SDK

16 lines (15 loc) 627 B
import type { OrderAuthenticatedService } from '../core'; import type { IOrder } from '../interfaces'; import type { IApiResponseWithData } from '../types'; export declare class OrderService { private client; constructor(client: OrderAuthenticatedService); /** * Fetches an order by its identifier. * * @param {string} identifier - The identifier of the order to fetch. * @returns {Promise<IApiResponseWithData<IOrder>>} A promise that resolves to the order data. * @throws {Error} If the fetch request fails. */ fetch(identifier: string): Promise<IApiResponseWithData<IOrder>>; }