Class TransactionRequest
Defined in File TransactionRequest.h
Page Contents
Inheritance Relationships
Base Type
public axr::sdk::EntityBase
(Class EntityBase)
Class Documentation
-
class TransactionRequest : public axr::sdk::EntityBase
Describes an transaction request.
Public Functions
-
inline TransactionRequest()
-
inline TransactionRequest(const TransactionRequest &value)
-
inline TransactionRequest(TransactionRequest &&value)
-
inline virtual ~TransactionRequest()
-
inline virtual TransactionRequest &SetProperties(const std::map<utility::string_t, Variant> &value) override
Sets the object’s underlying map of stored values.
-
inline virtual TransactionRequest &SetProperties(std::map<utility::string_t, Variant> &&value) override
Sets the underlying map of stored values for the object.
-
inline virtual TransactionRequest &SetProperty(const utility::char_t *name, const Variant &value) override
Sets the property of the given name to the provided value.
-
inline virtual TransactionRequest &SetProperty(const utility::string_t &name, const Variant &value) override
Sets the property of the given name to the provided value.
-
inline virtual TransactionRequest &SetRemoteUrl(const utility::string_t &url) override
Returns the URL of the remote server endpoint where the object is managed.
-
inline virtual TransactionRequest &SetUid(const utility::string_t &value) override
Sets the value of the Uid property.
- Parameters
value – The value to set.
-
inline virtual TransactionRequest &SetDateCreated(const datetime &value) override
Sets the value of the DateCreated property.
- Parameters
value – The value to set.
-
inline virtual TransactionRequest &SetDateModified(const datetime &value) override
Sets the value of the DateModified property.
- Parameters
value – The value to set.
-
inline virtual TransactionRequest &SetVersion(const uint64_t value) override
Sets the value of the Version property.
- Parameters
value – The value to set.
-
virtual void Validate() override
-
const Transaction::Type *GetType() const
Returns the current type of the transaction.
AWARD
orREMOVAL
can only be performed by a user with a trusted role.
-
TransactionRequest &SetType(const Transaction::Type *type)
Sets the current type of the transaction.
AWARD
orREMOVAL
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.
-
TransactionRequest &SetPersonaOneUid(const utility::string_t &value)
Sets the unique identifier of the user that this inventory belongs to.
- Parameters
value – The value to set.
-
utility::string_t GetPersonaTwoUid() const
Returns the unique identifier of the persona that this inventory belongs to. Empty for
TYPE_AWARD
orTYPE_REMOVAL
.
-
TransactionRequest &SetPersonaTwoUid(const utility::string_t &value)
Sets the unique identifier of the persona that this inventory belongs to. Leave empty for
TYPE_AWARD
orTYPE_REMOVAL
.- Parameters
value – The value to set.
-
std::vector<std::shared_ptr<InventoryItem>> GetPersonaOneInventoryItems() const
Returns the inventory items for persona one.
Sets the inventory items for persona one.
-
std::vector<std::shared_ptr<InventoryItem>> GetPersonaTwoInventoryItems() const
Returns the inventory items for persona two. Empty for
TYPE_AWARD
orTYPE_REMOVAL
.
Sets the inventory items for persona two. Empty for
TYPE_AWARD
orTYPE_REMOVAL
.
Public Static Functions
-
static inline const utility::char_t *ClassName()
Returns the fully qualified name of the class.
-
inline TransactionRequest()