View Source GoogleApi.Content.V21.Model.CarrierRate (google_api_content v0.67.1)

Attributes

  • carrierName (type: String.t, default: nil) - Carrier service, such as "UPS" or "Fedex". The list of supported carriers can be retrieved through the getSupportedCarriers method. Required.
  • carrierService (type: String.t, default: nil) - Carrier service, such as "ground" or "2 days". The list of supported services for a carrier can be retrieved through the getSupportedCarriers method. Required.
  • flatAdjustment (type: GoogleApi.Content.V21.Model.Price.t, default: nil) - Additive shipping rate modifier. Can be negative. For example { "value": "1", "currency" : "USD" } adds $1 to the rate, { "value": "-3", "currency" : "USD" } removes $3 from the rate. Optional.
  • name (type: String.t, default: nil) - Name of the carrier rate. Must be unique per rate group. Required.
  • originPostalCode (type: String.t, default: nil) - Shipping origin for this carrier rate. Required.
  • percentageAdjustment (type: String.t, default: nil) - Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example "5.4" increases the rate by 5.4%, "-3" decreases the rate by 3%. Optional.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.CarrierRate{
  carrierName: String.t() | nil,
  carrierService: String.t() | nil,
  flatAdjustment: GoogleApi.Content.V21.Model.Price.t() | nil,
  name: String.t() | nil,
  originPostalCode: String.t() | nil,
  percentageAdjustment: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.