Beispiel #1
0
 /// <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 &amp;lt;FSAmount&amp;gt; element</param>
 ///
 public FSAmount( FSAmountType type, decimal? credits, decimal? value )
     : base(FoodDTD.FSAMOUNT)
 {
     this.SetType( type );
     this.Credits = credits;
     this.Value = value;
 }
Beispiel #2
0
 ///<summary>Sets the value of the <c>&lt;Amount&gt;</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 &amp;lt;FSAmount&amp;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));
 }
Beispiel #3
0
 ///<summary>Sets the value of the <c>&lt;Amount&gt;</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 &amp;lt;FSAmount&amp;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));
 }
Beispiel #4
0
 /// <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 );
 }
Beispiel #5
0
 ///<summary>Sets the value of the <c>&lt;Amount&gt;</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 &amp;lt;FSAmount&amp;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 ) );
 }
Beispiel #6
0
 /// <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 &amp;lt;FSAmount&amp;gt; element</param>
 ///
 public FSAmount(FSAmountType type, decimal?credits, decimal?value) : base(FoodDTD.FSAMOUNT)
 {
     this.SetType(type);
     this.Credits = credits;
     this.Value   = value;
 }
Beispiel #7
0
 /// <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>&lt;FSAmount&gt;</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 &amp;lt;FSAmount&amp;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 ) );
 }
Beispiel #9
0
 ///<summary>Adds the value of the <c>&lt;Amount&gt;</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 &amp;lt;FSAmount&amp;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));
 }