Class: Google::Apis::AndroidpublisherV3::VoidedPurchase
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::VoidedPurchase
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidpublisher_v3/classes.rb,
generated/google/apis/androidpublisher_v3/representations.rb,
generated/google/apis/androidpublisher_v3/representations.rb
Overview
A VoidedPurchase resource indicates a purchase that was either canceled/ refunded/charged-back.
Instance Attribute Summary collapse
-
#kind ⇒ String
This kind represents a voided purchase object in the androidpublisher service.
-
#order_id ⇒ String
The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal.
-
#purchase_time_millis ⇒ Fixnum
The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).
-
#purchase_token ⇒ String
The token which uniquely identifies a one-time purchase or subscription.
-
#voided_reason ⇒ Fixnum
The reason why the purchase was voided, possible values are: - Other - Remorse - Not_received - Defective - Accidental_purchase - Fraud - Friendly_fraud - Chargeback Corresponds to the JSON property
voidedReason
. -
#voided_source ⇒ Fixnum
The initiator of voided purchase, possible values are: - User - Developer - Google Corresponds to the JSON property
voidedSource
. -
#voided_time_millis ⇒ Fixnum
The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the epoch (Jan 1, 1970).
Instance Method Summary collapse
-
#initialize(**args) ⇒ VoidedPurchase
constructor
A new instance of VoidedPurchase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VoidedPurchase
Returns a new instance of VoidedPurchase.
2263 2264 2265 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2263 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
This kind represents a voided purchase object in the androidpublisher service.
Corresponds to the JSON property kind
2215 2216 2217 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2215 def kind @kind end |
#order_id ⇒ String
The order id which uniquely identifies a one-time purchase, subscription
purchase, or subscription renewal.
Corresponds to the JSON property orderId
2221 2222 2223 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2221 def order_id @order_id end |
#purchase_time_millis ⇒ Fixnum
The time at which the purchase was made, in milliseconds since the epoch (Jan
1, 1970).
Corresponds to the JSON property purchaseTimeMillis
2227 2228 2229 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2227 def purchase_time_millis @purchase_time_millis end |
#purchase_token ⇒ String
The token which uniquely identifies a one-time purchase or subscription. To
uniquely identify subscription renewals use order_id (available starting from
version 3 of the API).
Corresponds to the JSON property purchaseToken
2234 2235 2236 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2234 def purchase_token @purchase_token end |
#voided_reason ⇒ Fixnum
The reason why the purchase was voided, possible values are:
- Other
- Remorse
- Not_received
- Defective
- Accidental_purchase
- Fraud
- Friendly_fraud
- Chargeback
Corresponds to the JSON property
voidedReason
2247 2248 2249 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2247 def voided_reason @voided_reason end |
#voided_source ⇒ Fixnum
The initiator of voided purchase, possible values are:
- User
- Developer
- Google
Corresponds to the JSON property
voidedSource
2255 2256 2257 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2255 def voided_source @voided_source end |
#voided_time_millis ⇒ Fixnum
The time at which the purchase was canceled/refunded/charged-back, in
milliseconds since the epoch (Jan 1, 1970).
Corresponds to the JSON property voidedTimeMillis
2261 2262 2263 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2261 def voided_time_millis @voided_time_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2268 2269 2270 2271 2272 2273 2274 2275 2276 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2268 def update!(**args) @kind = args[:kind] if args.key?(:kind) @order_id = args[:order_id] if args.key?(:order_id) @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis) @purchase_token = args[:purchase_token] if args.key?(:purchase_token) @voided_reason = args[:voided_reason] if args.key?(:voided_reason) @voided_source = args[:voided_source] if args.key?(:voided_source) @voided_time_millis = args[:voided_time_millis] if args.key?(:voided_time_millis) end |