Package com.adyen.model.checkout
Class AdditionalDataRiskStandalone
- java.lang.Object
-
- com.adyen.model.checkout.AdditionalDataRiskStandalone
-
public class AdditionalDataRiskStandalone extends Object
AdditionalDataRiskStandalone
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AVS_RESULT_RAWstatic StringJSON_PROPERTY_BINstatic StringJSON_PROPERTY_CVC_RESULT_RAWstatic StringJSON_PROPERTY_PAY_PAL_COUNTRY_CODEstatic StringJSON_PROPERTY_PAY_PAL_EMAIL_IDstatic StringJSON_PROPERTY_PAY_PAL_FIRST_NAMEstatic StringJSON_PROPERTY_PAY_PAL_LAST_NAMEstatic StringJSON_PROPERTY_PAY_PAL_PAYER_IDstatic StringJSON_PROPERTY_PAY_PAL_PHONEstatic StringJSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITYstatic StringJSON_PROPERTY_PAY_PAL_TRANSACTION_IDstatic StringJSON_PROPERTY_RISK_TOKENstatic StringJSON_PROPERTY_THREE_D_AUTHENTICATEDstatic StringJSON_PROPERTY_THREE_D_OFFEREDstatic StringJSON_PROPERTY_TOKEN_DATA_TYPE
-
Constructor Summary
Constructors Constructor Description AdditionalDataRiskStandalone()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdditionalDataRiskStandaloneavsResultRaw(String avsResultRaw)Raw AVS result received from the acquirer, where available.AdditionalDataRiskStandalonebin(String bin)The Bank Identification Number of a credit card, which is the first six digits of a card number.AdditionalDataRiskStandalonecvcResultRaw(String cvcResultRaw)Raw CVC result received from the acquirer, where available.booleanequals(Object o)Return true if this AdditionalDataRiskStandalone object is equal to o.static AdditionalDataRiskStandalonefromJson(String jsonString)Create an instance of AdditionalDataRiskStandalone given an JSON stringStringgetAvsResultRaw()Raw AVS result received from the acquirer, where available.StringgetBin()The Bank Identification Number of a credit card, which is the first six digits of a card number.StringgetCvcResultRaw()Raw CVC result received from the acquirer, where available.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetPayPalCountryCode()Shopper's country of residence in the form of ISO standard 3166 2-character country codes.StringgetPayPalEmailId()Shopper's email.StringgetPayPalFirstName()Shopper's first name.StringgetPayPalLastName()Shopper's last name.StringgetPayPalPayerId()Unique PayPal Customer Account identification number.StringgetPayPalPhone()Shopper's phone number.StringgetPayPalProtectionEligibility()Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.StringgetPayPalTransactionId()Unique transaction ID of the payment.StringgetRiskToken()Unique identifier or token for the shopper's card details.StringgetThreeDAuthenticated()A Boolean value indicating whether 3DS authentication was completed on this payment.StringgetThreeDOffered()A Boolean value indicating whether 3DS was offered for this payment.StringgetTokenDataType()Required for PayPal payments only.inthashCode()AdditionalDataRiskStandaloneincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.AdditionalDataRiskStandalonepayPalCountryCode(String payPalCountryCode)Shopper's country of residence in the form of ISO standard 3166 2-character country codes.AdditionalDataRiskStandalonepayPalEmailId(String payPalEmailId)Shopper's email.AdditionalDataRiskStandalonepayPalFirstName(String payPalFirstName)Shopper's first name.AdditionalDataRiskStandalonepayPalLastName(String payPalLastName)Shopper's last name.AdditionalDataRiskStandalonepayPalPayerId(String payPalPayerId)Unique PayPal Customer Account identification number.AdditionalDataRiskStandalonepayPalPhone(String payPalPhone)Shopper's phone number.AdditionalDataRiskStandalonepayPalProtectionEligibility(String payPalProtectionEligibility)Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.AdditionalDataRiskStandalonepayPalTransactionId(String payPalTransactionId)Unique transaction ID of the payment.AdditionalDataRiskStandaloneriskToken(String riskToken)Unique identifier or token for the shopper's card details.voidsetAvsResultRaw(String avsResultRaw)Raw AVS result received from the acquirer, where available.voidsetBin(String bin)The Bank Identification Number of a credit card, which is the first six digits of a card number.voidsetCvcResultRaw(String cvcResultRaw)Raw CVC result received from the acquirer, where available.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPayPalCountryCode(String payPalCountryCode)Shopper's country of residence in the form of ISO standard 3166 2-character country codes.voidsetPayPalEmailId(String payPalEmailId)Shopper's email.voidsetPayPalFirstName(String payPalFirstName)Shopper's first name.voidsetPayPalLastName(String payPalLastName)Shopper's last name.voidsetPayPalPayerId(String payPalPayerId)Unique PayPal Customer Account identification number.voidsetPayPalPhone(String payPalPhone)Shopper's phone number.voidsetPayPalProtectionEligibility(String payPalProtectionEligibility)Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.voidsetPayPalTransactionId(String payPalTransactionId)Unique transaction ID of the payment.voidsetRiskToken(String riskToken)Unique identifier or token for the shopper's card details.voidsetThreeDAuthenticated(String threeDAuthenticated)A Boolean value indicating whether 3DS authentication was completed on this payment.voidsetThreeDOffered(String threeDOffered)A Boolean value indicating whether 3DS was offered for this payment.voidsetTokenDataType(String tokenDataType)Required for PayPal payments only.AdditionalDataRiskStandalonethreeDAuthenticated(String threeDAuthenticated)A Boolean value indicating whether 3DS authentication was completed on this payment.AdditionalDataRiskStandalonethreeDOffered(String threeDOffered)A Boolean value indicating whether 3DS was offered for this payment.StringtoJson()Convert an instance of AdditionalDataRiskStandalone to an JSON stringAdditionalDataRiskStandalonetokenDataType(String tokenDataType)Required for PayPal payments only.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PAY_PAL_COUNTRY_CODE
public static final String JSON_PROPERTY_PAY_PAL_COUNTRY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAY_PAL_EMAIL_ID
public static final String JSON_PROPERTY_PAY_PAL_EMAIL_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAY_PAL_FIRST_NAME
public static final String JSON_PROPERTY_PAY_PAL_FIRST_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAY_PAL_LAST_NAME
public static final String JSON_PROPERTY_PAY_PAL_LAST_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAY_PAL_PAYER_ID
public static final String JSON_PROPERTY_PAY_PAL_PAYER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAY_PAL_PHONE
public static final String JSON_PROPERTY_PAY_PAL_PHONE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY
public static final String JSON_PROPERTY_PAY_PAL_PROTECTION_ELIGIBILITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAY_PAL_TRANSACTION_ID
public static final String JSON_PROPERTY_PAY_PAL_TRANSACTION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AVS_RESULT_RAW
public static final String JSON_PROPERTY_AVS_RESULT_RAW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BIN
public static final String JSON_PROPERTY_BIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CVC_RESULT_RAW
public static final String JSON_PROPERTY_CVC_RESULT_RAW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RISK_TOKEN
public static final String JSON_PROPERTY_RISK_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_THREE_D_AUTHENTICATED
public static final String JSON_PROPERTY_THREE_D_AUTHENTICATED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_THREE_D_OFFERED
public static final String JSON_PROPERTY_THREE_D_OFFERED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN_DATA_TYPE
public static final String JSON_PROPERTY_TOKEN_DATA_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
payPalCountryCode
public AdditionalDataRiskStandalone payPalCountryCode(String payPalCountryCode)
Shopper's country of residence in the form of ISO standard 3166 2-character country codes.- Parameters:
payPalCountryCode- Shopper's country of residence in the form of ISO standard 3166 2-character country codes.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getPayPalCountryCode
public String getPayPalCountryCode()
Shopper's country of residence in the form of ISO standard 3166 2-character country codes.- Returns:
- payPalCountryCode Shopper's country of residence in the form of ISO standard 3166 2-character country codes.
-
setPayPalCountryCode
public void setPayPalCountryCode(String payPalCountryCode)
Shopper's country of residence in the form of ISO standard 3166 2-character country codes.- Parameters:
payPalCountryCode- Shopper's country of residence in the form of ISO standard 3166 2-character country codes.
-
payPalEmailId
public AdditionalDataRiskStandalone payPalEmailId(String payPalEmailId)
Shopper's email.- Parameters:
payPalEmailId- Shopper's email.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getPayPalEmailId
public String getPayPalEmailId()
Shopper's email.- Returns:
- payPalEmailId Shopper's email.
-
setPayPalEmailId
public void setPayPalEmailId(String payPalEmailId)
Shopper's email.- Parameters:
payPalEmailId- Shopper's email.
-
payPalFirstName
public AdditionalDataRiskStandalone payPalFirstName(String payPalFirstName)
Shopper's first name.- Parameters:
payPalFirstName- Shopper's first name.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getPayPalFirstName
public String getPayPalFirstName()
Shopper's first name.- Returns:
- payPalFirstName Shopper's first name.
-
setPayPalFirstName
public void setPayPalFirstName(String payPalFirstName)
Shopper's first name.- Parameters:
payPalFirstName- Shopper's first name.
-
payPalLastName
public AdditionalDataRiskStandalone payPalLastName(String payPalLastName)
Shopper's last name.- Parameters:
payPalLastName- Shopper's last name.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getPayPalLastName
public String getPayPalLastName()
Shopper's last name.- Returns:
- payPalLastName Shopper's last name.
-
setPayPalLastName
public void setPayPalLastName(String payPalLastName)
Shopper's last name.- Parameters:
payPalLastName- Shopper's last name.
-
payPalPayerId
public AdditionalDataRiskStandalone payPalPayerId(String payPalPayerId)
Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters.- Parameters:
payPalPayerId- Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getPayPalPayerId
public String getPayPalPayerId()
Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters.- Returns:
- payPalPayerId Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters.
-
setPayPalPayerId
public void setPayPalPayerId(String payPalPayerId)
Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters.- Parameters:
payPalPayerId- Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters.
-
payPalPhone
public AdditionalDataRiskStandalone payPalPhone(String payPalPhone)
Shopper's phone number.- Parameters:
payPalPhone- Shopper's phone number.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getPayPalPhone
public String getPayPalPhone()
Shopper's phone number.- Returns:
- payPalPhone Shopper's phone number.
-
setPayPalPhone
public void setPayPalPhone(String payPalPhone)
Shopper's phone number.- Parameters:
payPalPhone- Shopper's phone number.
-
payPalProtectionEligibility
public AdditionalDataRiskStandalone payPalProtectionEligibility(String payPalProtectionEligibility)
Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.- Parameters:
payPalProtectionEligibility- Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getPayPalProtectionEligibility
public String getPayPalProtectionEligibility()
Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.- Returns:
- payPalProtectionEligibility Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.
-
setPayPalProtectionEligibility
public void setPayPalProtectionEligibility(String payPalProtectionEligibility)
Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.- Parameters:
payPalProtectionEligibility- Allowed values: * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.
-
payPalTransactionId
public AdditionalDataRiskStandalone payPalTransactionId(String payPalTransactionId)
Unique transaction ID of the payment.- Parameters:
payPalTransactionId- Unique transaction ID of the payment.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getPayPalTransactionId
public String getPayPalTransactionId()
Unique transaction ID of the payment.- Returns:
- payPalTransactionId Unique transaction ID of the payment.
-
setPayPalTransactionId
public void setPayPalTransactionId(String payPalTransactionId)
Unique transaction ID of the payment.- Parameters:
payPalTransactionId- Unique transaction ID of the payment.
-
avsResultRaw
public AdditionalDataRiskStandalone avsResultRaw(String avsResultRaw)
Raw AVS result received from the acquirer, where available. Example: D- Parameters:
avsResultRaw- Raw AVS result received from the acquirer, where available. Example: D- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getAvsResultRaw
public String getAvsResultRaw()
Raw AVS result received from the acquirer, where available. Example: D- Returns:
- avsResultRaw Raw AVS result received from the acquirer, where available. Example: D
-
setAvsResultRaw
public void setAvsResultRaw(String avsResultRaw)
Raw AVS result received from the acquirer, where available. Example: D- Parameters:
avsResultRaw- Raw AVS result received from the acquirer, where available. Example: D
-
bin
public AdditionalDataRiskStandalone bin(String bin)
The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization).- Parameters:
bin- The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization).- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getBin
public String getBin()
The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization).- Returns:
- bin The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization).
-
setBin
public void setBin(String bin)
The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization).- Parameters:
bin- The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/online-payments/tokenization).
-
cvcResultRaw
public AdditionalDataRiskStandalone cvcResultRaw(String cvcResultRaw)
Raw CVC result received from the acquirer, where available. Example: 1- Parameters:
cvcResultRaw- Raw CVC result received from the acquirer, where available. Example: 1- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getCvcResultRaw
public String getCvcResultRaw()
Raw CVC result received from the acquirer, where available. Example: 1- Returns:
- cvcResultRaw Raw CVC result received from the acquirer, where available. Example: 1
-
setCvcResultRaw
public void setCvcResultRaw(String cvcResultRaw)
Raw CVC result received from the acquirer, where available. Example: 1- Parameters:
cvcResultRaw- Raw CVC result received from the acquirer, where available. Example: 1
-
riskToken
public AdditionalDataRiskStandalone riskToken(String riskToken)
Unique identifier or token for the shopper's card details.- Parameters:
riskToken- Unique identifier or token for the shopper's card details.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getRiskToken
public String getRiskToken()
Unique identifier or token for the shopper's card details.- Returns:
- riskToken Unique identifier or token for the shopper's card details.
-
setRiskToken
public void setRiskToken(String riskToken)
Unique identifier or token for the shopper's card details.- Parameters:
riskToken- Unique identifier or token for the shopper's card details.
-
threeDAuthenticated
public AdditionalDataRiskStandalone threeDAuthenticated(String threeDAuthenticated)
A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true- Parameters:
threeDAuthenticated- A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getThreeDAuthenticated
public String getThreeDAuthenticated()
A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true- Returns:
- threeDAuthenticated A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true
-
setThreeDAuthenticated
public void setThreeDAuthenticated(String threeDAuthenticated)
A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true- Parameters:
threeDAuthenticated- A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true
-
threeDOffered
public AdditionalDataRiskStandalone threeDOffered(String threeDOffered)
A Boolean value indicating whether 3DS was offered for this payment. Example: true- Parameters:
threeDOffered- A Boolean value indicating whether 3DS was offered for this payment. Example: true- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getThreeDOffered
public String getThreeDOffered()
A Boolean value indicating whether 3DS was offered for this payment. Example: true- Returns:
- threeDOffered A Boolean value indicating whether 3DS was offered for this payment. Example: true
-
setThreeDOffered
public void setThreeDOffered(String threeDOffered)
A Boolean value indicating whether 3DS was offered for this payment. Example: true- Parameters:
threeDOffered- A Boolean value indicating whether 3DS was offered for this payment. Example: true
-
tokenDataType
public AdditionalDataRiskStandalone tokenDataType(String tokenDataType)
Required for PayPal payments only. The only supported value is: **paypal**.- Parameters:
tokenDataType- Required for PayPal payments only. The only supported value is: **paypal**.- Returns:
- the current
AdditionalDataRiskStandaloneinstance, allowing for method chaining
-
getTokenDataType
public String getTokenDataType()
Required for PayPal payments only. The only supported value is: **paypal**.- Returns:
- tokenDataType Required for PayPal payments only. The only supported value is: **paypal**.
-
setTokenDataType
public void setTokenDataType(String tokenDataType)
Required for PayPal payments only. The only supported value is: **paypal**.- Parameters:
tokenDataType- Required for PayPal payments only. The only supported value is: **paypal**.
-
includeNullValues
public AdditionalDataRiskStandalone includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this AdditionalDataRiskStandalone object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static AdditionalDataRiskStandalone fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AdditionalDataRiskStandalone given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdditionalDataRiskStandalone
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AdditionalDataRiskStandalone
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AdditionalDataRiskStandalone to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-