Class: Google::Apis::ManufacturersV1::ProductCertification
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::ProductCertification
- 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
-
#brand ⇒ String
Required.
-
#certification ⇒ Array<Google::Apis::ManufacturersV1::Certification>
Required.
-
#country_code ⇒ Array<String>
Optional.
-
#destination_statuses ⇒ Array<Google::Apis::ManufacturersV1::DestinationStatus>
Output only.
-
#issues ⇒ Array<Google::Apis::ManufacturersV1::Issue>
Output only.
-
#mpn ⇒ Array<String>
Optional.
-
#name ⇒ String
Required.
-
#product_code ⇒ Array<String>
Optional.
-
#product_type ⇒ Array<String>
Optional.
-
#title ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductCertification
constructor
A new instance of ProductCertification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductCertification
Returns a new instance of ProductCertification.
1210 1211 1212 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1210 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brand ⇒ String
Required. This is the product's brand name. The brand is used to help identify
your product.
Corresponds to the JSON property brand
1156 1157 1158 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1156 def brand @brand end |
#certification ⇒ Array<Google::Apis::ManufacturersV1::Certification>
Required. A list of certifications to link to the described product.
Corresponds to the JSON property certification
1161 1162 1163 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1161 def certification @certification end |
#country_code ⇒ Array<String>
Optional. A 2-letter country code (ISO 3166-1 Alpha 2).
Corresponds to the JSON property countryCode
1166 1167 1168 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1166 def country_code @country_code end |
#destination_statuses ⇒ Array<Google::Apis::ManufacturersV1::DestinationStatus>
Output only. The statuses of the destinations.
Corresponds to the JSON property destinationStatuses
1171 1172 1173 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1171 def destination_statuses @destination_statuses end |
#issues ⇒ Array<Google::Apis::ManufacturersV1::Issue>
Output only. A server-generated list of issues associated with the product.
Corresponds to the JSON property issues
1176 1177 1178 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1176 def issues @issues end |
#mpn ⇒ Array<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
1183 1184 1185 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1183 def mpn @mpn end |
#name ⇒ String
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
1192 1193 1194 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1192 def name @name end |
#product_code ⇒ Array<String>
Optional. Another name for GTIN.
Corresponds to the JSON property productCode
1197 1198 1199 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1197 def product_code @product_code end |
#product_type ⇒ Array<String>
Optional. These are your own product categorization system in your product
data.
Corresponds to the JSON property productType
1203 1204 1205 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1203 def product_type @product_type end |
#title ⇒ String
Required. This is to clearly identify the product you are certifying.
Corresponds to the JSON property title
1208 1209 1210 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1208 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1215 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 |