public ReversalTransactionDto(VippsReversalTransaction transaction) { Amount = transaction.Amount.InLowestMonetaryUnit; Description = transaction.Description; PayeeReference = transaction.PayeeReference; VatAmount = transaction.VatAmount.InLowestMonetaryUnit; }
/// <summary> /// Instantiates a <see cref="VippsPaymentReversalRequest"/> with the provided parameters. /// </summary> /// <param name="amount">The amount to reverse back to the payer.</param> /// <param name="vatAmount">The amount of VAT to reverse back.</param> /// <param name="description">A textual description of the reversal.</param> /// <param name="payeeReference">Transactionally unique reference from the merchant system.</param> public VippsPaymentReversalRequest(Amount amount, Amount vatAmount, string description, string payeeReference) { Transaction = new VippsReversalTransaction(amount, vatAmount, description, payeeReference); }