Class Account


  • public class Account
    extends java.lang.Object
    • Constructor Detail

      • Account

        public Account​(java.lang.String accountID,
                       Mode mode,
                       AccountType accountType,
                       java.lang.String displayName,
                       Profile profile,
                       java.util.Optional<? extends java.util.Map<java.lang.String,​java.lang.String>> metadata,
                       java.util.Optional<? extends TermsOfService> termsOfService,
                       java.util.Optional<? extends java.util.List<AccountCapability>> capabilities,
                       Verification verification,
                       java.util.Optional<java.lang.String> foreignID,
                       java.util.Optional<? extends CustomerSupport> customerSupport,
                       java.util.Optional<? extends Settings> settings,
                       java.time.OffsetDateTime createdOn,
                       java.time.OffsetDateTime updatedOn,
                       java.util.Optional<java.time.OffsetDateTime> disconnectedOn)
      • Account

        public Account​(java.lang.String accountID,
                       Mode mode,
                       AccountType accountType,
                       java.lang.String displayName,
                       Profile profile,
                       Verification verification,
                       java.time.OffsetDateTime createdOn,
                       java.time.OffsetDateTime updatedOn)
    • Method Detail

      • accountID

        public java.lang.String accountID()
        Unique identifier for this account.
      • mode

        public Mode mode()
        The operating mode for an account.
      • accountType

        public AccountType accountType()
        The type of entity represented by this account.
      • displayName

        public java.lang.String displayName()
      • profile

        public Profile profile()
        Describes a Moov account profile. A profile will have a business or an individual, depending on the account's type.
      • metadata

        public java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> metadata()
        Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
      • termsOfService

        public java.util.Optional<TermsOfService> termsOfService()
        Describes the acceptance of the Terms of Service.
      • capabilities

        public java.util.Optional<java.util.List<AccountCapability>> capabilities()
      • verification

        public Verification verification()
        Describes identity verification status and relevant identity verification documents.
      • foreignID

        public java.util.Optional<java.lang.String> foreignID()
        Optional alias from a foreign/external system which can be used to reference this resource.
      • customerSupport

        public java.util.Optional<CustomerSupport> customerSupport()
        User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team. This data is only allowed on a business account.
      • settings

        public java.util.Optional<Settings> settings()
        User provided settings to manage an account.
      • createdOn

        public java.time.OffsetDateTime createdOn()
      • updatedOn

        public java.time.OffsetDateTime updatedOn()
      • disconnectedOn

        public java.util.Optional<java.time.OffsetDateTime> disconnectedOn()
      • withAccountID

        public Account withAccountID​(java.lang.String accountID)
        Unique identifier for this account.
      • withMode

        public Account withMode​(Mode mode)
        The operating mode for an account.
      • withAccountType

        public Account withAccountType​(AccountType accountType)
        The type of entity represented by this account.
      • withDisplayName

        public Account withDisplayName​(java.lang.String displayName)
      • withProfile

        public Account withProfile​(Profile profile)
        Describes a Moov account profile. A profile will have a business or an individual, depending on the account's type.
      • withMetadata

        public Account withMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
      • withMetadata

        public Account withMetadata​(java.util.Optional<? extends java.util.Map<java.lang.String,​java.lang.String>> metadata)
        Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
      • withTermsOfService

        public Account withTermsOfService​(TermsOfService termsOfService)
        Describes the acceptance of the Terms of Service.
      • withTermsOfService

        public Account withTermsOfService​(java.util.Optional<? extends TermsOfService> termsOfService)
        Describes the acceptance of the Terms of Service.
      • withCapabilities

        public Account withCapabilities​(java.util.Optional<? extends java.util.List<AccountCapability>> capabilities)
      • withVerification

        public Account withVerification​(Verification verification)
        Describes identity verification status and relevant identity verification documents.
      • withForeignID

        public Account withForeignID​(java.lang.String foreignID)
        Optional alias from a foreign/external system which can be used to reference this resource.
      • withForeignID

        public Account withForeignID​(java.util.Optional<java.lang.String> foreignID)
        Optional alias from a foreign/external system which can be used to reference this resource.
      • withCustomerSupport

        public Account withCustomerSupport​(CustomerSupport customerSupport)
        User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team. This data is only allowed on a business account.
      • withCustomerSupport

        public Account withCustomerSupport​(java.util.Optional<? extends CustomerSupport> customerSupport)
        User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team. This data is only allowed on a business account.
      • withSettings

        public Account withSettings​(Settings settings)
        User provided settings to manage an account.
      • withSettings

        public Account withSettings​(java.util.Optional<? extends Settings> settings)
        User provided settings to manage an account.
      • withCreatedOn

        public Account withCreatedOn​(java.time.OffsetDateTime createdOn)
      • withUpdatedOn

        public Account withUpdatedOn​(java.time.OffsetDateTime updatedOn)
      • withDisconnectedOn

        public Account withDisconnectedOn​(java.time.OffsetDateTime disconnectedOn)
      • withDisconnectedOn

        public Account withDisconnectedOn​(java.util.Optional<java.time.OffsetDateTime> disconnectedOn)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object