Skip to content

RHAPI_PurchasePrice

Summary

MembersDescriptions
struct FRHAPI_PurchasePriceThe purchase price of an Item.

struct FRHAPI_PurchasePrice

struct FRHAPI_PurchasePrice
: public FRHAPI_Model

The purchase price of an Item.

Summary

MembersDescriptions
public int32 PriceItemIdThe Item used as the currency for the purchase.
public int32 PriceThe price of the Item.
public int32 PriceCouponItemId_OptionalThe Item used as the coupon for the purchase.
public bool PriceCouponItemId_IsSettrue if PriceCouponItemId_Optional has been set to a value
public virtual bool FromJson(const TSharedPtr< FJsonValue > & JsonValue)Fills this object with data from the passed in JSON.
public virtual void WriteJson(TSharedRef< TJsonWriter<>> & Writer) constWrites the data from this object into the specified JSON Writer stream.
public inline int32 & GetPriceItemId()Gets the value of PriceItemId.
public inline const int32 & GetPriceItemId() constGets the value of PriceItemId.
public inline void SetPriceItemId(int32 NewValue)Sets the value of PriceItemId.
public inline bool IsPriceItemIdDefaultValue() constReturns true if PriceItemId matches the default value.
public inline void SetPriceItemIdToDefault()Sets the value of PriceItemId to its default
public inline int32 & GetPrice()Gets the value of Price.
public inline const int32 & GetPrice() constGets the value of Price.
public inline void SetPrice(int32 NewValue)Sets the value of Price.
public inline bool IsPriceDefaultValue() constReturns true if Price matches the default value.
public inline void SetPriceToDefault()Sets the value of Price to its default
public inline int32 & GetPriceCouponItemId()Gets the value of PriceCouponItemId_Optional, regardless of it having been set.
public inline const int32 & GetPriceCouponItemId() constGets the value of PriceCouponItemId_Optional, regardless of it having been set.
public inline const int32 & GetPriceCouponItemId(const int32 & DefaultValue) constGets the value of PriceCouponItemId_Optional, if it has been set, otherwise it returns DefaultValue.
public inline bool GetPriceCouponItemId(int32 & OutValue) constFills OutValue with the value of PriceCouponItemId_Optional and returns true if it has been set, otherwise returns false.
public inline int32 * GetPriceCouponItemIdOrNull()Returns a pointer to PriceCouponItemId_Optional, if it has been set, otherwise returns nullptr.
public inline const int32 * GetPriceCouponItemIdOrNull() constReturns a pointer to PriceCouponItemId_Optional, if it has been set, otherwise returns nullptr.
public inline void SetPriceCouponItemId(int32 NewValue)Sets the value of PriceCouponItemId_Optional and also sets PriceCouponItemId_IsSet to true.
public inline void ClearPriceCouponItemId()Clears the value of PriceCouponItemId_Optional and sets PriceCouponItemId_IsSet to false.
public inline bool IsPriceCouponItemIdDefaultValue() constReturns true if PriceCouponItemId_Optional is set and matches the default value.
public inline void SetPriceCouponItemIdToDefault()Sets the value of PriceCouponItemId_Optional to its default and also sets PriceCouponItemId_IsSet to true.

Members

public int32 PriceItemId

The Item used as the currency for the purchase.

public int32 Price

The price of the Item.

public int32 PriceCouponItemId_Optional

The Item used as the coupon for the purchase.

public bool PriceCouponItemId_IsSet

true if PriceCouponItemId_Optional has been set to a value

public virtual bool FromJson(const TSharedPtr< FJsonValue > & JsonValue)

Fills this object with data from the passed in JSON.

Parameters

  • JsonValue Data from the API call.

Returns

true if parsing of the JSON data was successful.

public virtual void WriteJson(TSharedRef< TJsonWriter<>> & Writer) const

Writes the data from this object into the specified JSON Writer stream.

Parameters

  • Writer JSON Writer stream to push .

public inline int32 & GetPriceItemId()

Gets the value of PriceItemId.

public inline const int32 & GetPriceItemId() const

Gets the value of PriceItemId.

public inline void SetPriceItemId(int32 NewValue)

Sets the value of PriceItemId.

public inline bool IsPriceItemIdDefaultValue() const

Returns true if PriceItemId matches the default value.

public inline void SetPriceItemIdToDefault()

Sets the value of PriceItemId to its default

public inline int32 & GetPrice()

Gets the value of Price.

public inline const int32 & GetPrice() const

Gets the value of Price.

public inline void SetPrice(int32 NewValue)

Sets the value of Price.

public inline bool IsPriceDefaultValue() const

Returns true if Price matches the default value.

public inline void SetPriceToDefault()

Sets the value of Price to its default

public inline int32 & GetPriceCouponItemId()

Gets the value of PriceCouponItemId_Optional, regardless of it having been set.

public inline const int32 & GetPriceCouponItemId() const

Gets the value of PriceCouponItemId_Optional, regardless of it having been set.

public inline const int32 & GetPriceCouponItemId(const int32 & DefaultValue) const

Gets the value of PriceCouponItemId_Optional, if it has been set, otherwise it returns DefaultValue.

public inline bool GetPriceCouponItemId(int32 & OutValue) const

Fills OutValue with the value of PriceCouponItemId_Optional and returns true if it has been set, otherwise returns false.

public inline int32 * GetPriceCouponItemIdOrNull()

Returns a pointer to PriceCouponItemId_Optional, if it has been set, otherwise returns nullptr.

public inline const int32 * GetPriceCouponItemIdOrNull() const

Returns a pointer to PriceCouponItemId_Optional, if it has been set, otherwise returns nullptr.

public inline void SetPriceCouponItemId(int32 NewValue)

Sets the value of PriceCouponItemId_Optional and also sets PriceCouponItemId_IsSet to true.

public inline void ClearPriceCouponItemId()

Clears the value of PriceCouponItemId_Optional and sets PriceCouponItemId_IsSet to false.

public inline bool IsPriceCouponItemIdDefaultValue() const

Returns true if PriceCouponItemId_Optional is set and matches the default value.

public inline void SetPriceCouponItemIdToDefault()

Sets the value of PriceCouponItemId_Optional to its default and also sets PriceCouponItemId_IsSet to true.