Class: Google::Apis::MerchantapiAccountsV1beta::Policy
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::Policy
- 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
-
#days ⇒ Fixnum
The number of days items can be returned after delivery, where one day is defined as 24 hours after the delivery timestamp.
-
#type ⇒ String
Policy type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Policy
constructor
A new instance of Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#days ⇒ Fixnum
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
1648 1649 1650 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1648 def days @days end |
#type ⇒ String
Policy type.
Corresponds to the JSON property type
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 |