import { Product } from './product'; import { Address } from './address'; export interface OrderStatus { value: string; label: string; } export interface Currency { value: string; label: string; } export interface PaymentOption { name: string; payment_type: string; payment_type_label: string; pk: number; slug: string; } export interface OrderItem { id: number; status: OrderStatus; price_currency: Currency; product: Product; is_cancelled: boolean; is_cancellable: boolean; is_refundable: boolean; is_tradable: boolean; available_easy_return_shipping_companies: { pk: number; shipping_company: { value: string; label: string; }; }[]; active_cancellation_request: [ { easy_return: { code: string; }; } ]; created_date: string; modified_date: string; price: string; tax_rate: string; retail_price: string; order: number; length: number; quantity: string; unit_price: string; total_amount: string; attributes: { gift_note: string; [key: string]: any; }; } export interface Order { id: number; status: OrderStatus; currency: Currency; orderitem_set: OrderItem[]; discountitem_set: [ { amount: string; cancel_amount: string; code: null; created_date: string; modified_date: string; name: string; offer_type: string; order: number; pk: number; promotion: number; session_offer_type: null; } ]; is_cancelled: boolean; is_cancellable: boolean; is_refundable: boolean; shipping_address: Address; billing_address: Address; client_type: string; payment_option: PaymentOption; amount_without_discount: string; is_payable: boolean; created_date: string; modified_date: string; number: string; amount: string; discount_amount: string; shipping_amount: string; refund_amount: string; discount_refund_amount: string; shipping_refund_amount: string; remote_addr: string; has_gift_box: boolean; language_code: string; user_email: string; shipping_option_slug: string; payment_option_slug: string; installment_count: 1; installment_interest_amount: string; user: number; basket: number; shipping_option: number; tracking_number: string; tracking_url: string; [key: string]: any; bank: { pk: number; name: string; slug: string; [key: string]: any; }; } export interface Quotations { id: number; name: string; net_amount: string; number: string; status: string; total_amount: string; modified_at: string; created_at: string; }