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.



1865
1866
1867
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1865

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)


1863
1864
1865
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1863

def cancellation_type
  @cancellation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1870
1871
1872
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1870

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