Package com.adyen.model.management
Class Surcharge
- java.lang.Object
-
- com.adyen.model.management.Surcharge
-
public class Surcharge extends Object
Surcharge
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ASK_CONFIRMATIONstatic StringJSON_PROPERTY_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)Show the surcharge details on the terminal, so the shopper can confirm.Surchargeconfigurations(List<ModelConfiguration> configurations)Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.booleanequals(Object o)Return true if this Surcharge object is equal to 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 cards, funding sources (credit or debit), and currencies.inthashCode()voidsetAskConfirmation(Boolean askConfirmation)Show the surcharge details on the terminal, so the shopper can confirm.voidsetConfigurations(List<ModelConfiguration> configurations)Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.StringtoJson()Convert an instance of Surcharge to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ASK_CONFIRMATION
public static final String JSON_PROPERTY_ASK_CONFIRMATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONFIGURATIONS
public static final String JSON_PROPERTY_CONFIGURATIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
askConfirmation
public Surcharge askConfirmation(Boolean askConfirmation)
Show the surcharge details on the terminal, so the shopper can confirm.- Parameters:
askConfirmation-- Returns:
- the current
Surchargeinstance, allowing for method chaining
-
getAskConfirmation
public Boolean getAskConfirmation()
Show the surcharge details on the terminal, so the shopper can confirm.- Returns:
- askConfirmation
-
setAskConfirmation
public void setAskConfirmation(Boolean askConfirmation)
Show the surcharge details on the terminal, so the shopper can confirm.- Parameters:
askConfirmation-
-
configurations
public Surcharge configurations(List<ModelConfiguration> configurations)
Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.- Parameters:
configurations-- Returns:
- the current
Surchargeinstance, allowing for method chaining
-
addConfigurationsItem
public Surcharge addConfigurationsItem(ModelConfiguration configurationsItem)
-
getConfigurations
public List<ModelConfiguration> getConfigurations()
Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.- Returns:
- configurations
-
setConfigurations
public void setConfigurations(List<ModelConfiguration> configurations)
Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.- Parameters:
configurations-
-
equals
public boolean equals(Object o)
Return true if this Surcharge object is equal to o.
-
fromJson
public static Surcharge fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Surcharge given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Surcharge
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Surcharge
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Surcharge to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-