Class: Google::Apis::AndroidpublisherV3::VoidedPurchase
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AndroidpublisherV3::VoidedPurchase
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/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_quantity  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The voided quantity as the result of a quantity-based partial refund.
 - 
  
    
      #voided_reason  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The reason why the purchase was voided, possible values are: 0.
 - 
  
    
      #voided_source  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The initiator of voided purchase, possible values are: 0.
 - 
  
    
      #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.
 
Constructor Details
#initialize(**args) ⇒ VoidedPurchase
Returns a new instance of VoidedPurchase.
      7449 7450 7451  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7449 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
      7402 7403 7404  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7402 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
      7408 7409 7410  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7408 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
      7414 7415 7416  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7414 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
      7421 7422 7423  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7421 def purchase_token @purchase_token end  | 
  
#voided_quantity ⇒ Fixnum
The voided quantity as the result of a quantity-based partial refund. Voided
purchases of quantity-based partial refunds may only be returned when
includeQuantityBasedPartialRefund is set to true.
Corresponds to the JSON property voidedQuantity
      7428 7429 7430  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7428 def voided_quantity @voided_quantity end  | 
  
#voided_reason ⇒ Fixnum
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 8. Unacknowledged_purchase
Corresponds to the JSON property voidedReason
      7435 7436 7437  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7435 def voided_reason @voided_reason end  | 
  
#voided_source ⇒ Fixnum
The initiator of voided purchase, possible values are: 0. User 1. Developer 2.
Google
Corresponds to the JSON property voidedSource
      7441 7442 7443  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7441 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
      7447 7448 7449  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7447 def voided_time_millis @voided_time_millis end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      7454 7455 7456 7457 7458 7459 7460 7461 7462 7463  | 
    
      # File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7454 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_quantity = args[:voided_quantity] if args.key?(:voided_quantity) @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  |