Class: Google::Apis::ContentV2_1::ReturnPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Overview

Return policy resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReturnPolicy

Returns a new instance of ReturnPolicy



8558
8559
8560
# File 'generated/google/apis/content_v2_1/classes.rb', line 8558

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

Instance Attribute Details

#countryString

The country of sale where the return policy is applicable. Corresponds to the JSON property country

Returns:

  • (String)


8519
8520
8521
# File 'generated/google/apis/content_v2_1/classes.rb', line 8519

def country
  @country
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# returnPolicy". Corresponds to the JSON property kind

Returns:

  • (String)


8525
8526
8527
# File 'generated/google/apis/content_v2_1/classes.rb', line 8525

def kind
  @kind
end

#labelString

The user-defined label of the return policy. For the default policy, use the label "default". Corresponds to the JSON property label

Returns:

  • (String)


8531
8532
8533
# File 'generated/google/apis/content_v2_1/classes.rb', line 8531

def label
  @label
end

#nameString

The name of the policy as shown in Merchant Center. Corresponds to the JSON property name

Returns:

  • (String)


8536
8537
8538
# File 'generated/google/apis/content_v2_1/classes.rb', line 8536

def name
  @name
end

#non_free_return_reasonsArray<String>

Return reasons that will incur return fees. Corresponds to the JSON property nonFreeReturnReasons

Returns:

  • (Array<String>)


8541
8542
8543
# File 'generated/google/apis/content_v2_1/classes.rb', line 8541

def non_free_return_reasons
  @non_free_return_reasons
end

#policyGoogle::Apis::ContentV2_1::ReturnPolicyPolicy

The policy. Corresponds to the JSON property policy



8546
8547
8548
# File 'generated/google/apis/content_v2_1/classes.rb', line 8546

def policy
  @policy
end

#return_policy_idString

Return policy ID generated by Google. Corresponds to the JSON property returnPolicyId

Returns:

  • (String)


8551
8552
8553
# File 'generated/google/apis/content_v2_1/classes.rb', line 8551

def return_policy_id
  @return_policy_id
end

#seasonal_overridesArray<Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride>

An optional list of seasonal overrides. Corresponds to the JSON property seasonalOverrides



8556
8557
8558
# File 'generated/google/apis/content_v2_1/classes.rb', line 8556

def seasonal_overrides
  @seasonal_overrides
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
# File 'generated/google/apis/content_v2_1/classes.rb', line 8563

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)
  @seasonal_overrides = args[:seasonal_overrides] if args.key?(:seasonal_overrides)
end