Exemplo n.º 1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">This refers to the way the payment was made.</param>
 ///<param name="amounts">AmountThis amount is the form of the incoming funds for this transaction. For example; the payment can be made by a credit card.</param>
 ///
 public TransactionPayMethod(TransactionPayMethodType type, FSAmounts amounts) : base(FoodDTD.TRANSACTIONPAYMETHOD)
 {
     this.SetType(type);
     this.AddAmounts(amounts);
 }
Exemplo n.º 2
0
 ///<summary>Adds the value of the <c>&lt;TransactionPayMethod&gt;</c> element.</summary>
 /// <param name="Type">This refers to the way the payment was made.</param>
 /// <param name="Amounts">AmountThis amount is the form of the incoming funds for this transaction. For example; the payment can be made by a credit card.</param>
 ///<remarks>
 /// <para>This form of <c>setTransactionPayMethod</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddTransactionPayMethod</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddTransactionPayMethod(TransactionPayMethodType Type, FSAmounts Amounts)
 {
     AddChild(FoodDTD.TRANSACTIONPAYMETHODS_TRANSACTIONPAYMETHOD, new TransactionPayMethod(Type, Amounts));
 }
Exemplo n.º 3
0
 /// <summary>Adds a new <c>&lt;Amounts&gt;</c> child element.</summary>
 /// <param name="val">A FSAmounts object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "AmountThis amount is the form of the incoming funds for this transaction. For example; the payment can be made by a credit card."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddAmounts(FSAmounts val)
 {
     AddChild(FoodDTD.TRANSACTIONPAYMETHOD_AMOUNTS, val);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">GUID that identifies transaction details</param>
 ///<param name="foodserviceTransactionRefId">GUID that identifies food service transaction</param>
 ///<param name="amounts">Amount. This amount refers to the funds being directed inwards/ outwards from the customer's account. That is: these amounts reflect the changes to the account balances.</param>
 ///
 public FoodserviceTransactionDetails(string refId, string foodserviceTransactionRefId, FSAmounts amounts) : base(Adk.SifVersion, FoodDTD.FOODSERVICETRANSACTIONDETAILS)
 {
     this.RefId = refId;
     this.FoodserviceTransactionRefId = foodserviceTransactionRefId;
     this.Amounts = amounts;
 }