public class CreditCardRefundMethod extends RefundMethod
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected CreditCard |
mCreditCard |
CREDIT_CARD_TYPE, RETURN_MANAGER_PATH, STORE_CREDIT_TYPE
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
getReturnManager
public static java.lang.String CLASS_VERSION
protected CreditCard mCreditCard
public CreditCardRefundMethod()
public CreditCardRefundMethod(CreditCard pCreditCard)
public CreditCardRefundMethod(java.lang.String pType)
public CreditCardRefundMethod(CreditCard pCreditCard, double pAmount)
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()
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 copiedReturnException
#saveRefundMethod(MutableRepositoryItem)}