|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.csr.returns.RefundMethod atg.commerce.csr.returns.CreditCardRefundMethod
public class CreditCardRefundMethod
This component encapsulates data for a credit card refund
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 |
Fields inherited from class atg.commerce.csr.returns.RefundMethod |
---|
CREDIT_CARD_TYPE, mMaximumRefundAmount, NO_LIMIT, RETURN_MANAGER_PATH, STORE_CREDIT_TYPE, UNKNOWN_TYPE |
Constructor Summary | |
---|---|
CreditCardRefundMethod()
Construct this object |
|
CreditCardRefundMethod(CreditCard pCreditCard)
Construct this object using a specific credit card |
|
CreditCardRefundMethod(CreditCard pCreditCard,
double pAmount)
Construct this object with a specific credit card and amount |
|
CreditCardRefundMethod(java.lang.String pType)
Construct this object using a given type |
Method Summary | |
---|---|
CreditCard |
getCreditCard()
Returns credit card related to this record |
java.lang.String |
getCreditCardSuffix()
Returns the last four digits of this credit card's number |
static CreditCardRefundMethod |
getInstance()
Deprecated. |
static CreditCardRefundMethod |
getInstance(CreditCard pCreditCard)
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. |
protected void |
setCreditCard(CreditCard pCreditCard)
Sets the credit card related to this record |
Methods inherited from class atg.commerce.csr.returns.RefundMethod |
---|
getAmount, getMaximumRefundAmount, getRefundType, getReturnManager, setAmount, setMaximumRefundAmount, setRefundType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public CreditCardRefundMethod()
CreditCardRefundMethod(CreditCard, double)
public CreditCardRefundMethod(CreditCard pCreditCard)
CreditCardRefundMethod(CreditCard, double)
public CreditCardRefundMethod(java.lang.String pType)
CreditCardRefundMethod(CreditCard, double)
public CreditCardRefundMethod(CreditCard pCreditCard, double pAmount)
Method Detail |
---|
protected void setCreditCard(CreditCard pCreditCard)
pCreditCard
- the credit cardpublic CreditCard getCreditCard()
public java.lang.String getCreditCardSuffix()
public static CreditCardRefundMethod getInstance(CreditCard pCreditCard)
#CreditCardRefundMethod(CreditCard))
to create CreditCardRefundMethod
.
public static CreditCardRefundMethod getInstance()
#CreditCardRefundMethod())
to create CreditCardRefundMethod
.
public void loadRefundMethod(RepositoryItem pSource, Order pOrder) throws ReturnException
This method calls superloadRefundMethod(RepositoryItem, Order)
to copy base class properties and
sets the creditCard
property.
loadRefundMethod
in class RefundMethod
pOrder
- Credit Card refund method has reference to the payment group.
This pOrder
is used to load the payment group.pSource
- The information to be copied from.
ReturnException
#loadRefundMethod(RepositoryItem, Order)}
public void saveRefundMethod(MutableRepositoryItem pDestination) throws ReturnException
This method calls supersaveRefundMethod(MutableRepositoryItem)
to copy base class properties
and sets the ReturnTools.getPaymentGroupIdPropertyName()
in the repository item.
saveRefundMethod
in class RefundMethod
pDestination
- The information to be copied
ReturnException
#saveRefundMethod(MutableRepositoryItem)}
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |