13 #include "iberbox/config.h" 28 #include <scapix/bridge/object.h> 43 :
public scapix::bridge::object<AccountInfoData>
65 uint64_t
getId()
const;
152 std::string
getNIF()
const;
200 uint64_t mCreationTime;
201 uint64_t mTotalStorage;
202 uint64_t mUsedStorage;
208 int mHasPaymentMethod;
212 std::string mReferrerCode;
218 uint8_t mAccessLevel;
225 typedef std::shared_ptr<SessionInfoData>
SessionInfo;
231 :
public scapix::bridge::object<SessionInfoData>
238 uint64_t
getId()
const;
241 uint64_t getLastTime()
const;
242 std::string getIP()
const;
243 std::string getUserAgent()
const;
244 bool isActive()
const;
249 uint64_t mCreationTime;
252 std::string mUserAgent;
258 :
public scapix::bridge::object<BalanceInfoData>
272 int32_t
getId()
const;
275 std::string getSubject()
const;
280 int64_t mCreationTime;
282 std::string mSubject;
291 :
public scapix::bridge::object<BalancesInfoData>
299 BalanceInfoList getBalances()
const;
302 BalanceInfoList mBalances;
309 :
public scapix::bridge::object<CouponInfoData>
323 int32_t
getId()
const;
324 std::string getCode()
const;
326 std::string getEmail()
const;
328 int64_t getUsedTime()
const;
335 int64_t mCreationTime;
344 :
public scapix::bridge::object<PermissionInfoData>
351 uint64_t
getId()
const;
361 int64_t mCreationTime;
362 int32_t mAccessLevel;
370 :
public scapix::bridge::object<CommandLogData>
377 std::string getCommand()
const;
378 uint64_t
getId()
const;
380 uint64_t getParentId()
const;
382 std::string getIp()
const;
383 std::string getUserAgent()
const;
386 Node getNode()
const;
389 std::string mCommand;
392 std::string mUserAgent;
396 int64_t mCreationTime;
std::shared_ptr< CouponInfoDataList > CouponInfoList
Definition: account.h:340
bool hasCredit() const
Gets whether the account has credit or not.
uint8_t getAccessLevel() const
std::shared_ptr< BalancesInfoData > BalancesInfo
Definition: account.h:305
uint64_t getCreationTime() const
Gets the time when the account was created.
static const uint64_t INVALID_ID
Definition: account.h:192
virtual ~AccountInfoData()
Destroys the Account Info Data object.
CouponType
Definition: account.h:316
std::vector< BalanceInfo > BalanceInfoDataList
Definition: account.h:286
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::shared_ptr< CommandLogDataList > CommandLogList
Definition: account.h:400
std::vector< CouponInfo > CouponInfoDataList
Definition: account.h:339
The iberbox namespace.
Definition: task.h:21
std::vector< CommandLog > CommandLogDataList
Definition: account.h:399
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:224
Definition: account.h:307
int getTotal() const
Gets the total price of the subscription for the current period.
uint64_t NodeHandle
Definition: node.h:26
unsigned getCrypto() const
Gets the default cryto scheme.
std::shared_ptr< AccountInfoData > AccountInfo
Definition: account.h:221
uint64_t AccountHandle
Definition: node.h:27
std::shared_ptr< NodeData > Node
Definition: node.h:666
uint64_t PermissionHandle
Definition: account.h:22
std::shared_ptr< CommandLogData > CommandLog
Definition: account.h:398
uint64_t AccountHandle
Definition: account.h:21
Definition: account.h:289
Definition: account.h:342
std::shared_ptr< PermissionInfoDataList > PermissionInfoList
Definition: account.h:366
Definition: account.h:229
AccountInfoData()
Constructs a new Account Info Data object.
AccessLevel
Definition: account.h:47
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:364
Definition: account.h:256
int getBalance() const
Gets the balance of the account.
std::shared_ptr< CouponInfoData > CouponInfo
Definition: account.h:338
BalanceType
Definition: account.h:265
std::shared_ptr< SessionInfoDataList > SessionInfoList
Definition: account.h:227
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:287
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:41
static const AccountHandle INVALID_HANDLE
Definition: account.h:193
const std::string & getStringHandle() const
Gets the string handle of the account.
std::vector< PermissionInfo > PermissionInfoDataList
Definition: account.h:365
std::shared_ptr< BalanceInfoData > BalanceInfo
Definition: account.h:285
std::vector< SessionInfo > SessionInfoDataList
Definition: account.h:226
Definition: account.h:368
UserId UserHandle
Definition: user.h:34
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.