QEverCloud  3.0.0
Unofficial Evernote Cloud API for Qt
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
qevercloud::Accounting Struct Reference

#include <types.h>

Public Member Functions

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

Public Attributes

Optional< qint64 > uploadLimit
 
Optional< TimestampuploadLimitEnd
 
Optional< qint64 > uploadLimitNextMonth
 
Optional
< PremiumOrderStatus::type
premiumServiceStatus
 
Optional< QString > premiumOrderNumber
 
Optional< QString > premiumCommerceService
 
Optional< TimestamppremiumServiceStart
 
Optional< QString > premiumServiceSKU
 
Optional< TimestamplastSuccessfulCharge
 
Optional< TimestamplastFailedCharge
 
Optional< QString > lastFailedChargeReason
 
Optional< TimestampnextPaymentDue
 
Optional< TimestamppremiumLockUntil
 
Optional< Timestampupdated
 
Optional< QString > premiumSubscriptionNumber
 
Optional< TimestamplastRequestedCharge
 
Optional< QString > currency
 
Optional< qint32 > unitPrice
 
Optional< qint32 > businessId
 
Optional< QString > businessName
 
Optional< BusinessUserRole::typebusinessRole
 
Optional< qint32 > unitDiscount
 
Optional< TimestampnextChargeDate
 

Detailed Description

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

Member Function Documentation

bool qevercloud::Accounting::operator!= ( const Accounting other) const
inline
bool qevercloud::Accounting::operator== ( const Accounting other) const
inline

Member Data Documentation

Optional< qint32 > qevercloud::Accounting::businessId

DEPRECATED:See BusinessUserInfo.

Optional< QString > qevercloud::Accounting::businessName

DEPRECATED:See BusinessUserInfo.

Optional< BusinessUserRole::type > qevercloud::Accounting::businessRole

DEPRECATED:See BusinessUserInfo.

Optional< QString > qevercloud::Accounting::currency

ISO 4217 currency code

Optional< Timestamp > qevercloud::Accounting::lastFailedCharge

Date the last time a charge was attempted and failed.

Optional< QString > qevercloud::Accounting::lastFailedChargeReason

Reason provided for the charge failure

Optional< Timestamp > qevercloud::Accounting::lastRequestedCharge

Date charge last attempted

Optional< Timestamp > qevercloud::Accounting::lastSuccessfulCharge

Date the last time the user was charged. Null if never charged.

Optional< Timestamp > qevercloud::Accounting::nextChargeDate

The next time the user will be charged, may or may not be the same as nextPaymentDue

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::premiumCommerceService

The commerce system used (paypal, Google checkout, etc)

Optional< Timestamp > qevercloud::Accounting::premiumLockUntil

An internal variable to manage locking operations on the commerce variables.

Optional< QString > qevercloud::Accounting::premiumOrderNumber

The order number used by the commerce system to process recurring payments

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

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 > qevercloud::Accounting::premiumServiceStatus

Indicates the phases of a premium account during the billing process.

Optional< QString > qevercloud::Accounting::premiumSubscriptionNumber

The number number identifying the recurring subscription used to make the recurring charges.

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

The date any modification where made to this record.

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.