@Entity public class ChargeLine extends AbstractEntity<org.salespointframework.order.ChargeLineIdentifier>
Modifier and Type | Class and Description |
---|---|
static class |
ChargeLine.AttachedChargeLine
A
ChargeLine that's attached to an OrderLine . |
Constructor and Description |
---|
ChargeLine(@NonNull javax.money.MonetaryAmount price,
@NonNull String description) |
Modifier and Type | Method and Description |
---|---|
org.salespointframework.order.ChargeLineIdentifier |
getChargeLineIdentifier() |
@NonNull String |
getDescription() |
org.salespointframework.order.ChargeLineIdentifier |
getId() |
@NonNull javax.money.MonetaryAmount |
getPrice()
Returns the price of the item.
|
static javax.money.MonetaryAmount |
sumUp(Iterable<? extends org.salespointframework.order.Priced> priced)
Sums up the prices of all given
Priced instances. |
String |
toString() |
equals, hashCode, isNew
public ChargeLine(@NonNull @NonNull javax.money.MonetaryAmount price, @NonNull @NonNull String description)
public org.salespointframework.order.ChargeLineIdentifier getId()
getId
in interface org.springframework.data.domain.Persistable<org.salespointframework.order.ChargeLineIdentifier>
public org.salespointframework.order.ChargeLineIdentifier getChargeLineIdentifier()
@NonNull public @NonNull javax.money.MonetaryAmount getPrice()
@NonNull public @NonNull String getDescription()
public static javax.money.MonetaryAmount sumUp(Iterable<? extends org.salespointframework.order.Priced> priced)
Priced
instances.priced
- must not be null.Copyright © 2019. All rights reserved.