public CardPaymentReversalTransactionDto(CardPaymentReversalTransaction transaction) { Amount = transaction.Amount.InLowestMonetaryUnit; Description = transaction.Description; PayeeReference = transaction.PayeeReference; VatAmount = transaction.VatAmount.InLowestMonetaryUnit; }
/// <summary> /// Instantiates a new <seealso cref="CardPaymentReversalRequest"/> with the provided parameters. /// </summary> /// <param name="amount">The <seealso cref="Amount"/> to be reversed.</param> /// <param name="description">A textual description of the reversal.</param> /// <param name="payeeReference">A transactionally unique payee reference from the merchant system.</param> /// <param name="vatAmount">The Value Added Taxes to be reversed.</param> public CardPaymentReversalRequest(Amount amount, string description, string payeeReference, Amount vatAmount) { Transaction = new CardPaymentReversalTransaction(amount, vatAmount, description, payeeReference); }