GoogleApi.Content.V2.Model.CarrierRate (google_api_content v0.50.0) View Source

Attributes

  • carrierName (type: String.t, default: nil) - Carrier service, such as "UPS" or "Fedex". The list of supported carriers can be retrieved via 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 via the getSupportedCarriers method. Required.
  • flatAdjustment (type: GoogleApi.Content.V2.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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Content.V2.Model.CarrierRate{
  carrierName: String.t(),
  carrierService: String.t(),
  flatAdjustment: GoogleApi.Content.V2.Model.Price.t(),
  name: String.t(),
  originPostalCode: String.t(),
  percentageAdjustment: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.