class Google::Apis::AndroidpublisherV3::VoidedPurchase

A VoidedPurchase resource indicates a purchase that was either canceled/ refunded/charged-back.

Attributes

kind[RW]

This kind represents a voided purchase object in the androidpublisher service. Corresponds to the JSON property `kind` @return [String]

order_id[RW]

The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal. Corresponds to the JSON property `orderId` @return [String]

purchase_time_millis[RW]

The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970). Corresponds to the JSON property `purchaseTimeMillis` @return [Fixnum]

purchase_token[RW]

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` @return [String]

voided_reason[RW]

The reason why the purchase was voided, possible values are: 0. Other 1. Remorse 2. Not_received 3. Defective 4. Accidental_purchase 5. Fraud 6. Friendly_fraud 7. Chargeback Corresponds to the JSON property `voidedReason` @return [Fixnum]

voided_source[RW]

The initiator of voided purchase, possible values are: 0. User 1. Developer 2. Google Corresponds to the JSON property `voidedSource` @return [Fixnum]

voided_time_millis[RW]

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` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/androidpublisher_v3/classes.rb, line 2218
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