Class: Google::Apis::ContentV2_1::HolidaysHoliday
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::HolidaysHoliday
- 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
-
#country_code ⇒ String
The CLDR territory code of the country in which the holiday is available.
-
#date ⇒ String
Date of the holiday, in ISO 8601 format.
-
#delivery_guarantee_date ⇒ String
Date on which the order has to arrive at the customer's, in ISO 8601 format.
-
#delivery_guarantee_hour ⇒ Fixnum
Hour of the day in the delivery location's timezone on the guaranteed delivery date by which the order has to arrive at the customer's.
-
#id ⇒ String
Unique identifier for the holiday to be used when configuring holiday cutoffs.
-
#type ⇒ String
The holiday type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HolidaysHoliday
constructor
A new instance of HolidaysHoliday.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HolidaysHoliday
Returns a new instance of HolidaysHoliday.
5207 5208 5209 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5207 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country_code ⇒ String
The CLDR territory code of the country in which the holiday is available. For
example, "US", "DE", "GB". A holiday cutoff can only be configured in a
shipping settings service with matching delivery country. Always present.
Corresponds to the JSON property countryCode
5173 5174 5175 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5173 def country_code @country_code end |
#date ⇒ String
Date of the holiday, in ISO 8601 format. For example, "2016-12-25" for
Christmas 2016. Always present.
Corresponds to the JSON property date
5179 5180 5181 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5179 def date @date end |
#delivery_guarantee_date ⇒ String
Date on which the order has to arrive at the customer's, in ISO 8601 format.
For example, "2016-12-24" for 24th December 2016. Always present.
Corresponds to the JSON property deliveryGuaranteeDate
5185 5186 5187 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5185 def delivery_guarantee_date @delivery_guarantee_date end |
#delivery_guarantee_hour ⇒ Fixnum
Hour of the day in the delivery location's timezone on the guaranteed delivery
date by which the order has to arrive at the customer's. Possible values are:
0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Always present.
Corresponds to the JSON property deliveryGuaranteeHour
5192 5193 5194 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5192 def delivery_guarantee_hour @delivery_guarantee_hour end |
#id ⇒ String
Unique identifier for the holiday to be used when configuring holiday cutoffs.
Always present.
Corresponds to the JSON property id
5198 5199 5200 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5198 def id @id end |
#type ⇒ String
The holiday type. Always present. Acceptable values are: - "Christmas
" - "
Easter
" - "Father's Day
" - "Halloween
" - "Independence Day (USA)
" - "
Mother's Day
" - "Thanksgiving
" - "Valentine's Day
"
Corresponds to the JSON property type
5205 5206 5207 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5205 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5212 5213 5214 5215 5216 5217 5218 5219 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5212 def update!(**args) @country_code = args[:country_code] if args.key?(:country_code) @date = args[:date] if args.key?(:date) @delivery_guarantee_date = args[:delivery_guarantee_date] if args.key?(:delivery_guarantee_date) @delivery_guarantee_hour = args[:delivery_guarantee_hour] if args.key?(:delivery_guarantee_hour) @id = args[:id] if args.key?(:id) @type = args[:type] if args.key?(:type) end |