public class RefundMethod
extends atg.commerce.order.Refund
implements java.io.Serializable
This class extends the base classRefund
. 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 loadRefundMethod(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.
This class is used by returns only and is deprecated now and the class Refund
should be used instead.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
CREDIT_CARD_TYPE |
static java.lang.String |
RETURN_MANAGER_PATH |
static java.lang.String |
STORE_CREDIT_TYPE |
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
static RefundMethod |
getInstance()
Deprecated.
|
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.
|
public static final java.lang.String CLASS_VERSION
public static final java.lang.String RETURN_MANAGER_PATH
public static final java.lang.String CREDIT_CARD_TYPE
public static final java.lang.String STORE_CREDIT_TYPE
public RefundMethod()
public RefundMethod(java.lang.String pRefundType)
public RefundMethod(java.lang.String pRefundType, double pAmount)
public ReturnManager getReturnManager()
public static RefundMethod getInstance()
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 copiedReturnException