Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type QuoteSimulationRequest ¶
type QuoteSimulationRequest struct { Recipient Recipient `json:"recipient"` Shipper Shipper `json:"shipper"` Dispatchers []Dispatcher SimulationType []int `json:"simulation_type"` }
type QuoteSimulationResponse ¶
type QuoteSimulationResponse struct { Dispatchers []struct { ID string `json:"id"` Offers []struct { Carrier struct { CompanyName string `json:"company_name"` Logo string `json:"logo"` Name string `json:"name"` Reference int `json:"reference"` RegisteredNumber string `json:"registered_number"` StateInscription string `json:"state_inscription"` } `json:"carrier"` CarrierOriginalDeliveryTime struct { Days int `json:"days"` EstimatedDate string `json:"estimated_date"` } `json:"carrier_original_delivery_time"` CostPrice float64 `json:"cost_price"` DeliveryTime struct { Days int `json:"days"` EstimatedDate string `json:"estimated_date"` } `json:"delivery_time"` Esg struct { Co2EmissionEstimate float64 `json:"co2_emission_estimate"` } `json:"esg"` Expiration time.Time `json:"expiration"` FinalPrice float64 `json:"final_price"` HomeDelivery bool `json:"home_delivery"` Modal string `json:"modal"` Offer int `json:"offer"` OriginalDeliveryTime struct { Days int `json:"days"` EstimatedDate string `json:"estimated_date"` } `json:"original_delivery_time"` Service string `json:"service"` SimulationType int `json:"simulation_type"` TableReference string `json:"table_reference"` Weights struct { Cubed float64 `json:"cubed"` Real int `json:"real"` Used float64 `json:"used"` } `json:"weights"` } `json:"offers"` RegisteredNumberDispatcher string `json:"registered_number_dispatcher"` RegisteredNumberShipper string `json:"registered_number_shipper"` RequestID string `json:"request_id"` ZipcodeOrigin int `json:"zipcode_origin"` } `json:"dispatchers"` }
type Service ¶
func NewFreteRapidoService ¶
func (*Service) Quote ¶
func (s *Service) Quote(qr *QuoteSimulationRequest) (*QuoteSimulationResponse, error)
Click to show internal directories.
Click to hide internal directories.