Class Representatives
- java.lang.Object
-
- io.moov.sdk.Representatives
-
- All Implemented Interfaces:
SDKMethodInterfaces.MethodCallCreateRepresentative,SDKMethodInterfaces.MethodCallDeleteRepresentative,SDKMethodInterfaces.MethodCallGetRepresentative,SDKMethodInterfaces.MethodCallListRepresentatives,SDKMethodInterfaces.MethodCallUpdateRepresentative
public class Representatives extends java.lang.Object implements SDKMethodInterfaces.MethodCallCreateRepresentative, SDKMethodInterfaces.MethodCallListRepresentatives, SDKMethodInterfaces.MethodCallDeleteRepresentative, SDKMethodInterfaces.MethodCallGetRepresentative, SDKMethodInterfaces.MethodCallUpdateRepresentative
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateRepresentativeRequestBuildercreate()Moov accounts associated with businesses require information regarding individuals who represent the business.CreateRepresentativeResponsecreate(java.lang.String accountID, CreateRepresentative createRepresentative)Moov accounts associated with businesses require information regarding individuals who represent the business.CreateRepresentativeResponsecreate(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID, CreateRepresentative createRepresentative)Moov accounts associated with businesses require information regarding individuals who represent the business.DeleteRepresentativeRequestBuilderdelete()Deletes a business representative associated with a Moov account.DeleteRepresentativeResponsedelete(java.lang.String accountID, java.lang.String representativeID)Deletes a business representative associated with a Moov account.DeleteRepresentativeResponsedelete(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID, java.lang.String representativeID)Deletes a business representative associated with a Moov account.GetRepresentativeRequestBuilderget()Retrieve a specific representative associated with a given Moov account.GetRepresentativeResponseget(java.lang.String accountID, java.lang.String representativeID)Retrieve a specific representative associated with a given Moov account.GetRepresentativeResponseget(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID, java.lang.String representativeID)Retrieve a specific representative associated with a given Moov account.ListRepresentativesRequestBuilderlist()A Moov account may have multiple representatives depending on the associated business's ownership and management structure.ListRepresentativesResponselist(java.lang.String accountID)A Moov account may have multiple representatives depending on the associated business's ownership and management structure.ListRepresentativesResponselist(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID)A Moov account may have multiple representatives depending on the associated business's ownership and management structure.UpdateRepresentativeRequestBuilderupdate()If a representative's information has changed you can patch the information associated with a specific representative ID.UpdateRepresentativeResponseupdate(java.lang.String accountID, java.lang.String representativeID, UpdateRepresentative updateRepresentative)If a representative's information has changed you can patch the information associated with a specific representative ID.UpdateRepresentativeResponseupdate(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID, java.lang.String representativeID, UpdateRepresentative updateRepresentative)If a representative's information has changed you can patch the information associated with a specific representative ID.
-
-
-
Method Detail
-
create
public CreateRepresentativeRequestBuilder create()
Moov accounts associated with businesses require information regarding individuals who represent the business. You can provide this information by creating a representative. Each account is allowed a maximum of 7 representatives. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
- Returns:
- The call builder
-
create
public CreateRepresentativeResponse create(java.lang.String accountID, CreateRepresentative createRepresentative) throws java.lang.Exception
Moov accounts associated with businesses require information regarding individuals who represent the business. You can provide this information by creating a representative. Each account is allowed a maximum of 7 representatives. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
- Parameters:
accountID- ID of the account.createRepresentative- Describes a business representative to create.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
create
public CreateRepresentativeResponse create(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID, CreateRepresentative createRepresentative) throws java.lang.Exception
Moov accounts associated with businesses require information regarding individuals who represent the business. You can provide this information by creating a representative. Each account is allowed a maximum of 7 representatives. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
- Specified by:
createin interfaceSDKMethodInterfaces.MethodCallCreateRepresentative- Parameters:
xMoovVersion- Specify an API version. API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024. The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.accountID- ID of the account.createRepresentative- Describes a business representative to create.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
list
public ListRepresentativesRequestBuilder list()
A Moov account may have multiple representatives depending on the associated business's ownership and management structure. You can use this method to list all the representatives for a given Moov account. Note that Moov accounts associated with an individual do not have representatives. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
- Returns:
- The call builder
-
list
public ListRepresentativesResponse list(java.lang.String accountID) throws java.lang.Exception
A Moov account may have multiple representatives depending on the associated business's ownership and management structure. You can use this method to list all the representatives for a given Moov account. Note that Moov accounts associated with an individual do not have representatives. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
- Parameters:
accountID- ID of the account.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
list
public ListRepresentativesResponse list(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID) throws java.lang.Exception
A Moov account may have multiple representatives depending on the associated business's ownership and management structure. You can use this method to list all the representatives for a given Moov account. Note that Moov accounts associated with an individual do not have representatives. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
- Specified by:
listin interfaceSDKMethodInterfaces.MethodCallListRepresentatives- Parameters:
xMoovVersion- Specify an API version. API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024. The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.accountID- ID of the account.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
delete
public DeleteRepresentativeRequestBuilder delete()
Deletes a business representative associated with a Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
- Returns:
- The call builder
-
delete
public DeleteRepresentativeResponse delete(java.lang.String accountID, java.lang.String representativeID) throws java.lang.Exception
Deletes a business representative associated with a Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
- Parameters:
accountID- ID of the account.representativeID- ID of the representative.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
delete
public DeleteRepresentativeResponse delete(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID, java.lang.String representativeID) throws java.lang.Exception
Deletes a business representative associated with a Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
- Specified by:
deletein interfaceSDKMethodInterfaces.MethodCallDeleteRepresentative- Parameters:
xMoovVersion- Specify an API version. API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024. The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.accountID- ID of the account.representativeID- ID of the representative.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
get
public GetRepresentativeRequestBuilder get()
Retrieve a specific representative associated with a given Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
- Returns:
- The call builder
-
get
public GetRepresentativeResponse get(java.lang.String accountID, java.lang.String representativeID) throws java.lang.Exception
Retrieve a specific representative associated with a given Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
- Parameters:
accountID- ID of the account.representativeID- ID of the representative.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
get
public GetRepresentativeResponse get(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID, java.lang.String representativeID) throws java.lang.Exception
Retrieve a specific representative associated with a given Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
- Specified by:
getin interfaceSDKMethodInterfaces.MethodCallGetRepresentative- Parameters:
xMoovVersion- Specify an API version. API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024. The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.accountID- ID of the account.representativeID- ID of the representative.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
update
public UpdateRepresentativeRequestBuilder update()
If a representative's information has changed you can patch the information associated with a specific representative ID. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.When **can** profile data be updated:
- For unverified representatives, all profile data can be edited. - During the verification process, missing or incomplete profile data can be edited. - Verified representatives can only add missing profile data.
When **can't** profile data be updated:
- Verified representatives cannot change any existing profile data.
If you need to update information in a locked state, please contact Moov support.
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
- Returns:
- The call builder
-
update
public UpdateRepresentativeResponse update(java.lang.String accountID, java.lang.String representativeID, UpdateRepresentative updateRepresentative) throws java.lang.Exception
If a representative's information has changed you can patch the information associated with a specific representative ID. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.When **can** profile data be updated:
- For unverified representatives, all profile data can be edited. - During the verification process, missing or incomplete profile data can be edited. - Verified representatives can only add missing profile data.
When **can't** profile data be updated:
- Verified representatives cannot change any existing profile data.
If you need to update information in a locked state, please contact Moov support.
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
- Parameters:
accountID- ID of the account.representativeID- ID of the representative.updateRepresentative-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
update
public UpdateRepresentativeResponse update(java.util.Optional<java.lang.String> xMoovVersion, java.lang.String accountID, java.lang.String representativeID, UpdateRepresentative updateRepresentative) throws java.lang.Exception
If a representative's information has changed you can patch the information associated with a specific representative ID. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.When **can** profile data be updated:
- For unverified representatives, all profile data can be edited. - During the verification process, missing or incomplete profile data can be edited. - Verified representatives can only add missing profile data.
When **can't** profile data be updated:
- Verified representatives cannot change any existing profile data.
If you need to update information in a locked state, please contact Moov support.
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
- Specified by:
updatein interfaceSDKMethodInterfaces.MethodCallUpdateRepresentative- Parameters:
xMoovVersion- Specify an API version. API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024. The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.accountID- ID of the account.representativeID- ID of the representative.updateRepresentative-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
-