Class: Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#end_date ⇒ String
Required.
-
#name ⇒ String
Required.
-
#policy ⇒ Google::Apis::ContentV2_1::ReturnPolicyPolicy
Required.
-
#start_date ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnPolicySeasonalOverride
constructor
A new instance of ReturnPolicySeasonalOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReturnPolicySeasonalOverride
Returns a new instance of ReturnPolicySeasonalOverride.
12745 12746 12747 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12745 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_date ⇒ String
Required. Last day on which the override applies. In ISO 8601 format.
Corresponds to the JSON property endDate
12728 12729 12730 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12728 def end_date @end_date end |
#name ⇒ String
Required. The name of the seasonal override as shown in Merchant Center.
Corresponds to the JSON property name
12733 12734 12735 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12733 def name @name end |
#policy ⇒ Google::Apis::ContentV2_1::ReturnPolicyPolicy
Required. The policy which is in effect during that time.
Corresponds to the JSON property policy
12738 12739 12740 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12738 def policy @policy end |
#start_date ⇒ String
Required. First day on which the override applies. In ISO 8601 format.
Corresponds to the JSON property startDate
12743 12744 12745 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12743 def start_date @start_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12750 12751 12752 12753 12754 12755 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12750 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 |