Class: Google::Apis::AndroidpublisherV3::ActivateSubscriptionOfferRequest

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

Request message for ActivateSubscriptionOffer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActivateSubscriptionOfferRequest

Returns a new instance of ActivateSubscriptionOfferRequest.



240
241
242
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 240

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

Instance Attribute Details

#base_plan_idString

Required. The parent base plan (ID) of the offer to activate. Corresponds to the JSON property basePlanId

Returns:

  • (String)


217
218
219
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 217

def base_plan_id
  @base_plan_id
end

#latency_toleranceString

Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. Corresponds to the JSON property latencyTolerance

Returns:

  • (String)


223
224
225
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 223

def latency_tolerance
  @latency_tolerance
end

#offer_idString

Required. The unique offer ID of the offer to activate. Corresponds to the JSON property offerId

Returns:

  • (String)


228
229
230
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 228

def offer_id
  @offer_id
end

#package_nameString

Required. The parent app (package name) of the offer to activate. Corresponds to the JSON property packageName

Returns:

  • (String)


233
234
235
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 233

def package_name
  @package_name
end

#product_idString

Required. The parent subscription (ID) of the offer to activate. Corresponds to the JSON property productId

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 238

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



245
246
247
248
249
250
251
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 245

def update!(**args)
  @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
  @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
  @offer_id = args[:offer_id] if args.key?(:offer_id)
  @package_name = args[:package_name] if args.key?(:package_name)
  @product_id = args[:product_id] if args.key?(:product_id)
end