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

#include <Types.h>

Inheritance diagram for qevercloud::Accounting:
qevercloud::Printable

Public Member Functions

virtual void print (QTextStream &strm) const override
 
bool operator== (const Accounting &other) const
 
bool operator!= (const Accounting &other) const
 
- Public Member Functions inherited from qevercloud::Printable
 Printable ()=default
 
virtual ~Printable ()=default
 
virtual QString toString () const
 

Public Attributes

EverCloudLocalData localData
 
Optional< TimestampuploadLimitEnd
 
Optional< qint64 > uploadLimitNextMonth
 
Optional< PremiumOrderStatuspremiumServiceStatus
 
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< BusinessUserRolebusinessRole
 
Optional< qint32 > unitDiscount
 
Optional< TimestampnextChargeDate
 
Optional< qint32 > availablePoints
 

Detailed Description

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

Member Function Documentation

◆ operator!=()

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

◆ operator==()

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

◆ print()

virtual void qevercloud::Accounting::print ( QTextStream &  strm) const
overridevirtual

Implements qevercloud::Printable.

Member Data Documentation

◆ availablePoints

Optional< qint32 > qevercloud::Accounting::availablePoints

NOT DOCUMENTED

◆ businessId

Optional< qint32 > qevercloud::Accounting::businessId

DEPRECATED:See BusinessUserInfo.

◆ businessName

Optional< QString > qevercloud::Accounting::businessName

DEPRECATED:See BusinessUserInfo.

◆ businessRole

Optional< BusinessUserRole > qevercloud::Accounting::businessRole

DEPRECATED:See BusinessUserInfo.

◆ currency

Optional< QString > qevercloud::Accounting::currency

ISO 4217 currency code

◆ lastFailedCharge

Optional< Timestamp > qevercloud::Accounting::lastFailedCharge

Date the last time a charge was attempted and failed.

◆ lastFailedChargeReason

Optional< QString > qevercloud::Accounting::lastFailedChargeReason

Reason provided for the charge failure

◆ lastRequestedCharge

Optional< Timestamp > qevercloud::Accounting::lastRequestedCharge

Date charge last attempted

◆ lastSuccessfulCharge

Optional< Timestamp > qevercloud::Accounting::lastSuccessfulCharge

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

◆ localData

EverCloudLocalData qevercloud::Accounting::localData

See the declaration of EverCloudLocalData for details

◆ nextChargeDate

Optional< Timestamp > qevercloud::Accounting::nextChargeDate

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

◆ nextPaymentDue

Optional< Timestamp > qevercloud::Accounting::nextPaymentDue

The end of the billing cycle. This could be in the past if there are failed charges.

◆ premiumCommerceService

Optional< QString > qevercloud::Accounting::premiumCommerceService

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

◆ premiumLockUntil

Optional< Timestamp > qevercloud::Accounting::premiumLockUntil

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

◆ premiumOrderNumber

Optional< QString > qevercloud::Accounting::premiumOrderNumber

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

◆ premiumServiceSKU

Optional< QString > qevercloud::Accounting::premiumServiceSKU

The code associated with the purchase eg. monthly or annual purchase. Clients should interpret this value and localize it.

◆ premiumServiceStart

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).

◆ premiumServiceStatus

Optional< PremiumOrderStatus > qevercloud::Accounting::premiumServiceStatus

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

◆ premiumSubscriptionNumber

Optional< QString > qevercloud::Accounting::premiumSubscriptionNumber

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

◆ unitDiscount

Optional< qint32 > qevercloud::Accounting::unitDiscount

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

◆ unitPrice

Optional< qint32 > qevercloud::Accounting::unitPrice

charge in the smallest unit of the currency (e.g. cents for USD)

◆ updated

Optional< Timestamp > qevercloud::Accounting::updated

The date any modification where made to this record.

◆ uploadLimitEnd

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.

◆ uploadLimitNextMonth

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.