Class: Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem
- 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.
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::PaymentsresellersubscriptionV1::Amount
Describes the amount unit including the currency code.
-
#bundle_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItemBundleDetails
The bundle details for a line item corresponding to a hard bundle.
-
#description ⇒ String
Output only.
-
#finite_billing_cycle_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::FiniteBillingCycleDetails
Details for a subscriptiin line item with finite billing cycles.
-
#line_item_free_trial_end_time ⇒ String
Output only.
-
#line_item_index ⇒ Fixnum
Output only.
-
#line_item_promotion_specs ⇒ Array<Google::Apis::PaymentsresellersubscriptionV1::SubscriptionPromotionSpec>
Optional.
-
#name ⇒ String
Identifier.
-
#one_time_recurrence_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItemOneTimeRecurrenceDetails
Details for a ONE_TIME recurrence line item.
-
#product ⇒ String
Required.
-
#product_payload ⇒ Google::Apis::PaymentsresellersubscriptionV1::ProductPayload
Specifies product specific payload.
-
#recurrence_type ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubscriptionLineItem
constructor
A new instance of SubscriptionLineItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SubscriptionLineItem
Returns a new instance of SubscriptionLineItem.
1402 1403 1404 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1402 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::PaymentsresellersubscriptionV1::Amount
Describes the amount unit including the currency code.
Corresponds to the JSON property amount
1332 1333 1334 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1332 def amount @amount end |
#bundle_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItemBundleDetails
The bundle details for a line item corresponding to a hard bundle.
Corresponds to the JSON property bundleDetails
1337 1338 1339 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1337 def bundle_details @bundle_details end |
#description ⇒ String
Output only. Description of this line item.
Corresponds to the JSON property description
1342 1343 1344 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1342 def description @description end |
#finite_billing_cycle_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::FiniteBillingCycleDetails
Details for a subscriptiin line item with finite billing cycles.
Corresponds to the JSON property finiteBillingCycleDetails
1347 1348 1349 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1347 def finite_billing_cycle_details @finite_billing_cycle_details end |
#line_item_free_trial_end_time ⇒ String
Output only. The free trial end time will be populated after the line item is
successfully processed. 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
1355 1356 1357 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1355 def line_item_free_trial_end_time @line_item_free_trial_end_time end |
#line_item_index ⇒ Fixnum
Output only. A unique index of the subscription line item.
Corresponds to the JSON property lineItemIndex
1360 1361 1362 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1360 def line_item_index @line_item_index end |
#line_item_promotion_specs ⇒ Array<Google::Apis::PaymentsresellersubscriptionV1::SubscriptionPromotionSpec>
Optional. The promotions applied on the line item. It can be: - an
introductory pricing promotion. - a free trial promotion. This feature is not
enabled. If used, the request will be rejected. When used as input in Create
or Provision API, specify its resource name only.
Corresponds to the JSON property lineItemPromotionSpecs
1368 1369 1370 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1368 def line_item_promotion_specs @line_item_promotion_specs end |
#name ⇒ String
Identifier. Resource name of the line item. Format: partners/partner/
subscriptions/subscription/lineItems/lineItem
Corresponds to the JSON property name
1374 1375 1376 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1374 def name @name end |
#one_time_recurrence_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItemOneTimeRecurrenceDetails
Details for a ONE_TIME recurrence line item.
Corresponds to the JSON property oneTimeRecurrenceDetails
1379 1380 1381 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1379 def one_time_recurrence_details @one_time_recurrence_details 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
1385 1386 1387 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1385 def product @product end |
#product_payload ⇒ Google::Apis::PaymentsresellersubscriptionV1::ProductPayload
Specifies product specific payload.
Corresponds to the JSON property productPayload
1390 1391 1392 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1390 def product_payload @product_payload end |
#recurrence_type ⇒ String
Output only. The recurrence type of the line item.
Corresponds to the JSON property recurrenceType
1395 1396 1397 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1395 def recurrence_type @recurrence_type end |
#state ⇒ String
Output only. The state of the line item.
Corresponds to the JSON property state
1400 1401 1402 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1400 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1407 def update!(**args) @amount = args[:amount] if args.key?(:amount) @bundle_details = args[:bundle_details] if args.key?(:bundle_details) @description = args[:description] if args.key?(:description) @finite_billing_cycle_details = args[:finite_billing_cycle_details] if args.key?(:finite_billing_cycle_details) @line_item_free_trial_end_time = args[:line_item_free_trial_end_time] if args.key?(:line_item_free_trial_end_time) @line_item_index = args[:line_item_index] if args.key?(:line_item_index) @line_item_promotion_specs = args[:line_item_promotion_specs] if args.key?(:line_item_promotion_specs) @name = args[:name] if args.key?(:name) @one_time_recurrence_details = args[:one_time_recurrence_details] if args.key?(:one_time_recurrence_details) @product = args[:product] if args.key?(:product) @product_payload = args[:product_payload] if args.key?(:product_payload) @recurrence_type = args[:recurrence_type] if args.key?(:recurrence_type) @state = args[:state] if args.key?(:state) end |