Package io.moov.sdk

Class Underwriting


  • public class Underwriting
    extends java.lang.Object
    • 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