Package com.adyen.model.management
Class Surcharge
- java.lang.Object
-
- com.adyen.model.management.Surcharge
-
public class Surcharge extends Object
Surcharge
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSurcharge.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ASK_CONFIRMATIONstatic StringSERIALIZED_NAME_CONFIGURATIONS
-
Constructor Summary
Constructors Constructor Description Surcharge()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SurchargeaddConfigurationsItem(ModelConfiguration configurationsItem)SurchargeaskConfirmation(Boolean askConfirmation)Surchargeconfigurations(List<ModelConfiguration> configurations)booleanequals(Object o)static SurchargefromJson(String jsonString)Create an instance of Surcharge given an JSON stringBooleangetAskConfirmation()Show the surcharge details on the terminal, so the shopper can confirm.List<ModelConfiguration>getConfigurations()Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.inthashCode()voidsetAskConfirmation(Boolean askConfirmation)voidsetConfigurations(List<ModelConfiguration> configurations)StringtoJson()Convert an instance of Surcharge to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ASK_CONFIRMATION
public static final String SERIALIZED_NAME_ASK_CONFIRMATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONFIGURATIONS
public static final String SERIALIZED_NAME_CONFIGURATIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAskConfirmation
public Boolean getAskConfirmation()
Show the surcharge details on the terminal, so the shopper can confirm.- Returns:
- askConfirmation
-
setAskConfirmation
public void setAskConfirmation(Boolean askConfirmation)
-
configurations
public Surcharge configurations(List<ModelConfiguration> configurations)
-
addConfigurationsItem
public Surcharge addConfigurationsItem(ModelConfiguration configurationsItem)
-
getConfigurations
public List<ModelConfiguration> getConfigurations()
Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.- Returns:
- configurations
-
setConfigurations
public void setConfigurations(List<ModelConfiguration> configurations)
-
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 Surcharge
-
fromJson
public static Surcharge fromJson(String jsonString) throws IOException
Create an instance of Surcharge given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Surcharge
- Throws:
IOException- if the JSON string is invalid with respect to Surcharge
-
toJson
public String toJson()
Convert an instance of Surcharge to an JSON string- Returns:
- JSON string
-
-