com.evernote.edam.type
Class Accounting

java.lang.Object
  extended by com.evernote.edam.type.Accounting
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Accounting>, org.apache.thrift.TBase<Accounting._Fields>

public class Accounting
extends java.lang.Object
implements org.apache.thrift.TBase<Accounting._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Accounting>

This represents the bookkeeping information for the user's subscription.

uploadLimit
The number of bytes that can be uploaded to the account in the current month. For new notes that are created, this is the length of the note content (in Unicode characters) plus the size of each resource (in bytes). For edited notes, this is the the difference between the old length and the new length (if this is greater than 0) plus the size of each new resource.
uploadLimitEnd
The date and time when the current upload limit expires. At this time, the monthly upload count reverts to 0 and a new limit is imposed. This date and time is exclusive, so this is effectively the start of the new month.
uploadLimitNextMonth
When uploadLimitEnd is research the service will change uploadLimit to uploadLimitNextMonth. If a premium account is canceled, this mechanism will reset the quota appropriately.
premiumServiceStatus
Indicates the phases of a premium account during the billing process.
premiumOrderNumber
The order number used by the commerce system to process recurring payments
premiumServiceStart
The start date when this premium promotion began (this number will get overwritten if a premium service is canceled and then re-activated).
premiumCommerceService
The commerce system used (paypal, Google checkout, etc)
premiumServiceSKU
The code associated with the purchase eg. monthly or annual purchase. Clients should interpret this value and localize it.
lastSuccessfulCharge
Date the last time the user was charged. Null if never charged.
lastFailedCharge
Date the last time a charge was attempted and failed.
lastFailedChargeReason
Reason provided for the charge failure
nextPaymentDue
The end of the billing cycle. This could be in the past if there are failed charges.
premiumLockUntil
An internal variable to manage locking operations on the commerce variables.
updated
The date any modification where made to this record.
premiumSubscriptionNumber
The number number identifying the recurring subscription used to make the recurring charges.

See Also:
Serialized Form

Nested Class Summary
static class Accounting._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<Accounting._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
Accounting()
           
Accounting(Accounting other)
          Performs a deep copy on other.
 
Method Summary
 Accounting clone()
          Deprecated. 
 int compareTo(Accounting other)
           
 Accounting deepCopy()
           
 boolean equals(Accounting that)
           
 boolean equals(java.lang.Object that)
           
 java.lang.Object getFieldValue(Accounting._Fields field)
           
 java.lang.Object getFieldValue(int fieldId)
           
 long getLastFailedCharge()
           
 java.lang.String getLastFailedChargeReason()
           
 long getLastRequestedCharge()
           
 long getLastSuccessfulCharge()
           
 long getNextPaymentDue()
           
 java.lang.String getPremiumCommerceService()
           
 long getPremiumLockUntil()
           
 java.lang.String getPremiumOrderNumber()
           
 java.lang.String getPremiumServiceSKU()
           
 long getPremiumServiceStart()
           
 PremiumOrderStatus getPremiumServiceStatus()
           
 java.lang.String getPremiumSubscriptionNumber()
           
 long getUpdated()
           
 long getUploadLimit()
           
 long getUploadLimitEnd()
           
 long getUploadLimitNextMonth()
           
 int hashCode()
           
 boolean isSet(Accounting._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSet(int fieldID)
           
 boolean isSetLastFailedCharge()
          Returns true if field lastFailedCharge is set (has been asigned a value) and false otherwise
 boolean isSetLastFailedChargeReason()
          Returns true if field lastFailedChargeReason is set (has been asigned a value) and false otherwise
 boolean isSetLastRequestedCharge()
          Returns true if field lastRequestedCharge is set (has been asigned a value) and false otherwise
 boolean isSetLastSuccessfulCharge()
          Returns true if field lastSuccessfulCharge is set (has been asigned a value) and false otherwise
 boolean isSetNextPaymentDue()
          Returns true if field nextPaymentDue is set (has been asigned a value) and false otherwise
 boolean isSetPremiumCommerceService()
          Returns true if field premiumCommerceService is set (has been asigned a value) and false otherwise
 boolean isSetPremiumLockUntil()
          Returns true if field premiumLockUntil is set (has been asigned a value) and false otherwise
 boolean isSetPremiumOrderNumber()
          Returns true if field premiumOrderNumber is set (has been asigned a value) and false otherwise
 boolean isSetPremiumServiceSKU()
          Returns true if field premiumServiceSKU is set (has been asigned a value) and false otherwise
 boolean isSetPremiumServiceStart()
          Returns true if field premiumServiceStart is set (has been asigned a value) and false otherwise
 boolean isSetPremiumServiceStatus()
          Returns true if field premiumServiceStatus is set (has been asigned a value) and false otherwise
 boolean isSetPremiumSubscriptionNumber()
          Returns true if field premiumSubscriptionNumber is set (has been asigned a value) and false otherwise
 boolean isSetUpdated()
          Returns true if field updated is set (has been asigned a value) and false otherwise
 boolean isSetUploadLimit()
          Returns true if field uploadLimit is set (has been asigned a value) and false otherwise
 boolean isSetUploadLimitEnd()
          Returns true if field uploadLimitEnd is set (has been asigned a value) and false otherwise
 boolean isSetUploadLimitNextMonth()
          Returns true if field uploadLimitNextMonth is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(Accounting._Fields field, java.lang.Object value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setLastFailedCharge(long lastFailedCharge)
           
 void setLastFailedChargeIsSet(boolean value)
           
 void setLastFailedChargeReason(java.lang.String lastFailedChargeReason)
           
 void setLastFailedChargeReasonIsSet(boolean value)
           
 void setLastRequestedCharge(long lastRequestedCharge)
           
 void setLastRequestedChargeIsSet(boolean value)
           
 void setLastSuccessfulCharge(long lastSuccessfulCharge)
           
 void setLastSuccessfulChargeIsSet(boolean value)
           
 void setNextPaymentDue(long nextPaymentDue)
           
 void setNextPaymentDueIsSet(boolean value)
           
 void setPremiumCommerceService(java.lang.String premiumCommerceService)
           
 void setPremiumCommerceServiceIsSet(boolean value)
           
 void setPremiumLockUntil(long premiumLockUntil)
           
 void setPremiumLockUntilIsSet(boolean value)
           
 void setPremiumOrderNumber(java.lang.String premiumOrderNumber)
           
 void setPremiumOrderNumberIsSet(boolean value)
           
 void setPremiumServiceSKU(java.lang.String premiumServiceSKU)
           
 void setPremiumServiceSKUIsSet(boolean value)
           
 void setPremiumServiceStart(long premiumServiceStart)
           
 void setPremiumServiceStartIsSet(boolean value)
           
 void setPremiumServiceStatus(PremiumOrderStatus premiumServiceStatus)
           
 void setPremiumServiceStatusIsSet(boolean value)
           
 void setPremiumSubscriptionNumber(java.lang.String premiumSubscriptionNumber)
           
 void setPremiumSubscriptionNumberIsSet(boolean value)
           
 void setUpdated(long updated)
           
 void setUpdatedIsSet(boolean value)
           
 void setUploadLimit(long uploadLimit)
           
 void setUploadLimitEnd(long uploadLimitEnd)
           
 void setUploadLimitEndIsSet(boolean value)
           
 void setUploadLimitIsSet(boolean value)
           
 void setUploadLimitNextMonth(long uploadLimitNextMonth)
           
 void setUploadLimitNextMonthIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetLastFailedCharge()
           
 void unsetLastFailedChargeReason()
           
 void unsetLastRequestedCharge()
           
 void unsetLastSuccessfulCharge()
           
 void unsetNextPaymentDue()
           
 void unsetPremiumCommerceService()
           
 void unsetPremiumLockUntil()
           
 void unsetPremiumOrderNumber()
           
 void unsetPremiumServiceSKU()
           
 void unsetPremiumServiceStart()
           
 void unsetPremiumServiceStatus()
           
 void unsetPremiumSubscriptionNumber()
           
 void unsetUpdated()
           
 void unsetUploadLimit()
           
 void unsetUploadLimitEnd()
           
 void unsetUploadLimitNextMonth()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final java.util.Map<Accounting._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Accounting

public Accounting()

Accounting

public Accounting(Accounting other)
Performs a deep copy on other.

Method Detail

deepCopy

public Accounting deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<Accounting._Fields>

clone

@Deprecated
public Accounting clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getUploadLimit

public long getUploadLimit()

setUploadLimit

public void setUploadLimit(long uploadLimit)

unsetUploadLimit

public void unsetUploadLimit()

isSetUploadLimit

public boolean isSetUploadLimit()
Returns true if field uploadLimit is set (has been asigned a value) and false otherwise


setUploadLimitIsSet

public void setUploadLimitIsSet(boolean value)

getUploadLimitEnd

public long getUploadLimitEnd()

setUploadLimitEnd

public void setUploadLimitEnd(long uploadLimitEnd)

unsetUploadLimitEnd

public void unsetUploadLimitEnd()

isSetUploadLimitEnd

public boolean isSetUploadLimitEnd()
Returns true if field uploadLimitEnd is set (has been asigned a value) and false otherwise


setUploadLimitEndIsSet

public void setUploadLimitEndIsSet(boolean value)

getUploadLimitNextMonth

public long getUploadLimitNextMonth()

setUploadLimitNextMonth

public void setUploadLimitNextMonth(long uploadLimitNextMonth)

unsetUploadLimitNextMonth

public void unsetUploadLimitNextMonth()

isSetUploadLimitNextMonth

public boolean isSetUploadLimitNextMonth()
Returns true if field uploadLimitNextMonth is set (has been asigned a value) and false otherwise


setUploadLimitNextMonthIsSet

public void setUploadLimitNextMonthIsSet(boolean value)

getPremiumServiceStatus

public PremiumOrderStatus getPremiumServiceStatus()
See Also:
PremiumOrderStatus

setPremiumServiceStatus

public void setPremiumServiceStatus(PremiumOrderStatus premiumServiceStatus)
See Also:
PremiumOrderStatus

unsetPremiumServiceStatus

public void unsetPremiumServiceStatus()

isSetPremiumServiceStatus

public boolean isSetPremiumServiceStatus()
Returns true if field premiumServiceStatus is set (has been asigned a value) and false otherwise


setPremiumServiceStatusIsSet

public void setPremiumServiceStatusIsSet(boolean value)

getPremiumOrderNumber

public java.lang.String getPremiumOrderNumber()

setPremiumOrderNumber

public void setPremiumOrderNumber(java.lang.String premiumOrderNumber)

unsetPremiumOrderNumber

public void unsetPremiumOrderNumber()

isSetPremiumOrderNumber

public boolean isSetPremiumOrderNumber()
Returns true if field premiumOrderNumber is set (has been asigned a value) and false otherwise


setPremiumOrderNumberIsSet

public void setPremiumOrderNumberIsSet(boolean value)

getPremiumCommerceService

public java.lang.String getPremiumCommerceService()

setPremiumCommerceService

public void setPremiumCommerceService(java.lang.String premiumCommerceService)

unsetPremiumCommerceService

public void unsetPremiumCommerceService()

isSetPremiumCommerceService

public boolean isSetPremiumCommerceService()
Returns true if field premiumCommerceService is set (has been asigned a value) and false otherwise


setPremiumCommerceServiceIsSet

public void setPremiumCommerceServiceIsSet(boolean value)

getPremiumServiceStart

public long getPremiumServiceStart()

setPremiumServiceStart

public void setPremiumServiceStart(long premiumServiceStart)

unsetPremiumServiceStart

public void unsetPremiumServiceStart()

isSetPremiumServiceStart

public boolean isSetPremiumServiceStart()
Returns true if field premiumServiceStart is set (has been asigned a value) and false otherwise


setPremiumServiceStartIsSet

public void setPremiumServiceStartIsSet(boolean value)

getPremiumServiceSKU

public java.lang.String getPremiumServiceSKU()

setPremiumServiceSKU

public void setPremiumServiceSKU(java.lang.String premiumServiceSKU)

unsetPremiumServiceSKU

public void unsetPremiumServiceSKU()

isSetPremiumServiceSKU

public boolean isSetPremiumServiceSKU()
Returns true if field premiumServiceSKU is set (has been asigned a value) and false otherwise


setPremiumServiceSKUIsSet

public void setPremiumServiceSKUIsSet(boolean value)

getLastSuccessfulCharge

public long getLastSuccessfulCharge()

setLastSuccessfulCharge

public void setLastSuccessfulCharge(long lastSuccessfulCharge)

unsetLastSuccessfulCharge

public void unsetLastSuccessfulCharge()

isSetLastSuccessfulCharge

public boolean isSetLastSuccessfulCharge()
Returns true if field lastSuccessfulCharge is set (has been asigned a value) and false otherwise


setLastSuccessfulChargeIsSet

public void setLastSuccessfulChargeIsSet(boolean value)

getLastFailedCharge

public long getLastFailedCharge()

setLastFailedCharge

public void setLastFailedCharge(long lastFailedCharge)

unsetLastFailedCharge

public void unsetLastFailedCharge()

isSetLastFailedCharge

public boolean isSetLastFailedCharge()
Returns true if field lastFailedCharge is set (has been asigned a value) and false otherwise


setLastFailedChargeIsSet

public void setLastFailedChargeIsSet(boolean value)

getLastFailedChargeReason

public java.lang.String getLastFailedChargeReason()

setLastFailedChargeReason

public void setLastFailedChargeReason(java.lang.String lastFailedChargeReason)

unsetLastFailedChargeReason

public void unsetLastFailedChargeReason()

isSetLastFailedChargeReason

public boolean isSetLastFailedChargeReason()
Returns true if field lastFailedChargeReason is set (has been asigned a value) and false otherwise


setLastFailedChargeReasonIsSet

public void setLastFailedChargeReasonIsSet(boolean value)

getNextPaymentDue

public long getNextPaymentDue()

setNextPaymentDue

public void setNextPaymentDue(long nextPaymentDue)

unsetNextPaymentDue

public void unsetNextPaymentDue()

isSetNextPaymentDue

public boolean isSetNextPaymentDue()
Returns true if field nextPaymentDue is set (has been asigned a value) and false otherwise


setNextPaymentDueIsSet

public void setNextPaymentDueIsSet(boolean value)

getPremiumLockUntil

public long getPremiumLockUntil()

setPremiumLockUntil

public void setPremiumLockUntil(long premiumLockUntil)

unsetPremiumLockUntil

public void unsetPremiumLockUntil()

isSetPremiumLockUntil

public boolean isSetPremiumLockUntil()
Returns true if field premiumLockUntil is set (has been asigned a value) and false otherwise


setPremiumLockUntilIsSet

public void setPremiumLockUntilIsSet(boolean value)

getUpdated

public long getUpdated()

setUpdated

public void setUpdated(long updated)

unsetUpdated

public void unsetUpdated()

isSetUpdated

public boolean isSetUpdated()
Returns true if field updated is set (has been asigned a value) and false otherwise


setUpdatedIsSet

public void setUpdatedIsSet(boolean value)

getPremiumSubscriptionNumber

public java.lang.String getPremiumSubscriptionNumber()

setPremiumSubscriptionNumber

public void setPremiumSubscriptionNumber(java.lang.String premiumSubscriptionNumber)

unsetPremiumSubscriptionNumber

public void unsetPremiumSubscriptionNumber()

isSetPremiumSubscriptionNumber

public boolean isSetPremiumSubscriptionNumber()
Returns true if field premiumSubscriptionNumber is set (has been asigned a value) and false otherwise


setPremiumSubscriptionNumberIsSet

public void setPremiumSubscriptionNumberIsSet(boolean value)

getLastRequestedCharge

public long getLastRequestedCharge()

setLastRequestedCharge

public void setLastRequestedCharge(long lastRequestedCharge)

unsetLastRequestedCharge

public void unsetLastRequestedCharge()

isSetLastRequestedCharge

public boolean isSetLastRequestedCharge()
Returns true if field lastRequestedCharge is set (has been asigned a value) and false otherwise


setLastRequestedChargeIsSet

public void setLastRequestedChargeIsSet(boolean value)

setFieldValue

public void setFieldValue(Accounting._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<Accounting._Fields>

setFieldValue

public void setFieldValue(int fieldID,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<Accounting._Fields>

getFieldValue

public java.lang.Object getFieldValue(Accounting._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<Accounting._Fields>

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<Accounting._Fields>

isSet

public boolean isSet(Accounting._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<Accounting._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<Accounting._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(Accounting that)

hashCode

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

compareTo

public int compareTo(Accounting other)
Specified by:
compareTo in interface java.lang.Comparable<Accounting>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<Accounting._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<Accounting._Fields>
Throws:
org.apache.thrift.TException

toString

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

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException