Package com.adyen.model.checkout
Class CardDonations
- java.lang.Object
-
- com.adyen.model.checkout.CardDonations
-
public class CardDonations extends Object
CardDonations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCardDonations.FundingSourceEnumThe funding source that should be used when multiple sources are available.static classCardDonations.TypeEnumDefault payment method details.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CardDonations()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CardDonationsbrand(String brand)CardDonationscheckoutAttemptId(String checkoutAttemptId)CardDonationscupsecureplusSmscode(String cupsecureplusSmscode)Deprecated.CardDonationscvc(String cvc)CardDonationsencryptedCardNumber(String encryptedCardNumber)CardDonationsencryptedExpiryMonth(String encryptedExpiryMonth)CardDonationsencryptedExpiryYear(String encryptedExpiryYear)CardDonationsencryptedSecurityCode(String encryptedSecurityCode)booleanequals(Object o)Return true if this CardDonations object is equal to o.CardDonationsexpiryMonth(String expiryMonth)CardDonationsexpiryYear(String expiryYear)static CardDonationsfromJson(String jsonString)Create an instance of CardDonations given an JSON stringCardDonationsfundingSource(CardDonations.FundingSourceEnum fundingSource)StringgetBrand()Secondary brand of the card.StringgetCheckoutAttemptId()The checkout attempt identifier.StringgetCupsecureplusSmscode()Deprecated.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.CardDonations.FundingSourceEnumgetFundingSource()The funding source that should be used when multiple sources are available.StringgetHolderName()The name of the card holder.StringgetNetworkPaymentReference()The network token reference.StringgetNumber()The card number.StringgetRecurringDetailReference()Deprecated.StringgetShopperNotificationReference()The `shopperNotificationReference` returned in the response when you requested to notify the shopper.StringgetSrcCorrelationId()An identifier used for the Click to Pay transaction.StringgetSrcScheme()The scheme that is being used for Click to Pay.StringgetSrcTokenReference()The reference for the Click to Pay token.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.StringgetThreeDS2SdkVersion()Required for mobile integrations.CardDonations.TypeEnumgetType()Default payment method details.inthashCode()CardDonationsholderName(String holderName)CardDonationsnetworkPaymentReference(String networkPaymentReference)CardDonationsnumber(String number)CardDonationsrecurringDetailReference(String recurringDetailReference)Deprecated.voidsetBrand(String brand)Secondary brand of the card.voidsetCheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.voidsetCupsecureplusSmscode(String cupsecureplusSmscode)Deprecated.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.voidsetFundingSource(CardDonations.FundingSourceEnum fundingSource)The funding source that should be used when multiple sources are available.voidsetHolderName(String holderName)The name of the card holder.voidsetNetworkPaymentReference(String networkPaymentReference)The network token reference.voidsetNumber(String number)The card number.voidsetRecurringDetailReference(String recurringDetailReference)Deprecated.voidsetShopperNotificationReference(String shopperNotificationReference)The `shopperNotificationReference` returned in the response when you requested to notify the shopper.voidsetSrcCorrelationId(String srcCorrelationId)An identifier used for the Click to Pay transaction.voidsetSrcScheme(String srcScheme)The scheme that is being used for Click to Pay.voidsetSrcTokenReference(String srcTokenReference)The reference for the Click to Pay token.voidsetStoredPaymentMethodId(String storedPaymentMethodId)This is the `recurringDetailReference` returned in the response when you created the token.voidsetThreeDS2SdkVersion(String threeDS2SdkVersion)Required for mobile integrations.voidsetType(CardDonations.TypeEnum type)Default payment method details.CardDonationsshopperNotificationReference(String shopperNotificationReference)CardDonationssrcCorrelationId(String srcCorrelationId)CardDonationssrcScheme(String srcScheme)CardDonationssrcTokenReference(String srcTokenReference)CardDonationsstoredPaymentMethodId(String storedPaymentMethodId)CardDonationsthreeDS2SdkVersion(String threeDS2SdkVersion)StringtoJson()Convert an instance of CardDonations to an JSON stringStringtoString()CardDonationstype(CardDonations.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_BRAND
public static final String JSON_PROPERTY_BRAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUPSECUREPLUS_SMSCODE
public static final String JSON_PROPERTY_CUPSECUREPLUS_SMSCODE
- 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_FUNDING_SOURCE
public static final String JSON_PROPERTY_FUNDING_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOLDER_NAME
public static final String JSON_PROPERTY_HOLDER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE
public static final String JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUMBER
public static final String JSON_PROPERTY_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SRC_CORRELATION_ID
public static final String JSON_PROPERTY_SRC_CORRELATION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SRC_SCHEME
public static final String JSON_PROPERTY_SRC_SCHEME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SRC_TOKEN_REFERENCE
public static final String JSON_PROPERTY_SRC_TOKEN_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_THREE_D_S2_SDK_VERSION
public static final String JSON_PROPERTY_THREE_D_S2_SDK_VERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
brand
public CardDonations 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-
-
checkoutAttemptId
public CardDonations checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId-
-
cupsecureplusSmscode
@Deprecated public CardDonations cupsecureplusSmscode(String cupsecureplusSmscode)
Deprecated.
-
getCupsecureplusSmscode
@Deprecated public String getCupsecureplusSmscode()
Deprecated.Get cupsecureplusSmscode- Returns:
- cupsecureplusSmscode
-
setCupsecureplusSmscode
@Deprecated public void setCupsecureplusSmscode(String cupsecureplusSmscode)
Deprecated.cupsecureplusSmscode- Parameters:
cupsecureplusSmscode-
-
cvc
public CardDonations 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 CardDonations 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 CardDonations 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 CardDonations 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 CardDonations 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 CardDonations 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 CardDonations 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-
-
fundingSource
public CardDonations fundingSource(CardDonations.FundingSourceEnum fundingSource)
-
getFundingSource
public CardDonations.FundingSourceEnum getFundingSource()
The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.- Returns:
- fundingSource
-
setFundingSource
public void setFundingSource(CardDonations.FundingSourceEnum fundingSource)
The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.- Parameters:
fundingSource-
-
holderName
public CardDonations 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-
-
networkPaymentReference
public CardDonations networkPaymentReference(String networkPaymentReference)
-
getNetworkPaymentReference
public String getNetworkPaymentReference()
The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.- Returns:
- networkPaymentReference
-
setNetworkPaymentReference
public void setNetworkPaymentReference(String networkPaymentReference)
The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.- Parameters:
networkPaymentReference-
-
number
public CardDonations 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-
-
recurringDetailReference
@Deprecated public CardDonations recurringDetailReference(String recurringDetailReference)
Deprecated.
-
getRecurringDetailReference
@Deprecated public String getRecurringDetailReference()
Deprecated.This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
@Deprecated public void setRecurringDetailReference(String recurringDetailReference)
Deprecated.This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
recurringDetailReference-
-
shopperNotificationReference
public CardDonations shopperNotificationReference(String shopperNotificationReference)
-
getShopperNotificationReference
public String getShopperNotificationReference()
The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India.- Returns:
- shopperNotificationReference
-
setShopperNotificationReference
public void setShopperNotificationReference(String shopperNotificationReference)
The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India.- Parameters:
shopperNotificationReference-
-
srcCorrelationId
public CardDonations srcCorrelationId(String srcCorrelationId)
-
getSrcCorrelationId
public String getSrcCorrelationId()
An identifier used for the Click to Pay transaction.- Returns:
- srcCorrelationId
-
setSrcCorrelationId
public void setSrcCorrelationId(String srcCorrelationId)
An identifier used for the Click to Pay transaction.- Parameters:
srcCorrelationId-
-
srcScheme
public CardDonations srcScheme(String srcScheme)
-
getSrcScheme
public String getSrcScheme()
The scheme that is being used for Click to Pay.- Returns:
- srcScheme
-
setSrcScheme
public void setSrcScheme(String srcScheme)
The scheme that is being used for Click to Pay.- Parameters:
srcScheme-
-
srcTokenReference
public CardDonations srcTokenReference(String srcTokenReference)
-
getSrcTokenReference
public String getSrcTokenReference()
The reference for the Click to Pay token.- Returns:
- srcTokenReference
-
setSrcTokenReference
public void setSrcTokenReference(String srcTokenReference)
The reference for the Click to Pay token.- Parameters:
srcTokenReference-
-
storedPaymentMethodId
public CardDonations storedPaymentMethodId(String storedPaymentMethodId)
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- storedPaymentMethodId
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
storedPaymentMethodId-
-
threeDS2SdkVersion
public CardDonations threeDS2SdkVersion(String threeDS2SdkVersion)
-
getThreeDS2SdkVersion
public String getThreeDS2SdkVersion()
Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.- Returns:
- threeDS2SdkVersion
-
setThreeDS2SdkVersion
public void setThreeDS2SdkVersion(String threeDS2SdkVersion)
Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.- Parameters:
threeDS2SdkVersion-
-
type
public CardDonations type(CardDonations.TypeEnum type)
-
getType
public CardDonations.TypeEnum getType()
Default payment method details. Common for scheme payment methods, and for simple payment method details.- Returns:
- type
-
setType
public void setType(CardDonations.TypeEnum type)
Default payment method details. Common for scheme payment methods, and for simple payment method details.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this CardDonations object is equal to o.
-
fromJson
public static CardDonations fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardDonations given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardDonations
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardDonations
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardDonations to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-