shipwire

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(db *datastore.Datastore, filename string)

Types

type Client

type Client struct {
	Username string
	Password string
	Endpoint string
	// contains filtered or unexported fields
}

func New

func New(c *gin.Context, username, password string) *Client

func (*Client) CancelReturn

func (c *Client) CancelReturn(id string) (*Response, error)

func (*Client) CreateOrder

func (c *Client) CreateOrder(ord *order.Order, usr *user.User, opts OrderOptions) (*Order, *Response, error)

func (*Client) CreateReturn

func (c *Client) CreateReturn(ord *order.Order, opts ReturnOptions) (*Return, *Response, error)

func (*Client) GetOrder

func (c *Client) GetOrder(id int) (*Order, *Response, error)

func (*Client) Rate

func (c *Client) Rate(ord *order.Order) ([]Rates, *RateResponse, error)

func (*Client) Request

func (c *Client) Request(method, url string, body interface{}, dst interface{}) (*http.Response, error)

func (*Client) Resource

func (c *Client) Resource(method, url string, body interface{}, dst interface{}) (*Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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