We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1497419 commit af0761aCopy full SHA for af0761a
examples/java/java-booking-03_preserve_whole_object/src/main/java/tv/codely/booking/Booking.java
@@ -12,8 +12,7 @@ public final class Booking {
12
private final BookingType bookingType;
13
private final DiscountType discountType;
14
private final DiscountValue discountValue;
15
- private final TaxType taxType;
16
- private final TaxValue taxValue;
+ private final Tax tax;
17
18
public Booking(
19
BookingId id,
@@ -32,8 +31,7 @@ public Booking(
32
31
this.bookingType = bookingType;
33
this.discountType = discount.type();
34
this.discountValue = discount.value();
35
- this.taxType = tax.type();
36
- this.taxValue = tax.value();
+ this.tax = tax;
37
}
38
39
public BookingStatus statusFor(LocalDateTime date) {
0 commit comments