Package io.moov.sdk.models.components
Class Account
- java.lang.Object
-
- io.moov.sdk.models.components.Account
-
public class Account extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccount.Builder
-
Constructor Summary
Constructors Constructor Description 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)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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaccountID()Unique identifier for this account.AccountTypeaccountType()The type of entity represented by this account.static Account.Builderbuilder()java.util.Optional<java.util.List<AccountCapability>>capabilities()java.time.OffsetDateTimecreatedOn()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.java.util.Optional<java.time.OffsetDateTime>disconnectedOn()java.lang.StringdisplayName()booleanequals(java.lang.Object o)java.util.Optional<java.lang.String>foreignID()Optional alias from a foreign/external system which can be used to reference this resource.inthashCode()java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>metadata()Free-form key-value pair list.Modemode()The operating mode for an account.Profileprofile()Describes a Moov account profile.java.util.Optional<Settings>settings()User provided settings to manage an account.java.util.Optional<TermsOfService>termsOfService()Describes the acceptance of the Terms of Service.java.lang.StringtoString()java.time.OffsetDateTimeupdatedOn()Verificationverification()Describes identity verification status and relevant identity verification documents.AccountwithAccountID(java.lang.String accountID)Unique identifier for this account.AccountwithAccountType(AccountType accountType)The type of entity represented by this account.AccountwithCapabilities(java.util.List<AccountCapability> capabilities)AccountwithCapabilities(java.util.Optional<? extends java.util.List<AccountCapability>> capabilities)AccountwithCreatedOn(java.time.OffsetDateTime createdOn)AccountwithCustomerSupport(CustomerSupport customerSupport)User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team.AccountwithCustomerSupport(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.AccountwithDisconnectedOn(java.time.OffsetDateTime disconnectedOn)AccountwithDisconnectedOn(java.util.Optional<java.time.OffsetDateTime> disconnectedOn)AccountwithDisplayName(java.lang.String displayName)AccountwithForeignID(java.lang.String foreignID)Optional alias from a foreign/external system which can be used to reference this resource.AccountwithForeignID(java.util.Optional<java.lang.String> foreignID)Optional alias from a foreign/external system which can be used to reference this resource.AccountwithMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Free-form key-value pair list.AccountwithMetadata(java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.String>> metadata)Free-form key-value pair list.AccountwithMode(Mode mode)The operating mode for an account.AccountwithProfile(Profile profile)Describes a Moov account profile.AccountwithSettings(Settings settings)User provided settings to manage an account.AccountwithSettings(java.util.Optional<? extends Settings> settings)User provided settings to manage an account.AccountwithTermsOfService(TermsOfService termsOfService)Describes the acceptance of the Terms of Service.AccountwithTermsOfService(java.util.Optional<? extends TermsOfService> termsOfService)Describes the acceptance of the Terms of Service.AccountwithUpdatedOn(java.time.OffsetDateTime updatedOn)AccountwithVerification(Verification verification)Describes identity verification status and relevant identity verification documents.
-
-
-
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()
-
builder
public static final Account.Builder builder()
-
withAccountID
public Account withAccountID(java.lang.String accountID)
Unique identifier for this 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.List<AccountCapability> capabilities)
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-