Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem
- 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: 6
Instance Attribute Summary collapse
-
#description ⇒ String
Output only.
-
#line_item_free_trial_end_time ⇒ String
Output only.
-
#line_item_promotion_specs ⇒ Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec>
Optional.
-
#product ⇒ String
Required.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem
constructor
A new instance of GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem
Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.
724 725 726 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 724 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Output only. Description of this line item.
Corresponds to the JSON property description
695 696 697 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 695 def description @description end |
#line_item_free_trial_end_time ⇒ String
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
703 704 705 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 703 def line_item_free_trial_end_time @line_item_free_trial_end_time end |
#line_item_promotion_specs ⇒ Array<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
711 712 713 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 711 def line_item_promotion_specs @line_item_promotion_specs end |
#product ⇒ String
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
717 718 719 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 717 def product @product end |
#state ⇒ String
Output only. The state of the line item.
Corresponds to the JSON property state
722 723 724 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 722 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
729 730 731 732 733 734 735 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 729 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) @product = args[:product] if args.key?(:product) @state = args[:state] if args.key?(:state) end |