ExCorreios v1.1.4 ExCorreios.Calculator.Shipping View Source

This module provides a shipping struct.

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %ExCorreios.Calculator.Shipping{
  declared_value: String.t(),
  destination: String.t(),
  enterprise: String.t(),
  manually_entered: String.t(),
  origin: String.t(),
  package: struct(),
  password: String.t(),
  receiving_alert: String.t(),
  service: List.t()
}

Link to this section Functions

Link to this function

new(service, package, params)

View Source
new(
  atom(),
  %ExCorreios.Calculator.Shipping.Package{
    diameter: term(),
    format: term(),
    height: term(),
    length: term(),
    weight: term(),
    width: term()
  },
  map()
) :: t()