|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.csr.returns.RefundMethod
public class RefundMethod
This class represents information for a refund
This is class is just a base class. Out of box, the returns feature supports only
CreditCardRefundMethod
and StoreCreditRefundMethod
. If you want to
support additional payment type as refund option, you need to extend this class.
The #saveRefundMethod(RepositoryItem, Order)
is used to load refund method properties from repository item.
if you add additional properties to refund method and it needs to be loaded to the refund method object, you need
to extend this method.
The saveRefundMethod(MutableRepositoryItem)
is used to save refund method properties to repository item.
if you add additional properties to refund method and it needs to be saved in the repository, you need
to extend this method.
loadRefundMethod(RepositoryItem, Order)
,
saveRefundMethod(MutableRepositoryItem)
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
CREDIT_CARD_TYPE
|
protected double |
mMaximumRefundAmount
|
static int |
NO_LIMIT
|
static java.lang.String |
RETURN_MANAGER_PATH
|
static java.lang.String |
STORE_CREDIT_TYPE
|
static java.lang.String |
UNKNOWN_TYPE
|
Constructor Summary | |
---|---|
RefundMethod()
Deprecated. |
|
RefundMethod(java.lang.String pRefundType)
Construct this object, setting the refund type |
|
RefundMethod(java.lang.String pRefundType,
double pAmount)
Construct this object, setting the refund type and amount |
Method Summary | |
---|---|
double |
getAmount()
Returns the amount of the refund |
static RefundMethod |
getInstance()
Deprecated. |
double |
getMaximumRefundAmount()
This method is just an empty method and returns -1. |
java.lang.String |
getRefundType()
Returns refund type for this record |
ReturnManager |
getReturnManager()
Deprecated. |
void |
loadRefundMethod(RepositoryItem pSource,
Order pOrder)
This method is used to copy the information from the source refund method repository item to refund method instance. |
void |
saveRefundMethod(MutableRepositoryItem pDestination)
This method is used to copy the information from refund method instance to repository item. |
void |
setAmount(double pAmount)
The amount of the refund |
void |
setMaximumRefundAmount(double pMaximumRefundAmount)
|
protected void |
setRefundType(java.lang.String pRefundType)
Sets the refund type for this record |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
public static final int NO_LIMIT
public static final java.lang.String CREDIT_CARD_TYPE
public static final java.lang.String STORE_CREDIT_TYPE
public static final java.lang.String UNKNOWN_TYPE
public static final java.lang.String RETURN_MANAGER_PATH
protected double mMaximumRefundAmount
Constructor Detail |
---|
public RefundMethod()
public RefundMethod(java.lang.String pRefundType)
public RefundMethod(java.lang.String pRefundType, double pAmount)
Method Detail |
---|
public void setAmount(double pAmount)
pAmount
- the amount of the refundpublic double getAmount()
protected void setRefundType(java.lang.String pRefundType)
pRefundType
- the refund type for this recordpublic java.lang.String getRefundType()
public ReturnManager getReturnManager()
public static RefundMethod getInstance()
RefundMethod()
to create RefundMethod
.
public double getMaximumRefundAmount()
This method computes the maximum allowed refund amount.
public void setMaximumRefundAmount(double pMaximumRefundAmount)
public void loadRefundMethod(RepositoryItem pSource, Order pOrder) throws ReturnException
This method sets the amount
property.
pOrder
- pSource
- The information to be copied from.
ReturnException
public void saveRefundMethod(MutableRepositoryItem pDestination) throws ReturnException
This method sets the ReturnTools.getAmountPropertyName()
in the repository item.
pDestination
- The information to be copied
ReturnException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |