Class: Google::Apis::AndroidpublisherV3::RevocationContext

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

Revocation context of the purchases.subscriptionsv2.revoke API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RevocationContext

Returns a new instance of RevocationContext.



5057
5058
5059
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5057

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

Instance Attribute Details

#full_refundGoogle::Apis::AndroidpublisherV3::RevocationContextFullRefund

Used to determine if the refund type in the RevocationContext is a full refund. Corresponds to the JSON property fullRefund



5049
5050
5051
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5049

def full_refund
  @full_refund
end

#prorated_refundGoogle::Apis::AndroidpublisherV3::RevocationContextProratedRefund

Used to determine if the refund type in the RevocationContext is a prorated refund. Corresponds to the JSON property proratedRefund



5055
5056
5057
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5055

def prorated_refund
  @prorated_refund
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5062
5063
5064
5065
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 5062

def update!(**args)
  @full_refund = args[:full_refund] if args.key?(:full_refund)
  @prorated_refund = args[:prorated_refund] if args.key?(:prorated_refund)
end