13 #include "iberbox/config.h" 25 #include <scapix/bridge/object.h> 40 :
public scapix::bridge::object<AccountInfoData>
62 uint64_t
getId()
const;
149 std::string
getNIF()
const;
197 uint64_t mCreationTime;
198 uint64_t mTotalStorage;
199 uint64_t mUsedStorage;
205 int mHasPaymentMethod;
209 std::string mReferrerCode;
215 uint8_t mAccessLevel;
222 typedef std::shared_ptr<SessionInfoData>
SessionInfo;
228 :
public scapix::bridge::object<SessionInfoData>
235 uint64_t
getId()
const;
238 uint64_t getLastTime()
const;
239 std::string getIP()
const;
240 std::string getUserAgent()
const;
241 bool isActive()
const;
246 uint64_t mCreationTime;
249 std::string mUserAgent;
255 :
public scapix::bridge::object<BalanceInfoData>
269 int32_t
getId()
const;
272 std::string getSubject()
const;
277 int64_t mCreationTime;
279 std::string mSubject;
288 :
public scapix::bridge::object<BalancesInfoData>
296 BalanceInfoList getBalances()
const;
299 BalanceInfoList mBalances;
306 :
public scapix::bridge::object<CouponInfoData>
320 int32_t
getId()
const;
321 std::string getCode()
const;
323 std::string getEmail()
const;
325 int64_t getUsedTime()
const;
332 int64_t mCreationTime;
341 :
public scapix::bridge::object<PermissionInfoData>
348 uint64_t
getId()
const;
358 int64_t mCreationTime;
359 int32_t mAccessLevel;
std::shared_ptr< CouponInfoDataList > CouponInfoList
Definition: account.h:337
bool hasCredit() const
Gets whether the account has credit or not.
uint8_t getAccessLevel() const
std::shared_ptr< BalancesInfoData > BalancesInfo
Definition: account.h:302
uint64_t getCreationTime() const
Gets the time when the account was created.
static const uint64_t INVALID_ID
Definition: account.h:189
virtual ~AccountInfoData()
Destroys the Account Info Data object.
CouponType
Definition: account.h:313
std::vector< BalanceInfo > BalanceInfoDataList
Definition: account.h:283
uint64_t getRenewTime() const
Gets the time when the account should be renewed.
uint64_t getStatusId() const
Gets the status identifier of the account.
std::vector< CouponInfo > CouponInfoDataList
Definition: account.h:336
The iberbox namespace.
Definition: task.h:21
bool isReseller() const
Gets whether the account corresponds to a reseller or not.
int getUpgrades() const
Gets the upgrades of the account.
std::string getPlan() const
Gets the plan name.
std::string getName() const
Gets the name of the account holder.
std::shared_ptr< SessionInfoData > SessionInfo
Definition: account.h:221
Definition: account.h:304
int getTotal() const
Gets the total price of the subscription for the current period.
unsigned getCrypto() const
Gets the default cryto scheme.
std::shared_ptr< AccountInfoData > AccountInfo
Definition: account.h:218
uint64_t PermissionHandle
Definition: account.h:21
uint64_t AccountHandle
Definition: account.h:20
Definition: account.h:286
Definition: account.h:339
std::shared_ptr< PermissionInfoDataList > PermissionInfoList
Definition: account.h:363
Definition: account.h:226
AccountInfoData()
Constructs a new Account Info Data object.
AccessLevel
Definition: account.h:44
uint64_t getTotalStorage() const
Gets the total storage of the account.
uint64_t getId() const
Gets the identifier of the account.
std::shared_ptr< PermissionInfoData > PermissionInfo
Definition: account.h:361
Definition: account.h:253
int getBalance() const
Gets the balance of the account.
std::shared_ptr< CouponInfoData > CouponInfo
Definition: account.h:335
BalanceType
Definition: account.h:262
std::shared_ptr< SessionInfoDataList > SessionInfoList
Definition: account.h:224
int getType() const
Gets the type of the account.
int getPeriod() const
Gets the period of the account subscription.
std::shared_ptr< BalanceInfoDataList > BalanceInfoList
Definition: account.h:284
std::string getReferrerCode() const
Gets the referrer code.
int getAmount() const
Gets the fee of the subscription for the current period.
std::string getNIF() const
Gets the NIF of the account.
const AccountHandle & getHandle() const
Gets the handle of the account.
The Account Info Data class.
Definition: account.h:38
static const AccountHandle INVALID_HANDLE
Definition: account.h:190
const std::string & getStringHandle() const
Gets the string handle of the account.
std::vector< PermissionInfo > PermissionInfoDataList
Definition: account.h:362
std::shared_ptr< BalanceInfoData > BalanceInfo
Definition: account.h:282
std::vector< SessionInfo > SessionInfoDataList
Definition: account.h:223
int getDiscount() const
Gets the discount price over the fee of the subscription for the current period.
uint32_t getFeatures() const
Gets account features bitmap.
bool hasPaymentMethod() const
Checks if the account has set up a payment method.
uint64_t getUsedStorage() const
Gets the used storage of the account.