Module views/Shopping/utils
Functions
isOffline
- isOffline(type: any): any
normalizeCartItem
- normalizeCartItem(item: CartItem): { adult_warning: number; availableQuantity: number; buyerPurchasableLimit: null | number; cartId: number; expiresAt: null | ISO8601; id: number; imgUrl: URLString; isFormal: boolean; isRehearsal: boolean; postCreatedAt: ISO8601; postId: number; postTitle: string; price: string; productName: string; purchaseLimit: PurchaseLimit[]; quantity: number; salableQuantity: number; skuId: null | number; skuName: string; vendor: unknown }
Parameters
Returns { adult_warning: number; availableQuantity: number; buyerPurchasableLimit: null | number; cartId: number; expiresAt: null | ISO8601; id: number; imgUrl: URLString; isFormal: boolean; isRehearsal: boolean; postCreatedAt: ISO8601; postId: number; postTitle: string; price: string; productName: string; purchaseLimit: PurchaseLimit[]; quantity: number; salableQuantity: number; skuId: null | number; skuName: string; vendor: unknown }
adult_warning: number
availableQuantity: number
buyerPurchasableLimit: null | number
cartId: number
expiresAt: null | ISO8601
id: number
isFormal: boolean
isRehearsal: boolean
postCreatedAt: ISO8601
postId: number
postTitle: string
price: string
productName: string
quantity: number
salableQuantity: number
skuId: null | number
skuName: string
vendor: unknown
normalizeType
- normalizeType(type: any): any