Package com.adyen.model.tapi
Class LoyaltyResponse
- java.lang.Object
-
- com.adyen.model.tapi.LoyaltyResponse
-
public class LoyaltyResponse extends Object
It conveys Information related to the Loyalty transaction processed by the POI System. Content of the Loyalty Response message.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LOYALTY_RESULTstatic StringJSON_PROPERTY_PAYMENT_RECEIPTstatic StringJSON_PROPERTY_POI_DATAstatic StringJSON_PROPERTY_RESPONSEstatic StringJSON_PROPERTY_SALE_DATA
-
Constructor Summary
Constructors Constructor Description LoyaltyResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoyaltyResponseaddLoyaltyResultItem(LoyaltyResult loyaltyResultItem)LoyaltyResponseaddPaymentReceiptItem(PaymentReceipt paymentReceiptItem)booleanequals(Object o)Return true if this LoyaltyResponse object is equal to o.static LoyaltyResponsefromJson(String jsonString)Create an instance of LoyaltyResponse 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()Get paymentReceiptPOIDatagetPoiData()Get poiDataResponsegetResponse()Get responseSaleDatagetSaleData()Get saleDatainthashCode()LoyaltyResponseincludeNullValues(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.LoyaltyResponseloyaltyResult(List<LoyaltyResult> loyaltyResult)Data related to the result of a processed loyalty transaction.LoyaltyResponsepaymentReceipt(List<PaymentReceipt> paymentReceipt)paymentReceiptLoyaltyResponsepoiData(POIData poiData)poiDataLoyaltyResponseresponse(Response response)responseLoyaltyResponsesaleData(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)paymentReceiptvoidsetPoiData(POIData poiData)poiDatavoidsetResponse(Response response)responsevoidsetSaleData(SaleData saleData)saleDataStringtoJson()Convert an instance of LoyaltyResponse 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_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 LoyaltyResponse response(Response response)
response- Parameters:
response-- Returns:
- the current
LoyaltyResponseinstance, allowing for method chaining
-
getResponse
public Response getResponse()
Get response- Returns:
- response
-
setResponse
public void setResponse(Response response)
response- Parameters:
response-
-
saleData
public LoyaltyResponse saleData(SaleData saleData)
saleData- Parameters:
saleData-- Returns:
- the current
LoyaltyResponseinstance, allowing for method chaining
-
getSaleData
public SaleData getSaleData()
Get saleData- Returns:
- saleData
-
setSaleData
public void setSaleData(SaleData saleData)
saleData- Parameters:
saleData-
-
poiData
public LoyaltyResponse poiData(POIData poiData)
poiData- Parameters:
poiData-- Returns:
- the current
LoyaltyResponseinstance, allowing for method chaining
-
getPoiData
public POIData getPoiData()
Get poiData- Returns:
- poiData
-
setPoiData
public void setPoiData(POIData poiData)
poiData- Parameters:
poiData-
-
loyaltyResult
public LoyaltyResponse loyaltyResult(List<LoyaltyResult> loyaltyResult)
Data related to the result of a processed loyalty transaction. If loyalty account identified.- Parameters:
loyaltyResult- Data related to the result of a processed loyalty transaction. If loyalty account identified.- Returns:
- the current
LoyaltyResponseinstance, allowing for method chaining
-
addLoyaltyResultItem
public LoyaltyResponse addLoyaltyResultItem(LoyaltyResult loyaltyResultItem)
-
getLoyaltyResult
public List<LoyaltyResult> getLoyaltyResult()
Data related to the result of a processed loyalty transaction. If loyalty account identified.- Returns:
- loyaltyResult Data related to the result of a processed loyalty transaction. If loyalty account identified.
-
setLoyaltyResult
public void setLoyaltyResult(List<LoyaltyResult> loyaltyResult)
Data related to the result of a processed loyalty transaction. If loyalty account identified.- Parameters:
loyaltyResult- Data related to the result of a processed loyalty transaction. If loyalty account identified.
-
paymentReceipt
public LoyaltyResponse paymentReceipt(List<PaymentReceipt> paymentReceipt)
paymentReceipt- Parameters:
paymentReceipt-- Returns:
- the current
LoyaltyResponseinstance, allowing for method chaining
-
addPaymentReceiptItem
public LoyaltyResponse addPaymentReceiptItem(PaymentReceipt paymentReceiptItem)
-
getPaymentReceipt
public List<PaymentReceipt> getPaymentReceipt()
Get paymentReceipt- Returns:
- paymentReceipt
-
setPaymentReceipt
public void setPaymentReceipt(List<PaymentReceipt> paymentReceipt)
paymentReceipt- Parameters:
paymentReceipt-
-
includeNullValues
public LoyaltyResponse 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 LoyaltyResponse 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 LoyaltyResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of LoyaltyResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to LoyaltyResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of LoyaltyResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-