Package com.adyen.model.tapi
Class PaymentResponse
- java.lang.Object
-
- com.adyen.model.tapi.PaymentResponse
-
public class PaymentResponse extends Object
It conveys Information related to the Payment transaction processed by the POI System. Content of the Payment Response message.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LOYALTY_RESULTstatic StringJSON_PROPERTY_PAYMENT_RECEIPTstatic StringJSON_PROPERTY_PAYMENT_RESULTstatic StringJSON_PROPERTY_POI_DATAstatic StringJSON_PROPERTY_RESPONSEstatic StringJSON_PROPERTY_SALE_DATA
-
Constructor Summary
Constructors Constructor Description PaymentResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentResponseaddLoyaltyResultItem(LoyaltyResult loyaltyResultItem)PaymentResponseaddPaymentReceiptItem(PaymentReceipt paymentReceiptItem)booleanequals(Object o)Return true if this PaymentResponse object is equal to o.static PaymentResponsefromJson(String jsonString)Create an instance of PaymentResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<LoyaltyResult>getLoyaltyResult()Data related to the result of a processed loyalty transaction.List<PaymentReceipt>getPaymentReceipt()Customer or Merchant payment receipt.PaymentResultgetPaymentResult()Get paymentResultPOIDatagetPoiData()Get poiDataResponsegetResponse()Get responseSaleDatagetSaleData()Get saleDatainthashCode()PaymentResponseincludeNullValues(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.PaymentResponseloyaltyResult(List<LoyaltyResult> loyaltyResult)Data related to the result of a processed loyalty transaction.PaymentResponsepaymentReceipt(List<PaymentReceipt> paymentReceipt)Customer or Merchant payment receipt.PaymentResponsepaymentResult(PaymentResult paymentResult)paymentResultPaymentResponsepoiData(POIData poiData)poiDataPaymentResponseresponse(Response response)responsePaymentResponsesaleData(SaleData saleData)saleDatavoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLoyaltyResult(List<LoyaltyResult> loyaltyResult)Data related to the result of a processed loyalty transaction.voidsetPaymentReceipt(List<PaymentReceipt> paymentReceipt)Customer or Merchant payment receipt.voidsetPaymentResult(PaymentResult paymentResult)paymentResultvoidsetPoiData(POIData poiData)poiDatavoidsetResponse(Response response)responsevoidsetSaleData(SaleData saleData)saleDataStringtoJson()Convert an instance of PaymentResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_RESPONSE
public static final String JSON_PROPERTY_RESPONSE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SALE_DATA
public static final String JSON_PROPERTY_SALE_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POI_DATA
public static final String JSON_PROPERTY_POI_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_RESULT
public static final String JSON_PROPERTY_PAYMENT_RESULT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOYALTY_RESULT
public static final String JSON_PROPERTY_LOYALTY_RESULT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_RECEIPT
public static final String JSON_PROPERTY_PAYMENT_RECEIPT
- See Also:
- Constant Field Values
-
-
Method Detail
-
response
public PaymentResponse response(Response response)
response- Parameters:
response-- Returns:
- the current
PaymentResponseinstance, allowing for method chaining
-
getResponse
public Response getResponse()
Get response- Returns:
- response
-
setResponse
public void setResponse(Response response)
response- Parameters:
response-
-
saleData
public PaymentResponse saleData(SaleData saleData)
saleData- Parameters:
saleData-- Returns:
- the current
PaymentResponseinstance, allowing for method chaining
-
getSaleData
public SaleData getSaleData()
Get saleData- Returns:
- saleData
-
setSaleData
public void setSaleData(SaleData saleData)
saleData- Parameters:
saleData-
-
poiData
public PaymentResponse poiData(POIData poiData)
poiData- Parameters:
poiData-- Returns:
- the current
PaymentResponseinstance, allowing for method chaining
-
getPoiData
public POIData getPoiData()
Get poiData- Returns:
- poiData
-
setPoiData
public void setPoiData(POIData poiData)
poiData- Parameters:
poiData-
-
paymentResult
public PaymentResponse paymentResult(PaymentResult paymentResult)
paymentResult- Parameters:
paymentResult-- Returns:
- the current
PaymentResponseinstance, allowing for method chaining
-
getPaymentResult
public PaymentResult getPaymentResult()
Get paymentResult- Returns:
- paymentResult
-
setPaymentResult
public void setPaymentResult(PaymentResult paymentResult)
paymentResult- Parameters:
paymentResult-
-
loyaltyResult
public PaymentResponse loyaltyResult(List<LoyaltyResult> loyaltyResult)
Data related to the result of a processed loyalty transaction. Loyalty cards used with the payment transaction.- Parameters:
loyaltyResult- Data related to the result of a processed loyalty transaction. Loyalty cards used with the payment transaction.- Returns:
- the current
PaymentResponseinstance, allowing for method chaining
-
addLoyaltyResultItem
public PaymentResponse addLoyaltyResultItem(LoyaltyResult loyaltyResultItem)
-
getLoyaltyResult
public List<LoyaltyResult> getLoyaltyResult()
Data related to the result of a processed loyalty transaction. Loyalty cards used with the payment transaction.- Returns:
- loyaltyResult Data related to the result of a processed loyalty transaction. Loyalty cards used with the payment transaction.
-
setLoyaltyResult
public void setLoyaltyResult(List<LoyaltyResult> loyaltyResult)
Data related to the result of a processed loyalty transaction. Loyalty cards used with the payment transaction.- Parameters:
loyaltyResult- Data related to the result of a processed loyalty transaction. Loyalty cards used with the payment transaction.
-
paymentReceipt
public PaymentResponse paymentReceipt(List<PaymentReceipt> paymentReceipt)
Customer or Merchant payment receipt. If the payment receipts are printed by the Sale system and the POI or the Sale does not implement the Print exchange (Basic profile).- Parameters:
paymentReceipt- Customer or Merchant payment receipt. If the payment receipts are printed by the Sale system and the POI or the Sale does not implement the Print exchange (Basic profile).- Returns:
- the current
PaymentResponseinstance, allowing for method chaining
-
addPaymentReceiptItem
public PaymentResponse addPaymentReceiptItem(PaymentReceipt paymentReceiptItem)
-
getPaymentReceipt
public List<PaymentReceipt> getPaymentReceipt()
Customer or Merchant payment receipt. If the payment receipts are printed by the Sale system and the POI or the Sale does not implement the Print exchange (Basic profile).- Returns:
- paymentReceipt Customer or Merchant payment receipt. If the payment receipts are printed by the Sale system and the POI or the Sale does not implement the Print exchange (Basic profile).
-
setPaymentReceipt
public void setPaymentReceipt(List<PaymentReceipt> paymentReceipt)
Customer or Merchant payment receipt. If the payment receipts are printed by the Sale system and the POI or the Sale does not implement the Print exchange (Basic profile).- Parameters:
paymentReceipt- Customer or Merchant payment receipt. If the payment receipts are printed by the Sale system and the POI or the Sale does not implement the Print exchange (Basic profile).
-
includeNullValues
public PaymentResponse 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 PaymentResponse 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 PaymentResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-