Zync Product
data class ZyncProduct(val productUid: String, val productName: String, val productId: String? = null, val prefix: String? = null, val productDescription: String? = null, val productImage: String? = null, val productBarCode: String? = null, val productType: String, val brand: String? = null, val specification: String? = null, val price: Double? = null, val purchasePrice: Double? = null, val currency: String? = null, val hasCustomTax: Boolean = false, val tax: ZyncLineItemCustomTax? = null, val isBillable: Boolean = true, val quantity: Double = 0.0, val minQuantity: Double = 0.0, val uom: String? = null, val isAvailable: Boolean = true, val pricingLevel: String? = null, val markupValue: Double? = null, val markupType: String? = null, val attachments: List<ZyncAttachment> = emptyList(), val bundleItems: List<ZyncProductBundleItem> = emptyList(), val locationItems: List<ZyncProductLocationItem> = emptyList(), val category: ZyncProductCategory? = null, val createdAt: String? = null, val updatedAt: String? = null, val isDeleted: Boolean = false, val customFields: List<ZyncFormField> = emptyList())
Simplified domain model representing a Product in the Zuper system. Used for basic product operations and synchronization.
Constructors
Link copied to clipboard
constructor(productUid: String, productName: String, productId: String? = null, prefix: String? = null, productDescription: String? = null, productImage: String? = null, productBarCode: String? = null, productType: String, brand: String? = null, specification: String? = null, price: Double? = null, purchasePrice: Double? = null, currency: String? = null, hasCustomTax: Boolean = false, tax: ZyncLineItemCustomTax? = null, isBillable: Boolean = true, quantity: Double = 0.0, minQuantity: Double = 0.0, uom: String? = null, isAvailable: Boolean = true, pricingLevel: String? = null, markupValue: Double? = null, markupType: String? = null, attachments: List<ZyncAttachment> = emptyList(), bundleItems: List<ZyncProductBundleItem> = emptyList(), locationItems: List<ZyncProductLocationItem> = emptyList(), category: ZyncProductCategory? = null, createdAt: String? = null, updatedAt: String? = null, isDeleted: Boolean = false, customFields: List<ZyncFormField> = emptyList())
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get display name with fallback.
Link copied to clipboard
Get formatted price string.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Check if product is low stock.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get profit margin.
Link copied to clipboard
Link copied to clipboard
Check if product requires reorder.
Link copied to clipboard
Link copied to clipboard