Package org.killbill.billing.account.api
Class DefaultAccount
- java.lang.Object
-
- org.killbill.billing.entity.EntityBase
-
- org.killbill.billing.account.api.DefaultAccount
-
- All Implemented Interfaces:
Account
,AccountData
,ImmutableAccountData
,Blockable
,Entity
public class DefaultAccount extends EntityBase implements Account
-
-
Field Summary
-
Fields inherited from class org.killbill.billing.entity.EntityBase
createdDate, id, updatedDate
-
-
Constructor Summary
Constructors Constructor Description DefaultAccount(UUID id, String externalKey, String email, String name, Integer firstNameLength, Currency currency, UUID parentAccountId, Boolean isPaymentDelegatedToParent, Integer billCycleDayLocal, UUID paymentMethodId, org.joda.time.DateTime referenceTime, 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)
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.DateTime referenceTime, 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)
DefaultAccount(UUID id, AccountData data)
This call is used to update an existing accountDefaultAccount(AccountModelDao accountModelDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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
isPaymentDelegatedToParent()
Account
mergeWithDelegate(Account currentAccount)
Deprecated.MutableAccountData
toMutableAccountData()
String
toString()
void
validateAccountUpdateInput(Account currentAccount, boolean ignoreNullInput)
-
Methods inherited from class org.killbill.billing.entity.EntityBase
getCreatedDate, getId, getUpdatedDate, safeCompareTo, setCreatedDate, setId, setUpdatedDate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.killbill.billing.util.entity.Entity
getCreatedDate, getId, getUpdatedDate
-
Methods inherited from interface org.killbill.billing.account.api.ImmutableAccountData
getId
-
-
-
-
Constructor Detail
-
DefaultAccount
public DefaultAccount(UUID id, AccountData data)
This call is used to update an existing account- Parameters:
id
- UUID id of the existing account to updatedata
- AccountData new data for the existing account
-
DefaultAccount
public DefaultAccount(UUID id, String externalKey, String email, String name, Integer firstNameLength, Currency currency, UUID parentAccountId, Boolean isPaymentDelegatedToParent, Integer billCycleDayLocal, UUID paymentMethodId, org.joda.time.DateTime referenceTime, 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)
-
DefaultAccount
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.DateTime referenceTime, 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)
-
DefaultAccount
public DefaultAccount(AccountModelDao accountModelDao)
-
-
Method Detail
-
getExternalKey
public String getExternalKey()
- Specified by:
getExternalKey
in interfaceAccountData
- Specified by:
getExternalKey
in interfaceImmutableAccountData
-
getName
public String getName()
- Specified by:
getName
in interfaceAccountData
-
getEmail
public String getEmail()
- Specified by:
getEmail
in interfaceAccountData
-
getFirstNameLength
public Integer getFirstNameLength()
- Specified by:
getFirstNameLength
in interfaceAccountData
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrency
in interfaceAccountData
- Specified by:
getCurrency
in interfaceImmutableAccountData
-
getParentAccountId
public UUID getParentAccountId()
- Specified by:
getParentAccountId
in interfaceAccountData
-
isPaymentDelegatedToParent
public Boolean isPaymentDelegatedToParent()
- Specified by:
isPaymentDelegatedToParent
in interfaceAccountData
-
getBillCycleDayLocal
public Integer getBillCycleDayLocal()
- Specified by:
getBillCycleDayLocal
in interfaceAccountData
-
getPaymentMethodId
public UUID getPaymentMethodId()
- Specified by:
getPaymentMethodId
in interfaceAccountData
-
getTimeZone
public org.joda.time.DateTimeZone getTimeZone()
- Specified by:
getTimeZone
in interfaceAccountData
- Specified by:
getTimeZone
in interfaceImmutableAccountData
-
getLocale
public String getLocale()
- Specified by:
getLocale
in interfaceAccountData
-
getAddress1
public String getAddress1()
- Specified by:
getAddress1
in interfaceAccountData
-
getAddress2
public String getAddress2()
- Specified by:
getAddress2
in interfaceAccountData
-
getCompanyName
public String getCompanyName()
- Specified by:
getCompanyName
in interfaceAccountData
-
getCity
public String getCity()
- Specified by:
getCity
in interfaceAccountData
-
getStateOrProvince
public String getStateOrProvince()
- Specified by:
getStateOrProvince
in interfaceAccountData
-
getPostalCode
public String getPostalCode()
- Specified by:
getPostalCode
in interfaceAccountData
-
getCountry
public String getCountry()
- Specified by:
getCountry
in interfaceAccountData
-
isMigrated
public Boolean isMigrated()
- Specified by:
isMigrated
in interfaceAccountData
-
getPhone
public String getPhone()
- Specified by:
getPhone
in interfaceAccountData
-
getNotes
public String getNotes()
- Specified by:
getNotes
in interfaceAccountData
-
toMutableAccountData
public MutableAccountData toMutableAccountData()
- Specified by:
toMutableAccountData
in interfaceAccount
-
mergeWithDelegate
@Deprecated public Account mergeWithDelegate(Account currentAccount)
Deprecated.- Specified by:
mergeWithDelegate
in interfaceAccount
- Parameters:
currentAccount
- existing account data- Returns:
- merged account data
-
getFixedOffsetTimeZone
public org.joda.time.DateTimeZone getFixedOffsetTimeZone()
- Specified by:
getFixedOffsetTimeZone
in interfaceImmutableAccountData
-
getReferenceTime
public org.joda.time.DateTime getReferenceTime()
- Specified by:
getReferenceTime
in interfaceAccountData
- Specified by:
getReferenceTime
in interfaceImmutableAccountData
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classEntityBase
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classEntityBase
-
validateAccountUpdateInput
public void validateAccountUpdateInput(Account currentAccount, boolean ignoreNullInput)
-
-