Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/paymentsresellersubscription_v1/classes.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb

Overview

Individual line item definition of a subscription. Next id: 9

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.



842
843
844
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 842

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

Instance Attribute Details

#descriptionString

Output only. Description of this line item. Corresponds to the JSON property description

Returns:

  • (String)


803
804
805
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 803

def description
  @description
end

#line_item_free_trial_end_timeString

Output only. It is set only if the line item has its own free trial applied. End time of the line item free trial period, in ISO 8061 format. For example, " 2019-08-31T17:28:54.564Z". It will be set the same as createTime if no free trial promotion is specified. Corresponds to the JSON property lineItemFreeTrialEndTime

Returns:

  • (String)


811
812
813
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 811

def line_item_free_trial_end_time
  @line_item_free_trial_end_time
end

#line_item_promotion_specsArray<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec>

Optional. The promotions applied on the line item. It can be: - a free trial promotion, which overrides the subscription-level free trial promotion. - an introductory pricing promotion. When used as input in Create or Provision API, specify its resource name only. Corresponds to the JSON property lineItemPromotionSpecs



819
820
821
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 819

def line_item_promotion_specs
  @line_item_promotion_specs
end

#one_time_recurrence_detailsGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails

Details for a ONE_TIME recurrence line item. Corresponds to the JSON property oneTimeRecurrenceDetails



824
825
826
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 824

def one_time_recurrence_details
  @one_time_recurrence_details
end

#productString

Required. Product resource name that identifies one the line item The format is 'partners/partner_id/products/product_id'. Corresponds to the JSON property product

Returns:

  • (String)


830
831
832
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 830

def product
  @product
end

#recurrence_typeString

Output only. The recurrence type of the line item. Corresponds to the JSON property recurrenceType

Returns:

  • (String)


835
836
837
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 835

def recurrence_type
  @recurrence_type
end

#stateString

Output only. The state of the line item. Corresponds to the JSON property state

Returns:

  • (String)


840
841
842
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 840

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



847
848
849
850
851
852
853
854
855
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 847

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @line_item_free_trial_end_time = args[:line_item_free_trial_end_time] if args.key?(:line_item_free_trial_end_time)
  @line_item_promotion_specs = args[:line_item_promotion_specs] if args.key?(:line_item_promotion_specs)
  @one_time_recurrence_details = args[:one_time_recurrence_details] if args.key?(:one_time_recurrence_details)
  @product = args[:product] if args.key?(:product)
  @recurrence_type = args[:recurrence_type] if args.key?(:recurrence_type)
  @state = args[:state] if args.key?(:state)
end