Package org.salespointframework.order
Class ChargeLine
- java.lang.Object
-
- org.salespointframework.core.AbstractEntity<org.salespointframework.order.ChargeLineIdentifier>
-
- org.salespointframework.order.ChargeLine
-
- All Implemented Interfaces:
org.springframework.data.domain.Persistable<org.salespointframework.order.ChargeLineIdentifier>
- Direct Known Subclasses:
ChargeLine.AttachedChargeLine
@Entity public class ChargeLine extends AbstractEntity<org.salespointframework.order.ChargeLineIdentifier>
A chargeline represents extra expenses like shipping. This class is immutable.- Author:
- Thomas Dedek, Paul Henke, Oliver Gierke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChargeLine.AttachedChargeLine
AChargeLine
that's attached to anOrderLine
.
-
Constructor Summary
Constructors Constructor Description ChargeLine(@NonNull javax.money.MonetaryAmount price, @NonNull String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.salespointframework.order.ChargeLineIdentifier
getChargeLineIdentifier()
@NonNull String
getDescription()
org.salespointframework.order.ChargeLineIdentifier
getId()
@NonNull javax.money.MonetaryAmount
getPrice()
String
toString()
-
Methods inherited from class org.salespointframework.core.AbstractEntity
equals, hashCode, isNew
-
-
-
-
Constructor Detail
-
ChargeLine
public ChargeLine(@NonNull @NonNull javax.money.MonetaryAmount price, @NonNull @NonNull String description)
-
-
Method Detail
-
getId
public org.salespointframework.order.ChargeLineIdentifier getId()
- Specified by:
getId
in interfaceorg.springframework.data.domain.Persistable<org.salespointframework.order.ChargeLineIdentifier>
-
getChargeLineIdentifier
public org.salespointframework.order.ChargeLineIdentifier getChargeLineIdentifier()
-
getPrice
@NonNull public @NonNull javax.money.MonetaryAmount getPrice()
-
getDescription
@NonNull public @NonNull String getDescription()
-
-