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: StringThe 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
sourceimpl Clone for Commercial
impl Clone for Commercial
sourcefn clone(&self) -> Commercial
fn clone(&self) -> Commercial
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more