class Google::Apis::AndroidpublisherV2::ProductPurchase
A ProductPurchase resource indicates the status of a user's inapp product purchase.
Attributes
The consumption state of the inapp product. Possible values are:
-
Yet to be consumed
-
Consumed
Corresponds to the JSON property `consumptionState` @return [Fixnum]
A developer-specified string that contains supplemental information about an order. Corresponds to the JSON property `developerPayload` @return [String]
This kind represents an inappPurchase object in the androidpublisher service. Corresponds to the JSON property `kind` @return [String]
The purchase state of the order. Possible values are:
-
Purchased
-
Cancelled
Corresponds to the JSON property `purchaseState` @return [Fixnum]
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970). Corresponds to the JSON property `purchaseTimeMillis` @return [String]
Public Class Methods
# File generated/google/apis/androidpublisher_v2/classes.rb, line 1120 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/androidpublisher_v2/classes.rb, line 1125 def update!(**args) @consumption_state = args[:consumption_state] if args.key?(:consumption_state) @developer_payload = args[:developer_payload] if args.key?(:developer_payload) @kind = args[:kind] if args.key?(:kind) @purchase_state = args[:purchase_state] if args.key?(:purchase_state) @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis) end