class Google::Apis::AndroidpublisherV2::ProductPurchase

A ProductPurchase resource indicates the status of a user's inapp product purchase.

Attributes

consumption_state[RW]

The consumption state of the inapp product. Possible values are:

  • Yet to be consumed

  • Consumed

Corresponds to the JSON property `consumptionState` @return [Fixnum]

developer_payload[RW]

A developer-specified string that contains supplemental information about an order. Corresponds to the JSON property `developerPayload` @return [String]

kind[RW]

This kind represents an inappPurchase object in the androidpublisher service. Corresponds to the JSON property `kind` @return [String]

purchase_state[RW]

The purchase state of the order. Possible values are:

  • Purchased

  • Cancelled

Corresponds to the JSON property `purchaseState` @return [Fixnum]

purchase_time_millis[RW]

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

new(**args) click to toggle source
# File generated/google/apis/androidpublisher_v2/classes.rb, line 1120
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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