class Google::Apis::ContentV2::HolidaysHoliday

Attributes

country_code[RW]

The CLDR territory code of the country in which the holiday is available. E.g. “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` @return [String]

date[RW]

Date of the holiday, in ISO 8601 format. E.g. “2016-12-25” for Christmas 2016. Always present. Corresponds to the JSON property `date` @return [String]

delivery_guarantee_date[RW]

Date on which the order has to arrive at the customer's, in ISO 8601 format. E.

  1. “2016-12-24” for 24th December 2016. Always present.

Corresponds to the JSON property `deliveryGuaranteeDate` @return [String]

delivery_guarantee_hour[RW]

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` @return [Fixnum]

id[RW]

Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present. Corresponds to the JSON property `id` @return [String]

type[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 2869
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 2874
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