Package com.adyen.model.balanceplatform
Class CronSweepSchedule
- java.lang.Object
-
- com.adyen.model.balanceplatform.CronSweepSchedule
-
public class CronSweepSchedule extends Object
CronSweepSchedule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCronSweepSchedule.CustomTypeAdapterFactorystatic classCronSweepSchedule.TypeEnumThe schedule type.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CRON_EXPRESSIONstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description CronSweepSchedule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CronSweepSchedulecronExpression(String cronExpression)booleanequals(Object o)static CronSweepSchedulefromJson(String jsonString)Create an instance of CronSweepSchedule given an JSON stringStringgetCronExpression()A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule.CronSweepSchedule.TypeEnumgetType()The schedule type.inthashCode()voidsetCronExpression(String cronExpression)voidsetType(CronSweepSchedule.TypeEnum type)StringtoJson()Convert an instance of CronSweepSchedule to an JSON stringStringtoString()CronSweepScheduletype(CronSweepSchedule.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CRON_EXPRESSION
public static final String SERIALIZED_NAME_CRON_EXPRESSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
cronExpression
public CronSweepSchedule cronExpression(String cronExpression)
-
getCronExpression
public String getCronExpression()
A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: *****, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples.- Returns:
- cronExpression
-
setCronExpression
public void setCronExpression(String cronExpression)
-
type
public CronSweepSchedule type(CronSweepSchedule.TypeEnum type)
-
getType
public CronSweepSchedule.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`.If the source is transferInstrument, merchant account identifier is still required, with which you want to process the transaction.- Returns:
- type
-
setType
public void setType(CronSweepSchedule.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 CronSweepSchedule
-
fromJson
public static CronSweepSchedule fromJson(String jsonString) throws IOException
Create an instance of CronSweepSchedule given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CronSweepSchedule
- Throws:
IOException- if the JSON string is invalid with respect to CronSweepSchedule
-
toJson
public String toJson()
Convert an instance of CronSweepSchedule to an JSON string- Returns:
- JSON string
-
-