Package com.adyen.model.tapi
Class PaymentResult
- java.lang.Object
-
- com.adyen.model.tapi.PaymentResult
-
public class PaymentResult extends Object
PaymentResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentResult.AuthenticationMethodEnumGets or Sets authenticationMethod
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTS_RESPstatic StringJSON_PROPERTY_AUTHENTICATION_METHODstatic StringJSON_PROPERTY_CAPTURED_SIGNATUREstatic StringJSON_PROPERTY_CURRENCY_CONVERSIONstatic StringJSON_PROPERTY_CUSTOMER_LANGUAGEstatic StringJSON_PROPERTY_INSTALMENTstatic StringJSON_PROPERTY_MERCHANT_OVERRIDE_FLAGstatic StringJSON_PROPERTY_ONLINE_FLAGstatic StringJSON_PROPERTY_PAYMENT_ACQUIRER_DATAstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_DATAstatic StringJSON_PROPERTY_PAYMENT_TYPEstatic StringJSON_PROPERTY_PROTECTED_SIGNATUREstatic StringJSON_PROPERTY_VALIDITY_DATE
-
Constructor Summary
Constructors Constructor Description PaymentResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentResultaddAuthenticationMethodItem(PaymentResult.AuthenticationMethodEnum authenticationMethodItem)PaymentResultaddCurrencyConversionItem(CurrencyConversion currencyConversionItem)PaymentResultamountsResp(AmountsResp amountsResp)amountsRespPaymentResultauthenticationMethod(List<PaymentResult.AuthenticationMethodEnum> authenticationMethod)Method for customer authentication.PaymentResultcapturedSignature(CapturedSignature capturedSignature)capturedSignaturePaymentResultcurrencyConversion(List<CurrencyConversion> currencyConversion)Information related to a currency conversion.PaymentResultcustomerLanguage(String customerLanguage)The language of the customer that was used on the terminal screen or in text printed by the terminal.booleanequals(Object o)Return true if this PaymentResult object is equal to o.static PaymentResultfromJson(String jsonString)Create an instance of PaymentResult given an JSON stringAmountsRespgetAmountsResp()Get amountsRespList<PaymentResult.AuthenticationMethodEnum>getAuthenticationMethod()Method for customer authentication.CapturedSignaturegetCapturedSignature()Get capturedSignatureList<CurrencyConversion>getCurrencyConversion()Information related to a currency conversion.StringgetCustomerLanguage()The language of the customer that was used on the terminal screen or in text printed by the terminal.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.InstalmentgetInstalment()Get instalmentBooleangetMerchantOverrideFlag()Indicates that the Merchant forced the result of the payment to successful.BooleangetOnlineFlag()Indicate that the payment transaction processing has required the approval of a host.PaymentAcquirerDatagetPaymentAcquirerData()Get paymentAcquirerDataPaymentInstrumentDatagetPaymentInstrumentData()Get paymentInstrumentDataPaymentTypegetPaymentType()Get paymentTypeStringgetProtectedSignature()Numeric value of a handwritten signature.LocalDategetValidityDate()End of the validity period for the reservation, for the first reservation, and the reservation updates as well.inthashCode()PaymentResultincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.PaymentResultinstalment(Instalment instalment)instalmentbooleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaymentResultmerchantOverrideFlag(Boolean merchantOverrideFlag)Indicates that the Merchant forced the result of the payment to successful.PaymentResultonlineFlag(Boolean onlineFlag)Indicate that the payment transaction processing has required the approval of a host.PaymentResultpaymentAcquirerData(PaymentAcquirerData paymentAcquirerData)paymentAcquirerDataPaymentResultpaymentInstrumentData(PaymentInstrumentData paymentInstrumentData)paymentInstrumentDataPaymentResultpaymentType(PaymentType paymentType)paymentTypePaymentResultprotectedSignature(String protectedSignature)Numeric value of a handwritten signature.voidsetAmountsResp(AmountsResp amountsResp)amountsRespvoidsetAuthenticationMethod(List<PaymentResult.AuthenticationMethodEnum> authenticationMethod)Method for customer authentication.voidsetCapturedSignature(CapturedSignature capturedSignature)capturedSignaturevoidsetCurrencyConversion(List<CurrencyConversion> currencyConversion)Information related to a currency conversion.voidsetCustomerLanguage(String customerLanguage)The language of the customer that was used on the terminal screen or in text printed by the terminal.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetInstalment(Instalment instalment)instalmentvoidsetMerchantOverrideFlag(Boolean merchantOverrideFlag)Indicates that the Merchant forced the result of the payment to successful.voidsetOnlineFlag(Boolean onlineFlag)Indicate that the payment transaction processing has required the approval of a host.voidsetPaymentAcquirerData(PaymentAcquirerData paymentAcquirerData)paymentAcquirerDatavoidsetPaymentInstrumentData(PaymentInstrumentData paymentInstrumentData)paymentInstrumentDatavoidsetPaymentType(PaymentType paymentType)paymentTypevoidsetProtectedSignature(String protectedSignature)Numeric value of a handwritten signature.voidsetValidityDate(LocalDate validityDate)End of the validity period for the reservation, for the first reservation, and the reservation updates as well.StringtoJson()Convert an instance of PaymentResult to an JSON stringStringtoString()PaymentResultvalidityDate(LocalDate validityDate)End of the validity period for the reservation, for the first reservation, and the reservation updates as well.
-
-
-
Field Detail
-
JSON_PROPERTY_PAYMENT_TYPE
public static final String JSON_PROPERTY_PAYMENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT_DATA
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNTS_RESP
public static final String JSON_PROPERTY_AMOUNTS_RESP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTALMENT
public static final String JSON_PROPERTY_INSTALMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENCY_CONVERSION
public static final String JSON_PROPERTY_CURRENCY_CONVERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_OVERRIDE_FLAG
public static final String JSON_PROPERTY_MERCHANT_OVERRIDE_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CAPTURED_SIGNATURE
public static final String JSON_PROPERTY_CAPTURED_SIGNATURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTECTED_SIGNATURE
public static final String JSON_PROPERTY_PROTECTED_SIGNATURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUSTOMER_LANGUAGE
public static final String JSON_PROPERTY_CUSTOMER_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ONLINE_FLAG
public static final String JSON_PROPERTY_ONLINE_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AUTHENTICATION_METHOD
public static final String JSON_PROPERTY_AUTHENTICATION_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALIDITY_DATE
public static final String JSON_PROPERTY_VALIDITY_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_ACQUIRER_DATA
public static final String JSON_PROPERTY_PAYMENT_ACQUIRER_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
paymentType
public PaymentResult paymentType(PaymentType paymentType)
paymentType- Parameters:
paymentType-- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getPaymentType
public PaymentType getPaymentType()
Get paymentType- Returns:
- paymentType
-
setPaymentType
public void setPaymentType(PaymentType paymentType)
paymentType- Parameters:
paymentType-
-
paymentInstrumentData
public PaymentResult paymentInstrumentData(PaymentInstrumentData paymentInstrumentData)
paymentInstrumentData- Parameters:
paymentInstrumentData-- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getPaymentInstrumentData
public PaymentInstrumentData getPaymentInstrumentData()
Get paymentInstrumentData- Returns:
- paymentInstrumentData
-
setPaymentInstrumentData
public void setPaymentInstrumentData(PaymentInstrumentData paymentInstrumentData)
paymentInstrumentData- Parameters:
paymentInstrumentData-
-
amountsResp
public PaymentResult amountsResp(AmountsResp amountsResp)
amountsResp- Parameters:
amountsResp-- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getAmountsResp
public AmountsResp getAmountsResp()
Get amountsResp- Returns:
- amountsResp
-
setAmountsResp
public void setAmountsResp(AmountsResp amountsResp)
amountsResp- Parameters:
amountsResp-
-
instalment
public PaymentResult instalment(Instalment instalment)
instalment- Parameters:
instalment-- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getInstalment
public Instalment getInstalment()
Get instalment- Returns:
- instalment
-
setInstalment
public void setInstalment(Instalment instalment)
instalment- Parameters:
instalment-
-
currencyConversion
public PaymentResult currencyConversion(List<CurrencyConversion> currencyConversion)
Information related to a currency conversion. A currency conversion occurred in the payment, and the merchant needs to know information related to this conversion (e.g. to print on the sale receipt).- Parameters:
currencyConversion- Information related to a currency conversion. A currency conversion occurred in the payment, and the merchant needs to know information related to this conversion (e.g. to print on the sale receipt).- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
addCurrencyConversionItem
public PaymentResult addCurrencyConversionItem(CurrencyConversion currencyConversionItem)
-
getCurrencyConversion
public List<CurrencyConversion> getCurrencyConversion()
Information related to a currency conversion. A currency conversion occurred in the payment, and the merchant needs to know information related to this conversion (e.g. to print on the sale receipt).- Returns:
- currencyConversion Information related to a currency conversion. A currency conversion occurred in the payment, and the merchant needs to know information related to this conversion (e.g. to print on the sale receipt).
-
setCurrencyConversion
public void setCurrencyConversion(List<CurrencyConversion> currencyConversion)
Information related to a currency conversion. A currency conversion occurred in the payment, and the merchant needs to know information related to this conversion (e.g. to print on the sale receipt).- Parameters:
currencyConversion- Information related to a currency conversion. A currency conversion occurred in the payment, and the merchant needs to know information related to this conversion (e.g. to print on the sale receipt).
-
merchantOverrideFlag
public PaymentResult merchantOverrideFlag(Boolean merchantOverrideFlag)
Indicates that the Merchant forced the result of the payment to successful. Allows the Sale System to be sure that the payment has been forced.- Parameters:
merchantOverrideFlag- Indicates that the Merchant forced the result of the payment to successful. Allows the Sale System to be sure that the payment has been forced.- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getMerchantOverrideFlag
public Boolean getMerchantOverrideFlag()
Indicates that the Merchant forced the result of the payment to successful. Allows the Sale System to be sure that the payment has been forced.- Returns:
- merchantOverrideFlag Indicates that the Merchant forced the result of the payment to successful. Allows the Sale System to be sure that the payment has been forced.
-
setMerchantOverrideFlag
public void setMerchantOverrideFlag(Boolean merchantOverrideFlag)
Indicates that the Merchant forced the result of the payment to successful. Allows the Sale System to be sure that the payment has been forced.- Parameters:
merchantOverrideFlag- Indicates that the Merchant forced the result of the payment to successful. Allows the Sale System to be sure that the payment has been forced.
-
capturedSignature
public PaymentResult capturedSignature(CapturedSignature capturedSignature)
capturedSignature- Parameters:
capturedSignature-- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getCapturedSignature
public CapturedSignature getCapturedSignature()
Get capturedSignature- Returns:
- capturedSignature
-
setCapturedSignature
public void setCapturedSignature(CapturedSignature capturedSignature)
capturedSignature- Parameters:
capturedSignature-
-
protectedSignature
public PaymentResult protectedSignature(String protectedSignature)
Numeric value of a handwritten signature. Contains the value of a handwritten signature, e.g. the signature of a cardholder on the merchant payment receipt. The format before encryption is the encoded data structure CapturedSignature. The data structure before encryption includes the start and end tags for an XML encoding, the identifier and length bytes for an ASN.1 encoding, and the complete member ProtectedSignature for a JSON encoding.- Parameters:
protectedSignature- Numeric value of a handwritten signature. Contains the value of a handwritten signature, e.g. the signature of a cardholder on the merchant payment receipt. The format before encryption is the encoded data structure CapturedSignature. The data structure before encryption includes the start and end tags for an XML encoding, the identifier and length bytes for an ASN.1 encoding, and the complete member ProtectedSignature for a JSON encoding.- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getProtectedSignature
public String getProtectedSignature()
Numeric value of a handwritten signature. Contains the value of a handwritten signature, e.g. the signature of a cardholder on the merchant payment receipt. The format before encryption is the encoded data structure CapturedSignature. The data structure before encryption includes the start and end tags for an XML encoding, the identifier and length bytes for an ASN.1 encoding, and the complete member ProtectedSignature for a JSON encoding.- Returns:
- protectedSignature Numeric value of a handwritten signature. Contains the value of a handwritten signature, e.g. the signature of a cardholder on the merchant payment receipt. The format before encryption is the encoded data structure CapturedSignature. The data structure before encryption includes the start and end tags for an XML encoding, the identifier and length bytes for an ASN.1 encoding, and the complete member ProtectedSignature for a JSON encoding.
-
setProtectedSignature
public void setProtectedSignature(String protectedSignature)
Numeric value of a handwritten signature. Contains the value of a handwritten signature, e.g. the signature of a cardholder on the merchant payment receipt. The format before encryption is the encoded data structure CapturedSignature. The data structure before encryption includes the start and end tags for an XML encoding, the identifier and length bytes for an ASN.1 encoding, and the complete member ProtectedSignature for a JSON encoding.- Parameters:
protectedSignature- Numeric value of a handwritten signature. Contains the value of a handwritten signature, e.g. the signature of a cardholder on the merchant payment receipt. The format before encryption is the encoded data structure CapturedSignature. The data structure before encryption includes the start and end tags for an XML encoding, the identifier and length bytes for an ASN.1 encoding, and the complete member ProtectedSignature for a JSON encoding.
-
customerLanguage
public PaymentResult customerLanguage(String customerLanguage)
The language of the customer that was used on the terminal screen or in text printed by the terminal. Format: two-character [ISO 639:2023](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format.- Parameters:
customerLanguage- The language of the customer that was used on the terminal screen or in text printed by the terminal. Format: two-character [ISO 639:2023](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format.- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getCustomerLanguage
public String getCustomerLanguage()
The language of the customer that was used on the terminal screen or in text printed by the terminal. Format: two-character [ISO 639:2023](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format.- Returns:
- customerLanguage The language of the customer that was used on the terminal screen or in text printed by the terminal. Format: two-character [ISO 639:2023](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format.
-
setCustomerLanguage
public void setCustomerLanguage(String customerLanguage)
The language of the customer that was used on the terminal screen or in text printed by the terminal. Format: two-character [ISO 639:2023](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format.- Parameters:
customerLanguage- The language of the customer that was used on the terminal screen or in text printed by the terminal. Format: two-character [ISO 639:2023](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format.
-
onlineFlag
public PaymentResult onlineFlag(Boolean onlineFlag)
Indicate that the payment transaction processing has required the approval of a host. Allows the Sale System to know if the payment was online or offline.- Parameters:
onlineFlag- Indicate that the payment transaction processing has required the approval of a host. Allows the Sale System to know if the payment was online or offline.- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getOnlineFlag
public Boolean getOnlineFlag()
Indicate that the payment transaction processing has required the approval of a host. Allows the Sale System to know if the payment was online or offline.- Returns:
- onlineFlag Indicate that the payment transaction processing has required the approval of a host. Allows the Sale System to know if the payment was online or offline.
-
setOnlineFlag
public void setOnlineFlag(Boolean onlineFlag)
Indicate that the payment transaction processing has required the approval of a host. Allows the Sale System to know if the payment was online or offline.- Parameters:
onlineFlag- Indicate that the payment transaction processing has required the approval of a host. Allows the Sale System to know if the payment was online or offline.
-
authenticationMethod
public PaymentResult authenticationMethod(List<PaymentResult.AuthenticationMethodEnum> authenticationMethod)
Method for customer authentication. Allows the Sale System informed about customer authentication for the payment transaction. Possible values: * **Bypass** * **ManualVerification** * **MerchantAuthentication** * **OfflinePIN** * **OnlinePIN** * **PaperSignature** * **SecureCertificate** * **SecureNoCertificate** * **SecuredChannel** * **SignatureCapture** * **UnknownMethod**- Parameters:
authenticationMethod- Method for customer authentication. Allows the Sale System informed about customer authentication for the payment transaction. Possible values: * **Bypass** * **ManualVerification** * **MerchantAuthentication** * **OfflinePIN** * **OnlinePIN** * **PaperSignature** * **SecureCertificate** * **SecureNoCertificate** * **SecuredChannel** * **SignatureCapture** * **UnknownMethod**- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
addAuthenticationMethodItem
public PaymentResult addAuthenticationMethodItem(PaymentResult.AuthenticationMethodEnum authenticationMethodItem)
-
getAuthenticationMethod
public List<PaymentResult.AuthenticationMethodEnum> getAuthenticationMethod()
Method for customer authentication. Allows the Sale System informed about customer authentication for the payment transaction. Possible values: * **Bypass** * **ManualVerification** * **MerchantAuthentication** * **OfflinePIN** * **OnlinePIN** * **PaperSignature** * **SecureCertificate** * **SecureNoCertificate** * **SecuredChannel** * **SignatureCapture** * **UnknownMethod**- Returns:
- authenticationMethod Method for customer authentication. Allows the Sale System informed about customer authentication for the payment transaction. Possible values: * **Bypass** * **ManualVerification** * **MerchantAuthentication** * **OfflinePIN** * **OnlinePIN** * **PaperSignature** * **SecureCertificate** * **SecureNoCertificate** * **SecuredChannel** * **SignatureCapture** * **UnknownMethod**
-
setAuthenticationMethod
public void setAuthenticationMethod(List<PaymentResult.AuthenticationMethodEnum> authenticationMethod)
Method for customer authentication. Allows the Sale System informed about customer authentication for the payment transaction. Possible values: * **Bypass** * **ManualVerification** * **MerchantAuthentication** * **OfflinePIN** * **OnlinePIN** * **PaperSignature** * **SecureCertificate** * **SecureNoCertificate** * **SecuredChannel** * **SignatureCapture** * **UnknownMethod**- Parameters:
authenticationMethod- Method for customer authentication. Allows the Sale System informed about customer authentication for the payment transaction. Possible values: * **Bypass** * **ManualVerification** * **MerchantAuthentication** * **OfflinePIN** * **OnlinePIN** * **PaperSignature** * **SecureCertificate** * **SecureNoCertificate** * **SecuredChannel** * **SignatureCapture** * **UnknownMethod**
-
validityDate
public PaymentResult validityDate(LocalDate validityDate)
End of the validity period for the reservation, for the first reservation, and the reservation updates as well.- Parameters:
validityDate- End of the validity period for the reservation, for the first reservation, and the reservation updates as well.- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getValidityDate
public LocalDate getValidityDate()
End of the validity period for the reservation, for the first reservation, and the reservation updates as well.- Returns:
- validityDate End of the validity period for the reservation, for the first reservation, and the reservation updates as well.
-
setValidityDate
public void setValidityDate(LocalDate validityDate)
End of the validity period for the reservation, for the first reservation, and the reservation updates as well.- Parameters:
validityDate- End of the validity period for the reservation, for the first reservation, and the reservation updates as well.
-
paymentAcquirerData
public PaymentResult paymentAcquirerData(PaymentAcquirerData paymentAcquirerData)
paymentAcquirerData- Parameters:
paymentAcquirerData-- Returns:
- the current
PaymentResultinstance, allowing for method chaining
-
getPaymentAcquirerData
public PaymentAcquirerData getPaymentAcquirerData()
Get paymentAcquirerData- Returns:
- paymentAcquirerData
-
setPaymentAcquirerData
public void setPaymentAcquirerData(PaymentAcquirerData paymentAcquirerData)
paymentAcquirerData- Parameters:
paymentAcquirerData-
-
includeNullValues
public PaymentResult 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 PaymentResult 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 PaymentResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-