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.



4519
4520
4521
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4519

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)


4512
4513
4514
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4512

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)


4517
4518
4519
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4517

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4524
4525
4526
4527
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 4524

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