Class: Google::Apis::ContentV2_1::OrderTrackingSignalLineItemDetails
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderTrackingSignalLineItemDetails
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
The line items of the order.
Instance Attribute Summary collapse
-
#gtin ⇒ String
The Global Trade Item Number.
-
#line_item_id ⇒ String
Required.
-
#mpn ⇒ String
The manufacturer part number.
-
#product_id ⇒ String
Required.
-
#quantity ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderTrackingSignalLineItemDetails
constructor
A new instance of OrderTrackingSignalLineItemDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderTrackingSignalLineItemDetails
Returns a new instance of OrderTrackingSignalLineItemDetails.
6563 6564 6565 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6563 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gtin ⇒ String
The Global Trade Item Number.
Corresponds to the JSON property gtin
6540 6541 6542 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6540 def gtin @gtin end |
#line_item_id ⇒ String
Required. The ID for this line item.
Corresponds to the JSON property lineItemId
6545 6546 6547 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6545 def line_item_id @line_item_id end |
#mpn ⇒ String
The manufacturer part number.
Corresponds to the JSON property mpn
6550 6551 6552 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6550 def mpn @mpn end |
#product_id ⇒ String
Required. The Content API REST ID of the product, in the form channel:
contentLanguage:targetCountry:offerId.
Corresponds to the JSON property productId
6556 6557 6558 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6556 def product_id @product_id end |
#quantity ⇒ Fixnum
Required. The quantity of the line item in the order.
Corresponds to the JSON property quantity
6561 6562 6563 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6561 def quantity @quantity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6568 6569 6570 6571 6572 6573 6574 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6568 def update!(**args) @gtin = args[:gtin] if args.key?(:gtin) @line_item_id = args[:line_item_id] if args.key?(:line_item_id) @mpn = args[:mpn] if args.key?(:mpn) @product_id = args[:product_id] if args.key?(:product_id) @quantity = args[:quantity] if args.key?(:quantity) end |