/// <summary>
 /// Initializes a new instance of the <see cref="CatalogMeasurementUnit" /> class.
 /// </summary>
 /// <param name="MeasurementUnit">Indicates the unit used to measure the quantity of a catalog item variation..</param>
 /// <param name="Precision"> Represents the maximum number of positions allowed after the decimal in quantities measured with this unit. For example, if the precision is 2, then an itemization’s quantity can be 0.01, 0.12, etc.  Min: 0  Max: 5  Default: 3.</param>
 public CatalogMeasurementUnit(MeasurementUnit MeasurementUnit = default(MeasurementUnit), int?Precision = default(int?))
 {
     this.MeasurementUnit = MeasurementUnit;
     this.Precision       = Precision;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StandardUnitDescription" /> class.
 /// </summary>
 /// <param name="Unit">Identifies the measurement unit being described..</param>
 /// <param name="Name">UI display name of the measurement unit. For example, &#39;Pound&#39;..</param>
 /// <param name="Abbreviation">UI display abbreviation for the measurement unit. For example, &#39;lb&#39;..</param>
 public StandardUnitDescription(MeasurementUnit Unit = default(MeasurementUnit), string Name = default(string), string Abbreviation = default(string))
 {
     this.Unit         = Unit;
     this.Name         = Name;
     this.Abbreviation = Abbreviation;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderQuantityUnit" /> class.
 /// </summary>
 /// <param name="MeasurementUnit">A &#x60;MeasurementUnit&#x60; that represents the unit of measure for the quantity..</param>
 /// <param name="Precision">For non-integer quantities, represents the number of digits after the decimal point that are recorded for this quantity.  For example, a precision of 1 allows quantities like &#x60;\&quot;1.0\&quot;&#x60; and &#x60;\&quot;1.1\&quot;&#x60;, but not &#x60;\&quot;1.01\&quot;&#x60;.  Min: 0. Max: 5..</param>
 public OrderQuantityUnit(MeasurementUnit MeasurementUnit = default(MeasurementUnit), int?Precision = default(int?))
 {
     this.MeasurementUnit = MeasurementUnit;
     this.Precision       = Precision;
 }