Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails

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

The details of the line item to be entitled.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequestLineItemEntitlementDetails.



173
174
175
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 173

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

Instance Attribute Details

#line_item_indexFixnum

Required. The index of the line item to be entitled. Corresponds to the JSON property lineItemIndex

Returns:

  • (Fixnum)


163
164
165
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 163

def line_item_index
  @line_item_index
end

#productsArray<String>

Optional. Only applicable if the line item corresponds to a hard bundle. Product resource names that identify the bundle elements to be entitled in the line item. If unspecified, all bundle elements will be entitled. The format is 'partners/partner_id/products/product_id'. Corresponds to the JSON property products

Returns:

  • (Array<String>)


171
172
173
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 171

def products
  @products
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



178
179
180
181
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 178

def update!(**args)
  @line_item_index = args[:line_item_index] if args.key?(:line_item_index)
  @products = args[:products] if args.key?(:products)
end