Package com.adyen.model.marketpayaccount
Class UpdatePayoutScheduleRequest
- java.lang.Object
-
- com.adyen.model.marketpayaccount.UpdatePayoutScheduleRequest
-
public class UpdatePayoutScheduleRequest extends Object
UpdatePayoutScheduleRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdatePayoutScheduleRequest.ActionEnumDirection on how to handle any payouts that have already been scheduled.static classUpdatePayoutScheduleRequest.ScheduleEnumThe payout schedule to which the account is to be updated.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACTIONstatic StringJSON_PROPERTY_REASONstatic StringJSON_PROPERTY_SCHEDULE
-
Constructor Summary
Constructors Constructor Description UpdatePayoutScheduleRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdatePayoutScheduleRequestaction(UpdatePayoutScheduleRequest.ActionEnum action)booleanequals(Object o)Return true if this UpdatePayoutScheduleRequest object is equal to o.static UpdatePayoutScheduleRequestfromJson(String jsonString)Create an instance of UpdatePayoutScheduleRequest given an JSON stringUpdatePayoutScheduleRequest.ActionEnumgetAction()Direction on how to handle any payouts that have already been scheduled.StringgetReason()The reason for the payout schedule update.UpdatePayoutScheduleRequest.ScheduleEnumgetSchedule()The payout schedule to which the account is to be updated.inthashCode()UpdatePayoutScheduleRequestreason(String reason)UpdatePayoutScheduleRequestschedule(UpdatePayoutScheduleRequest.ScheduleEnum schedule)voidsetAction(UpdatePayoutScheduleRequest.ActionEnum action)voidsetReason(String reason)voidsetSchedule(UpdatePayoutScheduleRequest.ScheduleEnum schedule)StringtoJson()Convert an instance of UpdatePayoutScheduleRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACTION
public static final String JSON_PROPERTY_ACTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON
public static final String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCHEDULE
public static final String JSON_PROPERTY_SCHEDULE
- See Also:
- Constant Field Values
-
-
Method Detail
-
action
public UpdatePayoutScheduleRequest action(UpdatePayoutScheduleRequest.ActionEnum action)
-
getAction
public UpdatePayoutScheduleRequest.ActionEnum getAction()
Direction on how to handle any payouts that have already been scheduled. Permitted values: * `CLOSE` will close the existing batch of payouts. * `UPDATE` will reschedule the existing batch to the new schedule. * `NOTHING` (**default**) will allow the payout to proceed.- Returns:
- action
-
setAction
public void setAction(UpdatePayoutScheduleRequest.ActionEnum action)
-
reason
public UpdatePayoutScheduleRequest reason(String reason)
-
getReason
public String getReason()
The reason for the payout schedule update. > This field is required when the `schedule` parameter is set to `HOLD`.- Returns:
- reason
-
setReason
public void setReason(String reason)
-
schedule
public UpdatePayoutScheduleRequest schedule(UpdatePayoutScheduleRequest.ScheduleEnum schedule)
-
getSchedule
public UpdatePayoutScheduleRequest.ScheduleEnum getSchedule()
The payout schedule to which the account is to be updated. Permitted values: `DAILY`, `DAILY_US`, `DAILY_EU`, `DAILY_AU`, `DAILY_SG`, `WEEKLY`, `WEEKLY_ON_TUE_FRI_MIDNIGHT`, `BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT`, `MONTHLY`, `HOLD`. `HOLD` will prevent scheduled payouts from happening but will still allow manual payouts to occur.- Returns:
- schedule
-
setSchedule
public void setSchedule(UpdatePayoutScheduleRequest.ScheduleEnum schedule)
-
equals
public boolean equals(Object o)
Return true if this UpdatePayoutScheduleRequest object is equal to o.
-
fromJson
public static UpdatePayoutScheduleRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of UpdatePayoutScheduleRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdatePayoutScheduleRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to UpdatePayoutScheduleRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of UpdatePayoutScheduleRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-