Class GoogleReceipt

Inheritance Relationships

Base Type

Class Documentation

class GoogleReceipt : public axr::sdk::ModelBase

Describes an in-app product purchase made with the Google Play store.

Public Types

enum Type

Values:

enumerator TYPE_PRODUCT
enumerator TYPE_SUBSCRIPTION

Public Functions

inline GoogleReceipt()
inline GoogleReceipt(const GoogleReceipt &value)
inline GoogleReceipt(GoogleReceipt &&value)
inline virtual ~GoogleReceipt()
inline virtual GoogleReceipt &SetProperties(const std::map<utility::string_t, Variant> &value) override

Sets the object’s underlying map of stored values.

inline virtual GoogleReceipt &SetProperties(std::map<utility::string_t, Variant> &&value) override

Sets the underlying map of stored values for the object.

inline virtual GoogleReceipt &SetProperty(const utility::char_t *name, const Variant &value) override

Sets the property of the given name to the provided value.

inline virtual GoogleReceipt &SetProperty(const utility::string_t &name, const Variant &value) override

Sets the property of the given name to the provided value.

inline virtual GoogleReceipt &SetRemoteUrl(const utility::string_t &url) override

Returns the URL of the remote server endpoint where the object is managed.

virtual void Validate() override
utility::string_t GetPackageName() const

Returns the unique name of the app or package involved in the purchase.

GoogleReceipt &SetPackageName(const utility::string_t &value)

Sets the unique name of the app or package involved in the purchase.

Parameters

value – The value to set.

utility::string_t GetProductId() const

Returns the unique identifier of the product that was purchased.

GoogleReceipt &SetProductId(const utility::string_t &value)

Sets the unique identifier of the product that was purchased.

Parameters

value – The value to set.

utility::string_t GetToken() const

Returns the unique name of the app or package involved in the purchase.

GoogleReceipt &SetToken(const utility::string_t &value)

Sets the unique name of the app or package involved in the purchase.

Parameters

value – The value to set.

Type GetType() const

Indicates whether the purchase is for a product or subscription.

GoogleReceipt &SetType(Type type)

Indicates whether the purchase is for a product or subscription.

Public Static Functions

static inline const utility::char_t *ClassName()

Returns the fully qualified name of the class.