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.
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount
Describes the amount unit including the currency code.
-
#description ⇒ String
Output only.
-
#line_item_free_trial_end_time ⇒ String
Output only.
-
#line_item_index ⇒ Fixnum
Output only.
-
#line_item_promotion_specs ⇒ Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec>
Optional.
-
#one_time_recurrence_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
Details for a ONE_TIME recurrence line item.
-
#product ⇒ String
Required.
-
#product_payload ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
Specifies product specific payload.
-
#recurrence_type ⇒ String
Output only.
-
#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.
920 921 922 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 920 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount
Describes the amount unit including the currency code.
Corresponds to the JSON property amount
866 867 868 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 866 def amount @amount end |
#description ⇒ String
Output only. Description of this line item.
Corresponds to the JSON property description
871 872 873 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 871 def description @description 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
879 880 881 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 879 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
884 885 886 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 884 def line_item_index @line_item_index 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
892 893 894 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 892 def line_item_promotion_specs @line_item_promotion_specs end |
#one_time_recurrence_details ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
Details for a ONE_TIME recurrence line item.
Corresponds to the JSON property oneTimeRecurrenceDetails
897 898 899 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 897 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
903 904 905 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 903 def product @product end |
#product_payload ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
Specifies product specific payload.
Corresponds to the JSON property productPayload
908 909 910 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 908 def product_payload @product_payload end |
#recurrence_type ⇒ String
Output only. The recurrence type of the line item.
Corresponds to the JSON property recurrenceType
913 914 915 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 913 def recurrence_type @recurrence_type end |
#state ⇒ String
Output only. The state of the line item.
Corresponds to the JSON property state
918 919 920 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 918 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
925 926 927 928 929 930 931 932 933 934 935 936 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 925 def update!(**args) @amount = args[:amount] if args.key?(:amount) @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_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 |