Class: Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy

Inherits:
Object
  • Object
show all
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

Overview

The available policies.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReturnPolicyOnlinePolicy

Returns a new instance of ReturnPolicyOnlinePolicy.



12581
12582
12583
# File 'lib/google/apis/content_v2_1/classes.rb', line 12581

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

Instance Attribute Details

#daysFixnum

The number of days items can be returned after delivery, where one day is defined to be 24 hours after the delivery timestamp. Required for numberOfDaysAfterDelivery returns. Corresponds to the JSON property days

Returns:

  • (Fixnum)


12574
12575
12576
# File 'lib/google/apis/content_v2_1/classes.rb', line 12574

def days
  @days
end

#typeString

Policy type. Corresponds to the JSON property type

Returns:

  • (String)


12579
12580
12581
# File 'lib/google/apis/content_v2_1/classes.rb', line 12579

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12586
12587
12588
12589
# File 'lib/google/apis/content_v2_1/classes.rb', line 12586

def update!(**args)
  @days = args[:days] if args.key?(:days)
  @type = args[:type] if args.key?(:type)
end