class Google::Apis::ContentV2::TestOrderLineItemProduct

Attributes

brand[RW]

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

channel[RW]

Deprecated. Acceptable values are: - “`online`” Corresponds to the JSON property `channel` @return [String]

condition[RW]

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

content_language[RW]

Required. The two-letter ISO 639-1 language code for the item. Acceptable values are: - “`en`” - “`fr`” Corresponds to the JSON property `contentLanguage` @return [String]

fees[RW]

Fees for the item. Optional. Corresponds to the JSON property `fees` @return [Array<Google::Apis::ContentV2::OrderLineItemProductFee>]

gtin[RW]

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

item_group_id[RW]

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

mpn[RW]

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

offer_id[RW]

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

price[RW]

Required. The price for the product. Tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2::Price]

target_country[RW]

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

title[RW]

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

variant_attributes[RW]

Variant attributes for the item. Optional. 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 11221
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 11226
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)
  @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)
  @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