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.
-
#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 that was generated when a purchase was made.
-
#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
2040 2041 2042 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2040 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
2020 2021 2022 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2020 def kind @kind 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
2026 2027 2028 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2026 def purchase_time_millis @purchase_time_millis end |
#purchase_token ⇒ String
The token that was generated when a purchase was made. This uniquely
identifies a purchase.
Corresponds to the JSON property purchaseToken
2032 2033 2034 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2032 def purchase_token @purchase_token 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
2038 2039 2040 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2038 def voided_time_millis @voided_time_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2045 2046 2047 2048 2049 2050 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2045 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 |