Example #1
0
 private void LoadFromDTO(FormerPaymentOrderDTO dto)
 {
     this.RouteNumber = dto.RouteNumber;
     this.IssueTime   = dto.IssueTime;
     this.DueDate     = dto.DueDate;
     this.Total       = dto.PaymentTotal;
 }
Example #2
0
        internal async Task <FormerPaymentOrderDTO> GeneratePaymentOrder()
        {
            Assertion.Assert(FilingRequest.HasTransaction,
                             "This filing has not be linked to a transaction.");
            Assertion.Assert(!FilingRequest.HasPaymentOrder,
                             $"This filing already has a payment order.");

            var provider = this.GetTransactionProvider();

            IPayable transaction = provider.GetTransactionAsPayable(this.TransactionUID);

            FormerPaymentOrderDTO paymentOrder = await GeneratePaymentOrder(transaction).ConfigureAwait(false);

            provider.SetPaymentOrder(transaction, paymentOrder);

            return(paymentOrder);
        }
Example #3
0
 internal PaymentOrder(FormerPaymentOrderDTO dto)
 {
     this.LoadFromDTO(dto);
 }