Versions in this module Expand all Collapse all v1 v1.1.1 Nov 3, 2021 Changes in this version + var ErrNotFound = errors.New("EVENTS POLL REQUEST RETURNED NOT FOUND") + type APIError struct + Code string + Details []interface{} + Field string + Message string + type ErrV2API struct + Error APIError type Service + V2Acknowledge func([]V2Event) (err error) + V2Poll func() (ml []V2Event, err error) + type V2Event struct + Code string + Createdat time.Time + Fullcode string + ID string + Metadata map[string]interface{} + Orderid string + type V2Events []V2Event v1.0.0 Apr 6, 2021 Changes in this version + var ErrReqLimitExceeded = errors.New("EVENTS POLL REQUEST LIMIT EXCEEDED") + var ErrUnauthorized = errors.New("Unauthorized request") + var ValidEventsByCodeName = map[string]string + var ValidEventsByNameCode = map[string]string + func New(adapter adapters.Http, authService auth.Service) *eventService + type Event struct + Code string + CorrelationID string + CreatedAt time.Time + ID string + Metadata map[string]interface{} + type Events []Event + type Service interface + Acknowledge func([]Event) (err error) + Poll func() ([]Event, error)