CorreiosEx (correios_ex v0.1.0)

Link to this section Summary

Link to this section Types

@type rate() :: %{
  error_code: :integer,
  error_message: :string,
  code: :integer,
  eta: :string,
  price: :positive_integer
}
Link to this type

requestParams()

@type requestParams() :: %{
  code: :string,
  origin: :string,
  destination: :string,
  weight: :positive_integer,
  length: :positive_integer,
  height: :positive_integer,
  width: :positive_integer,
  on_hand: :boolean,
  declared_value: :positive_integer,
  ack: :boolean
}

Link to this section Functions

@spec rate(requestParams()) :: rate()