Class: Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride

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) ⇒ ReturnPolicySeasonalOverride

Returns a new instance of ReturnPolicySeasonalOverride.



8807
8808
8809
# File 'generated/google/apis/content_v2_1/classes.rb', line 8807

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

Instance Attribute Details

#end_dateString

Last day on which the override applies. In ISO 8601 format. Corresponds to the JSON property endDate

Returns:

  • (String)


8790
8791
8792
# File 'generated/google/apis/content_v2_1/classes.rb', line 8790

def end_date
  @end_date
end

#nameString

The name of the seasonal override as shown in Merchant Center. Corresponds to the JSON property name

Returns:

  • (String)


8795
8796
8797
# File 'generated/google/apis/content_v2_1/classes.rb', line 8795

def name
  @name
end

#policyGoogle::Apis::ContentV2_1::ReturnPolicyPolicy

The policy which is in effect during that time. Corresponds to the JSON property policy



8800
8801
8802
# File 'generated/google/apis/content_v2_1/classes.rb', line 8800

def policy
  @policy
end

#start_dateString

First day on which the override applies. In ISO 8601 format. Corresponds to the JSON property startDate

Returns:

  • (String)


8805
8806
8807
# File 'generated/google/apis/content_v2_1/classes.rb', line 8805

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8812
8813
8814
8815
8816
8817
# File 'generated/google/apis/content_v2_1/classes.rb', line 8812

def update!(**args)
  @end_date = args[:end_date] if args.key?(:end_date)
  @name = args[:name] if args.key?(:name)
  @policy = args[:policy] if args.key?(:policy)
  @start_date = args[:start_date] if args.key?(:start_date)
end