Class: Google::Apis::ContentV2_1::HolidayCutoff
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::HolidayCutoff
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#deadline_date ⇒ String
Date of the order deadline, in ISO 8601 format.
-
#deadline_hour ⇒ Fixnum
Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee.
-
#deadline_timezone ⇒ String
Timezone identifier for the deadline hour (for example, "Europe/Zurich").
-
#holiday_id ⇒ String
Unique identifier for the holiday.
-
#visible_from_date ⇒ String
Date on which the deadline will become visible to consumers in ISO 8601 format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HolidayCutoff
constructor
A new instance of HolidayCutoff.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HolidayCutoff
Returns a new instance of HolidayCutoff.
5150 5151 5152 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5150 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deadline_date ⇒ String
Date of the order deadline, in ISO 8601 format. For example, "2016-11-29" for
29th November 2016. Required.
Corresponds to the JSON property deadlineDate
5124 5125 5126 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5124 def deadline_date @deadline_date end |
#deadline_hour ⇒ Fixnum
Hour of the day on the deadline date until which the order has to be placed to
qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ...,
12 (noon), 13, ..., 23. Required.
Corresponds to the JSON property deadlineHour
5131 5132 5133 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5131 def deadline_hour @deadline_hour end |
#deadline_timezone ⇒ String
Timezone identifier for the deadline hour (for example, "Europe/Zurich"). List
of identifiers. Required.
Corresponds to the JSON property deadlineTimezone
5137 5138 5139 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5137 def deadline_timezone @deadline_timezone end |
#holiday_id ⇒ String
Unique identifier for the holiday. Required.
Corresponds to the JSON property holidayId
5142 5143 5144 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5142 def holiday_id @holiday_id end |
#visible_from_date ⇒ String
Date on which the deadline will become visible to consumers in ISO 8601 format.
For example, "2016-10-31" for 31st October 2016. Required.
Corresponds to the JSON property visibleFromDate
5148 5149 5150 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5148 def visible_from_date @visible_from_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5155 5156 5157 5158 5159 5160 5161 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5155 def update!(**args) @deadline_date = args[:deadline_date] if args.key?(:deadline_date) @deadline_hour = args[:deadline_hour] if args.key?(:deadline_hour) @deadline_timezone = args[:deadline_timezone] if args.key?(:deadline_timezone) @holiday_id = args[:holiday_id] if args.key?(:holiday_id) @visible_from_date = args[:visible_from_date] if args.key?(:visible_from_date) end |