import {Pagination} from "@/shared/types/pagination";

export interface GetUserOrdersResponse extends Pagination{
  data: UserOrderItem[]
}

export interface UserOrderItem {
  id: number
  status: PaymentStatus
  created_at: string
  total_amount: number
}



//by id
export interface GetUserOrderByIdResponse {
  data: UserOrderByIdItem
}

export interface UserOrderByIdItem {
  id: number
  pay_url: string
  status: Status
  payment_type: string
  payment_status: PaymentStatus
  created_at: string
  delivery_type: string
  client_type: string
  total_amount: number
  products: Product[]
  address: Address
  legal_information: any
  client_information: ClientInformation
  branch: any
  with_installation: boolean
  with_didox: boolean
  price_products: number
  price_delivery: number
  price_master: number
  contract: any
}


export interface PaymentStatus {
  slug: string
  translation: string
  font_color: string
  bg_color: string
}

export interface Product {
  id: number
  name: string
  count: number
  price: number
  total_price: number
}

export interface Address {
  id: number
  city: City
  home: string
  landmark: string
}

export interface City {
  id: number
  name: string
  region: Region
}

export interface Region {
  id: number
  name: string
}

export interface ClientInformation {
  full_name: string
  phone: number
}
