Class: Google::Apis::AndroidpublisherV3::SubscriptionPurchaseLineItem

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

Item-level info for a subscription purchase.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubscriptionPurchaseLineItem

Returns a new instance of SubscriptionPurchaseLineItem.



3682
3683
3684
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3682

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

Instance Attribute Details

#auto_renewing_planGoogle::Apis::AndroidpublisherV3::AutoRenewingPlan

Information related to an auto renewing plan. Corresponds to the JSON property autoRenewingPlan



3659
3660
3661
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3659

def auto_renewing_plan
  @auto_renewing_plan
end

#expiry_timeString

Time at which the subscription expired or will expire unless the access is extended (ex. renews). Corresponds to the JSON property expiryTime

Returns:

  • (String)


3665
3666
3667
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3665

def expiry_time
  @expiry_time
end

#offer_detailsGoogle::Apis::AndroidpublisherV3::OfferDetails

Offer details information related to a purchase line item. Corresponds to the JSON property offerDetails



3670
3671
3672
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3670

def offer_details
  @offer_details
end

#prepaid_planGoogle::Apis::AndroidpublisherV3::PrepaidPlan

Information related to a prepaid plan. Corresponds to the JSON property prepaidPlan



3675
3676
3677
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3675

def prepaid_plan
  @prepaid_plan
end

#product_idString

The purchased product ID (for example, 'monthly001'). Corresponds to the JSON property productId

Returns:

  • (String)


3680
3681
3682
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3680

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3687
3688
3689
3690
3691
3692
3693
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3687

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