Class: Google::Apis::MerchantapiReportsV1beta::ProductStatusChangeMessage
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiReportsV1beta::ProductStatusChangeMessage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_reports_v1beta/classes.rb,
lib/google/apis/merchantapi_reports_v1beta/representations.rb,
lib/google/apis/merchantapi_reports_v1beta/representations.rb
Overview
The message that the merchant will receive to notify about product status change event
Instance Attribute Summary collapse
-
#account ⇒ String
The target account that owns the entity that changed.
-
#attribute ⇒ String
The attribute in the resource that changed, in this case it will be always
Status
. -
#changes ⇒ Array<Google::Apis::MerchantapiReportsV1beta::ProductChange>
A message to describe the change that happened to the product Corresponds to the JSON property
changes
. -
#expiration_time ⇒ String
The product expiration time.
-
#managing_account ⇒ String
The account that manages the merchant's account.
-
#resource ⇒ String
The product name.
-
#resource_id ⇒ String
The product id.
-
#resource_type ⇒ String
The resource that changed, in this case it will always be
Product
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductStatusChangeMessage
constructor
A new instance of ProductStatusChangeMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductStatusChangeMessage
Returns a new instance of ProductStatusChangeMessage.
1414 1415 1416 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1414 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account ⇒ String
The target account that owns the entity that changed. Format : accounts/
merchant_id`
Corresponds to the JSON property
account`
1373 1374 1375 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1373 def account @account end |
#attribute ⇒ String
The attribute in the resource that changed, in this case it will be always
Status
.
Corresponds to the JSON property attribute
1379 1380 1381 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1379 def attribute @attribute end |
#changes ⇒ Array<Google::Apis::MerchantapiReportsV1beta::ProductChange>
A message to describe the change that happened to the product
Corresponds to the JSON property changes
1384 1385 1386 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1384 def changes @changes end |
#expiration_time ⇒ String
The product expiration time. This field will not bet set if the notification
is sent for a product deletion event.
Corresponds to the JSON property expirationTime
1390 1391 1392 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1390 def expiration_time @expiration_time end |
#managing_account ⇒ String
The account that manages the merchant's account. can be the same as merchant
id if it is standalone account. Format : accounts/
service_provider_id`
Corresponds to the JSON property
managingAccount`
1396 1397 1398 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1396 def managing_account @managing_account end |
#resource ⇒ String
The product name. Format: product.name=accounts/`account`/products/`product
Corresponds to the JSON property
resource`
1402 1403 1404 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1402 def resource @resource end |
#resource_id ⇒ String
The product id.
Corresponds to the JSON property resourceId
1407 1408 1409 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1407 def resource_id @resource_id end |
#resource_type ⇒ String
The resource that changed, in this case it will always be Product
.
Corresponds to the JSON property resourceType
1412 1413 1414 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1412 def resource_type @resource_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1419 def update!(**args) @account = args[:account] if args.key?(:account) @attribute = args[:attribute] if args.key?(:attribute) @changes = args[:changes] if args.key?(:changes) @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @managing_account = args[:managing_account] if args.key?(:managing_account) @resource = args[:resource] if args.key?(:resource) @resource_id = args[:resource_id] if args.key?(:resource_id) @resource_type = args[:resource_type] if args.key?(:resource_type) end |