Class: Google::Apis::AndroidpublisherV3::VoidedPurchase

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VoidedPurchase

Returns a new instance of VoidedPurchase.



2456
2457
2458
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2456

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

This kind represents a voided purchase object in the androidpublisher service. Corresponds to the JSON property kind

Returns:

  • (String)


2408
2409
2410
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2408

def kind
  @kind
end

#order_idString

The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal. Corresponds to the JSON property orderId

Returns:

  • (String)


2414
2415
2416
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2414

def order_id
  @order_id
end

#purchase_time_millisFixnum

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

Returns:

  • (Fixnum)


2420
2421
2422
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2420

def purchase_time_millis
  @purchase_time_millis
end

#purchase_tokenString

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

Returns:

  • (String)


2427
2428
2429
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2427

def purchase_token
  @purchase_token
end

#voided_reasonFixnum

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

Returns:

  • (Fixnum)


2440
2441
2442
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2440

def voided_reason
  @voided_reason
end

#voided_sourceFixnum

The initiator of voided purchase, possible values are:

  • User
  • Developer
  • Google Corresponds to the JSON property voidedSource

Returns:

  • (Fixnum)


2448
2449
2450
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2448

def voided_source
  @voided_source
end

#voided_time_millisFixnum

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

Returns:

  • (Fixnum)


2454
2455
2456
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2454

def voided_time_millis
  @voided_time_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2461
2462
2463
2464
2465
2466
2467
2468
2469
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2461

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