class Google::Apis::ContentV2::SetInventoryRequest

Attributes

availability[RW]

The availability of the product. Acceptable values are: - “`in stock`” - “`out of stock`” - “`preorder`” Corresponds to the JSON property `availability` @return [String]

custom_label0[RW]

Custom label 0 for custom grouping of items in a Shopping campaign. Only supported for online products. Corresponds to the JSON property `customLabel0` @return [String]

custom_label1[RW]

Custom label 1 for custom grouping of items in a Shopping campaign. Only supported for online products. Corresponds to the JSON property `customLabel1` @return [String]

custom_label2[RW]

Custom label 2 for custom grouping of items in a Shopping campaign. Only supported for online products. Corresponds to the JSON property `customLabel2` @return [String]

custom_label3[RW]

Custom label 3 for custom grouping of items in a Shopping campaign. Only supported for online products. Corresponds to the JSON property `customLabel3` @return [String]

custom_label4[RW]

Custom label 3 for custom grouping of items in a Shopping campaign. Only supported for online products. Corresponds to the JSON property `customLabel4` @return [String]

installment[RW]

Number and amount of installments to pay for an item. Brazil only. Corresponds to the JSON property `installment` @return [Google::Apis::ContentV2::Installment]

instore_product_location[RW]

The instore product location. Supported only for local products. Corresponds to the JSON property `instoreProductLocation` @return [String]

loyalty_points[RW]

Loyalty points that users receive after purchasing the item. Japan only. Corresponds to the JSON property `loyaltyPoints` @return [Google::Apis::ContentV2::LoyaltyPoints]

pickup[RW]

Store pickup information. Only supported for local inventory. Not setting ` pickup` means “don't update” while setting it to the empty value (““ in JSON) means “delete”. Otherwise, `pickupMethod` and `pickupSla` must be set together, unless `pickupMethod` is “not supported”. Corresponds to the JSON property `pickup` @return [Google::Apis::ContentV2::InventoryPickup]

price[RW]

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

quantity[RW]

The quantity of the product. Must be equal to or greater than zero. Supported only for local products. Corresponds to the JSON property `quantity` @return [Fixnum]

sale_price[RW]

The sale price of the product. Mandatory if `sale_price_effective_date` is defined. Corresponds to the JSON property `salePrice` @return [Google::Apis::ContentV2::Price]

sale_price_effective_date[RW]

A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates might be specified as 'null' if undecided. Corresponds to the JSON property `salePriceEffectiveDate` @return [String]

sell_on_google_quantity[RW]

The quantity of the product that is available for selling on Google. Supported only for online products. Corresponds to the JSON property `sellOnGoogleQuantity` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 3278
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 3283
def update!(**args)
  @availability = args[:availability] if args.key?(:availability)
  @custom_label0 = args[:custom_label0] if args.key?(:custom_label0)
  @custom_label1 = args[:custom_label1] if args.key?(:custom_label1)
  @custom_label2 = args[:custom_label2] if args.key?(:custom_label2)
  @custom_label3 = args[:custom_label3] if args.key?(:custom_label3)
  @custom_label4 = args[:custom_label4] if args.key?(:custom_label4)
  @installment = args[:installment] if args.key?(:installment)
  @instore_product_location = args[:instore_product_location] if args.key?(:instore_product_location)
  @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
  @pickup = args[:pickup] if args.key?(:pickup)
  @price = args[:price] if args.key?(:price)
  @quantity = args[:quantity] if args.key?(:quantity)
  @sale_price = args[:sale_price] if args.key?(:sale_price)
  @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
  @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
end