Package com.adyen.model.balanceplatform
Class SweepSchedule
- java.lang.Object
-
- com.adyen.model.balanceplatform.SweepSchedule
-
public class SweepSchedule extends Object
SweepSchedule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSweepSchedule.TypeEnumThe schedule type.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_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)Return true if this SweepSchedule object is equal to 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)
-
-
-
Field Detail
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
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`.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(SweepSchedule.TypeEnum type)
-
equals
public boolean equals(Object o)
Return true if this SweepSchedule object is equal to o.
-
fromJson
public static SweepSchedule fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SweepSchedule given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SweepSchedule
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SweepSchedule
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SweepSchedule to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-