class Google::Apis::ContentV2::AccountShippingCarrierRate

A carrier-calculated shipping rate.

Attributes

carrier[RW]

The carrier that is responsible for the shipping, such as “UPS”, “FedEx”, or “ USPS”. Corresponds to the JSON property `carrier` @return [String]

carrier_service[RW]

The carrier service, such as “Ground” or “2Day”. Corresponds to the JSON property `carrierService` @return [String]

modifier_flat_rate[RW]

Additive shipping rate modifier. Corresponds to the JSON property `modifierFlatRate` @return [Google::Apis::ContentV2::Price]

modifier_percent[RW]

Multiplicative shipping rate modifier in percent. Represented as a floating point number without the percentage character. Corresponds to the JSON property `modifierPercent` @return [String]

name[RW]

The name of the carrier rate. Corresponds to the JSON property `name` @return [String]

sale_country[RW]

The sale country for which this carrier rate is valid, represented as a CLDR territory code. Corresponds to the JSON property `saleCountry` @return [String]

shipping_origin[RW]

Shipping origin represented as a postal code. Corresponds to the JSON property `shippingOrigin` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 249
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 254
def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @carrier_service = args[:carrier_service] if args.key?(:carrier_service)
  @modifier_flat_rate = args[:modifier_flat_rate] if args.key?(:modifier_flat_rate)
  @modifier_percent = args[:modifier_percent] if args.key?(:modifier_percent)
  @name = args[:name] if args.key?(:name)
  @sale_country = args[:sale_country] if args.key?(:sale_country)
  @shipping_origin = args[:shipping_origin] if args.key?(:shipping_origin)
end