Skip to content

Commit 6225ee9

Browse files
committed
[java][booking][01_base] Add base classes
1 parent c162624 commit 6225ee9

File tree

10 files changed

+75
-0
lines changed

10 files changed

+75
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,43 @@
11
package tv.codely.booking;
22

3+
import java.util.Date;
4+
35
public final class Booking {
6+
private final BookingId id;
7+
private final Date startDate;
8+
private final Date endDate;
9+
private final CustomerId customerId;
10+
private final CustomerName customerName;
11+
private final EmailAddress customerEmail;
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;
17+
18+
public Booking(
19+
BookingId id,
20+
Date startDate,
21+
Date endDate,
22+
CustomerId customerId,
23+
CustomerName customerName,
24+
EmailAddress customerEmail,
25+
BookingType bookingType,
26+
DiscountType discountType,
27+
DiscountValue discountValue,
28+
TaxType taxType,
29+
TaxValue taxValue
30+
) {
31+
this.id = id;
32+
this.startDate = startDate;
33+
this.endDate = endDate;
34+
this.customerId = customerId;
35+
this.customerName = customerName;
36+
this.customerEmail = customerEmail;
37+
this.bookingType = bookingType;
38+
this.discountType = discountType;
39+
this.discountValue = discountValue;
40+
this.taxType = taxType;
41+
this.taxValue = taxValue;
42+
}
443
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package tv.codely.booking;
2+
3+
public final class BookingId {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package tv.codely.booking;
2+
3+
public final class BookingType {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package tv.codely.booking;
2+
3+
public final class CustomerId {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package tv.codely.booking;
2+
3+
public final class CustomerName {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package tv.codely.booking;
2+
3+
public final class DiscountType {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package tv.codely.booking;
2+
3+
public final class DiscountValue {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package tv.codely.booking;
2+
3+
public final class EmailAddress {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package tv.codely.booking;
2+
3+
public final class TaxType {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package tv.codely.booking;
2+
3+
public final class TaxValue {
4+
}

0 commit comments

Comments
 (0)