question: private Pair < BigDecimal , BigDecimal > fillPayment ( final CustomerOrder order , final CustomerOrderDelivery delivery , final Payment payment , final boolean singlePay , final BigDecimal runningTotal , final BigDecimal runningTotalTax , final boolean lastDelivery ) { if ( payment . getTransactionReferenceId ( ) == null ) { payment . setTransactionReferenceId ( delivery . getDeliveryNum ( ) ) ; } payment . setOrderShipment ( singlePay ? order . getOrdernum ( ) : delivery . getDeliveryNum ( ) ) ; fillPaymentItems ( delivery , payment ) ; fillPaymentShipment ( order , delivery , payment ) ; return fillPaymentAmount ( order , delivery , payment , singlePay , runningTotal , runningTotalTax , lastDelivery ) ; }
target:  Fill single payment with data