Class SweepSchedule
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.SweepSchedule
-
public class SweepSchedule extends Object
SweepSchedule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSweepSchedule.CustomTypeAdapterFactorystatic classSweepSchedule.TypeEnumThe schedule type.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description SweepSchedule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static SweepSchedulefromJson(String jsonString)Create an instance of SweepSchedule given an JSON stringSweepSchedule.TypeEnumgetType()The schedule type.inthashCode()voidsetType(SweepSchedule.TypeEnum type)StringtoJson()Convert an instance of SweepSchedule to an JSON stringStringtoString()SweepScheduletype(SweepSchedule.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
type
public SweepSchedule type(SweepSchedule.TypeEnum type)
-
getType
public SweepSchedule.TypeEnum getType()
The schedule type. Possible values: * **cron**: push out funds based on a cron expression. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: pull in funds instantly if the balance is less than or equal to the `triggerAmount`. You can only use this for sweeps of `type` **pull** and when the source is a `merchantAccount` or `transferInstrument`.- Returns:
- type
-
setType
public void setType(SweepSchedule.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 SweepSchedule
-
fromJson
public static SweepSchedule fromJson(String jsonString) throws IOException
Create an instance of SweepSchedule given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SweepSchedule
- Throws:
IOException- if the JSON string is invalid with respect to SweepSchedule
-
toJson
public String toJson()
Convert an instance of SweepSchedule to an JSON string- Returns:
- JSON string
-
-