/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type"> /// Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable. /// </param> ///<param name="credits"> /// Number of credits. This attribute does not apply to Cash or Value /// and hence has a value 0. It only applies to types BreakfastCredit and LunchCredit. /// </param> ///<param name="value">Gets or sets the content value of the &lt;FSAmount&gt; element</param> /// public FSAmount( FSAmountType type, decimal? credits, decimal? value ) : base(FoodDTD.FSAMOUNT) { this.SetType( type ); this.Credits = credits; this.Value = value; }
///<summary>Sets the value of the <c><Amount></c> element.</summary> /// <param name="Type"> /// Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable. /// </param> /// <param name="Credits"> /// Number of credits. This attribute does not apply to Cash or Value /// and hence has a value 0. It only applies to types BreakfastCredit and LunchCredit. /// </param> /// <param name="Value">Gets or sets the content value of the &lt;FSAmount&gt; element</param> ///<remarks> /// <para>This form of <c>setAmount</c> is provided as a convenience method /// that is functionally equivalent to the <c>Amount</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetAmount(FSAmountType Type, decimal?Credits, decimal?Value) { RemoveChild(FoodDTD.COUNT_AMOUNT); AddChild(FoodDTD.COUNT_AMOUNT, new FSAmount(Type, Credits, Value)); }
///<summary>Sets the value of the <c><Amount></c> element.</summary> /// <param name="Type"> /// Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable. /// </param> /// <param name="Credits"> /// Number of credits. This attribute does not apply to Cash or Value /// and hence has a value 0. It only applies to types BreakfastCredit and LunchCredit. /// </param> /// <param name="Value">Gets or sets the content value of the &lt;FSAmount&gt; element</param> ///<remarks> /// <para>This form of <c>setAmount</c> is provided as a convenience method /// that is functionally equivalent to the <c>Amount</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetAmount(FSAmountType Type, decimal?Credits, decimal?Value) { RemoveChild(FoodDTD.FOODSERVICETRANSACTION_AMOUNT); AddChild(FoodDTD.FOODSERVICETRANSACTION_AMOUNT, new FSAmount(Type, Credits, Value)); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A FSAmountType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: " /// Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable. /// "</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType( FSAmountType val ) { SetField( FoodDTD.FSAMOUNT_TYPE, val ); }
///<summary>Sets the value of the <c><Amount></c> element.</summary> /// <param name="Type"> /// Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable. /// </param> /// <param name="Credits"> /// Number of credits. This attribute does not apply to Cash or Value /// and hence has a value 0. It only applies to types BreakfastCredit and LunchCredit. /// </param> /// <param name="Value">Gets or sets the content value of the &lt;FSAmount&gt; element</param> ///<remarks> /// <para>This form of <c>setAmount</c> is provided as a convenience method /// that is functionally equivalent to the <c>Amount</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetAmount( FSAmountType Type, decimal? Credits, decimal? Value ) { RemoveChild( FoodDTD.COUNT_AMOUNT); AddChild( FoodDTD.COUNT_AMOUNT, new FSAmount( Type, Credits, Value ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type"> /// Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable. /// </param> ///<param name="credits"> /// Number of credits. This attribute does not apply to Cash or Value /// and hence has a value 0. It only applies to types BreakfastCredit and LunchCredit. /// </param> ///<param name="value">Gets or sets the content value of the &lt;FSAmount&gt; element</param> /// public FSAmount(FSAmountType type, decimal?credits, decimal?value) : base(FoodDTD.FSAMOUNT) { this.SetType(type); this.Credits = credits; this.Value = value; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A FSAmountType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: " /// Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable. /// "</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType(FSAmountType val) { SetField(FoodDTD.FSAMOUNT_TYPE, val); }
///<summary>Sets the value of the <c><FSAmount></c> element.</summary> /// <param name="Type"> /// Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable. /// </param> /// <param name="Credits"> /// Number of credits. This attribute does not apply to Cash or Value /// and hence has a value 0. It only applies to types BreakfastCredit and LunchCredit. /// </param> /// <param name="Value">Gets or sets the content value of the &lt;FSAmount&gt; element</param> ///<remarks> /// <para>This form of <c>setFSAmount</c> is provided as a convenience method /// that is functionally equivalent to the <c>FSAmount</c></para> /// <para>Version: 1.5r1</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetFSAmount( FSAmountType Type, decimal? Credits, decimal? Value ) { RemoveChild( FoodDTD.FOODSERVICETRANSACTION_FSAMOUNT); AddChild( FoodDTD.FOODSERVICETRANSACTION_FSAMOUNT, new FSAmount( Type, Credits, Value ) ); }
///<summary>Adds the value of the <c><Amount></c> element.</summary> /// <param name="Type"> /// Type of amount. The currency unit is implied; namely USD. Note that when this common element is used not all of the following values apply. There are notes to indicate values that are applicable. /// </param> /// <param name="Credits"> /// Number of credits. This attribute does not apply to Cash or Value /// and hence has a value 0. It only applies to types BreakfastCredit and LunchCredit. /// </param> /// <param name="Value">Gets or sets the content value of the &lt;FSAmount&gt; element</param> ///<remarks> /// <para>This form of <c>setAmount</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddAmount</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void AddAmount(FSAmountType Type, decimal?Credits, decimal?Value) { AddChild(FoodDTD.FSAMOUNTS_AMOUNT, new FSAmount(Type, Credits, Value)); }