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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.



1057
1058
1059
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1057

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

Instance Attribute Details

#amountGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount

Describes the amount unit including the currency code. Corresponds to the JSON property amount



993
994
995
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 993

def amount
  @amount
end

#bundle_detailsGoogle::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItemBundleDetails

The bundle details for a line item corresponding to a hard bundle. Corresponds to the JSON property bundleDetails



998
999
1000
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 998

def bundle_details
  @bundle_details
end

#descriptionString

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

Returns:

  • (String)


1003
1004
1005
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1003

def description
  @description
end

#finite_billing_cycle_detailsGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails

Details for a subscriptiin line item with finite billing cycles. Corresponds to the JSON property finiteBillingCycleDetails



1008
1009
1010
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1008

def finite_billing_cycle_details
  @finite_billing_cycle_details
end

#line_item_free_trial_end_timeString

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

Returns:

  • (String)


1016
1017
1018
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1016

def line_item_free_trial_end_time
  @line_item_free_trial_end_time
end

#line_item_indexFixnum

Output only. A unique index of the subscription line item. Corresponds to the JSON property lineItemIndex

Returns:

  • (Fixnum)


1021
1022
1023
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1021

def line_item_index
  @line_item_index
end

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

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



1029
1030
1031
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1029

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



1034
1035
1036
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1034

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)


1040
1041
1042
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1040

def product
  @product
end

#product_payloadGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPayload

Specifies product specific payload. Corresponds to the JSON property productPayload



1045
1046
1047
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1045

def product_payload
  @product_payload
end

#recurrence_typeString

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

Returns:

  • (String)


1050
1051
1052
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1050

def recurrence_type
  @recurrence_type
end

#stateString

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

Returns:

  • (String)


1055
1056
1057
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1055

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1062

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)
  @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