Class: Google::Apis::ContentV2_1::ReturnPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnPolicy
- 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
Return policy resource.
Instance Attribute Summary collapse
-
#country ⇒ String
Required.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#label ⇒ String
Required.
-
#name ⇒ String
Required.
-
#non_free_return_reasons ⇒ Array<String>
Return reasons that will incur return fees.
-
#policy ⇒ Google::Apis::ContentV2_1::ReturnPolicyPolicy
Required.
-
#return_policy_id ⇒ String
Return policy ID generated by Google.
-
#return_shipping_fee ⇒ Google::Apis::ContentV2_1::Price
The return shipping fee that will apply to non free return reasons.
-
#seasonal_overrides ⇒ Array<Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride>
An optional list of seasonal overrides.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnPolicy
constructor
A new instance of ReturnPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReturnPolicy
Returns a new instance of ReturnPolicy.
12465 12466 12467 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12465 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
Required. The country of sale where the return policy is applicable.
Corresponds to the JSON property country
12421 12422 12423 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12421 def country @country end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
returnPolicy
"
Corresponds to the JSON property kind
12427 12428 12429 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12427 def kind @kind end |
#label ⇒ String
Required. The user-defined label of the return policy. For the default policy,
use the label "default".
Corresponds to the JSON property label
12433 12434 12435 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12433 def label @label end |
#name ⇒ String
Required. The name of the policy as shown in Merchant Center.
Corresponds to the JSON property name
12438 12439 12440 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12438 def name @name end |
#non_free_return_reasons ⇒ Array<String>
Return reasons that will incur return fees.
Corresponds to the JSON property nonFreeReturnReasons
12443 12444 12445 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12443 def non_free_return_reasons @non_free_return_reasons end |
#policy ⇒ Google::Apis::ContentV2_1::ReturnPolicyPolicy
Required. The policy.
Corresponds to the JSON property policy
12448 12449 12450 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12448 def policy @policy end |
#return_policy_id ⇒ String
Return policy ID generated by Google.
Corresponds to the JSON property returnPolicyId
12453 12454 12455 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12453 def return_policy_id @return_policy_id end |
#return_shipping_fee ⇒ Google::Apis::ContentV2_1::Price
The return shipping fee that will apply to non free return reasons.
Corresponds to the JSON property returnShippingFee
12458 12459 12460 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12458 def return_shipping_fee @return_shipping_fee end |
#seasonal_overrides ⇒ Array<Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride>
An optional list of seasonal overrides.
Corresponds to the JSON property seasonalOverrides
12463 12464 12465 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12463 def seasonal_overrides @seasonal_overrides end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12470 def update!(**args) @country = args[:country] if args.key?(:country) @kind = args[:kind] if args.key?(:kind) @label = args[:label] if args.key?(:label) @name = args[:name] if args.key?(:name) @non_free_return_reasons = args[:non_free_return_reasons] if args.key?(:non_free_return_reasons) @policy = args[:policy] if args.key?(:policy) @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id) @return_shipping_fee = args[:return_shipping_fee] if args.key?(:return_shipping_fee) @seasonal_overrides = args[:seasonal_overrides] if args.key?(:seasonal_overrides) end |