Class: Google::Apis::ContentV2_1::PriceCompetitiveness

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

Price competitiveness fields requested by the merchant in the query. Field values are only set if the merchant queries PriceCompetitivenessProductView. https://support.google.com/merchants/answer/9626903

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PriceCompetitiveness

Returns a new instance of PriceCompetitiveness.



8531
8532
8533
# File 'lib/google/apis/content_v2_1/classes.rb', line 8531

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

Instance Attribute Details

#benchmark_price_currency_codeString

The price benchmark currency (ISO 4217 code). Corresponds to the JSON property benchmarkPriceCurrencyCode

Returns:

  • (String)


8518
8519
8520
# File 'lib/google/apis/content_v2_1/classes.rb', line 8518

def benchmark_price_currency_code
  @benchmark_price_currency_code
end

#benchmark_price_microsFixnum

The latest available price benchmark in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) for the product's catalog in the benchmark country. Corresponds to the JSON property benchmarkPriceMicros

Returns:

  • (Fixnum)


8524
8525
8526
# File 'lib/google/apis/content_v2_1/classes.rb', line 8524

def benchmark_price_micros
  @benchmark_price_micros
end

#country_codeString

The country of the price benchmark (ISO 3166 code). Corresponds to the JSON property countryCode

Returns:

  • (String)


8529
8530
8531
# File 'lib/google/apis/content_v2_1/classes.rb', line 8529

def country_code
  @country_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8536
8537
8538
8539
8540
# File 'lib/google/apis/content_v2_1/classes.rb', line 8536

def update!(**args)
  @benchmark_price_currency_code = args[:benchmark_price_currency_code] if args.key?(:benchmark_price_currency_code)
  @benchmark_price_micros = args[:benchmark_price_micros] if args.key?(:benchmark_price_micros)
  @country_code = args[:country_code] if args.key?(:country_code)
end