model

package
v0.0.0-...-c8a71a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	Cpnj             string `json:"cnpj"`
	Token            string `json:"token"`
	CodigoPlataforma string `json:"codigo_plataforma"`
}

type Block

type Block struct {
	Bloqueio bool `json:"bloqueio"`
	Saldo    int  `json:"saldo"`
}

type Destinatario

type Destinatario struct {
	Endereco Endereco `json:"endereco" gorm:"not null;default:null"`
}

type Endereco

type Endereco struct {
	Cep string `json:"cep" gorm:"not null;default:null"`
}

type Expedidor

type Expedidor struct {
	Cnpj     string   `json:"cnpj"`
	Endereco Endereco `json:"endereco"`
}

type Freight

type Freight struct {
	ID           int     `json:"id" gorm:"primaryKey;autoIncrement"`
	Nome         string  `json:"nome" gorm:"not null;default:null"`
	Servico      string  `json:"servico" gorm:"not null;default:null"`
	PrazoEntrega int     `json:"prazo_entrega" gorm:"not null;default:null"`
	PrecoFrete   float64 `json:"preco_frete" gorm:"not null;default:null"`
	QuoteID      int     `json:"quote_id" gorm:"not null;default:null"`
}

type Freights

type Freights struct {
	Transportadoras []Freight `json:"transportadoras"`
}

type Metric

type Metric struct {
	Transportadora   string  `json:"transportadora"`
	TotalOcorrencias int     `json:"total_ocorrencias"`
	TotalPrecos      float64 `json:"total_precos"`
	MediaPrecos      float64 `json:"media_precos"`
}

type Metrics

type Metrics struct {
	Fretes          []Metric     `json:"fretes"`
	FreteMaisCaro   ValueFreight `json:"frete_mais_caro"`
	FreteMaisBarato ValueFreight `json:"frete_mais_barato"`
}

type Quote

type Quote struct {
	ID        int       `json:"id" gorm:"primaryKey;autoIncrement"`
	CreatedAt time.Time `json:"created_at" gorm:"not null;default:null"`
}

type Remetente

type Remetente struct {
	Cnpj string `json:"cnpj" gorm:"not null;default:null"`
}

type Transporter

type Transporter struct {
	Oferta           int     `json:"oferta" gorm:"not null;default:null"`
	Cnpj             string  `json:"cnpj" gorm:"not null;default:null"`
	Logotipo         string  `json:"logotipo" gorm:"not null;default:null"`
	Nome             string  `json:"nome" gorm:"not null;default:null"`
	Servico          string  `json:"servico" gorm:"not null;default:null"`
	PrazoEntrega     int     `json:"prazo_entrega" gorm:"not null;default:null"`
	EntregaEstimada  string  `json:"entrega_estimada" gorm:"not null;default:null"`
	DescricaoServico string  `json:"descricao_servico"`
	Validade         string  `json:"validade" gorm:"not null;default:null"`
	CustoFrete       float64 `json:"custo_frete" gorm:"not null;default:null"`
	PrecoFrete       float64 `json:"preco_frete" gorm:"not null;default:null"`
}

type TransporterOffer

type TransporterOffer struct {
	TokenOferta     string        `json:"token_oferta" gorm:"not null;default:null"`
	Transportadoras []Transporter `json:"transportadoras" gorm:"not null;default:null"`
}

type ValueFreight

type ValueFreight struct {
	Nome         string  `json:"nome"`
	Servico      string  `json:"servico"`
	PrazoEntrega int     `json:"prazo_entrega"`
	Valor        float64 `json:"valor"`
}

type Volume

type Volume struct {
	Tipo           int     `json:"tipo" gorm:"not null;default:null"`
	Quantidade     int     `json:"quantidade" gorm:"not null;default:null"`
	Peso           int     `json:"peso" gorm:"not null;default:null"`
	Valor          int     `json:"valor" gorm:"not null;default:null"`
	Sku            string  `json:"sku"`
	Tag            string  `json:"tag"`
	Descricao      string  `json:"descricao"`
	Altura         float64 `json:"altura" gorm:"not null;default:null"`
	Largura        float64 `json:"largura" gorm:"not null;default:null"`
	Comprimento    float64 `json:"comprimento" gorm:"not null;default:null"`
	VolumesProduto int     `json:"volumes_produto"`
	Consolidar     bool    `json:"consolidar"`
	Sobreposto     bool    `json:"sobreposto"`
	Tombar         bool    `json:"tombar"`
}

type VolumeData

type VolumeData struct {
	Destinatario Destinatario `json:"destinatario" gorm:"not null;default:null"`
	Volumes      []Volume     `json:"volumes" gorm:"not null;default:null"`
}

type VolumeSecureData

type VolumeSecureData struct {
	Remetente        Remetente    `json:"remetente" gorm:"not null;default:null"`
	Destinatario     Destinatario `json:"destinatario" gorm:"not null;default:null"`
	Volumes          []Volume     `json:"volumes" gorm:"not null;default:null"`
	Token            string       `json:"token" gorm:"not null;default:null"`
	CodigoPlataforma string       `json:"codigo_plataforma" gorm:"not null;default:null"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL