Package com.adyen.model.payment
Class PlatformChargebackLogic
- java.lang.Object
-
- com.adyen.model.payment.PlatformChargebackLogic
-
public class PlatformChargebackLogic extends Object
PlatformChargebackLogic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlatformChargebackLogic.BehaviorEnumThe method of handling the chargeback.static classPlatformChargebackLogic.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BEHAVIORstatic StringSERIALIZED_NAME_COST_ALLOCATION_ACCOUNTstatic StringSERIALIZED_NAME_TARGET_ACCOUNT
-
Constructor Summary
Constructors Constructor Description PlatformChargebackLogic()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PlatformChargebackLogicbehavior(PlatformChargebackLogic.BehaviorEnum behavior)PlatformChargebackLogiccostAllocationAccount(String costAllocationAccount)booleanequals(Object o)static PlatformChargebackLogicfromJson(String jsonString)Create an instance of PlatformChargebackLogic given an JSON stringPlatformChargebackLogic.BehaviorEnumgetBehavior()The method of handling the chargeback.StringgetCostAllocationAccount()The unique identifier of the balance account to which the chargeback fees are booked.StringgetTargetAccount()The unique identifier of the balance account against which the disputed amount is booked.inthashCode()voidsetBehavior(PlatformChargebackLogic.BehaviorEnum behavior)voidsetCostAllocationAccount(String costAllocationAccount)voidsetTargetAccount(String targetAccount)PlatformChargebackLogictargetAccount(String targetAccount)StringtoJson()Convert an instance of PlatformChargebackLogic 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_BEHAVIOR
public static final String SERIALIZED_NAME_BEHAVIOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COST_ALLOCATION_ACCOUNT
public static final String SERIALIZED_NAME_COST_ALLOCATION_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TARGET_ACCOUNT
public static final String SERIALIZED_NAME_TARGET_ACCOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
behavior
public PlatformChargebackLogic behavior(PlatformChargebackLogic.BehaviorEnum behavior)
-
getBehavior
public PlatformChargebackLogic.BehaviorEnum getBehavior()
The method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**.- Returns:
- behavior
-
setBehavior
public void setBehavior(PlatformChargebackLogic.BehaviorEnum behavior)
-
costAllocationAccount
public PlatformChargebackLogic costAllocationAccount(String costAllocationAccount)
-
getCostAllocationAccount
public String getCostAllocationAccount()
The unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account.- Returns:
- costAllocationAccount
-
setCostAllocationAccount
public void setCostAllocationAccount(String costAllocationAccount)
-
targetAccount
public PlatformChargebackLogic targetAccount(String targetAccount)
-
getTargetAccount
public String getTargetAccount()
The unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**.- Returns:
- targetAccount
-
setTargetAccount
public void setTargetAccount(String targetAccount)
-
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 PlatformChargebackLogic
-
fromJson
public static PlatformChargebackLogic fromJson(String jsonString) throws IOException
Create an instance of PlatformChargebackLogic given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PlatformChargebackLogic
- Throws:
IOException- if the JSON string is invalid with respect to PlatformChargebackLogic
-
toJson
public String toJson()
Convert an instance of PlatformChargebackLogic to an JSON string- Returns:
- JSON string
-
-