Class: Google::Apis::AndroidpublisherV2::VoidedPurchase

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



1803
1804
1805
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1803

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)


1782
1783
1784
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1782

def kind
  @kind
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)


1788
1789
1790
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1788

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)


1795
1796
1797
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1795

def purchase_token
  @purchase_token
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)


1801
1802
1803
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1801

def voided_time_millis
  @voided_time_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1808
1809
1810
1811
1812
1813
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 1808

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
  @purchase_token = args[:purchase_token] if args.key?(:purchase_token)
  @voided_time_millis = args[:voided_time_millis] if args.key?(:voided_time_millis)
end