import { Discount, UpsellDetail } from './misc'; import { Product } from './product'; export interface Basket { segment: { pk: number; price_list: number; stock_list: number }; unavailable_basket_products: any[]; upsell_details: UpsellDetail[]; voucher_code: string | null; total_amount: string; total_quantity: number; basketitem_set: BasketItem[]; created_date: string; discounts: Discount[]; modified_date: string; pk: number; total_discount_amount: string; total_product_amount: string; upsell_messages: any[]; namespace?: string; } export interface BasketItem { attributes: object; attributes_kwargs: object; discount_amount: string; offer_badges: { description: string; discount: string; }[]; parent: any | null; price: string; retail_price: string; stock: number; id: number; quantity: number; product: Product; currency_type: string; currency_type_label: string; image: string; shipping_discount: string; tax_rate: string; total_amount: string; unit_price: string; }