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
-
#brand ⇒ String
Brand of the product.
-
#gtin ⇒ String
The Global Trade Item Number.
-
#line_item_id ⇒ String
Required.
-
#mpn ⇒ String
The manufacturer part number.
-
#product_description ⇒ String
Plain text description of this product (deprecated: Please use product_title instead).
-
#product_id ⇒ String
Required.
-
#product_title ⇒ String
Plain text title of this product.
-
#quantity ⇒ Fixnum
The quantity of the line item in the order.
-
#sku ⇒ String
Merchant SKU for this item (deprecated).
-
#upc ⇒ String
Universal product code for this item (deprecated: Please use GTIN instead).
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.
7302 7303 7304 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7302 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brand ⇒ String
Brand of the product.
Corresponds to the JSON property brand
7253 7254 7255 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7253 def brand @brand end |
#gtin ⇒ String
The Global Trade Item Number.
Corresponds to the JSON property gtin
7258 7259 7260 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7258 def gtin @gtin end |
#line_item_id ⇒ String
Required. The ID for this line item.
Corresponds to the JSON property lineItemId
7263 7264 7265 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7263 def line_item_id @line_item_id end |
#mpn ⇒ String
The manufacturer part number.
Corresponds to the JSON property mpn
7268 7269 7270 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7268 def mpn @mpn end |
#product_description ⇒ String
Plain text description of this product (deprecated: Please use product_title
instead).
Corresponds to the JSON property productDescription
7274 7275 7276 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7274 def product_description @product_description 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
7280 7281 7282 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7280 def product_id @product_id end |
#product_title ⇒ String
Plain text title of this product.
Corresponds to the JSON property productTitle
7285 7286 7287 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7285 def product_title @product_title end |
#quantity ⇒ Fixnum
The quantity of the line item in the order.
Corresponds to the JSON property quantity
7290 7291 7292 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7290 def quantity @quantity end |
#sku ⇒ String
Merchant SKU for this item (deprecated).
Corresponds to the JSON property sku
7295 7296 7297 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7295 def sku @sku end |
#upc ⇒ String
Universal product code for this item (deprecated: Please use GTIN instead).
Corresponds to the JSON property upc
7300 7301 7302 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7300 def upc @upc end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7307 def update!(**args) @brand = args[:brand] if args.key?(:brand) @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_description = args[:product_description] if args.key?(:product_description) @product_id = args[:product_id] if args.key?(:product_id) @product_title = args[:product_title] if args.key?(:product_title) @quantity = args[:quantity] if args.key?(:quantity) @sku = args[:sku] if args.key?(:sku) @upc = args[:upc] if args.key?(:upc) end |