Class Sale
java.lang.Object
be.appify.prefab.example.sale.Sale
- All Implemented Interfaces:
PublishesEvents
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomer(Reference<Customer> customer) voidaddItem(@NotNull String description, @NotNull BigDecimal quantity, @NotNull BigDecimal price) voidaddPayment(@NotNull BigDecimal amount, @NotNull PaymentMethod method, Reference<GiftVoucher> giftVoucher) voidcancel()customer()id()items()payments()returned()voidstart()state()total()type()longversion()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface be.appify.prefab.core.domain.PublishesEvents
publish
-
Constructor Details
-
Sale
-
Sale
-
-
Method Details
-
id
-
version
public long version() -
start
-
items
-
payments
-
returned
-
state
-
customer
-
type
-
total
-
addItem
public void addItem(@NotNull @NotNull String description, @NotNull @NotNull BigDecimal quantity, @NotNull @NotNull BigDecimal price) -
addPayment
public void addPayment(@NotNull @NotNull BigDecimal amount, @NotNull @NotNull PaymentMethod method, Reference<GiftVoucher> giftVoucher) -
setType
-
cancel
public void cancel() -
addCustomer
-