Class: Google::Apis::MerchantapiProductsV1beta::ProductStatus
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::ProductStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_products_v1beta/classes.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb
Overview
The status of a product, data validation issues, that is, information about a product computed asynchronously.
Instance Attribute Summary collapse
-
#creation_date ⇒ String
Date on which the item has been created, in ISO 8601 format.
-
#destination_statuses ⇒ Array<Google::Apis::MerchantapiProductsV1beta::DestinationStatus>
The intended destinations for the product.
-
#google_expiration_date ⇒ String
Date on which the item expires, in ISO 8601 format.
-
#item_level_issues ⇒ Array<Google::Apis::MerchantapiProductsV1beta::ItemLevelIssue>
A list of all issues associated with the product.
-
#last_update_date ⇒ String
Date on which the item has been last updated, in ISO 8601 format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductStatus
constructor
A new instance of ProductStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductStatus
Returns a new instance of ProductStatus.
1473 1474 1475 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1473 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_date ⇒ String
Date on which the item has been created, in ISO 8601 format.
Corresponds to the JSON property creationDate
1449 1450 1451 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1449 def creation_date @creation_date end |
#destination_statuses ⇒ Array<Google::Apis::MerchantapiProductsV1beta::DestinationStatus>
The intended destinations for the product.
Corresponds to the JSON property destinationStatuses
1454 1455 1456 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1454 def destination_statuses @destination_statuses end |
#google_expiration_date ⇒ String
Date on which the item expires, in ISO 8601 format.
Corresponds to the JSON property googleExpirationDate
1460 1461 1462 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1460 def google_expiration_date @google_expiration_date end |
#item_level_issues ⇒ Array<Google::Apis::MerchantapiProductsV1beta::ItemLevelIssue>
A list of all issues associated with the product.
Corresponds to the JSON property itemLevelIssues
1465 1466 1467 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1465 def item_level_issues @item_level_issues end |
#last_update_date ⇒ String
Date on which the item has been last updated, in ISO 8601 format.
Corresponds to the JSON property lastUpdateDate
1471 1472 1473 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1471 def last_update_date @last_update_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1478 1479 1480 1481 1482 1483 1484 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1478 def update!(**args) @creation_date = args[:creation_date] if args.key?(:creation_date) @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses) @google_expiration_date = args[:google_expiration_date] if args.key?(:google_expiration_date) @item_level_issues = args[:item_level_issues] if args.key?(:item_level_issues) @last_update_date = args[:last_update_date] if args.key?(:last_update_date) end |