Class: Google::Apis::ContentV2::HolidaysHoliday
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2::HolidaysHoliday
 
 
- Defined in:
 - generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/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.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ HolidaysHoliday
Returns a new instance of HolidaysHoliday
      2649 2650 2651  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 2649 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. 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
      2617 2618 2619  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 2617 def country_code @country_code end  | 
  
#date ⇒ String
Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for Christmas 2016.
Always present.
Corresponds to the JSON property date
      2623 2624 2625  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 2623 def date @date end  | 
  
#delivery_guarantee_date ⇒ String
Date on which the order has to arrive at the customer's, in ISO 8601 format. E.
g. "2016-12-24" for 24th December 2016. Always present.
Corresponds to the JSON property deliveryGuaranteeDate
      2629 2630 2631  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 2629 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
      2636 2637 2638  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 2636 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
      2642 2643 2644  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 2642 def id @id end  | 
  
#type ⇒ String
The holiday type. Always present.
Corresponds to the JSON property type
      2647 2648 2649  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 2647 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2654 2655 2656 2657 2658 2659 2660 2661  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 2654 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  |