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.



6845
6846
6847
# File 'lib/google/apis/content_v2_1/classes.rb', line 6845

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

Instance Attribute Details

#gtinString

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

Returns:

  • (String)


6822
6823
6824
# File 'lib/google/apis/content_v2_1/classes.rb', line 6822

def gtin
  @gtin
end

#line_item_idString

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

Returns:

  • (String)


6827
6828
6829
# File 'lib/google/apis/content_v2_1/classes.rb', line 6827

def line_item_id
  @line_item_id
end

#mpnString

The manufacturer part number. Corresponds to the JSON property mpn

Returns:

  • (String)


6832
6833
6834
# File 'lib/google/apis/content_v2_1/classes.rb', line 6832

def mpn
  @mpn
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)


6838
6839
6840
# File 'lib/google/apis/content_v2_1/classes.rb', line 6838

def product_id
  @product_id
end

#quantityFixnum

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

Returns:

  • (Fixnum)


6843
6844
6845
# File 'lib/google/apis/content_v2_1/classes.rb', line 6843

def quantity
  @quantity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6850
6851
6852
6853
6854
6855
6856
# File 'lib/google/apis/content_v2_1/classes.rb', line 6850

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