@Entity public class ProductPaymentEntry extends AccountancyEntry
ProductPaymentEntry is used to store information of payments of orders.| Modifier | Constructor and Description |
|---|---|
protected |
ProductPaymentEntry()
Deprecated.
|
|
ProductPaymentEntry(OrderIdentifier orderIdentifier,
UserAccount userAccount,
org.joda.money.Money amount,
String description,
PaymentMethod paymentMethod)
A
ProductPaymentEntry is constructed for a specific OrderIdentifier attached to it. |
| Modifier and Type | Method and Description |
|---|---|
OrderIdentifier |
getOrderIdentifier() |
PaymentMethod |
getPaymentMethod() |
UserAccount |
getUserAccount() |
getDate, getDescription, getIdentifier, getValue, hasDate, toStringequals, getId, hashCode, isNew@Deprecated protected ProductPaymentEntry()
public ProductPaymentEntry(OrderIdentifier orderIdentifier, UserAccount userAccount, org.joda.money.Money amount, String description, PaymentMethod paymentMethod)
ProductPaymentEntry is constructed for a specific OrderIdentifier attached to it. This Entry
saves also the UserAccountIdentifier and the specified amount that was payed.orderIdentifier - the OrderIdentifier to which this ProductPaymentEntry will refer to, must
not be null.userAccount - the UserAccount to which this ProductPaymentEntry will refer to, must not be
null.amount - the Money that was paid, must not be null.description - textual description of the payment entry, must not be null.paymentMethod - must not be null.public final UserAccount getUserAccount()
UserAccountIdentifier, to which this payment refers topublic final OrderIdentifier getOrderIdentifier()
OrderIdentifier, to which this payment refers topublic final PaymentMethod getPaymentMethod()
PaymentMethod chosen for the order belonging to this ProductPaymentEntryCopyright © 2014 Pivotal Software, Inc.. All rights reserved.