ZyncProductDetail

data class ZyncProductDetail(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: ZyncProductType, 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 markup: ZyncProductMarkup?, val attachments: List<ZyncAttachment> = emptyList(), val bundleItems: List<ZyncProductBundleItem> = emptyList(), val locationItems: List<ZyncProductLocationAvailability> = 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: ZyncProductType, 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, markup: ZyncProductMarkup?, attachments: List<ZyncAttachment> = emptyList(), bundleItems: List<ZyncProductBundleItem> = emptyList(), locationItems: List<ZyncProductLocationAvailability> = 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
val brand: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val createdAt: String? = null
Link copied to clipboard
val currency: String? = null
Link copied to clipboard
Link copied to clipboard
val hasCustomTax: Boolean = false
Link copied to clipboard
val isAvailable: Boolean = true
Link copied to clipboard
val isBillable: Boolean = true
Link copied to clipboard
val isDeleted: Boolean = false
Link copied to clipboard
Link copied to clipboard
val minQuantity: Double = 0.0
Link copied to clipboard
val prefix: String? = null
Link copied to clipboard
val price: Double? = null
Link copied to clipboard
val pricingLevel: String? = null
Link copied to clipboard
val productBarCode: String? = null
Link copied to clipboard
Link copied to clipboard
val productId: String? = null
Link copied to clipboard
val productImage: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val purchasePrice: Double? = null
Link copied to clipboard
val quantity: Double = 0.0
Link copied to clipboard
val specification: String? = null
Link copied to clipboard
Link copied to clipboard
val uom: String? = null
Link copied to clipboard
val updatedAt: String? = null