servicepoint

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 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

func (Client) GetServicePoints

func (service Client) GetServicePoints(servicePoint Matcher) (sendcloud.ServicePointList, error)

type Matcher

type Matcher struct {
	Country     string
	SPID        *string
	Carrier     *string
	City        *string
	PostalCode  *string
	HouseNumber *string
	Latitude    *float64
	Longitude   *float64
	Address     *string
	Weight      *float64
	Radius      *int64
}

Jump to

Keyboard shortcuts

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