public class DefaultAccount extends EntityBase implements Account
createdDate, id, updatedDate| Constructor and Description |
|---|
DefaultAccount(AccountModelDao accountModelDao) |
DefaultAccount(UUID id,
AccountData data)
This call is used to update an existing account
|
DefaultAccount(UUID id,
org.joda.time.DateTime createdDate,
org.joda.time.DateTime updatedDate,
String externalKey,
String email,
String name,
Integer firstNameLength,
Currency currency,
UUID parentAccountId,
Boolean isPaymentDelegatedToParent,
Integer billCycleDayLocal,
UUID paymentMethodId,
org.joda.time.DateTimeZone timeZone,
String locale,
String address1,
String address2,
String companyName,
String city,
String stateOrProvince,
String country,
String postalCode,
String phone,
String notes,
Boolean isMigrated,
Boolean isNotifiedForInvoices) |
DefaultAccount(UUID id,
String externalKey,
String email,
String name,
Integer firstNameLength,
Currency currency,
UUID parentAccountId,
Boolean isPaymentDelegatedToParent,
Integer billCycleDayLocal,
UUID paymentMethodId,
org.joda.time.DateTimeZone timeZone,
String locale,
String address1,
String address2,
String companyName,
String city,
String stateOrProvince,
String country,
String postalCode,
String phone,
String notes,
Boolean isMigrated,
Boolean isNotifiedForInvoices) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAddress1() |
String |
getAddress2() |
Integer |
getBillCycleDayLocal() |
String |
getCity() |
String |
getCompanyName() |
String |
getCountry() |
Currency |
getCurrency() |
String |
getEmail() |
String |
getExternalKey() |
Integer |
getFirstNameLength() |
org.joda.time.DateTimeZone |
getFixedOffsetTimeZone() |
String |
getLocale() |
String |
getName() |
String |
getNotes() |
UUID |
getParentAccountId() |
UUID |
getPaymentMethodId() |
String |
getPhone() |
String |
getPostalCode() |
org.joda.time.DateTime |
getReferenceTime() |
String |
getStateOrProvince() |
org.joda.time.DateTimeZone |
getTimeZone() |
int |
hashCode() |
Boolean |
isMigrated() |
Boolean |
isNotifiedForInvoices() |
Boolean |
isPaymentDelegatedToParent() |
Account |
mergeWithDelegate(Account currentAccount) |
ImmutableAccountData |
toImmutableAccountData() |
MutableAccountData |
toMutableAccountData() |
String |
toString() |
getCreatedDate, getId, getUpdatedDate, safeCompareTo, setCreatedDate, setId, setUpdatedDateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdgetCreatedDate, getId, getUpdatedDatepublic DefaultAccount(UUID id, AccountData data)
id - UUID id of the existing account to updatedata - AccountData new data for the existing accountpublic DefaultAccount(UUID id, String externalKey, String email, String name, Integer firstNameLength, Currency currency, UUID parentAccountId, Boolean isPaymentDelegatedToParent, Integer billCycleDayLocal, UUID paymentMethodId, org.joda.time.DateTimeZone timeZone, String locale, String address1, String address2, String companyName, String city, String stateOrProvince, String country, String postalCode, String phone, String notes, Boolean isMigrated, Boolean isNotifiedForInvoices)
public DefaultAccount(UUID id, @Nullable org.joda.time.DateTime createdDate, @Nullable org.joda.time.DateTime updatedDate, String externalKey, String email, String name, Integer firstNameLength, Currency currency, UUID parentAccountId, Boolean isPaymentDelegatedToParent, Integer billCycleDayLocal, UUID paymentMethodId, org.joda.time.DateTimeZone timeZone, String locale, String address1, String address2, String companyName, String city, String stateOrProvince, String country, String postalCode, String phone, String notes, Boolean isMigrated, Boolean isNotifiedForInvoices)
public DefaultAccount(AccountModelDao accountModelDao)
public String getExternalKey()
getExternalKey in interface AccountDatagetExternalKey in interface ImmutableAccountDatapublic String getName()
getName in interface AccountDatapublic String getEmail()
getEmail in interface AccountDatapublic Integer getFirstNameLength()
getFirstNameLength in interface AccountDatapublic Currency getCurrency()
getCurrency in interface AccountDatagetCurrency in interface ImmutableAccountDatapublic UUID getParentAccountId()
getParentAccountId in interface AccountDatagetParentAccountId in interface ImmutableAccountDatapublic Boolean isPaymentDelegatedToParent()
isPaymentDelegatedToParent in interface AccountDataisPaymentDelegatedToParent in interface ImmutableAccountDatapublic Integer getBillCycleDayLocal()
getBillCycleDayLocal in interface AccountDatapublic UUID getPaymentMethodId()
getPaymentMethodId in interface AccountDatapublic org.joda.time.DateTimeZone getTimeZone()
getTimeZone in interface AccountDatagetTimeZone in interface ImmutableAccountDatapublic String getLocale()
getLocale in interface AccountDatapublic String getAddress1()
getAddress1 in interface AccountDatapublic String getAddress2()
getAddress2 in interface AccountDatapublic String getCompanyName()
getCompanyName in interface AccountDatapublic String getCity()
getCity in interface AccountDatapublic String getStateOrProvince()
getStateOrProvince in interface AccountDatapublic String getPostalCode()
getPostalCode in interface AccountDatapublic String getCountry()
getCountry in interface AccountDatapublic Boolean isMigrated()
isMigrated in interface AccountDatapublic Boolean isNotifiedForInvoices()
isNotifiedForInvoices in interface AccountDatapublic String getPhone()
getPhone in interface AccountDatapublic String getNotes()
getNotes in interface AccountDatapublic MutableAccountData toMutableAccountData()
toMutableAccountData in interface Accountpublic Account mergeWithDelegate(Account currentAccount)
mergeWithDelegate in interface AccountcurrentAccount - existing account datapublic ImmutableAccountData toImmutableAccountData()
public org.joda.time.DateTimeZone getFixedOffsetTimeZone()
getFixedOffsetTimeZone in interface ImmutableAccountDatapublic org.joda.time.DateTime getReferenceTime()
getReferenceTime in interface ImmutableAccountDatapublic boolean equals(Object o)
equals in class EntityBasepublic int hashCode()
hashCode in class EntityBaseCopyright © 2010-2016. All Rights Reserved.