Class: Google::Apis::AndroidpublisherV2::ProductPurchase
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV2::ProductPurchase
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidpublisher_v2/classes.rb,
generated/google/apis/androidpublisher_v2/representations.rb,
generated/google/apis/androidpublisher_v2/representations.rb
Overview
A ProductPurchase 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_millis ⇒ 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) ⇒ ProductPurchase
constructor
A new instance of ProductPurchase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProductPurchase
Returns a new instance of ProductPurchase
1048 1049 1050 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1048 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
1008 1009 1010 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1008 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
1014 1015 1016 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1014 def developer_payload @developer_payload end |
#kind ⇒ String
This kind represents an inappPurchase object in the androidpublisher service.
Corresponds to the JSON property kind
1019 1020 1021 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1019 def kind @kind end |
#order_id ⇒ String
The order id associated with the purchase of the inapp product.
Corresponds to the JSON property orderId
1024 1025 1026 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1024 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
1031 1032 1033 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1031 def purchase_state @purchase_state end |
#purchase_time_millis ⇒ Fixnum
The time the product was purchased, in milliseconds since the epoch (Jan 1,
1970).
Corresponds to the JSON property purchaseTimeMillis
1037 1038 1039 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1037 def purchase_time_millis @purchase_time_millis 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
1046 1047 1048 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1046 def purchase_type @purchase_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1053 1054 1055 1056 1057 1058 1059 1060 1061 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1053 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_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis) @purchase_type = args[:purchase_type] if args.key?(:purchase_type) end |