/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A TransactionPayMethodType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "This refers to the way the payment was made."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType(TransactionPayMethodType val) { SetField(FoodDTD.TRANSACTIONPAYMETHOD_TYPE, val); }
/// <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); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A TransactionPayMethodType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "This refers to the way the payment was made."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType( TransactionPayMethodType val ) { SetField( FoodDTD.TRANSACTIONPAYMETHOD_TYPE, val ); }
/// <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 ); }
///<summary>Adds the value of the <c><TransactionPayMethod></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)); }