Class Scheduling
- java.lang.Object
-
- io.moov.sdk.Scheduling
-
public class Scheduling extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancelScheduleRequestBuildercancel()Describes the schedule to cancel.CancelScheduleResponsecancel(java.lang.String accountID, java.lang.String scheduleID)Describes the schedule to cancel.CreateScheduleRequestBuildercreate()Describes the schedule to create or modify.CreateScheduleResponsecreate(java.lang.String accountID, UpsertSchedule upsertSchedule)Describes the schedule to create or modify.GetSchedulesRequestBuilderget()Describes a schedule associated with an account.GetSchedulesResponseget(java.lang.String accountID, java.lang.String scheduleID)Describes a schedule associated with an account.GetScheduledOccurrenceRequestBuildergetOccurrance()Gets a specific occurrence.GetScheduledOccurrenceResponsegetOccurrance(java.lang.String accountID, java.lang.String scheduleID, java.lang.String occurrenceFilter)Gets a specific occurrence.ListSchedulesRequestBuilderlist()Describes a list of schedules associated with an account.ListSchedulesResponselist(java.lang.String accountID)Describes a list of schedules associated with an account.ListSchedulesResponselist(java.util.Optional<java.lang.Long> skip, java.util.Optional<java.lang.Long> count, java.util.Optional<? extends Hydrate> hydrate, java.lang.String accountID)Describes a list of schedules associated with an account.UpdateScheduleRequestBuilderupdate()Describes the schedule to modify.UpdateScheduleResponseupdate(java.lang.String accountID, java.lang.String scheduleID, UpsertSchedule upsertSchedule)Describes the schedule to modify.
-
-
-
Method Detail
-
create
public CreateScheduleRequestBuilder create()
Describes the schedule to create or modify.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
- Returns:
- The call builder
-
create
public CreateScheduleResponse create(java.lang.String accountID, UpsertSchedule upsertSchedule) throws java.lang.Exception
Describes the schedule to create or modify.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
- Parameters:
accountID- Account ID of the account that will run the transfer.upsertSchedule-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
list
public ListSchedulesRequestBuilder list()
Describes a list of schedules associated with an account. Append the `hydrate=accounts` query parameter to include partial account details in the response.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
- Returns:
- The call builder
-
list
public ListSchedulesResponse list(java.lang.String accountID) throws java.lang.Exception
Describes a list of schedules associated with an account. Append the `hydrate=accounts` query parameter to include partial account details in the response.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
- Parameters:
accountID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
list
public ListSchedulesResponse list(java.util.Optional<java.lang.Long> skip, java.util.Optional<java.lang.Long> count, java.util.Optional<? extends Hydrate> hydrate, java.lang.String accountID) throws java.lang.Exception
Describes a list of schedules associated with an account. Append the `hydrate=accounts` query parameter to include partial account details in the response.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
- Parameters:
skip-count-hydrate-accountID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
update
public UpdateScheduleRequestBuilder update()
Describes the schedule to modify.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
- Returns:
- The call builder
-
update
public UpdateScheduleResponse update(java.lang.String accountID, java.lang.String scheduleID, UpsertSchedule upsertSchedule) throws java.lang.Exception
Describes the schedule to modify.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
- Parameters:
accountID- Account ID of the account that will run the transfer.scheduleID-upsertSchedule-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
get
public GetSchedulesRequestBuilder get()
Describes a schedule associated with an account. Requires at least 1 occurrence or recurTransfer to be specified.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
- Returns:
- The call builder
-
get
public GetSchedulesResponse get(java.lang.String accountID, java.lang.String scheduleID) throws java.lang.Exception
Describes a schedule associated with an account. Requires at least 1 occurrence or recurTransfer to be specified.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
- Parameters:
accountID-scheduleID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
cancel
public CancelScheduleRequestBuilder cancel()
Describes the schedule to cancel.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
- Returns:
- The call builder
-
cancel
public CancelScheduleResponse cancel(java.lang.String accountID, java.lang.String scheduleID) throws java.lang.Exception
Describes the schedule to cancel.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
- Parameters:
accountID- Your Moov account ID as the partner running the transfers.scheduleID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
getOccurrance
public GetScheduledOccurrenceRequestBuilder getOccurrance()
Gets a specific occurrence.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
- Returns:
- The call builder
-
getOccurrance
public GetScheduledOccurrenceResponse getOccurrance(java.lang.String accountID, java.lang.String scheduleID, java.lang.String occurrenceFilter) throws java.lang.Exception
Gets a specific occurrence.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
- Parameters:
accountID-scheduleID-occurrenceFilter- Allows the specification of additional filters beyond the UUID. Specifying a UUID string returns the exact occurrence. Specifying a RFC 3339 timestamp returns the latest occurrence at or before that timestamp. Specifying `latest` returns the latest occurrence at or before now.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
-