import { KiotVietClient } from '../client'; import { Order, OrderCreateParams, OrderUpdateParams, OrderListParams, OrderListResponse } from '../types/order'; export declare class OrderHandler { private client; constructor(client: KiotVietClient); /** * List orders with optional filtering * @param params Filter parameters */ list(params?: OrderListParams): Promise; /** * Get an order by its ID * @param orderId The ID of the order to retrieve */ getById(orderId: number): Promise; /** * Create a new order * @param orderData The order data to create */ create(orderData: OrderCreateParams): Promise; /** * Update an existing order * @param orderId The ID of the order to update * @param orderData The order data to update */ update(orderId: number, orderData: Partial): Promise; /** * Cancel an order * @param orderId The ID of the order to cancel * @param reason Optional cancellation reason */ cancel(orderId: number, reason?: string): Promise; /** * Get an order by its code * @param code The code of the order to retrieve */ getByCode(code: string): Promise; /** * Delete an order * @param orderId The ID of the order to delete * @param isVoidPayment Whether to void the associated payment */ delete(orderId: number, isVoidPayment?: boolean): Promise; /** * Get orders by date range * @param fromDate Start date (YYYY-MM-DD) * @param toDate End date (YYYY-MM-DD) * @param params Additional filter parameters */ getByDateRange(fromDate: string, toDate: string, params?: Omit): Promise; /** * Get orders by customer * @param customerIdentifier Customer's phone number or code * @param params Additional filter parameters */ getByCustomer(customerIdentifier: string, params?: Omit): Promise; }