QEverCloud
Unofficial Evernote Cloud API for Qt
Public Member Functions | Public Attributes | List of all members
qevercloud::Accounting Struct Reference

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

Public Member Functions

bool operator!= (const Accounting &other) const
 
bool operator== (const Accounting &other) const
 

Public Attributes

Optional< qint32 > businessId
 DEPRECATED:See BusinessUserInfo.
 
Optional< QString > businessName
 DEPRECATED:See BusinessUserInfo.
 
Optional< BusinessUserRole::type > businessRole
 DEPRECATED:See BusinessUserInfo.
 
Optional< QString > currency
 ISO 4217 currency code.
 
Optional< TimestamplastFailedCharge
 Date the last time a charge was attempted and failed.
 
Optional< QString > lastFailedChargeReason
 Reason provided for the charge failure.
 
Optional< TimestamplastRequestedCharge
 Date charge last attempted.
 
Optional< TimestamplastSuccessfulCharge
 Date the last time the user was charged. More...
 
Optional< TimestampnextChargeDate
 The next time the user will be charged, may or may not be the same as nextPaymentDue.
 
Optional< TimestampnextPaymentDue
 The end of the billing cycle. More...
 
Optional< QString > premiumCommerceService
 The commerce system used (paypal, Google checkout, etc)
 
Optional< TimestamppremiumLockUntil
 An internal variable to manage locking operations on the commerce variables.
 
Optional< QString > premiumOrderNumber
 The order number used by the commerce system to process recurring payments.
 
Optional< QString > premiumServiceSKU
 The code associated with the purchase eg. More...
 
Optional< TimestamppremiumServiceStart
 The start date when this premium promotion began (this number will get overwritten if a premium service is canceled and then re-activated).
 
Optional
< PremiumOrderStatus::type > 
premiumServiceStatus
 Indicates the phases of a premium account during the billing process.
 
Optional< QString > premiumSubscriptionNumber
 The number number identifying the recurring subscription used to make the recurring charges.
 
Optional< qint32 > unitDiscount
 discount per seat in negative amount and smallest unit of the currency (e.g. More...
 
Optional< qint32 > unitPrice
 charge in the smallest unit of the currency (e.g. More...
 
Optional< Timestampupdated
 The date any modification where made to this record.
 
Optional< qint64 > uploadLimit
 The number of bytes that can be uploaded to the account in the current month. More...
 
Optional< TimestampuploadLimitEnd
 The date and time when the current upload limit expires. More...
 
Optional< qint64 > uploadLimitNextMonth
 When uploadLimitEnd is reached, the service will change uploadLimit to uploadLimitNextMonth. More...
 

Detailed Description

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

Member Data Documentation

Optional< Timestamp > qevercloud::Accounting::lastSuccessfulCharge

Date the last time the user was charged.

Null if never charged.

Optional< Timestamp > qevercloud::Accounting::nextPaymentDue

The end of the billing cycle.

This could be in the past if there are failed charges.

Optional< QString > qevercloud::Accounting::premiumServiceSKU

The code associated with the purchase eg.

monthly or annual purchase. Clients should interpret this value and localize it.

Optional< qint32 > qevercloud::Accounting::unitDiscount

discount per seat in negative amount and smallest unit of the currency (e.g.

cents for USD)

Optional< qint32 > qevercloud::Accounting::unitPrice

charge in the smallest unit of the currency (e.g.

cents for USD)

Optional< qint64 > qevercloud::Accounting::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.

Optional< Timestamp > qevercloud::Accounting::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.

Optional< qint64 > qevercloud::Accounting::uploadLimitNextMonth

When uploadLimitEnd is reached, the service will change uploadLimit to uploadLimitNextMonth.

If a premium account is canceled, this mechanism will reset the quota appropriately.