Package com.adyen.model.tapi
Class PaymentInstrumentData
- java.lang.Object
-
- com.adyen.model.tapi.PaymentInstrumentData
-
public class PaymentInstrumentData extends Object
Data related to the instrument of payment for the transaction. Sent in the result of the payment transaction. For a card, it could also be sent in the `CardAcquisition` response, to be processed by the Sale System.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CARD_DATAstatic StringJSON_PROPERTY_CHECK_DATAstatic StringJSON_PROPERTY_MOBILE_DATAstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_TYPEstatic StringJSON_PROPERTY_PROTECTED_CARD_DATAstatic StringJSON_PROPERTY_STORED_VALUE_ACCOUNT_I_D
-
Constructor Summary
Constructors Constructor Description PaymentInstrumentData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentInstrumentDatacardData(CardData cardData)cardDataPaymentInstrumentDatacheckData(CheckData checkData)checkDatabooleanequals(Object o)Return true if this PaymentInstrumentData object is equal to o.static PaymentInstrumentDatafromJson(String jsonString)Create an instance of PaymentInstrumentData given an JSON stringCardDatagetCardData()Get cardDataCheckDatagetCheckData()Get checkDataMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.MobileDatagetMobileData()Get mobileDataPaymentInstrumentTypegetPaymentInstrumentType()Get paymentInstrumentTypeStringgetProtectedCardData()Sensitive information related to the payment card, protected by CMS.StoredValueAccountIDgetStoredValueAccountID()Get storedValueAccountIDinthashCode()PaymentInstrumentDataincludeNullValues(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.PaymentInstrumentDatamobileData(MobileData mobileData)mobileDataPaymentInstrumentDatapaymentInstrumentType(PaymentInstrumentType paymentInstrumentType)paymentInstrumentTypePaymentInstrumentDataprotectedCardData(String protectedCardData)Sensitive information related to the payment card, protected by CMS.voidsetCardData(CardData cardData)cardDatavoidsetCheckData(CheckData checkData)checkDatavoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMobileData(MobileData mobileData)mobileDatavoidsetPaymentInstrumentType(PaymentInstrumentType paymentInstrumentType)paymentInstrumentTypevoidsetProtectedCardData(String protectedCardData)Sensitive information related to the payment card, protected by CMS.voidsetStoredValueAccountID(StoredValueAccountID storedValueAccountID)storedValueAccountIDPaymentInstrumentDatastoredValueAccountID(StoredValueAccountID storedValueAccountID)storedValueAccountIDStringtoJson()Convert an instance of PaymentInstrumentData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTECTED_CARD_DATA
public static final String JSON_PROPERTY_PROTECTED_CARD_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARD_DATA
public static final String JSON_PROPERTY_CARD_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHECK_DATA
public static final String JSON_PROPERTY_CHECK_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MOBILE_DATA
public static final String JSON_PROPERTY_MOBILE_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_VALUE_ACCOUNT_I_D
public static final String JSON_PROPERTY_STORED_VALUE_ACCOUNT_I_D
- See Also:
- Constant Field Values
-
-
Method Detail
-
paymentInstrumentType
public PaymentInstrumentData paymentInstrumentType(PaymentInstrumentType paymentInstrumentType)
paymentInstrumentType- Parameters:
paymentInstrumentType-- Returns:
- the current
PaymentInstrumentDatainstance, allowing for method chaining
-
getPaymentInstrumentType
public PaymentInstrumentType getPaymentInstrumentType()
Get paymentInstrumentType- Returns:
- paymentInstrumentType
-
setPaymentInstrumentType
public void setPaymentInstrumentType(PaymentInstrumentType paymentInstrumentType)
paymentInstrumentType- Parameters:
paymentInstrumentType-
-
protectedCardData
public PaymentInstrumentData protectedCardData(String protectedCardData)
Sensitive information related to the payment card, protected by CMS. SensitiveCardData protected by CMS EnvelopedData.- Parameters:
protectedCardData- Sensitive information related to the payment card, protected by CMS. SensitiveCardData protected by CMS EnvelopedData.- Returns:
- the current
PaymentInstrumentDatainstance, allowing for method chaining
-
getProtectedCardData
public String getProtectedCardData()
Sensitive information related to the payment card, protected by CMS. SensitiveCardData protected by CMS EnvelopedData.- Returns:
- protectedCardData Sensitive information related to the payment card, protected by CMS. SensitiveCardData protected by CMS EnvelopedData.
-
setProtectedCardData
public void setProtectedCardData(String protectedCardData)
Sensitive information related to the payment card, protected by CMS. SensitiveCardData protected by CMS EnvelopedData.- Parameters:
protectedCardData- Sensitive information related to the payment card, protected by CMS. SensitiveCardData protected by CMS EnvelopedData.
-
cardData
public PaymentInstrumentData cardData(CardData cardData)
cardData- Parameters:
cardData-- Returns:
- the current
PaymentInstrumentDatainstance, allowing for method chaining
-
getCardData
public CardData getCardData()
Get cardData- Returns:
- cardData
-
setCardData
public void setCardData(CardData cardData)
cardData- Parameters:
cardData-
-
checkData
public PaymentInstrumentData checkData(CheckData checkData)
checkData- Parameters:
checkData-- Returns:
- the current
PaymentInstrumentDatainstance, allowing for method chaining
-
getCheckData
public CheckData getCheckData()
Get checkData- Returns:
- checkData
-
setCheckData
public void setCheckData(CheckData checkData)
checkData- Parameters:
checkData-
-
mobileData
public PaymentInstrumentData mobileData(MobileData mobileData)
mobileData- Parameters:
mobileData-- Returns:
- the current
PaymentInstrumentDatainstance, allowing for method chaining
-
getMobileData
public MobileData getMobileData()
Get mobileData- Returns:
- mobileData
-
setMobileData
public void setMobileData(MobileData mobileData)
mobileData- Parameters:
mobileData-
-
storedValueAccountID
public PaymentInstrumentData storedValueAccountID(StoredValueAccountID storedValueAccountID)
storedValueAccountID- Parameters:
storedValueAccountID-- Returns:
- the current
PaymentInstrumentDatainstance, allowing for method chaining
-
getStoredValueAccountID
public StoredValueAccountID getStoredValueAccountID()
Get storedValueAccountID- Returns:
- storedValueAccountID
-
setStoredValueAccountID
public void setStoredValueAccountID(StoredValueAccountID storedValueAccountID)
storedValueAccountID- Parameters:
storedValueAccountID-
-
includeNullValues
public PaymentInstrumentData 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 PaymentInstrumentData 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 PaymentInstrumentData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentInstrumentData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentInstrumentData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentInstrumentData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentInstrumentData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-