Class Underwriting
- java.lang.Object
-
- io.moov.sdk.Underwriting
-
public class Underwriting extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetUnderwritingRequestBuilderget()Retrieve underwriting associated with a given Moov account.GetUnderwritingResponseget(java.lang.String accountID)Retrieve underwriting associated with a given Moov account.SaveUnderwritingRequestBuildersave()Create or update the account's underwriting.SaveUnderwritingResponsesave(java.lang.String accountID, UpsertUnderwriting upsertUnderwriting)Create or update the account's underwriting.UpsertUnderwritingRequestBuilderupsert()Create or update the account's underwriting.UpsertUnderwritingResponseupsert(java.lang.String accountID, UpdateUnderwriting updateUnderwriting)Create or update the account's underwriting.
-
-
-
Method Detail
-
get
public GetUnderwritingRequestBuilder get()
Retrieve underwriting associated with a given Moov account.Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) 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}/profile.read` scope.
- Returns:
- The call builder
-
get
public GetUnderwritingResponse get(java.lang.String accountID) throws java.lang.Exception
Retrieve underwriting associated with a given Moov account.Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) 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}/profile.read` scope.
- Parameters:
accountID-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
save
public SaveUnderwritingRequestBuilder save()
Create or update the account's underwriting.Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) 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}/profile.write` scope.
- Returns:
- The call builder
-
save
public SaveUnderwritingResponse save(java.lang.String accountID, UpsertUnderwriting upsertUnderwriting) throws java.lang.Exception
Create or update the account's underwriting.Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) 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}/profile.write` scope.
- Parameters:
accountID-upsertUnderwriting-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
upsert
public UpsertUnderwritingRequestBuilder upsert()
Create or update the account's underwriting.Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) 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}/profile.write` scope.
- Returns:
- The call builder
-
upsert
public UpsertUnderwritingResponse upsert(java.lang.String accountID, UpdateUnderwriting updateUnderwriting) throws java.lang.Exception
Create or update the account's underwriting.Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) 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}/profile.write` scope.
- Parameters:
accountID-updateUnderwriting-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
-