Package com.adyen.model.transferwebhooks
Class AmountAdjustment
- java.lang.Object
-
- com.adyen.model.transferwebhooks.AmountAdjustment
-
public class AmountAdjustment extends Object
AmountAdjustment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAmountAdjustment.AmountAdjustmentTypeEnumThe type of markup that is applied to an authorised payment.static classAmountAdjustment.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_AMOUNT_ADJUSTMENT_TYPEstatic StringSERIALIZED_NAME_BASEPOINTS
-
Constructor Summary
Constructors Constructor Description AmountAdjustment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AmountAdjustmentamount(Amount amount)AmountAdjustmentamountAdjustmentType(AmountAdjustment.AmountAdjustmentTypeEnum amountAdjustmentType)AmountAdjustmentbasepoints(Integer basepoints)booleanequals(Object o)static AmountAdjustmentfromJson(String jsonString)Create an instance of AmountAdjustment given an JSON stringAmountgetAmount()Get amountAmountAdjustment.AmountAdjustmentTypeEnumgetAmountAdjustmentType()The type of markup that is applied to an authorised payment.IntegergetBasepoints()The basepoints associated with the applied markup.inthashCode()voidsetAmount(Amount amount)voidsetAmountAdjustmentType(AmountAdjustment.AmountAdjustmentTypeEnum amountAdjustmentType)voidsetBasepoints(Integer basepoints)StringtoJson()Convert an instance of AmountAdjustment 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_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT_ADJUSTMENT_TYPE
public static final String SERIALIZED_NAME_AMOUNT_ADJUSTMENT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BASEPOINTS
public static final String SERIALIZED_NAME_BASEPOINTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public AmountAdjustment amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
amountAdjustmentType
public AmountAdjustment amountAdjustmentType(AmountAdjustment.AmountAdjustmentTypeEnum amountAdjustmentType)
-
getAmountAdjustmentType
public AmountAdjustment.AmountAdjustmentTypeEnum getAmountAdjustmentType()
The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**.- Returns:
- amountAdjustmentType
-
setAmountAdjustmentType
public void setAmountAdjustmentType(AmountAdjustment.AmountAdjustmentTypeEnum amountAdjustmentType)
-
basepoints
public AmountAdjustment basepoints(Integer basepoints)
-
getBasepoints
public Integer getBasepoints()
The basepoints associated with the applied markup.- Returns:
- basepoints
-
setBasepoints
public void setBasepoints(Integer basepoints)
-
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 AmountAdjustment
-
fromJson
public static AmountAdjustment fromJson(String jsonString) throws IOException
Create an instance of AmountAdjustment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AmountAdjustment
- Throws:
IOException- if the JSON string is invalid with respect to AmountAdjustment
-
toJson
public String toJson()
Convert an instance of AmountAdjustment to an JSON string- Returns:
- JSON string
-
-