Class InAppStoreCard
public class InAppStoreCard extends Request
Field Summary
Fields inherited from class com.mypos.myposcheckout.ipc.request.Request
config, outputFormat
Constructor Summary
Constructor and Description |
---|
InAppStoreCard(Config config) |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getAmount() |
java.lang.String |
getAvv() |
java.lang.String |
getCardholderName() |
CardType |
getCardType() |
CardVerification |
getCardVerificationMethod() |
Currency |
getCurrency() |
java.lang.String |
getCvc() |
java.lang.Integer |
getEci() |
java.lang.String |
getExpirationDate() |
java.lang.String |
getPan() |
java.lang.String |
getXid() |
BasicResponse |
process()
Gather all request parameters needed to make an API call, and make one.
|
void |
setAmount(java.math.BigDecimal amount) |
void |
setAvv(java.lang.String avv) |
void |
setCardholderName(java.lang.String cardholderName) |
void |
setCardType(CardType cardType) |
void |
setCardVerificationMethod(CardVerification cardVerificationMethod) |
void |
setCurrency(Currency currency) |
void |
setCvc(java.lang.String cvc) |
void |
setEci(java.lang.Integer eci) |
void |
setExpirationDate(java.lang.String expirationDate) |
void |
setPan(java.lang.String pan) |
void |
setXid(java.lang.String xid) |
boolean |
validate()
Checks if the class members are valid API request parameter values.
|
Methods inherited from class com.mypos.myposcheckout.ipc.request.Request
addRequestParam, addRequestParam, addRequestParam, addRequestParam, addRequestParam, addStandardParams, clearRequestParams, createApiCallFormHtml, createApiCallFormHtml,createApiCallFormHtml, createSignature, getConfig, getOutputFormat, getSignedRequestParams, processApiCall, removeRequestParam, setConfig, setOutputFormat
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
InAppStoreCard
public InAppStoreCard(Config config)
Method Detail
getCardType
public CardType getCardType()
setCardType
public void setCardType(CardType cardType)
getPan
public java.lang.String getPan()
setPan
public void setPan(java.lang.String pan)
getCardholderName
public java.lang.String getCardholderName()
setCardholderName
public void setCardholderName(java.lang.String cardholderName)
getExpirationDate
public java.lang.String getExpirationDate()
setExpirationDate
public void setExpirationDate(java.lang.String expirationDate)
getCvc
public java.lang.String getCvc()
setCvc
public void setCvc(java.lang.String cvc)
getEci
public java.lang.Integer getEci()
setEci
public void setEci(java.lang.Integer eci)
getAvv
public java.lang.String getAvv()
setAvv
public void setAvv(java.lang.String avv)
getXid
public java.lang.String getXid()
setXid
public void setXid(java.lang.String xid)
getCardVerificationMethod
public CardVerification getCardVerificationMethod()
setCardVerificationMethod
public void setCardVerificationMethod(CardVerification cardVerificationMethod)
getAmount
public java.math.BigDecimal getAmount()
setAmount
public void setAmount(java.math.BigDecimal amount)
getCurrency
public Currency getCurrency()
setCurrency
public void setCurrency(Currency currency)
validate
public boolean validate() throws IPCException
- Returns:
- true if all members can be used as valid API request parameters
- Throws:
IPCException
- If there are values which are missing, or invalid API request parameters.
process
public BasicResponse process() throws IPCException
- Returns:
- the decoded API response
- Throws:
IPCException
- If there are invalid or missing parameters, or configuration values. If there were errors while making the call to the API, or decoding it's response.