File

projects/core/src/model/cart.model.ts

Index

Properties

Properties

appliedOrderPromotions
appliedOrderPromotions: PromotionResult[]
Type : PromotionResult[]
Optional
appliedProductPromotions
appliedProductPromotions: PromotionResult[]
Type : PromotionResult[]
Optional
appliedVouchers
appliedVouchers: Voucher[]
Type : Voucher[]
Optional
calculated
calculated: boolean
Type : boolean
Optional
code
code: string
Type : string
Optional
costCenter
costCenter: CostCenter
Type : CostCenter
Optional
deliveryAddress
deliveryAddress: Address
Type : Address
Optional
deliveryCost
deliveryCost: Price
Type : Price
Optional
deliveryItemsQuantity
deliveryItemsQuantity: number
Type : number
Optional
deliveryMode
deliveryMode: DeliveryMode
Type : DeliveryMode
Optional
deliveryOrderGroups
deliveryOrderGroups: DeliveryOrderEntryGroup[]
Type : DeliveryOrderEntryGroup[]
Optional
description
description: string
Type : string
Optional
entries
entries: OrderEntry[]
Type : OrderEntry[]
Optional
expirationTime
expirationTime: Date
Type : Date
Optional
guid
guid: string
Type : string
Optional
name
name: string
Type : string
Optional
net
net: boolean
Type : boolean
Optional
orderDiscounts
orderDiscounts: Price
Type : Price
Optional
paymentInfo
paymentInfo: PaymentDetails
Type : PaymentDetails
Optional
paymentType
paymentType: PaymentType
Type : PaymentType
Optional
pickupItemsQuantity
pickupItemsQuantity: number
Type : number
Optional
pickupOrderGroups
pickupOrderGroups: PickupOrderEntryGroup[]
Type : PickupOrderEntryGroup[]
Optional
potentialOrderPromotions
potentialOrderPromotions: PromotionResult[]
Type : PromotionResult[]
Optional
potentialProductPromotions
potentialProductPromotions: PromotionResult[]
Type : PromotionResult[]
Optional
productDiscounts
productDiscounts: Price
Type : Price
Optional
purchaseOrderNumber
purchaseOrderNumber: string
Type : string
Optional
savedBy
savedBy: Principal
Type : Principal
Optional
saveTime
saveTime: Date
Type : Date
Optional
site
site: string
Type : string
Optional
store
store: string
Type : string
Optional
subTotal
subTotal: Price
Type : Price
Optional
totalDiscounts
totalDiscounts: Price
Type : Price
Optional
totalItems
totalItems: number
Type : number
Optional
totalPrice
totalPrice: Price
Type : Price
Optional
totalPriceWithTax
totalPriceWithTax: Price
Type : Price
Optional
totalTax
totalTax: Price
Type : Price
Optional
totalUnitCount
totalUnitCount: number
Type : number
Optional
user
user: Principal
Type : Principal
Optional
import { Address } from './address.model';
import { Currency } from './misc.model';
import {
  DeliveryMode,
  OrderEntry,
  PickupOrderEntryGroup,
  PromotionOrderEntryConsumed,
} from './order.model';
import { CostCenter } from './org-unit.model';
import { Price, Promotion } from './product.model';

export interface PromotionResult {
  consumedEntries?: PromotionOrderEntryConsumed[];
  description?: string;
  promotion?: Promotion;
}

export enum PromotionLocation {
  ActiveCart = 'CART',
  Checkout = 'CHECKOUT',
  Order = 'ORDER',
  SaveForLater = 'SAVE_FOR_LATER',
  SavedCart = 'SAVED_CART',
}

export enum B2BPaymentTypeEnum {
  ACCOUNT_PAYMENT = 'ACCOUNT',
  CARD_PAYMENT = 'CARD',
}

export interface Voucher {
  appliedValue?: Price;
  code?: string;
  currency?: Currency;
  description?: string;
  freeShipping?: boolean;
  name?: string;
  value?: number;
  valueFormatted?: string;
  valueString?: string;
  voucherCode?: string;
}

export interface DeliveryOrderEntryGroup {
  deliveryAddress?: Address;
  entries?: OrderEntry[];
  quantity?: number;
  totalPriceWithTax?: Price;
}

export interface Principal {
  name?: string;
  uid?: string;
}

export interface CardType {
  code?: string;
  name?: string;
}

export interface PaymentType {
  code?: string;
  displayName?: string;
}

export interface PaymentDetails {
  accountHolderName?: string;
  billingAddress?: Address;
  cardNumber?: string;
  cardType?: CardType;
  cvn?: string;
  defaultPayment?: boolean;
  expiryMonth?: string;
  expiryYear?: string;
  id?: string;
  issueNumber?: string;
  saved?: boolean;
  startMonth?: string;
  startYear?: string;
  subscriptionId?: string;
}

export interface SaveCartResult {
  savedCartData?: Cart;
}

export interface Cart {
  appliedOrderPromotions?: PromotionResult[];
  appliedProductPromotions?: PromotionResult[];
  appliedVouchers?: Voucher[];
  calculated?: boolean;
  code?: string;
  costCenter?: CostCenter;
  deliveryAddress?: Address;
  deliveryCost?: Price;
  deliveryItemsQuantity?: number;
  deliveryMode?: DeliveryMode;
  deliveryOrderGroups?: DeliveryOrderEntryGroup[];
  description?: string;
  entries?: OrderEntry[];
  expirationTime?: Date;
  guid?: string;
  name?: string;
  net?: boolean;
  orderDiscounts?: Price;
  paymentInfo?: PaymentDetails;
  paymentType?: PaymentType;
  pickupItemsQuantity?: number;
  pickupOrderGroups?: PickupOrderEntryGroup[];
  potentialOrderPromotions?: PromotionResult[];
  potentialProductPromotions?: PromotionResult[];
  productDiscounts?: Price;
  purchaseOrderNumber?: string;
  saveTime?: Date;
  savedBy?: Principal;
  site?: string;
  store?: string;
  subTotal?: Price;
  totalDiscounts?: Price;
  totalItems?: number;
  totalPrice?: Price;
  totalPriceWithTax?: Price;
  totalTax?: Price;
  totalUnitCount?: number;
  user?: Principal;
}

export interface CartModification {
  deliveryModeChanged?: boolean;
  entry?: OrderEntry;
  quantity?: number;
  quantityAdded?: number;
  statusCode?: string;
  statusMessage?: string;
}

export interface CartModificationList {
  cartModifications?: CartModification[];
}

export enum CartValidationStatusCode {
  NO_STOCK = 'noStock',
  LOW_STOCK = 'lowStock',
  REVIEW_CONFIGURATION = 'reviewConfiguration',
  PRICING_ERROR = 'pricingError',
  UNRESOLVABLE_ISSUES = 'unresolvableIssues',
}

result-matching ""

    No results matching ""