Package com.adyen.model.checkout
Class PaymentMethodToStore
- java.lang.Object
-
- com.adyen.model.checkout.PaymentMethodToStore
-
public class PaymentMethodToStore extends Object
PaymentMethodToStore
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BRANDstatic StringJSON_PROPERTY_CVCstatic StringJSON_PROPERTY_ENCRYPTED_CARD_NUMBERstatic StringJSON_PROPERTY_ENCRYPTED_EXPIRY_MONTHstatic StringJSON_PROPERTY_ENCRYPTED_EXPIRY_YEARstatic StringJSON_PROPERTY_ENCRYPTED_SECURITY_CODEstatic StringJSON_PROPERTY_EXPIRY_MONTHstatic StringJSON_PROPERTY_EXPIRY_YEARstatic StringJSON_PROPERTY_HOLDER_NAMEstatic StringJSON_PROPERTY_NUMBERstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description PaymentMethodToStore()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentMethodToStorebrand(String brand)PaymentMethodToStorecvc(String cvc)PaymentMethodToStoreencryptedCardNumber(String encryptedCardNumber)PaymentMethodToStoreencryptedExpiryMonth(String encryptedExpiryMonth)PaymentMethodToStoreencryptedExpiryYear(String encryptedExpiryYear)PaymentMethodToStoreencryptedSecurityCode(String encryptedSecurityCode)booleanequals(Object o)Return true if this PaymentMethodToStore object is equal to o.PaymentMethodToStoreexpiryMonth(String expiryMonth)PaymentMethodToStoreexpiryYear(String expiryYear)static PaymentMethodToStorefromJson(String jsonString)Create an instance of PaymentMethodToStore given an JSON stringStringgetBrand()Secondary brand of the card.StringgetCvc()The card verification code.StringgetEncryptedCardNumber()The encrypted card number.StringgetEncryptedExpiryMonth()The encrypted card expiry month.StringgetEncryptedExpiryYear()The encrypted card expiry year.StringgetEncryptedSecurityCode()The encrypted card verification code.StringgetExpiryMonth()The card expiry month.StringgetExpiryYear()The card expiry year.StringgetHolderName()The name of the card holder.StringgetNumber()The card number.StringgetType()Set to **scheme**.inthashCode()PaymentMethodToStoreholderName(String holderName)PaymentMethodToStorenumber(String number)voidsetBrand(String brand)Secondary brand of the card.voidsetCvc(String cvc)The card verification code.voidsetEncryptedCardNumber(String encryptedCardNumber)The encrypted card number.voidsetEncryptedExpiryMonth(String encryptedExpiryMonth)The encrypted card expiry month.voidsetEncryptedExpiryYear(String encryptedExpiryYear)The encrypted card expiry year.voidsetEncryptedSecurityCode(String encryptedSecurityCode)The encrypted card verification code.voidsetExpiryMonth(String expiryMonth)The card expiry month.voidsetExpiryYear(String expiryYear)The card expiry year.voidsetHolderName(String holderName)The name of the card holder.voidsetNumber(String number)The card number.voidsetType(String type)Set to **scheme**.StringtoJson()Convert an instance of PaymentMethodToStore to an JSON stringStringtoString()PaymentMethodToStoretype(String type)
-
-
-
Field Detail
-
JSON_PROPERTY_BRAND
public static final String JSON_PROPERTY_BRAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CVC
public static final String JSON_PROPERTY_CVC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_CARD_NUMBER
public static final String JSON_PROPERTY_ENCRYPTED_CARD_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH
public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR
public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTED_SECURITY_CODE
public static final String JSON_PROPERTY_ENCRYPTED_SECURITY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRY_MONTH
public static final String JSON_PROPERTY_EXPIRY_MONTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRY_YEAR
public static final String JSON_PROPERTY_EXPIRY_YEAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOLDER_NAME
public static final String JSON_PROPERTY_HOLDER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUMBER
public static final String JSON_PROPERTY_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
brand
public PaymentMethodToStore brand(String brand)
-
getBrand
public String getBrand()
Secondary brand of the card. For example: **plastix**, **hmclub**.- Returns:
- brand
-
setBrand
public void setBrand(String brand)
Secondary brand of the card. For example: **plastix**, **hmclub**.- Parameters:
brand-
-
cvc
public PaymentMethodToStore cvc(String cvc)
-
getCvc
public String getCvc()
The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- cvc
-
setCvc
public void setCvc(String cvc)
The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
cvc-
-
encryptedCardNumber
public PaymentMethodToStore encryptedCardNumber(String encryptedCardNumber)
-
getEncryptedCardNumber
public String getEncryptedCardNumber()
The encrypted card number.- Returns:
- encryptedCardNumber
-
setEncryptedCardNumber
public void setEncryptedCardNumber(String encryptedCardNumber)
The encrypted card number.- Parameters:
encryptedCardNumber-
-
encryptedExpiryMonth
public PaymentMethodToStore encryptedExpiryMonth(String encryptedExpiryMonth)
-
getEncryptedExpiryMonth
public String getEncryptedExpiryMonth()
The encrypted card expiry month.- Returns:
- encryptedExpiryMonth
-
setEncryptedExpiryMonth
public void setEncryptedExpiryMonth(String encryptedExpiryMonth)
The encrypted card expiry month.- Parameters:
encryptedExpiryMonth-
-
encryptedExpiryYear
public PaymentMethodToStore encryptedExpiryYear(String encryptedExpiryYear)
-
getEncryptedExpiryYear
public String getEncryptedExpiryYear()
The encrypted card expiry year.- Returns:
- encryptedExpiryYear
-
setEncryptedExpiryYear
public void setEncryptedExpiryYear(String encryptedExpiryYear)
The encrypted card expiry year.- Parameters:
encryptedExpiryYear-
-
encryptedSecurityCode
public PaymentMethodToStore encryptedSecurityCode(String encryptedSecurityCode)
-
getEncryptedSecurityCode
public String getEncryptedSecurityCode()
The encrypted card verification code.- Returns:
- encryptedSecurityCode
-
setEncryptedSecurityCode
public void setEncryptedSecurityCode(String encryptedSecurityCode)
The encrypted card verification code.- Parameters:
encryptedSecurityCode-
-
expiryMonth
public PaymentMethodToStore expiryMonth(String expiryMonth)
-
getExpiryMonth
public String getExpiryMonth()
The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- expiryMonth
-
setExpiryMonth
public void setExpiryMonth(String expiryMonth)
The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
expiryMonth-
-
expiryYear
public PaymentMethodToStore expiryYear(String expiryYear)
-
getExpiryYear
public String getExpiryYear()
The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- expiryYear
-
setExpiryYear
public void setExpiryYear(String expiryYear)
The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
expiryYear-
-
holderName
public PaymentMethodToStore holderName(String holderName)
-
getHolderName
public String getHolderName()
The name of the card holder.- Returns:
- holderName
-
setHolderName
public void setHolderName(String holderName)
The name of the card holder.- Parameters:
holderName-
-
number
public PaymentMethodToStore number(String number)
-
getNumber
public String getNumber()
The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- number
-
setNumber
public void setNumber(String number)
The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
number-
-
type
public PaymentMethodToStore type(String type)
-
getType
public String getType()
Set to **scheme**.- Returns:
- type
-
setType
public void setType(String type)
Set to **scheme**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this PaymentMethodToStore object is equal to o.
-
fromJson
public static PaymentMethodToStore fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentMethodToStore given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentMethodToStore
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentMethodToStore
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentMethodToStore to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-