Class: Google::Apis::MerchantapiAccountsV1beta::Policy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb

Overview

The available policies.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Policy

Returns a new instance of Policy.



1655
1656
1657
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1655

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 as 24 hours after the delivery timestamp. Required for NUMBER_OF_DAYS_AFTER_DELIVERY returns. Corresponds to the JSON property days

Returns:

  • (Fixnum)


1648
1649
1650
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1648

def days
  @days
end

#typeString

Policy type. Corresponds to the JSON property type

Returns:

  • (String)


1653
1654
1655
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1653

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1660
1661
1662
1663
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1660

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