class Google::Apis::ContentV2::AccountShippingShippingService

Shipping services provided in a country.

Attributes

active[RW]

Whether the shipping service is available. Corresponds to the JSON property `active` @return [Boolean]

active?[RW]

Whether the shipping service is available. Corresponds to the JSON property `active` @return [Boolean]

calculation_method[RW]

Shipping cost calculation method. Exactly one of the field is set. Corresponds to the JSON property `calculationMethod` @return [Google::Apis::ContentV2::AccountShippingShippingServiceCalculationMethod]

cost_rule_tree[RW]

Building block of the cost calculation decision tree.

  • The tree root should have no condition and no calculation method.

  • All the children must have a condition on the same dimension. The first

child matching a condition is entered, therefore, price and weight conditions form contiguous intervals.

  • The last child of an element must have no condition and matches all elements

not previously matched.

  • Children and calculation method are mutually exclusive, and exactly one of

them must be defined; the root must only have children. Corresponds to the JSON property `costRuleTree` @return [Google::Apis::ContentV2::AccountShippingShippingServiceCostRule]

name[RW]

The name of this shipping service. Corresponds to the JSON property `name` @return [String]

sale_country[RW]

The CLDR territory code of the sale country for which this service can be used. Corresponds to the JSON property `saleCountry` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 506
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/content_v2/classes.rb, line 511
def update!(**args)
  @active = args[:active] if args.key?(:active)
  @calculation_method = args[:calculation_method] if args.key?(:calculation_method)
  @cost_rule_tree = args[:cost_rule_tree] if args.key?(:cost_rule_tree)
  @name = args[:name] if args.key?(:name)
  @sale_country = args[:sale_country] if args.key?(:sale_country)
end