servicepoint

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoSuitableServicePointFound = errors.New("could not find a matching service point in SendCloud")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(apiKey string, apiSecret string) *Client

func (Client) GetServicePoint

func (service Client) GetServicePoint(servicePoint Matcher) (int, error)

Returns the sendcloud pickup point ID mapped from a SPID ID

type Matcher

type Matcher struct {
	SPID        string
	Carrier     string
	Country     string
	PostalCode  string
	HouseNumber string
	Latitude    float64
	Longitude   float64
}

Jump to

Keyboard shortcuts

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