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.



4499
4500
4501
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4499

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)


4492
4493
4494
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4492

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)


4497
4498
4499
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4497

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4504
4505
4506
4507
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4504

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