google_api_content v0.2.0 GoogleApi.Content.V2.Model.RateGroup View Source

Attributes

  • applicableShippingLabels ([String.t]): A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service. Required. Defaults to: null.
  • carrierRates ([CarrierRate]): A list of carrier rates that can be referred to by mainTable or singleValue. Defaults to: null.
  • mainTable (Table): A table defining the rate group, when singleValue is not expressive enough. Can only be set if singleValue is not set. Defaults to: null.
  • name (String.t): Name of the rate group. Optional. If set has to be unique within shipping service. Defaults to: null.
  • singleValue (Value): The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables are not set. Defaults to: null.
  • subtables ([Table]): A list of subtables referred to by mainTable. Can only be set if mainTable is set. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this type t() View Source
t() :: %GoogleApi.Content.V2.Model.RateGroup{
  applicableShippingLabels: [any()],
  carrierRates: [GoogleApi.Content.V2.Model.CarrierRate.t()],
  mainTable: GoogleApi.Content.V2.Model.Table.t(),
  name: any(),
  singleValue: GoogleApi.Content.V2.Model.Value.t(),
  subtables: [GoogleApi.Content.V2.Model.Table.t()]
}

Link to this section Functions

Link to this function decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.