Пример #1
0
 public IEnumerable <DipsNabChq> Map(CorrectBatchCodelineRequest input)
 {
     return(input.voucher.Select(voucher => batchCodelineRequestMapHelper.CreateNewDipsNabChq(
                                     input.voucherBatch.scannedBatchNumber,
                                     voucher.documentReferenceNumber,
                                     voucher.processingDate,
                                     voucher.extraAuxDom,
                                     voucher.extraAuxDomStatus,
                                     voucher.auxDom,
                                     voucher.auxDomStatus,
                                     voucher.bsbNumber,
                                     voucher.bsbNumberStatus,
                                     voucher.accountNumber,
                                     voucher.accountNumberStatus,
                                     voucher.transactionCode,
                                     voucher.transactionCodeStatus,
                                     voucher.capturedAmount,
                                     voucher.amountConfidenceLevel,
                                     voucher.documentType.ToString(),
                                     input.voucherBatch.workType.ToString(),
                                     string.Empty,
                                     voucher.amount,
                                     voucher.amountStatus,
                                     input.voucherBatch.captureBsb,
                                     input.voucherBatch.batchAccountNumber,
                                     input.voucherBatch.processingState.ToString(),
                                     voucher.collectingBank,
                                     input.voucherBatch.unitID,
                                     input.voucherBatch.batchType,
                                     voucher.repostFromDRN,
                                     voucher.repostFromProcessingDate,
                                     input.voucherBatch.collectingBank,
                                     input.voucherBatch.subBatchType,
                                     voucher.creditNoteFlag)).ToList());
 }
 public IEnumerable <DipsNabChq> Map(ValidateBatchCodelineRequest input)
 {
     // NOTE: when creating a DipsNabChq for a validation request we set all status flags to 'valid'
     return(input.voucher.Select(voucher => batchCodelineRequestMapHelper.CreateNewDipsNabChq(
                                     input.voucherBatch.scannedBatchNumber,
                                     voucher.documentReferenceNumber,
                                     voucher.processingDate,
                                     voucher.extraAuxDom,
                                     true,
                                     voucher.auxDom,
                                     true,
                                     voucher.bsbNumber,
                                     true,
                                     voucher.accountNumber,
                                     true,
                                     voucher.transactionCode,
                                     true,
                                     voucher.capturedAmount,
                                     voucher.amountConfidenceLevel,
                                     voucher.documentType.ToString(),
                                     input.voucherBatch.workType.ToString(),
                                     string.Empty,
                                     string.Empty,
                                     true,
                                     input.voucherBatch.captureBsb,
                                     input.voucherBatch.batchAccountNumber,
                                     input.voucherBatch.processingState.ToString(),
                                     input.voucherBatch.collectingBank,
                                     input.voucherBatch.unitID,
                                     input.voucherBatch.batchType,
                                     string.Empty,
                                     new DateTime(),
                                     string.Empty,
                                     input.voucherBatch.subBatchType)).ToList());
 }