Skip to content

Basket model

Basket model is an object that represents a login response object which consists of the following fields:

  • actions: TBasketActions
  • id: string
  • comment: string
  • countries: Country[]
  • isVatEu: boolean
  • hasPromotionCode: boolean
  • promotionCode: PromotionCode | null
  • delivery: Delivery | null
  • discounts: { list?: Discount[]; sum?: FullPrice; }
  • additionalFields: TAdditionalFields
  • taxes: { list?: Tax[]; sum?: Price; }
  • payments: BasketPayment[]
  • shippings: BasketShipping[]
  • billingAddress: Address | null
  • shippingAddress: Address | null
  • sum: FullPrice
  • sumWithoutPaymentAndShipping: FullPrice
  • loyaltyPointsAwarded: LoyaltyPoints | null
  • loyaltyPointsCost: LoyaltyPoints | null
  • hasItemsExchangedWithLoyaltyPoints: boolean
  • loyaltyPointsExchangePrice: FullPrice | null
  • products: { list: ProductBasket[]; count: number; positions: number; sum: FullPrice | null; discountedSum: FullPrice | null; }
  • invalidSections: { shippingAddress?: string; billingAddress?: string; basketItems?: string; shipping?: string; payment?: string; sum?: string; off?: string; }

TBasketActions

Represents the TBasketActions object.

Country

Represents the Country model.

PromotionCode

Represents the PromotionCode model.

Delivery

Represents the Delivery model.

Discount

Represents the Discount model.

FullPrice

Represents the FullPrice model.

TAdditionalFields

Represents the TAdditionalFields object.

Tax

Represents the Tax model.

Price

Represents the Price model.

BasketPayment

Represents the BasketPayment model.

BasketShipping

Represents the BasketShipping model.

Address

Represents the Address model.

LoyaltyPoints

Represents the LoyaltyPoints model.

ProductBasket

Represents the ProductBasket model.