models

package
v0.0.0-...-6d0359b Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpErr

type HttpErr struct {
	Error string `json:"error,omitempty"`
}

func NewHttpErr

func NewHttpErr(err error) HttpErr

func NewHttpErrStr

func NewHttpErrStr(err string) HttpErr

type Package

type Package struct {
	Width  int     `json:"width"`
	Height int     `json:"height"`
	Length int     `json:"length"`
	Weight float32 `json:"weight"`
}

type PostalCode

type PostalCode struct {
	Code string `json:"postal_code"`
}

type Product

type Product struct {
	Id             string  `json:"id"`
	Width          int     `json:"width"`
	Height         int     `json:"height"`
	Length         int     `json:"length"`
	Weight         float32 `json:"weight"`
	InsuranceValue float32 `json:"insurance_value"`
	Quantity       int     `json:"quantity"`
}

type ShipmentOptions

type ShipmentOptions struct {
	Receipt        bool    `json:"receipt"`
	OwnHand        bool    `json:"own_hand"`
	InsuranceValue float32 `json:"insurance_value"`
}

Jump to

Keyboard shortcuts

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