Struct openconfiguration::Commercial
source · pub struct Commercial {
pub id: String,
pub master_id: Option<String>,
pub article: Option<String>,
pub variant: Option<String>,
pub native_id: Option<String>,
pub short_text: Option<HashMap<String, String>>,
pub long_text: Option<HashMap<String, Vec<String>>>,
pub variant_text: Option<HashMap<String, Vec<String>>>,
pub price_unit: Option<String>,
pub sales_price: Option<f64>,
pub purchase_price: Option<f64>,
pub properties: Vec<Property>,
}
Fields§
§id: String
The instance id of the product in the configurator/basket.
master_id: Option<String>
The instance id of an associated master product, e.g. a set.
article: Option<String>
The (basic) article code.
variant: Option<String>
Additional article code that describes the specific variant.
native_id: Option<String>
The native id.
In case of IDM, this is
In case of XcalibuR, this is <model_source_id/>@@<product_source_id/>
short_text: Option<HashMap<String, String>>
Short (one-line), localized article text.
long_text: Option<HashMap<String, Vec<String>>>
Long, localized article text. Key is ISO 639-1 language code.
variant_text: Option<HashMap<String, Vec<String>>>
Long, localized article text that describes the variant. Used as an addition to the long text, not as replacement. Key is ISO 639-1 language code.
price_unit: Option<String>
The price unit, for all prices of this article. Possible values: “EUR_Ct” - Euro Cent “USD_Ct” - USD Cent “CHF_Rp” - CHF Rappen
sales_price: Option<f64>
The article’s sales price, according to the price unit.
purchase_price: Option<f64>
The article’s purchase price, according to the price unit.
properties: Vec<Property>
The properties of the article.
Trait Implementations§
source§impl Clone for Commercial
impl Clone for Commercial
source§fn clone(&self) -> Commercial
fn clone(&self) -> Commercial
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Commercial
impl Debug for Commercial
source§impl<'de> Deserialize<'de> for Commercial
impl<'de> Deserialize<'de> for Commercial
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq<Commercial> for Commercial
impl PartialEq<Commercial> for Commercial
source§fn eq(&self, other: &Commercial) -> bool
fn eq(&self, other: &Commercial) -> bool
self
and other
values to be equal, and is used
by ==
.