Class: Google::Apis::AndroidpublisherV3::CancellationContext

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

Cancellation context of the purchases.subscriptionsv2.cancel API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CancellationContext

Returns a new instance of CancellationContext.



1846
1847
1848
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1846

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

Instance Attribute Details

#cancellation_typeString

Required. The type of cancellation for the purchased subscription. Corresponds to the JSON property cancellationType

Returns:

  • (String)


1844
1845
1846
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1844

def cancellation_type
  @cancellation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1851
1852
1853
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1851

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