Class: Google::Apis::MerchantapiPromotionsV1beta::PromotionStatus
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiPromotionsV1beta::PromotionStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_promotions_v1beta/classes.rb,
lib/google/apis/merchantapi_promotions_v1beta/representations.rb,
lib/google/apis/merchantapi_promotions_v1beta/representations.rb
Overview
The status of the promotion.
Instance Attribute Summary collapse
-
#creation_date ⇒ String
Output only.
-
#destination_statuses ⇒ Array<Google::Apis::MerchantapiPromotionsV1beta::DestinationStatus>
Output only.
-
#item_level_issues ⇒ Array<Google::Apis::MerchantapiPromotionsV1beta::ItemLevelIssue>
Output only.
-
#last_update_date ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PromotionStatus
constructor
A new instance of PromotionStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PromotionStatus
Returns a new instance of PromotionStatus.
781 782 783 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 781 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_date ⇒ String
Output only. Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example
2020-01-02T09:00:00+01:00
or 2020-01-02T09:00:00Z
Corresponds to the JSON property creationDate
762 763 764 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 762 def creation_date @creation_date end |
#destination_statuses ⇒ Array<Google::Apis::MerchantapiPromotionsV1beta::DestinationStatus>
Output only. The intended destinations for the promotion.
Corresponds to the JSON property destinationStatuses
767 768 769 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 767 def destination_statuses @destination_statuses end |
#item_level_issues ⇒ Array<Google::Apis::MerchantapiPromotionsV1beta::ItemLevelIssue>
Output only. A list of issues associated with the promotion.
Corresponds to the JSON property itemLevelIssues
772 773 774 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 772 def item_level_issues @item_level_issues end |
#last_update_date ⇒ String
Output only. Date on which the promotion status has been last updated in ISO
8601 format: Date, time, and offset,
for example 2020-01-02T09:00:00+01:00
or 2020-01-02T09:00:00Z
Corresponds to the JSON property lastUpdateDate
779 780 781 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 779 def last_update_date @last_update_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
786 787 788 789 790 791 |
# File 'lib/google/apis/merchantapi_promotions_v1beta/classes.rb', line 786 def update!(**args) @creation_date = args[:creation_date] if args.key?(:creation_date) @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses) @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 |