Class: Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride
- 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
-
#end_date ⇒ String
Last day on which the override applies.
-
#name ⇒ String
The name of the seasonal override as shown in Merchant Center.
-
#policy ⇒ Google::Apis::ContentV2_1::ReturnPolicyPolicy
The policy which is in effect during that time.
-
#start_date ⇒ String
First day on which the override applies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnPolicySeasonalOverride
constructor
A new instance of ReturnPolicySeasonalOverride.
-
#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) ⇒ ReturnPolicySeasonalOverride
Returns a new instance of ReturnPolicySeasonalOverride.
8861 8862 8863 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8861 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_date ⇒ String
Last day on which the override applies. In ISO 8601 format.
Corresponds to the JSON property endDate
8844 8845 8846 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8844 def end_date @end_date end |
#name ⇒ String
The name of the seasonal override as shown in Merchant Center.
Corresponds to the JSON property name
8849 8850 8851 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8849 def name @name end |
#policy ⇒ Google::Apis::ContentV2_1::ReturnPolicyPolicy
The policy which is in effect during that time.
Corresponds to the JSON property policy
8854 8855 8856 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8854 def policy @policy end |
#start_date ⇒ String
First day on which the override applies. In ISO 8601 format.
Corresponds to the JSON property startDate
8859 8860 8861 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8859 def start_date @start_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8866 8867 8868 8869 8870 8871 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8866 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 |