Class: Google::Apis::ManufacturersV1::ProductCertification

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/manufacturers_v1/classes.rb,
lib/google/apis/manufacturers_v1/representations.rb,
lib/google/apis/manufacturers_v1/representations.rb

Overview

Product certification data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductCertification

Returns a new instance of ProductCertification.



1203
1204
1205
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1203

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

Instance Attribute Details

#brandString

Required. This is the product's brand name. The brand is used to help identify your product. Corresponds to the JSON property brand

Returns:

  • (String)


1149
1150
1151
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1149

def brand
  @brand
end

#certificationArray<Google::Apis::ManufacturersV1::Certification>

Required. A list of certifications to link to the described product. Corresponds to the JSON property certification



1154
1155
1156
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1154

def certification
  @certification
end

#country_codeArray<String>

Optional. A 2-letter country code (ISO 3166-1 Alpha 2). Corresponds to the JSON property countryCode

Returns:

  • (Array<String>)


1159
1160
1161
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1159

def country_code
  @country_code
end

#destination_statusesArray<Google::Apis::ManufacturersV1::DestinationStatus>

Output only. The statuses of the destinations. Corresponds to the JSON property destinationStatuses



1164
1165
1166
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1164

def destination_statuses
  @destination_statuses
end

#issuesArray<Google::Apis::ManufacturersV1::Issue>

Output only. A server-generated list of issues associated with the product. Corresponds to the JSON property issues



1169
1170
1171
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1169

def issues
  @issues
end

#mpnArray<String>

Optional. These are the Manufacturer Part Numbers (MPN). MPNs are used to uniquely identify a specific product among all products from the same manufacturer Corresponds to the JSON property mpn

Returns:

  • (Array<String>)


1176
1177
1178
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1176

def mpn
  @mpn
end

#nameString

Required. The unique name identifier of a product certification Format: accounts/account/languages/language_code/productCertifications/id Where id is a some unique identifier and language_code is a 2-letter ISO 639-1 code of a Shopping supported language according to https://support.google.com/ merchants/answer/160637. Corresponds to the JSON property name

Returns:

  • (String)


1185
1186
1187
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1185

def name
  @name
end

#product_codeArray<String>

Optional. Another name for GTIN. Corresponds to the JSON property productCode

Returns:

  • (Array<String>)


1190
1191
1192
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1190

def product_code
  @product_code
end

#product_typeArray<String>

Optional. These are your own product categorization system in your product data. Corresponds to the JSON property productType

Returns:

  • (Array<String>)


1196
1197
1198
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1196

def product_type
  @product_type
end

#titleString

Required. This is to clearly identify the product you are certifying. Corresponds to the JSON property title

Returns:

  • (String)


1201
1202
1203
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1201

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1208

def update!(**args)
  @brand = args[:brand] if args.key?(:brand)
  @certification = args[:certification] if args.key?(:certification)
  @country_code = args[:country_code] if args.key?(:country_code)
  @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses)
  @issues = args[:issues] if args.key?(:issues)
  @mpn = args[:mpn] if args.key?(:mpn)
  @name = args[:name] if args.key?(:name)
  @product_code = args[:product_code] if args.key?(:product_code)
  @product_type = args[:product_type] if args.key?(:product_type)
  @title = args[:title] if args.key?(:title)
end