Class Transaction
Defined in File Transaction.h
Page Contents
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public axr::sdk::EntityBase
(Class EntityBase)
Class Documentation
-
class Transaction : public axr::sdk::EntityBase
Describes an transaction request.
Public Functions
-
inline Transaction()
-
inline Transaction(const Transaction &value)
-
inline Transaction(Transaction &&value)
-
inline virtual ~Transaction()
-
inline virtual Transaction &SetProperties(const std::map<utility::string_t, Variant> &value) override
Sets the object’s underlying map of stored values.
-
inline virtual Transaction &SetProperties(std::map<utility::string_t, Variant> &&value) override
Sets the underlying map of stored values for the object.
-
inline virtual Transaction &SetProperty(const utility::char_t *name, const Variant &value) override
Sets the property of the given name to the provided value.
-
inline virtual Transaction &SetProperty(const utility::string_t &name, const Variant &value) override
Sets the property of the given name to the provided value.
-
inline virtual Transaction &SetRemoteUrl(const utility::string_t &url) override
Returns the URL of the remote server endpoint where the object is managed.
-
inline virtual Transaction &SetUid(const utility::string_t &value) override
Sets the value of the Uid property.
- Parameters
value – The value to set.
-
inline virtual Transaction &SetDateCreated(const datetime &value) override
Sets the value of the DateCreated property.
- Parameters
value – The value to set.
-
inline virtual Transaction &SetDateModified(const datetime &value) override
Sets the value of the DateModified property.
- Parameters
value – The value to set.
-
inline virtual Transaction &SetVersion(const uint64_t value) override
Sets the value of the Version property.
- Parameters
value – The value to set.
-
virtual void Validate() override
-
const Type *GetType() const
Returns the current type of the transaction.
TYPE_AWARD
orTYPE_REMOVAL
can only be performed by a user with a trusted role.
-
utility::string_t GetPersonaOneUid() const
Returns the unique identifier of the user that this inventory belongs to.
-
utility::string_t GetPersonaTwoUid() const
Returns the unique identifier of the persona that this inventory belongs to. Empty for
TYPE_AWARD
orTYPE_REMOVAL
.
-
std::vector<std::shared_ptr<InventoryItem>> GetPersonaOneInventoryItemsBefore() const
Returns snapshot of inventory items before transaction.
-
std::vector<std::shared_ptr<InventoryItem>> GetPersonaOneInventoryItemsAfter() const
Returns the snapshot of inventory items after transaction.
-
std::vector<std::shared_ptr<InventoryItem>> GetPersonaTwoInventoryItemsBefore() const
Returns the snapshot of inventory items before transaction. Empty if not a trade.
-
std::vector<std::shared_ptr<InventoryItem>> GetPersonaTwoInventoryItemsAfter() const
Returns the snapshot of inventory after transaction. Empty if not a trade.
Public Static Functions
-
static inline const utility::char_t *ClassName()
Returns the fully qualified name of the class.
-
class Status : public axr::sdk::StringEnum<Status>
-
class Type : public axr::sdk::StringEnum<Type>
-
inline Transaction()