address

package
Version: v0.0.0-...-5294052 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Endpoint        = "https://api.nmbrs.nl/soap/v2.1/EmployeeService.asmx"
	SandboxEndpoint = "https://api-sandbox.nmbrs.nl/soap/v2.1/EmployeeService.asmx"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	ID                  int    `xml:"Id"`
	Default             bool   `xml:"Default"`
	Street              string `xml:"Street"`
	HouseNumber         string `xml:"HouseNumber"`
	HouseNumberAddition string `xml:"HouseNumberAddition"`
	PostalCode          string `xml:"PostalCode"`
	City                string `xml:"City"`
	StateProvince       string `xml:"StateProvince"`
	CountryISOCode      string `xml:"CountryISOCode"`
	Type                string `xml:"Type"` // HomeAddress or PostAddress or AbsenceAddress or HolidaysAddress or WeekendAddress
}

type Service

type Service struct {
	Client     *soap.Client
	Endpoint   *url.URL
	AuthHeader *auth.AuthHeader
}

Service handles communication with the employee related methods of the Nmbrs API

func NewService

func NewService(authHeader *auth.AuthHeader) *Service

NewService returns a new employee service with a default SOAP client and a copy of the auth header

func (*Service) ListCurrent

func (s *Service) ListCurrent(employeeID int) (*listCurrentResponse, error)

List all products

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL