class Google::Apis::ContentV2::OrderLineItemProduct

Attributes

brand[RW]

Brand of the item. Corresponds to the JSON property `brand` @return [String]

channel[RW]

The item's channel (online or local). Acceptable values are: - “`local`” - “` online`” Corresponds to the JSON property `channel` @return [String]

condition[RW]

Condition or state of the item. Acceptable values are: - “`new`” - “` refurbished`” - “`used`” Corresponds to the JSON property `condition` @return [String]

content_language[RW]

The two-letter ISO 639-1 language code for the item. Corresponds to the JSON property `contentLanguage` @return [String]

fees[RW]

Associated fees at order creation time. Corresponds to the JSON property `fees` @return [Array<Google::Apis::ContentV2::OrderLineItemProductFee>]

gtin[RW]

Global Trade Item Number (GTIN) of the item. Corresponds to the JSON property `gtin` @return [String]

id[RW]

The REST ID of the product. Corresponds to the JSON property `id` @return [String]

item_group_id[RW]

Shared identifier for all variants of the same product. Corresponds to the JSON property `itemGroupId` @return [String]

mpn[RW]

Manufacturer Part Number (MPN) of the item. Corresponds to the JSON property `mpn` @return [String]

offer_id[RW]

An identifier of the item. Corresponds to the JSON property `offerId` @return [String]

price[RW]

Price of the item. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2::Price]

shown_image[RW]

URL to the cached image shown to the user when order was placed. Corresponds to the JSON property `shownImage` @return [String]

target_country[RW]

The CLDR territory // code of the target country of the product. Corresponds to the JSON property `targetCountry` @return [String]

title[RW]

The title of the product. Corresponds to the JSON property `title` @return [String]

variant_attributes[RW]

Variant attributes for the item. These are dimensions of the product, such as color, gender, material, pattern, and size. You can find a comprehensive list of variant attributes here. Corresponds to the JSON property `variantAttributes` @return [Array<Google::Apis::ContentV2::OrderLineItemProductVariantAttribute>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 4883
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 4888
def update!(**args)
  @brand = args[:brand] if args.key?(:brand)
  @channel = args[:channel] if args.key?(:channel)
  @condition = args[:condition] if args.key?(:condition)
  @content_language = args[:content_language] if args.key?(:content_language)
  @fees = args[:fees] if args.key?(:fees)
  @gtin = args[:gtin] if args.key?(:gtin)
  @id = args[:id] if args.key?(:id)
  @image_link = args[:image_link] if args.key?(:image_link)
  @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
  @mpn = args[:mpn] if args.key?(:mpn)
  @offer_id = args[:offer_id] if args.key?(:offer_id)
  @price = args[:price] if args.key?(:price)
  @shown_image = args[:shown_image] if args.key?(:shown_image)
  @target_country = args[:target_country] if args.key?(:target_country)
  @title = args[:title] if args.key?(:title)
  @variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes)
end