Class: Google::Apis::ContentV2_1::OrderTrackingSignalLineItemDetails

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderTrackingSignalLineItemDetails

Returns a new instance of OrderTrackingSignalLineItemDetails.



7311
7312
7313
# File 'lib/google/apis/content_v2_1/classes.rb', line 7311

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

Instance Attribute Details

#brandString

Brand of the product. Corresponds to the JSON property brand

Returns:

  • (String)


7262
7263
7264
# File 'lib/google/apis/content_v2_1/classes.rb', line 7262

def brand
  @brand
end

#gtinString

The Global Trade Item Number. Corresponds to the JSON property gtin

Returns:

  • (String)


7267
7268
7269
# File 'lib/google/apis/content_v2_1/classes.rb', line 7267

def gtin
  @gtin
end

#line_item_idString

Required. The ID for this line item. Corresponds to the JSON property lineItemId

Returns:

  • (String)


7272
7273
7274
# File 'lib/google/apis/content_v2_1/classes.rb', line 7272

def line_item_id
  @line_item_id
end

#mpnString

The manufacturer part number. Corresponds to the JSON property mpn

Returns:

  • (String)


7277
7278
7279
# File 'lib/google/apis/content_v2_1/classes.rb', line 7277

def mpn
  @mpn
end

#product_descriptionString

Plain text description of this product (deprecated: Please use product_title instead). Corresponds to the JSON property productDescription

Returns:

  • (String)


7283
7284
7285
# File 'lib/google/apis/content_v2_1/classes.rb', line 7283

def product_description
  @product_description
end

#product_idString

Required. The Content API REST ID of the product, in the form channel: contentLanguage:targetCountry:offerId. Corresponds to the JSON property productId

Returns:

  • (String)


7289
7290
7291
# File 'lib/google/apis/content_v2_1/classes.rb', line 7289

def product_id
  @product_id
end

#product_titleString

Plain text title of this product. Corresponds to the JSON property productTitle

Returns:

  • (String)


7294
7295
7296
# File 'lib/google/apis/content_v2_1/classes.rb', line 7294

def product_title
  @product_title
end

#quantityFixnum

The quantity of the line item in the order. Corresponds to the JSON property quantity

Returns:

  • (Fixnum)


7299
7300
7301
# File 'lib/google/apis/content_v2_1/classes.rb', line 7299

def quantity
  @quantity
end

#skuString

Merchant SKU for this item (deprecated). Corresponds to the JSON property sku

Returns:

  • (String)


7304
7305
7306
# File 'lib/google/apis/content_v2_1/classes.rb', line 7304

def sku
  @sku
end

#upcString

Universal product code for this item (deprecated: Please use GTIN instead). Corresponds to the JSON property upc

Returns:

  • (String)


7309
7310
7311
# File 'lib/google/apis/content_v2_1/classes.rb', line 7309

def upc
  @upc
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
# File 'lib/google/apis/content_v2_1/classes.rb', line 7316

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