The Account Info Data class.
More...
The Account Info Data class.
◆ AccessLevel
Enumerator |
---|
RW_ACCESS | |
RO_ACCESS | |
◆ AccountInfoData()
iberbox::AccountInfoData::AccountInfoData |
( |
| ) |
|
Constructs a new Account Info Data object.
◆ ~AccountInfoData()
virtual iberbox::AccountInfoData::~AccountInfoData |
( |
| ) |
|
|
virtual |
Destroys the Account Info Data object.
◆ getAccessLevel()
uint8_t iberbox::AccountInfoData::getAccessLevel |
( |
| ) |
const |
◆ getAmount()
int iberbox::AccountInfoData::getAmount |
( |
| ) |
const |
Gets the fee of the subscription for the current period.
- Returns
- The fee of the subscription.
◆ getBalance()
int iberbox::AccountInfoData::getBalance |
( |
| ) |
const |
Gets the balance of the account.
- Returns
- The account balance.
◆ getCreationTime()
uint64_t iberbox::AccountInfoData::getCreationTime |
( |
| ) |
const |
Gets the time when the account was created.
- Returns
- The time when the account was created.
◆ getCrypto()
unsigned iberbox::AccountInfoData::getCrypto |
( |
| ) |
const |
Gets the default cryto scheme.
◆ getDiscount()
int iberbox::AccountInfoData::getDiscount |
( |
| ) |
const |
Gets the discount price over the fee of the subscription for the current period.
- Returns
- The discount price.
◆ getFeatures()
uint32_t iberbox::AccountInfoData::getFeatures |
( |
| ) |
const |
Gets account features bitmap.
- Returns
- The account features bitmap.
◆ getHandle()
const AccountHandle& iberbox::AccountInfoData::getHandle |
( |
| ) |
const |
Gets the handle of the account.
- Returns
- The account handle.
◆ getId()
uint64_t iberbox::AccountInfoData::getId |
( |
| ) |
const |
Gets the identifier of the account.
- Returns
- The account identifier.
◆ getName()
std::string iberbox::AccountInfoData::getName |
( |
| ) |
const |
Gets the name of the account holder.
The invoicing name (full name or company name).
- Returns
- The name of the account holder.
◆ getNIF()
std::string iberbox::AccountInfoData::getNIF |
( |
| ) |
const |
Gets the NIF of the account.
- Returns
- The NIF of the account.
◆ getPeriod()
int iberbox::AccountInfoData::getPeriod |
( |
| ) |
const |
Gets the period of the account subscription.
The valid period values are described by the SubscriptionPeriod enum.
- Returns
- The period of the account subscription.
◆ getPlan()
std::string iberbox::AccountInfoData::getPlan |
( |
| ) |
const |
Gets the plan name.
- Returns
- The plan name.
◆ getReferrerCode()
std::string iberbox::AccountInfoData::getReferrerCode |
( |
| ) |
const |
Gets the referrer code.
- Returns
- The referrer code.
◆ getRenewTime()
uint64_t iberbox::AccountInfoData::getRenewTime |
( |
| ) |
const |
Gets the time when the account should be renewed.
- Returns
- The time when the account should be renewed.
◆ getStatusId()
uint64_t iberbox::AccountInfoData::getStatusId |
( |
| ) |
const |
Gets the status identifier of the account.
- Returns
- The status identifier of the account
◆ getStringHandle()
const std::string& iberbox::AccountInfoData::getStringHandle |
( |
| ) |
const |
Gets the string handle of the account.
- Returns
- The account string handle.
◆ getTotal()
int iberbox::AccountInfoData::getTotal |
( |
| ) |
const |
Gets the total price of the subscription for the current period.
The total price is worked out subtracting the discount from the amount.
- Returns
- The total price.
◆ getTotalStorage()
uint64_t iberbox::AccountInfoData::getTotalStorage |
( |
| ) |
const |
Gets the total storage of the account.
- Returns
- The total storage of the account.
◆ getType()
int iberbox::AccountInfoData::getType |
( |
| ) |
const |
Gets the type of the account.
- Returns
- The account type.
◆ getUpgrades()
int iberbox::AccountInfoData::getUpgrades |
( |
| ) |
const |
Gets the upgrades of the account.
- Returns
- The account upgrades.
◆ getUsedStorage()
uint64_t iberbox::AccountInfoData::getUsedStorage |
( |
| ) |
const |
Gets the used storage of the account.
- Returns
- The used storage of the account.
◆ hasCredit()
bool iberbox::AccountInfoData::hasCredit |
( |
| ) |
const |
Gets whether the account has credit or not.
- Todo:
- Returns
- true if the account has any credit left.
-
false if the account has run out of credit.
◆ hasPaymentMethod()
bool iberbox::AccountInfoData::hasPaymentMethod |
( |
| ) |
const |
Checks if the account has set up a payment method.
- Returns
- true if the account has set up a payment method.
-
false if the account has not set up a payment method.
◆ isReseller()
bool iberbox::AccountInfoData::isReseller |
( |
| ) |
const |
Gets whether the account corresponds to a reseller or not.
- Returns
- true if the account corresponds to a reseller.
-
false if the account does not correspond to a reseller.
◆ INVALID_HANDLE
◆ INVALID_ID
const uint64_t iberbox::AccountInfoData::INVALID_ID |
|
static |
The documentation for this class was generated from the following file: