Class ProductLocalPrice
Class ProductLocalPrice.
Namespace: Unity.Industrial.Forma.Core.Pricing
Syntax
public class ProductLocalPrice : MonoBehaviour
Fields
context
The context
Declaration
public Context context
Field Value
| Type | Description | 
|---|---|
| Context | 
customCurrencyCulture
The custom currency culture
Declaration
public string customCurrencyCulture
Field Value
| Type | Description | 
|---|---|
| String | 
defaultPrice
The default price
Declaration
public double defaultPrice
Field Value
| Type | Description | 
|---|---|
| Double | 
featureSetPrices
The feature set prices
Declaration
public List<FeatureSetPrice> featureSetPrices
Field Value
| Type | Description | 
|---|---|
| List<FeatureSetPrice> | 
product
The product
Declaration
public Product product
Field Value
| Type | Description | 
|---|---|
| Product | 
Properties
CultureInfo
Gets the culture information.
Declaration
public CultureInfo CultureInfo { get; }
Property Value
| Type | Description | 
|---|---|
| CultureInfo | The culture information.  | 
Methods
Generate(Product, Context)
Generates the specified product.
Declaration
public void Generate(Product productArg, Context contextArg)
Parameters
| Type | Name | Description | 
|---|---|---|
| Product | productArg | The product.  | 
| Context | contextArg | The context.  | 
InitializeFromJson(String)
Declaration
public void InitializeFromJson(string jsonData)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | jsonData | 
ToJson()
Declaration
public string ToJson()
Returns
| Type | Description | 
|---|---|
| String | 
UpdateData(Product, Context)
Updates the data.
Declaration
public void UpdateData(Product productArg, Context contextArg)
Parameters
| Type | Name | Description | 
|---|---|---|
| Product | productArg | The product.  | 
| Context | contextArg | The context.  |