Class Sweeps
- java.lang.Object
-
- io.moov.sdk.Sweeps
-
public class Sweeps extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSweepConfigRequestBuildercreateConfig()Create a sweep config for a wallet.CreateSweepConfigResponsecreateConfig(java.lang.String accountID, CreateSweepConfig createSweepConfig)Create a sweep config for a wallet.GetSweepRequestBuilderget()Get details on a specific sweep.GetSweepResponseget(java.lang.String accountID, java.lang.String walletID, java.lang.String sweepID)Get details on a specific sweep.GetSweepConfigRequestBuildergetConfig()Get a sweep config associated with a wallet.GetSweepConfigResponsegetConfig(java.lang.String accountID, java.lang.String sweepConfigID)Get a sweep config associated with a wallet.ListSweepsRequestBuilderlist()List sweeps associated with a wallet.ListSweepsResponselist(ListSweepsRequest request)List sweeps associated with a wallet.ListSweepConfigsRequestBuilderlistConfigs()List sweep configs associated with an account.ListSweepConfigsResponselistConfigs(java.lang.String accountID)List sweep configs associated with an account.UpdateSweepConfigRequestBuilderupdateConfig()Update settings on a sweep config.UpdateSweepConfigResponseupdateConfig(java.lang.String accountID, java.lang.String sweepConfigID, PatchSweepConfig patchSweepConfig)Update settings on a sweep config.
-
-
-
Method Detail
-
createConfig
public CreateSweepConfigRequestBuilder createConfig()
Create a sweep config for a wallet.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
- Returns:
- The call builder
-
createConfig
public CreateSweepConfigResponse createConfig(java.lang.String accountID, CreateSweepConfig createSweepConfig) throws java.lang.Exception
Create a sweep config for a wallet.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
- Parameters:
accountID-createSweepConfig-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
listConfigs
public ListSweepConfigsRequestBuilder listConfigs()
List sweep configs associated with an account.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
- Returns:
- The call builder
-
listConfigs
public ListSweepConfigsResponse listConfigs(java.lang.String accountID) throws java.lang.Exception
List sweep configs associated with an account.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
- Parameters:
accountID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
getConfig
public GetSweepConfigRequestBuilder getConfig()
Get a sweep config associated with a wallet.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
- Returns:
- The call builder
-
getConfig
public GetSweepConfigResponse getConfig(java.lang.String accountID, java.lang.String sweepConfigID) throws java.lang.Exception
Get a sweep config associated with a wallet.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
- Parameters:
accountID-sweepConfigID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
updateConfig
public UpdateSweepConfigRequestBuilder updateConfig()
Update settings on a sweep config.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
- Returns:
- The call builder
-
updateConfig
public UpdateSweepConfigResponse updateConfig(java.lang.String accountID, java.lang.String sweepConfigID, PatchSweepConfig patchSweepConfig) throws java.lang.Exception
Update settings on a sweep config.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
- Parameters:
accountID-sweepConfigID-patchSweepConfig-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
list
public ListSweepsRequestBuilder list()
List sweeps associated with a wallet.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
- Returns:
- The call builder
-
list
public ListSweepsResponse list(ListSweepsRequest request) throws java.lang.Exception
List sweeps associated with a wallet.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
get
public GetSweepRequestBuilder get()
Get details on a specific sweep.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
- Returns:
- The call builder
-
get
public GetSweepResponse get(java.lang.String accountID, java.lang.String walletID, java.lang.String sweepID) throws java.lang.Exception
Get details on a specific sweep.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
- Parameters:
accountID-walletID-sweepID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
-