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.



12567
12568
12569
# File 'lib/google/apis/content_v2_1/classes.rb', line 12567

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)


12560
12561
12562
# File 'lib/google/apis/content_v2_1/classes.rb', line 12560

def days
  @days
end

#typeString

Policy type. Corresponds to the JSON property type

Returns:

  • (String)


12565
12566
12567
# File 'lib/google/apis/content_v2_1/classes.rb', line 12565

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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