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

Constructor Details

#initialize(**args) ⇒ ReturnPolicySeasonalOverride

Returns a new instance of ReturnPolicySeasonalOverride.



11700
11701
11702
# File 'generated/google/apis/content_v2_1/classes.rb', line 11700

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

Instance Attribute Details

#end_dateString

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

Returns:

  • (String)


11683
11684
11685
# File 'generated/google/apis/content_v2_1/classes.rb', line 11683

def end_date
  @end_date
end

#nameString

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

Returns:

  • (String)


11688
11689
11690
# File 'generated/google/apis/content_v2_1/classes.rb', line 11688

def name
  @name
end

#policyGoogle::Apis::ContentV2_1::ReturnPolicyPolicy

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



11693
11694
11695
# File 'generated/google/apis/content_v2_1/classes.rb', line 11693

def policy
  @policy
end

#start_dateString

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

Returns:

  • (String)


11698
11699
11700
# File 'generated/google/apis/content_v2_1/classes.rb', line 11698

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11705
11706
11707
11708
11709
11710
# File 'generated/google/apis/content_v2_1/classes.rb', line 11705

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