com.mypos.myposcheckout.ipc.request

 

Class InAppStoredCardUpdate

java.lang.Object com.mypos.myposcheckout.ipc.request.Request com.mypos.myposcheckout.ipc.request.InAppStoredCardUpdate


public class InAppStoredCardUpdate
extends Request
Process IPC method: InAppStoredCardUpdate. This method is used by myPOS Checkout API to allow cardholder to securely update the expiry date, cardholder name and the Custom name of already stored card. The customer will remain within the pages of the external application.

 

Field Summary

Fields inherited from class com.mypos.myposcheckout.ipc.request.Request

configoutputFormat

 

Constructor Summary

Constructors
Constructor and Description
InAppStoredCardUpdate(Config config) 

 

Method Summary

All MethodsInstance MethodsConcrete Methods
Modifier and Type Method and Description
java.math.BigDecimal getAmount() 
java.lang.String getAvv() 
java.lang.String getCardholderName() 
java.lang.String getCardToken() 
CardType getCardType() 
CardVerification getCardVerificationMethod() 
Currency getCurrency() 
java.lang.String getCvc() 
java.lang.Integer getEci() 
java.lang.String getExpirationDate() 
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 setCardToken(java.lang.String cardToken) 
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 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

addRequestParamaddRequestParamaddRequestParamaddRequestParamaddRequestParamaddStandardParamsclearRequestParamscreateApiCallFormHtmlcreateApiCallFormHtml,createApiCallFormHtmlcreateSignaturegetConfiggetOutputFormatgetSignedRequestParamsprocessApiCallremoveRequestParamsetConfigsetOutputFormat

 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

InAppStoredCardUpdate

public InAppStoredCardUpdate(Config config)

 

Method Detail

getCardType

public CardType getCardType()

setCardType

public void setCardType(CardType cardType)

getCardToken

public java.lang.String getCardToken()

setCardToken

public void setCardToken(java.lang.String cardToken)

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
Checks if the class members are valid API request parameter values.
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
Gather all request parameters needed to make an API call, and make one.
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.