Class: Google::Apis::MerchantapiReviewsV1beta::MerchantReview
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiReviewsV1beta::MerchantReview
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_reviews_v1beta/classes.rb,
lib/google/apis/merchantapi_reviews_v1beta/representations.rb,
lib/google/apis/merchantapi_reviews_v1beta/representations.rb
Overview
A review for a merchant. For more information, see Introduction to Merchant Review Feeds
Instance Attribute Summary collapse
-
#attributes ⇒ Google::Apis::MerchantapiReviewsV1beta::MerchantReviewAttributes
Attributes.
-
#custom_attributes ⇒ Array<Google::Apis::MerchantapiReviewsV1beta::CustomAttribute>
Required.
-
#data_source ⇒ String
Output only.
-
#merchant_review_id ⇒ String
Required.
-
#merchant_review_status ⇒ Google::Apis::MerchantapiReviewsV1beta::MerchantReviewStatus
The status of a merchant review, data validation issues, that is, information about a merchant review computed asynchronously.
-
#name ⇒ String
Identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MerchantReview
constructor
A new instance of MerchantReview.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MerchantReview
Returns a new instance of MerchantReview.
171 172 173 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 171 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Google::Apis::MerchantapiReviewsV1beta::MerchantReviewAttributes
Attributes.
Corresponds to the JSON property attributes
134 135 136 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 134 def attributes @attributes end |
#custom_attributes ⇒ Array<Google::Apis::MerchantapiReviewsV1beta::CustomAttribute>
Required. A list of custom (merchant-provided) attributes. It can also be used
for submitting any attribute of the data specification in its generic form (
for example, "name": "size type", "value": "regular"
). This is useful
for submitting attributes not explicitly exposed by the API, such as
experimental attributes. Maximum allowed number of characters for each custom
attribute is 10240 (represents sum of characters for name and value). Maximum
2500 custom attributes can be set per product, with total size of 102.4kB.
Underscores in custom attribute names are replaced by spaces upon insertion.
Corresponds to the JSON property customAttributes
146 147 148 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 146 def custom_attributes @custom_attributes end |
#data_source ⇒ String
Output only. The primary data source of the merchant review.
Corresponds to the JSON property dataSource
151 152 153 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 151 def data_source @data_source end |
#merchant_review_id ⇒ String
Required. The user provided merchant review ID to uniquely identify the
merchant review.
Corresponds to the JSON property merchantReviewId
157 158 159 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 157 def merchant_review_id @merchant_review_id end |
#merchant_review_status ⇒ Google::Apis::MerchantapiReviewsV1beta::MerchantReviewStatus
The status of a merchant review, data validation issues, that is, information
about a merchant review computed asynchronously.
Corresponds to the JSON property merchantReviewStatus
163 164 165 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 163 def merchant_review_status @merchant_review_status end |
#name ⇒ String
Identifier. The name of the merchant review. Format: "
merchantreview.name=
accounts/account
/merchantReviews/merchantReview
"
Corresponds to the JSON property name
169 170 171 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 169 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
176 177 178 179 180 181 182 183 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 176 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @data_source = args[:data_source] if args.key?(:data_source) @merchant_review_id = args[:merchant_review_id] if args.key?(:merchant_review_id) @merchant_review_status = args[:merchant_review_status] if args.key?(:merchant_review_status) @name = args[:name] if args.key?(:name) end |