Class: Google::Apis::AndroidpublisherV1_1::InappPurchase
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AndroidpublisherV1_1::InappPurchase
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/androidpublisher_v1_1/classes.rb,
generated/google/apis/androidpublisher_v1_1/representations.rb,
generated/google/apis/androidpublisher_v1_1/representations.rb 
Overview
An InappPurchase resource indicates the status of a user's inapp product purchase.
Instance Attribute Summary collapse
- 
  
    
      #consumption_state  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The consumption state of the inapp product.
 - 
  
    
      #developer_payload  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A developer-specified string that contains supplemental information about an order.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This kind represents an inappPurchase object in the androidpublisher service.
 - 
  
    
      #order_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The order id associated with the purchase of the inapp product.
 - 
  
    
      #purchase_state  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The purchase state of the order.
 - 
  
    
      #purchase_time  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
 - 
  
    
      #purchase_type  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of purchase of the inapp product.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ InappPurchase 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of InappPurchase.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InappPurchase
Returns a new instance of InappPurchase
      75 76 77  | 
    
      # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 75 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#consumption_state ⇒ Fixnum
The consumption state of the inapp product. Possible values are:
- Yet to be consumed
 - Consumed
Corresponds to the JSON property 
consumptionState 
      35 36 37  | 
    
      # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 35 def consumption_state @consumption_state end  | 
  
#developer_payload ⇒ String
A developer-specified string that contains supplemental information about an
order.
Corresponds to the JSON property developerPayload
      41 42 43  | 
    
      # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 41 def developer_payload @developer_payload end  | 
  
#kind ⇒ String
This kind represents an inappPurchase object in the androidpublisher service.
Corresponds to the JSON property kind
      46 47 48  | 
    
      # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 46 def kind @kind end  | 
  
#order_id ⇒ String
The order id associated with the purchase of the inapp product.
Corresponds to the JSON property orderId
      51 52 53  | 
    
      # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 51 def order_id @order_id end  | 
  
#purchase_state ⇒ Fixnum
The purchase state of the order. Possible values are:
- Purchased
 - Canceled
Corresponds to the JSON property 
purchaseState 
      58 59 60  | 
    
      # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 58 def purchase_state @purchase_state end  | 
  
#purchase_time ⇒ Fixnum
The time the product was purchased, in milliseconds since the epoch (Jan 1,
1970).
Corresponds to the JSON property purchaseTime
      64 65 66  | 
    
      # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 64 def purchase_time @purchase_time end  | 
  
#purchase_type ⇒ Fixnum
The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are:
- Test (i.e. purchased from a license testing account)
 - Promo (i.e. purchased using a promo code)
Corresponds to the JSON property 
purchaseType 
      73 74 75  | 
    
      # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 73 def purchase_type @purchase_type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      80 81 82 83 84 85 86 87 88  | 
    
      # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 80 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) @order_id = args[:order_id] if args.key?(:order_id) @purchase_state = args[:purchase_state] if args.key?(:purchase_state) @purchase_time = args[:purchase_time] if args.key?(:purchase_time) @purchase_type = args[:purchase_type] if args.key?(:purchase_type) end  |