| | |
| | | private final LocalDateTime lectureStartTime; |
| | | private final LocalDateTime lectureEndTime; |
| | | private final LocalDateTime completedAt; |
| | | private final BigDecimal paymentAmount; |
| | | private final BigDecimal earningAmount; |
| | | private final String customerPhone; |
| | | private final List<Customer> customers; |
| | |
| | | this.lectureStartTime = firstPresent(order.getServiceStartedAt(), order.getArrivedAt()); |
| | | this.lectureEndTime = order.getCompletedAt(); |
| | | this.completedAt = order.getCompletedAt(); |
| | | this.paymentAmount = order.getPaymentAmount() == null ? order.getAmount() : order.getPaymentAmount(); |
| | | this.earningAmount = order.getGuideEarningAmount(); |
| | | this.customerPhone = order.getVisitorMobile(); |
| | | this.customers = Collections.singletonList(new Customer( |
| | |
| | | public LocalDateTime getLectureStartTime() { return lectureStartTime; } |
| | | public LocalDateTime getLectureEndTime() { return lectureEndTime; } |
| | | public LocalDateTime getCompletedAt() { return completedAt; } |
| | | public BigDecimal getPaymentAmount() { return paymentAmount; } |
| | | public BigDecimal getEarningAmount() { return earningAmount; } |
| | | public String getCustomerPhone() { return customerPhone; } |
| | | public List<Customer> getCustomers() { return customers; } |