export interface AddressesList {
  address: {
    city: string
    country_iso: string
    name: string
    postcode: string
    street: string
    surname: string
  }
  address_id: number
  alias: string
  customer_id: number
  is_default: boolean
  is_official: boolean
}

export interface UserAddressOfficial {
  address: {
    name: string
    surname: string
    street: string
    postcode: string
    city: string
    country: {
      country_lang: [
        {
          name: string
        },
      ]
    }
  }
}

export interface Payment {
  bank_name: string
  city: string
  country_account_number: string
  country_iso: string
  country_name: string
  currency_iso: string
  iban: string
  id: number
  postcode: string
  street_and_number: string
  swift: string
}

export interface CheckoutOrder {
  cart_id: number
  currency_iso: string
  customer_id: number
  delivery_details: {
    address: CheckoutAddress
    contact_email: string
    contact_phone_number: string
    delivery_option_id: number
  }
  payment_bank_account_id: number
}

export interface CheckoutAddress {
  city: string
  country_iso: {
    str: string
  }
  name: string
  postcode: string
  street: string
  surname: string
}
