Package com.adyen.model.tapi
Class LoyaltyResult
- java.lang.Object
-
- com.adyen.model.tapi.LoyaltyResult
-
public class LoyaltyResult extends Object
Data related to the result of a processed loyalty transaction. In the Message Response, the result of each loyalty brand transaction.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENT_BALANCEstatic StringJSON_PROPERTY_LOYALTY_ACCOUNTstatic StringJSON_PROPERTY_LOYALTY_ACQUIRER_DATA
-
Constructor Summary
Constructors Constructor Description LoyaltyResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoyaltyResultcurrentBalance(BigDecimal currentBalance)Balance of an account.booleanequals(Object o)Return true if this LoyaltyResult object is equal to o.static LoyaltyResultfromJson(String jsonString)Create an instance of LoyaltyResult given an JSON stringBigDecimalgetCurrentBalance()Balance of an account.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.LoyaltyAccountgetLoyaltyAccount()Get loyaltyAccountLoyaltyAcquirerDatagetLoyaltyAcquirerData()Get loyaltyAcquirerDatainthashCode()LoyaltyResultincludeNullValues(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.LoyaltyResultloyaltyAccount(LoyaltyAccount loyaltyAccount)loyaltyAccountLoyaltyResultloyaltyAcquirerData(LoyaltyAcquirerData loyaltyAcquirerData)loyaltyAcquirerDatavoidsetCurrentBalance(BigDecimal currentBalance)Balance of an account.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLoyaltyAccount(LoyaltyAccount loyaltyAccount)loyaltyAccountvoidsetLoyaltyAcquirerData(LoyaltyAcquirerData loyaltyAcquirerData)loyaltyAcquirerDataStringtoJson()Convert an instance of LoyaltyResult to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LOYALTY_ACCOUNT
public static final String JSON_PROPERTY_LOYALTY_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENT_BALANCE
public static final String JSON_PROPERTY_CURRENT_BALANCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOYALTY_ACQUIRER_DATA
public static final String JSON_PROPERTY_LOYALTY_ACQUIRER_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
loyaltyAccount
public LoyaltyResult loyaltyAccount(LoyaltyAccount loyaltyAccount)
loyaltyAccount- Parameters:
loyaltyAccount-- Returns:
- the current
LoyaltyResultinstance, allowing for method chaining
-
getLoyaltyAccount
public LoyaltyAccount getLoyaltyAccount()
Get loyaltyAccount- Returns:
- loyaltyAccount
-
setLoyaltyAccount
public void setLoyaltyAccount(LoyaltyAccount loyaltyAccount)
loyaltyAccount- Parameters:
loyaltyAccount-
-
currentBalance
public LoyaltyResult currentBalance(BigDecimal currentBalance)
Balance of an account. If known (provided by the card or an external host).- Parameters:
currentBalance- Balance of an account. If known (provided by the card or an external host).- Returns:
- the current
LoyaltyResultinstance, allowing for method chaining
-
getCurrentBalance
public BigDecimal getCurrentBalance()
Balance of an account. If known (provided by the card or an external host). minimum: 0.0 maximum: 99999999.999999- Returns:
- currentBalance Balance of an account. If known (provided by the card or an external host).
-
setCurrentBalance
public void setCurrentBalance(BigDecimal currentBalance)
Balance of an account. If known (provided by the card or an external host).- Parameters:
currentBalance- Balance of an account. If known (provided by the card or an external host).
-
loyaltyAcquirerData
public LoyaltyResult loyaltyAcquirerData(LoyaltyAcquirerData loyaltyAcquirerData)
loyaltyAcquirerData- Parameters:
loyaltyAcquirerData-- Returns:
- the current
LoyaltyResultinstance, allowing for method chaining
-
getLoyaltyAcquirerData
public LoyaltyAcquirerData getLoyaltyAcquirerData()
Get loyaltyAcquirerData- Returns:
- loyaltyAcquirerData
-
setLoyaltyAcquirerData
public void setLoyaltyAcquirerData(LoyaltyAcquirerData loyaltyAcquirerData)
loyaltyAcquirerData- Parameters:
loyaltyAcquirerData-
-
includeNullValues
public LoyaltyResult 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 LoyaltyResult 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 LoyaltyResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of LoyaltyResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to LoyaltyResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of LoyaltyResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-