Class MerchantAccountResource
- java.lang.Object
-
- com.adyen.model.sessionauthentication.Resource
-
- com.adyen.model.sessionauthentication.MerchantAccountResource
-
public class MerchantAccountResource extends Resource
MerchantAccountResource
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNT_CODE-
Fields inherited from class com.adyen.model.sessionauthentication.Resource
JSON_PROPERTY_TYPE
-
-
Constructor Summary
Constructors Constructor Description MerchantAccountResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this MerchantAccountResource object is equal to o.static MerchantAccountResourcefromJson(String jsonString)Create an instance of MerchantAccountResource given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetMerchantAccountCode()Get merchantAccountCodeinthashCode()MerchantAccountResourceincludeNullValues(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.MerchantAccountResourcemerchantAccountCode(String merchantAccountCode)merchantAccountCodevoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantAccountCode(String merchantAccountCode)merchantAccountCodeStringtoJson()Convert an instance of MerchantAccountResource to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ACCOUNT_CODE
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccountCode
public MerchantAccountResource merchantAccountCode(String merchantAccountCode)
merchantAccountCode- Parameters:
merchantAccountCode-- Returns:
- the current
MerchantAccountResourceinstance, allowing for method chaining
-
getMerchantAccountCode
public String getMerchantAccountCode()
Get merchantAccountCode- Returns:
- merchantAccountCode
-
setMerchantAccountCode
public void setMerchantAccountCode(String merchantAccountCode)
merchantAccountCode- Parameters:
merchantAccountCode-
-
includeNullValues
public MerchantAccountResource includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.- Overrides:
includeNullValuesin classResource
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.- Overrides:
isIncludeNullValuesin classResource
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.- Overrides:
setIncludeNullValuesin classResource
-
equals
public boolean equals(Object o)
Return true if this MerchantAccountResource 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.- Overrides:
getExplicitNullsin classResource
-
fromJson
public static MerchantAccountResource fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MerchantAccountResource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantAccountResource
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MerchantAccountResource
-
-