File

projects/storefrontlib/cms-components/cart/order-entries-context/import-to-cart.model.ts

Index

Properties

Properties

cartName
cartName: string | undefined
Type : string | undefined
count
count: number
Type : number
errorMessages
errorMessages: ProductImportInfo[]
Type : ProductImportInfo[]
loading
loading: boolean
Type : boolean
successesCount
successesCount: number
Type : number
total
total: number
Type : number
warningMessages
warningMessages: ProductImportInfo[]
Type : ProductImportInfo[]
export type ProductData = {
  productCode: string;
  quantity: number;
};

export enum ProductImportStatus {
  SUCCESS = 'success',
  LOW_STOCK = 'lowStock',
  NO_STOCK = 'noStock',
  UNKNOWN_IDENTIFIER = 'unknownIdentifier',
  UNKNOWN_ERROR = 'unknownError',
  LIMIT_EXCEEDED = 'limitExceeded',
}

export interface ProductImportInfo {
  productCode: string;
  statusCode: ProductImportStatus;
  productName?: string;
  quantity?: number;
  quantityAdded?: number;
}

export interface ProductImportSummary {
  loading: boolean;
  cartName: string | undefined;
  count: number;
  total: number;
  successesCount: number;
  warningMessages: ProductImportInfo[];
  errorMessages: ProductImportInfo[];
}

result-matching ""

    No results matching ""