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_description ⇒ String
Plain text description of this product.
-
#product_id ⇒ String
Required.
-
#quantity ⇒ Fixnum
Required.
-
#sku ⇒ String
Merchant SKU for this item.
-
#upc ⇒ String
Universal product code for this item.
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.
6996 6997 6998 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6996 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gtin ⇒ String
The Global Trade Item Number.
Corresponds to the JSON property gtin
6958 6959 6960 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6958 def gtin @gtin end |
#line_item_id ⇒ String
Required. The ID for this line item.
Corresponds to the JSON property lineItemId
6963 6964 6965 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6963 def line_item_id @line_item_id end |
#mpn ⇒ String
The manufacturer part number.
Corresponds to the JSON property mpn
6968 6969 6970 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6968 def mpn @mpn end |
#product_description ⇒ String
Plain text description of this product.
Corresponds to the JSON property productDescription
6973 6974 6975 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6973 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
6979 6980 6981 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6979 def product_id @product_id end |
#quantity ⇒ Fixnum
Required. The quantity of the line item in the order.
Corresponds to the JSON property quantity
6984 6985 6986 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6984 def quantity @quantity end |
#sku ⇒ String
Merchant SKU for this item.
Corresponds to the JSON property sku
6989 6990 6991 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6989 def sku @sku end |
#upc ⇒ String
Universal product code for this item.
Corresponds to the JSON property upc
6994 6995 6996 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6994 def upc @upc end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 7001 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_description = args[:product_description] if args.key?(:product_description) @product_id = args[:product_id] if args.key?(:product_id) @quantity = args[:quantity] if args.key?(:quantity) @sku = args[:sku] if args.key?(:sku) @upc = args[:upc] if args.key?(:upc) end |