Package com.adyen.model.management
Class ShopperStatement
- java.lang.Object
-
- com.adyen.model.management.ShopperStatement
-
public class ShopperStatement extends Object
ShopperStatement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShopperStatement.CustomTypeAdapterFactorystatic classShopperStatement.TypeEnumThe type of shopperstatement you want to use: fixed, append or dynamic
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DOING_BUSINESS_AS_NAMEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description ShopperStatement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShopperStatementdoingBusinessAsName(String doingBusinessAsName)booleanequals(Object o)static ShopperStatementfromJson(String jsonString)Create an instance of ShopperStatement given an JSON stringStringgetDoingBusinessAsName()The name you want to be shown on the shopper's bank or credit card statement.ShopperStatement.TypeEnumgetType()The type of shopperstatement you want to use: fixed, append or dynamicinthashCode()voidsetDoingBusinessAsName(String doingBusinessAsName)voidsetType(ShopperStatement.TypeEnum type)StringtoJson()Convert an instance of ShopperStatement to an JSON stringStringtoString()ShopperStatementtype(ShopperStatement.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DOING_BUSINESS_AS_NAME
public static final String SERIALIZED_NAME_DOING_BUSINESS_AS_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doingBusinessAsName
public ShopperStatement doingBusinessAsName(String doingBusinessAsName)
-
getDoingBusinessAsName
public String getDoingBusinessAsName()
The name you want to be shown on the shopper's bank or credit card statement. Can't be all numbers. If a shopper statement is present, this field is required.- Returns:
- doingBusinessAsName
-
setDoingBusinessAsName
public void setDoingBusinessAsName(String doingBusinessAsName)
-
type
public ShopperStatement type(ShopperStatement.TypeEnum type)
-
getType
public ShopperStatement.TypeEnum getType()
The type of shopperstatement you want to use: fixed, append or dynamic- Returns:
- type
-
setType
public void setType(ShopperStatement.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ShopperStatement
-
fromJson
public static ShopperStatement fromJson(String jsonString) throws IOException
Create an instance of ShopperStatement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ShopperStatement
- Throws:
IOException- if the JSON string is invalid with respect to ShopperStatement
-
toJson
public String toJson()
Convert an instance of ShopperStatement to an JSON string- Returns:
- JSON string
-
-