Package com.adyen.model.balanceplatform
Class DifferentCurrenciesRestriction
- java.lang.Object
-
- com.adyen.model.balanceplatform.DifferentCurrenciesRestriction
-
public class DifferentCurrenciesRestriction extends Object
DifferentCurrenciesRestriction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDifferentCurrenciesRestriction.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_OPERATIONstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description DifferentCurrenciesRestriction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static DifferentCurrenciesRestrictionfromJson(String jsonString)Create an instance of DifferentCurrenciesRestriction given an JSON stringStringgetOperation()Defines how the condition must be evaluated.BooleangetValue()Checks the currency of the payment against the currency of the payment instrument.inthashCode()DifferentCurrenciesRestrictionoperation(String operation)voidsetOperation(String operation)voidsetValue(Boolean value)StringtoJson()Convert an instance of DifferentCurrenciesRestriction to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)Validates the JSON Object and throws an exception if issues foundDifferentCurrenciesRestrictionvalue(Boolean value)
-
-
-
Field Detail
-
SERIALIZED_NAME_OPERATION
public static final String SERIALIZED_NAME_OPERATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
operation
public DifferentCurrenciesRestriction operation(String operation)
-
getOperation
public String getOperation()
Defines how the condition must be evaluated.- Returns:
- operation
-
setOperation
public void setOperation(String operation)
-
value
public DifferentCurrenciesRestriction value(Boolean value)
-
getValue
public Boolean getValue()
Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same.- Returns:
- value
-
setValue
public void setValue(Boolean value)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to DifferentCurrenciesRestriction
-
fromJson
public static DifferentCurrenciesRestriction fromJson(String jsonString) throws IOException
Create an instance of DifferentCurrenciesRestriction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DifferentCurrenciesRestriction
- Throws:
IOException- if the JSON string is invalid with respect to DifferentCurrenciesRestriction
-
toJson
public String toJson()
Convert an instance of DifferentCurrenciesRestriction to an JSON string- Returns:
- JSON string
-
-