Package com.adyen.model.tapi
Class PaymentData
- java.lang.Object
-
- com.adyen.model.tapi.PaymentData
-
public class PaymentData extends Object
PaymentData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CARD_ACQUISITION_REFERENCEstatic StringJSON_PROPERTY_INSTALMENTstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_DATAstatic StringJSON_PROPERTY_PAYMENT_TYPEstatic StringJSON_PROPERTY_REQUESTED_VALIDITY_DATEstatic StringJSON_PROPERTY_SPLIT_PAYMENT_FLAG
-
Constructor Summary
Constructors Constructor Description PaymentData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentDatacardAcquisitionReference(TransactionIDType cardAcquisitionReference)cardAcquisitionReferencebooleanequals(Object o)Return true if this PaymentData object is equal to o.static PaymentDatafromJson(String jsonString)Create an instance of PaymentData given an JSON stringTransactionIDTypegetCardAcquisitionReference()Get cardAcquisitionReferenceMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.InstalmentgetInstalment()Get instalmentPaymentInstrumentDatagetPaymentInstrumentData()Get paymentInstrumentDataPaymentTypegetPaymentType()Get paymentTypeLocalDategetRequestedValidityDate()Requested validity date for the reservation.BooleangetSplitPaymentFlag()Indicates if the payment of the Sale transaction is split.inthashCode()PaymentDataincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.PaymentDatainstalment(Instalment instalment)instalmentbooleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaymentDatapaymentInstrumentData(PaymentInstrumentData paymentInstrumentData)paymentInstrumentDataPaymentDatapaymentType(PaymentType paymentType)paymentTypePaymentDatarequestedValidityDate(LocalDate requestedValidityDate)Requested validity date for the reservation.voidsetCardAcquisitionReference(TransactionIDType cardAcquisitionReference)cardAcquisitionReferencevoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetInstalment(Instalment instalment)instalmentvoidsetPaymentInstrumentData(PaymentInstrumentData paymentInstrumentData)paymentInstrumentDatavoidsetPaymentType(PaymentType paymentType)paymentTypevoidsetRequestedValidityDate(LocalDate requestedValidityDate)Requested validity date for the reservation.voidsetSplitPaymentFlag(Boolean splitPaymentFlag)Indicates if the payment of the Sale transaction is split.PaymentDatasplitPaymentFlag(Boolean splitPaymentFlag)Indicates if the payment of the Sale transaction is split.StringtoJson()Convert an instance of PaymentData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PAYMENT_TYPE
public static final String JSON_PROPERTY_PAYMENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SPLIT_PAYMENT_FLAG
public static final String JSON_PROPERTY_SPLIT_PAYMENT_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUESTED_VALIDITY_DATE
public static final String JSON_PROPERTY_REQUESTED_VALIDITY_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARD_ACQUISITION_REFERENCE
public static final String JSON_PROPERTY_CARD_ACQUISITION_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTALMENT
public static final String JSON_PROPERTY_INSTALMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT_DATA
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
paymentType
public PaymentData paymentType(PaymentType paymentType)
paymentType- Parameters:
paymentType-- Returns:
- the current
PaymentDatainstance, allowing for method chaining
-
getPaymentType
public PaymentType getPaymentType()
Get paymentType- Returns:
- paymentType
-
setPaymentType
public void setPaymentType(PaymentType paymentType)
paymentType- Parameters:
paymentType-
-
splitPaymentFlag
public PaymentData splitPaymentFlag(Boolean splitPaymentFlag)
Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.- Parameters:
splitPaymentFlag- Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.- Returns:
- the current
PaymentDatainstance, allowing for method chaining
-
getSplitPaymentFlag
public Boolean getSplitPaymentFlag()
Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.- Returns:
- splitPaymentFlag Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.
-
setSplitPaymentFlag
public void setSplitPaymentFlag(Boolean splitPaymentFlag)
Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.- Parameters:
splitPaymentFlag- Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.
-
requestedValidityDate
public PaymentData requestedValidityDate(LocalDate requestedValidityDate)
Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.- Parameters:
requestedValidityDate- Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.- Returns:
- the current
PaymentDatainstance, allowing for method chaining
-
getRequestedValidityDate
public LocalDate getRequestedValidityDate()
Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.- Returns:
- requestedValidityDate Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.
-
setRequestedValidityDate
public void setRequestedValidityDate(LocalDate requestedValidityDate)
Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.- Parameters:
requestedValidityDate- Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.
-
cardAcquisitionReference
public PaymentData cardAcquisitionReference(TransactionIDType cardAcquisitionReference)
cardAcquisitionReference- Parameters:
cardAcquisitionReference-- Returns:
- the current
PaymentDatainstance, allowing for method chaining
-
getCardAcquisitionReference
public TransactionIDType getCardAcquisitionReference()
Get cardAcquisitionReference- Returns:
- cardAcquisitionReference
-
setCardAcquisitionReference
public void setCardAcquisitionReference(TransactionIDType cardAcquisitionReference)
cardAcquisitionReference- Parameters:
cardAcquisitionReference-
-
instalment
public PaymentData instalment(Instalment instalment)
instalment- Parameters:
instalment-- Returns:
- the current
PaymentDatainstance, allowing for method chaining
-
getInstalment
public Instalment getInstalment()
Get instalment- Returns:
- instalment
-
setInstalment
public void setInstalment(Instalment instalment)
instalment- Parameters:
instalment-
-
paymentInstrumentData
public PaymentData paymentInstrumentData(PaymentInstrumentData paymentInstrumentData)
paymentInstrumentData- Parameters:
paymentInstrumentData-- Returns:
- the current
PaymentDatainstance, allowing for method chaining
-
getPaymentInstrumentData
public PaymentInstrumentData getPaymentInstrumentData()
Get paymentInstrumentData- Returns:
- paymentInstrumentData
-
setPaymentInstrumentData
public void setPaymentInstrumentData(PaymentInstrumentData paymentInstrumentData)
paymentInstrumentData- Parameters:
paymentInstrumentData-
-
includeNullValues
public PaymentData 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 PaymentData 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 PaymentData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-