Class: Google::Apis::AndroidpublisherV3::ItemExpiryTimeDetails

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

Expiry time details of a subscription item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ItemExpiryTimeDetails

Returns a new instance of ItemExpiryTimeDetails.



4480
4481
4482
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4480

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

Instance Attribute Details

#expiry_timeString

The new expiry time for this subscription item. Corresponds to the JSON property expiryTime

Returns:

  • (String)


4473
4474
4475
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4473

def expiry_time
  @expiry_time
end

#product_idString

The product ID of the subscription item (for example, 'premium_plan'). Corresponds to the JSON property productId

Returns:

  • (String)


4478
4479
4480
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4478

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4485
4486
4487
4488
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4485

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