Class: Google::Apis::ContentV2_1::HolidayCutoff

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ HolidayCutoff

Returns a new instance of HolidayCutoff.



2614
2615
2616
# File 'generated/google/apis/content_v2_1/classes.rb', line 2614

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#deadline_dateString

Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required. Corresponds to the JSON property deadlineDate

Returns:

  • (String)


2588
2589
2590
# File 'generated/google/apis/content_v2_1/classes.rb', line 2588

def deadline_date
  @deadline_date
end

#deadline_hourFixnum

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

Returns:

  • (Fixnum)


2595
2596
2597
# File 'generated/google/apis/content_v2_1/classes.rb', line 2595

def deadline_hour
  @deadline_hour
end

#deadline_timezoneString

Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required. Corresponds to the JSON property deadlineTimezone

Returns:

  • (String)


2601
2602
2603
# File 'generated/google/apis/content_v2_1/classes.rb', line 2601

def deadline_timezone
  @deadline_timezone
end

#holiday_idString

Unique identifier for the holiday. Required. Corresponds to the JSON property holidayId

Returns:

  • (String)


2606
2607
2608
# File 'generated/google/apis/content_v2_1/classes.rb', line 2606

def holiday_id
  @holiday_id
end

#visible_from_dateString

Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required. Corresponds to the JSON property visibleFromDate

Returns:

  • (String)


2612
2613
2614
# File 'generated/google/apis/content_v2_1/classes.rb', line 2612

def visible_from_date
  @visible_from_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2619
2620
2621
2622
2623
2624
2625
# File 'generated/google/apis/content_v2_1/classes.rb', line 2619

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