delivery_sdk

package module
v0.0.0-...-6845bbc Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

1  tiny-mile-logo-black

Go Delivery SDK

We provide an HTTP API to make it easier for new partners to quickly integrate with us and start sending delivery requests our way. While you can use our API directly by making raw HTTP requests to it, we also provide client libraries in some languages to speed up development.

For the full documentation of the API, please see https://external-api.prod.gcp.tinymile.ai/doc.

For the development version, see https://external-api.dev.gcp.tinymile.ai/doc . This is the version this repository is synchronized with.

Basic usage

delivery_sdk.NewClientWithResponses(
        "https://external-api.prod.gcp.tinymile.ai",
		delivery_sdk.WithAPIKeyAuthentication(apiKey))

API Compatibility

The API is versioned, so this SDK is guaranteed to have forward compatibility with the API.

Build

Clone this repo and run make all to build it.

Documentation

Overview

Package delivery_sdk provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.10.1 DO NOT EDIT.

Package delivery_sdk provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.10.1 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewCreateOpenRobotLidCommandRequest

func NewCreateOpenRobotLidCommandRequest(server string, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody) (*http.Request, error)

NewCreateOpenRobotLidCommandRequest calls the generic CreateOpenRobotLidCommand builder with application/json body

func NewCreateOpenRobotLidCommandRequestWithBody

func NewCreateOpenRobotLidCommandRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewCreateOpenRobotLidCommandRequestWithBody generates requests for CreateOpenRobotLidCommand with any type of body

func NewCreateOrderRequest

func NewCreateOrderRequest(server string, body CreateOrderJSONRequestBody) (*http.Request, error)

NewCreateOrderRequest calls the generic CreateOrder builder with application/json body

func NewCreateOrderRequestWithBody

func NewCreateOrderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateOrderRequestWithBody generates requests for CreateOrder with any type of body

func NewGetDeliveryJobCurrentCourierRequest

func NewGetDeliveryJobCurrentCourierRequest(server string, deliveryJobUuid openapi_types.UUID) (*http.Request, error)

NewGetDeliveryJobCurrentCourierRequest generates requests for GetDeliveryJobCurrentCourier

func NewGetDeliveryJobRequest

func NewGetDeliveryJobRequest(server string, deliveryJobUuid openapi_types.UUID) (*http.Request, error)

NewGetDeliveryJobRequest generates requests for GetDeliveryJob

func NewGetJobsForOrderRequest

func NewGetJobsForOrderRequest(server string, orderUuid openapi_types.UUID) (*http.Request, error)

NewGetJobsForOrderRequest generates requests for GetJobsForOrder

func NewGetOrderByExternalIdRequest

func NewGetOrderByExternalIdRequest(server string, externalId string) (*http.Request, error)

NewGetOrderByExternalIdRequest generates requests for GetOrderByExternalId

func NewGetOrderRequest

func NewGetOrderRequest(server string, orderUuid openapi_types.UUID) (*http.Request, error)

NewGetOrderRequest generates requests for GetOrder

func NewPostJobCancelledRequest

func NewPostJobCancelledRequest(server string, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody) (*http.Request, error)

NewPostJobCancelledRequest calls the generic PostJobCancelled builder with application/json body

func NewPostJobCancelledRequestWithBody

func NewPostJobCancelledRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewPostJobCancelledRequestWithBody generates requests for PostJobCancelled with any type of body

func NewPostOrderDroppedOffRequest

func NewPostOrderDroppedOffRequest(server string, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody) (*http.Request, error)

NewPostOrderDroppedOffRequest calls the generic PostOrderDroppedOff builder with application/json body

func NewPostOrderDroppedOffRequestWithBody

func NewPostOrderDroppedOffRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewPostOrderDroppedOffRequestWithBody generates requests for PostOrderDroppedOff with any type of body

func NewPostOrderPickedUpRequest

func NewPostOrderPickedUpRequest(server string, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody) (*http.Request, error)

NewPostOrderPickedUpRequest calls the generic PostOrderPickedUp builder with application/json body

func NewPostOrderPickedUpRequestWithBody

func NewPostOrderPickedUpRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewPostOrderPickedUpRequestWithBody generates requests for PostOrderPickedUp with any type of body

func NewRequestQuoteRequest

func NewRequestQuoteRequest(server string, body RequestQuoteJSONRequestBody) (*http.Request, error)

NewRequestQuoteRequest calls the generic RequestQuote builder with application/json body

func NewRequestQuoteRequestWithBody

func NewRequestQuoteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRequestQuoteRequestWithBody generates requests for RequestQuote with any type of body

func NewSetWebhooksRequest

func NewSetWebhooksRequest(server string, body SetWebhooksJSONRequestBody) (*http.Request, error)

NewSetWebhooksRequest calls the generic SetWebhooks builder with application/json body

func NewSetWebhooksRequestWithBody

func NewSetWebhooksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSetWebhooksRequestWithBody generates requests for SetWebhooks with any type of body

Types

type AddressDescription

type AddressDescription struct {
	AddressLine1      string  `json:"addressLine1"`
	AddressLine2      *string `json:"addressLine2,omitempty"`
	Country           string  `json:"country"`
	EstablishmentName *string `json:"establishmentName,omitempty"`
	Locality          string  `json:"locality"`
	PostalCode        string  `json:"postalCode"`
	State             string  `json:"state"`
}

AddressDescription defines model for AddressDescription.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateOpenRobotLidCommand

func (c *Client) CreateOpenRobotLidCommand(ctx context.Context, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOpenRobotLidCommandWithBody

func (c *Client) CreateOpenRobotLidCommandWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOrder

func (c *Client) CreateOrder(ctx context.Context, body CreateOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOrderWithBody

func (c *Client) CreateOrderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDeliveryJob

func (c *Client) GetDeliveryJob(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDeliveryJobCurrentCourier

func (c *Client) GetDeliveryJobCurrentCourier(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetJobsForOrder

func (c *Client) GetJobsForOrder(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOrder

func (c *Client) GetOrder(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOrderByExternalId

func (c *Client) GetOrderByExternalId(ctx context.Context, externalId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostJobCancelled

func (c *Client) PostJobCancelled(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostJobCancelledWithBody

func (c *Client) PostJobCancelledWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostOrderDroppedOff

func (c *Client) PostOrderDroppedOff(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostOrderDroppedOffWithBody

func (c *Client) PostOrderDroppedOffWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostOrderPickedUp

func (c *Client) PostOrderPickedUp(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostOrderPickedUpWithBody

func (c *Client) PostOrderPickedUpWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RequestQuote

func (c *Client) RequestQuote(ctx context.Context, body RequestQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RequestQuoteWithBody

func (c *Client) RequestQuoteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetWebhooks

func (c *Client) SetWebhooks(ctx context.Context, body SetWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetWebhooksWithBody

func (c *Client) SetWebhooksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetDeliveryJob request
	GetDeliveryJob(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostJobCancelled request with any body
	PostJobCancelledWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostJobCancelled(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDeliveryJobCurrentCourier request
	GetDeliveryJobCurrentCourier(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOpenRobotLidCommand request with any body
	CreateOpenRobotLidCommandWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateOpenRobotLidCommand(ctx context.Context, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostOrderDroppedOff request with any body
	PostOrderDroppedOffWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostOrderDroppedOff(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostOrderPickedUp request with any body
	PostOrderPickedUpWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostOrderPickedUp(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrderByExternalId request
	GetOrderByExternalId(ctx context.Context, externalId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOrder request with any body
	CreateOrderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateOrder(ctx context.Context, body CreateOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrder request
	GetOrder(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJobsForOrder request
	GetJobsForOrder(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RequestQuote request with any body
	RequestQuoteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RequestQuote(ctx context.Context, body RequestQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetWebhooks request with any body
	SetWebhooksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetWebhooks(ctx context.Context, body SetWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithAPIKeyAuthentication

func WithAPIKeyAuthentication(apiKey string) ClientOption

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateOpenRobotLidCommandWithBodyWithResponse

func (c *ClientWithResponses) CreateOpenRobotLidCommandWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOpenRobotLidCommandResponse, error)

CreateOpenRobotLidCommandWithBodyWithResponse request with arbitrary body returning *CreateOpenRobotLidCommandResponse

func (*ClientWithResponses) CreateOpenRobotLidCommandWithResponse

func (c *ClientWithResponses) CreateOpenRobotLidCommandWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOpenRobotLidCommandResponse, error)

func (*ClientWithResponses) CreateOrderWithBodyWithResponse

func (c *ClientWithResponses) CreateOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrderResponse, error)

CreateOrderWithBodyWithResponse request with arbitrary body returning *CreateOrderResponse

func (*ClientWithResponses) CreateOrderWithResponse

func (c *ClientWithResponses) CreateOrderWithResponse(ctx context.Context, body CreateOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrderResponse, error)

func (*ClientWithResponses) GetDeliveryJobCurrentCourierWithResponse

func (c *ClientWithResponses) GetDeliveryJobCurrentCourierWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDeliveryJobCurrentCourierResponse, error)

GetDeliveryJobCurrentCourierWithResponse request returning *GetDeliveryJobCurrentCourierResponse

func (*ClientWithResponses) GetDeliveryJobWithResponse

func (c *ClientWithResponses) GetDeliveryJobWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDeliveryJobResponse, error)

GetDeliveryJobWithResponse request returning *GetDeliveryJobResponse

func (*ClientWithResponses) GetJobsForOrderWithResponse

func (c *ClientWithResponses) GetJobsForOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobsForOrderResponse, error)

GetJobsForOrderWithResponse request returning *GetJobsForOrderResponse

func (*ClientWithResponses) GetOrderByExternalIdWithResponse

func (c *ClientWithResponses) GetOrderByExternalIdWithResponse(ctx context.Context, externalId string, reqEditors ...RequestEditorFn) (*GetOrderByExternalIdResponse, error)

GetOrderByExternalIdWithResponse request returning *GetOrderByExternalIdResponse

func (*ClientWithResponses) GetOrderWithResponse

func (c *ClientWithResponses) GetOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrderResponse, error)

GetOrderWithResponse request returning *GetOrderResponse

func (*ClientWithResponses) PostJobCancelledWithBodyWithResponse

func (c *ClientWithResponses) PostJobCancelledWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobCancelledResponse, error)

PostJobCancelledWithBodyWithResponse request with arbitrary body returning *PostJobCancelledResponse

func (*ClientWithResponses) PostJobCancelledWithResponse

func (c *ClientWithResponses) PostJobCancelledWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobCancelledResponse, error)

func (*ClientWithResponses) PostOrderDroppedOffWithBodyWithResponse

func (c *ClientWithResponses) PostOrderDroppedOffWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrderDroppedOffResponse, error)

PostOrderDroppedOffWithBodyWithResponse request with arbitrary body returning *PostOrderDroppedOffResponse

func (*ClientWithResponses) PostOrderDroppedOffWithResponse

func (c *ClientWithResponses) PostOrderDroppedOffWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrderDroppedOffResponse, error)

func (*ClientWithResponses) PostOrderPickedUpWithBodyWithResponse

func (c *ClientWithResponses) PostOrderPickedUpWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrderPickedUpResponse, error)

PostOrderPickedUpWithBodyWithResponse request with arbitrary body returning *PostOrderPickedUpResponse

func (*ClientWithResponses) PostOrderPickedUpWithResponse

func (c *ClientWithResponses) PostOrderPickedUpWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrderPickedUpResponse, error)

func (*ClientWithResponses) RequestQuoteWithBodyWithResponse

func (c *ClientWithResponses) RequestQuoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestQuoteResponse, error)

RequestQuoteWithBodyWithResponse request with arbitrary body returning *RequestQuoteResponse

func (*ClientWithResponses) RequestQuoteWithResponse

func (c *ClientWithResponses) RequestQuoteWithResponse(ctx context.Context, body RequestQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestQuoteResponse, error)

func (*ClientWithResponses) SetWebhooksWithBodyWithResponse

func (c *ClientWithResponses) SetWebhooksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWebhooksResponse, error)

SetWebhooksWithBodyWithResponse request with arbitrary body returning *SetWebhooksResponse

func (*ClientWithResponses) SetWebhooksWithResponse

func (c *ClientWithResponses) SetWebhooksWithResponse(ctx context.Context, body SetWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWebhooksResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetDeliveryJob request
	GetDeliveryJobWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDeliveryJobResponse, error)

	// PostJobCancelled request with any body
	PostJobCancelledWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobCancelledResponse, error)

	PostJobCancelledWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobCancelledResponse, error)

	// GetDeliveryJobCurrentCourier request
	GetDeliveryJobCurrentCourierWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDeliveryJobCurrentCourierResponse, error)

	// CreateOpenRobotLidCommand request with any body
	CreateOpenRobotLidCommandWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOpenRobotLidCommandResponse, error)

	CreateOpenRobotLidCommandWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOpenRobotLidCommandResponse, error)

	// PostOrderDroppedOff request with any body
	PostOrderDroppedOffWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrderDroppedOffResponse, error)

	PostOrderDroppedOffWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrderDroppedOffResponse, error)

	// PostOrderPickedUp request with any body
	PostOrderPickedUpWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrderPickedUpResponse, error)

	PostOrderPickedUpWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrderPickedUpResponse, error)

	// GetOrderByExternalId request
	GetOrderByExternalIdWithResponse(ctx context.Context, externalId string, reqEditors ...RequestEditorFn) (*GetOrderByExternalIdResponse, error)

	// CreateOrder request with any body
	CreateOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrderResponse, error)

	CreateOrderWithResponse(ctx context.Context, body CreateOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrderResponse, error)

	// GetOrder request
	GetOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrderResponse, error)

	// GetJobsForOrder request
	GetJobsForOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobsForOrderResponse, error)

	// RequestQuote request with any body
	RequestQuoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestQuoteResponse, error)

	RequestQuoteWithResponse(ctx context.Context, body RequestQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestQuoteResponse, error)

	// SetWebhooks request with any body
	SetWebhooksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWebhooksResponse, error)

	SetWebhooksWithResponse(ctx context.Context, body SetWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWebhooksResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CompleteAddress

type CompleteAddress struct {
	AddressDescription AddressDescription `json:"addressDescription"`
	GeocodedAddress    GeocodedAddress    `json:"geocodedAddress"`
}

CompleteAddress defines model for CompleteAddress.

type Courier

type Courier struct {
	ActiveDeliveryUuid    openapi_types.UUID  `json:"activeDeliveryUuid"`
	Destination           *CourierDestination `json:"destination,omitempty"`
	IsAcceptingDeliveries bool                `json:"isAcceptingDeliveries"`
	LastKnownPosition     *GeocodeLogEntry    `json:"lastKnownPosition,omitempty"`
	Name                  string              `json:"name"`
	State                 CourierState        `json:"state"`
	Type                  CourierType         `json:"type"`
	Uuid                  openapi_types.UUID  `json:"uuid"`
}

Courier defines model for Courier.

type CourierDestination

type CourierDestination struct {
	Eta             *time.Time      `json:"eta,omitempty"`
	GeocodedAddress GeocodedAddress `json:"geocodedAddress"`
}

CourierDestination defines model for CourierDestination.

type CourierEvent

type CourierEvent struct {
	Courier       Courier            `json:"courier"`
	CourierBefore *Courier           `json:"courierBefore,omitempty"`
	Kind          CourierEventKind   `json:"kind"`
	ProducedAt    time.Time          `json:"producedAt"`
	Uuid          openapi_types.UUID `json:"uuid"`
}

CourierEvent defines model for CourierEvent.

type CourierEventKind

type CourierEventKind string

CourierEventKind defines model for CourierEvent.Kind.

const (
	CourierEventKindCourierAbortedDelivery CourierEventKind = "courier-aborted-delivery"

	CourierEventKindCourierAcceptedDeliveryOffer CourierEventKind = "courier-accepted-delivery-offer"

	CourierEventKindCourierArrivedAtDropOff CourierEventKind = "courier-arrived-at-drop-off"

	CourierEventKindCourierArrivedAtPickUp CourierEventKind = "courier-arrived-at-pick-up"

	CourierEventKindCourierDelegatedActiveDelivery CourierEventKind = "courier-delegated-active-delivery"

	CourierEventKindCourierDroppedOffPackage CourierEventKind = "courier-dropped-off-package"

	CourierEventKindCourierHandedOverPackage CourierEventKind = "courier-handed-over-package"

	CourierEventKindCourierLeftForDropOff CourierEventKind = "courier-left-for-drop-off"

	CourierEventKindCourierLeftForPickUp CourierEventKind = "courier-left-for-pick-up"

	CourierEventKindCourierPickedUpPackage CourierEventKind = "courier-picked-up-package"

	CourierEventKindCourierPositionChanged CourierEventKind = "courier-position-changed"

	CourierEventKindCourierPreparedToHandOver CourierEventKind = "courier-prepared-to-hand-over"

	CourierEventKindCourierReceivedDeliveryOffer CourierEventKind = "courier-received-delivery-offer"

	CourierEventKindCourierRejectedDeliveryOffer CourierEventKind = "courier-rejected-delivery-offer"

	CourierEventKindCourierStartedAcceptingDeliveries CourierEventKind = "courier-started-accepting-deliveries"

	CourierEventKindCourierStoppedAcceptingDeliveries CourierEventKind = "courier-stopped-accepting-deliveries"
)

Defines values for CourierEventKind.

type CourierState

type CourierState string

CourierState defines model for Courier.State.

const (
	CourierStateAnalyzingDeliveryOffer CourierState = "analyzing-delivery-offer"

	CourierStateEnRouteToDropOff CourierState = "en-route-to-drop-off"

	CourierStateEnRouteToPickUp CourierState = "en-route-to-pick-up"

	CourierStatePlanningDropOffRoute CourierState = "planning-drop-off-route"

	CourierStatePlanningPickUpRoute CourierState = "planning-pick-up-route"

	CourierStateUnspecified CourierState = "unspecified"

	CourierStateWaitingForDropOff CourierState = "waiting-for-drop-off"

	CourierStateWaitingForPickUp CourierState = "waiting-for-pick-up"

	CourierStateWaitingToHandOver CourierState = "waiting-to-hand-over"
)

Defines values for CourierState.

type CourierType

type CourierType string

CourierType defines model for Courier.Type.

const (
	CourierTypeConventional CourierType = "conventional"

	CourierTypeRobot CourierType = "robot"
)

Defines values for CourierType.

type CreateOpenRobotLidCommandJSONBody

type CreateOpenRobotLidCommandJSONBody interface{}

CreateOpenRobotLidCommandJSONBody defines parameters for CreateOpenRobotLidCommand.

type CreateOpenRobotLidCommandJSONRequestBody

type CreateOpenRobotLidCommandJSONRequestBody CreateOpenRobotLidCommandJSONBody

CreateOpenRobotLidCommandJSONRequestBody defines body for CreateOpenRobotLidCommand for application/json ContentType.

type CreateOpenRobotLidCommandResponse

type CreateOpenRobotLidCommandResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *InvalidClientActionError
}

func ParseCreateOpenRobotLidCommandResponse

func ParseCreateOpenRobotLidCommandResponse(rsp *http.Response) (*CreateOpenRobotLidCommandResponse, error)

ParseCreateOpenRobotLidCommandResponse parses an HTTP response from a CreateOpenRobotLidCommandWithResponse call

func (CreateOpenRobotLidCommandResponse) Status

Status returns HTTPResponse.Status

func (CreateOpenRobotLidCommandResponse) StatusCode

func (r CreateOpenRobotLidCommandResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateOrderClientErrorResponse

type CreateOrderClientErrorResponse interface{}

CreateOrderClientErrorResponse defines model for CreateOrderClientErrorResponse.

type CreateOrderJSONBody

type CreateOrderJSONBody DeliveryOrderCreationRequest

CreateOrderJSONBody defines parameters for CreateOrder.

type CreateOrderJSONRequestBody

type CreateOrderJSONRequestBody CreateOrderJSONBody

CreateOrderJSONRequestBody defines body for CreateOrder for application/json ContentType.

type CreateOrderResponse

type CreateOrderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeliveryOrder
	JSON400      *CreateOrderClientErrorResponse
}

func ParseCreateOrderResponse

func ParseCreateOrderResponse(rsp *http.Response) (*CreateOrderResponse, error)

ParseCreateOrderResponse parses an HTTP response from a CreateOrderWithResponse call

func (CreateOrderResponse) Status

func (r CreateOrderResponse) Status() string

Status returns HTTPResponse.Status

func (CreateOrderResponse) StatusCode

func (r CreateOrderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeliveryCharges

type DeliveryCharges struct {
	TotalInCents int32 `json:"totalInCents"`
}

DeliveryCharges defines model for DeliveryCharges.

type DeliveryJob

type DeliveryJob struct {
	CompletedAt        *time.Time               `json:"completedAt,omitempty"`
	CurrentCourierUUID *openapi_types.UUID      `json:"currentCourierUUID,omitempty"`
	DeliveryCharges    DeliveryCharges          `json:"deliveryCharges"`
	DeliveryOrderUUID  openapi_types.UUID       `json:"deliveryOrderUUID"`
	DropOffAddress     CompleteAddress          `json:"dropOffAddress"`
	DropOffEstimatedAt time.Time                `json:"dropOffEstimatedAt"`
	NextCourierUUID    *openapi_types.UUID      `json:"nextCourierUUID,omitempty"`
	PackageHolder      DeliveryJobPackageHolder `json:"packageHolder"`
	PickUpAddress      CompleteAddress          `json:"pickUpAddress"`
	PickUpEstimatedAt  time.Time                `json:"pickUpEstimatedAt"`
	Stage              DeliveryJobStage         `json:"stage"`
	Uuid               openapi_types.UUID       `json:"uuid"`
}

DeliveryJob defines model for DeliveryJob.

type DeliveryJobEvent

type DeliveryJobEvent struct {
	DeliveryJob       DeliveryJob          `json:"deliveryJob"`
	DeliveryJobBefore *DeliveryJob         `json:"deliveryJobBefore,omitempty"`
	Kind              DeliveryJobEventKind `json:"kind"`
	ProducedAt        time.Time            `json:"producedAt"`
	Uuid              openapi_types.UUID   `json:"uuid"`
}

DeliveryJobEvent defines model for DeliveryJobEvent.

type DeliveryJobEventKind

type DeliveryJobEventKind string

DeliveryJobEventKind defines model for DeliveryJobEvent.Kind.

const (
	DeliveryJobEventKindDeliveryCanceled DeliveryJobEventKind = "delivery-canceled"

	DeliveryJobEventKindDeliveryCompleted DeliveryJobEventKind = "delivery-completed"

	DeliveryJobEventKindDeliveryHandedOver DeliveryJobEventKind = "delivery-handed-over"

	DeliveryJobEventKindDeliveryJobAcceptedByNextCourier DeliveryJobEventKind = "delivery-job-accepted-by-next-courier"

	DeliveryJobEventKindDeliveryJobAssigned DeliveryJobEventKind = "delivery-job-assigned"

	DeliveryJobEventKindDeliveryJobCreated DeliveryJobEventKind = "delivery-job-created"

	DeliveryJobEventKindDeliveryJobDelegatedToNextCourier DeliveryJobEventKind = "delivery-job-delegated-to-next-courier"

	DeliveryJobEventKindDeliveryJobOfferedToCourier DeliveryJobEventKind = "delivery-job-offered-to-courier"

	DeliveryJobEventKindDeliveryJobOfferedToNextCourier DeliveryJobEventKind = "delivery-job-offered-to-next-courier"

	DeliveryJobEventKindDeliveryJobRejectedByCourier DeliveryJobEventKind = "delivery-job-rejected-by-courier"

	DeliveryJobEventKindDeliveryJobRejectedByNextCourier DeliveryJobEventKind = "delivery-job-rejected-by-next-courier"

	DeliveryJobEventKindDeliveryJobUnassigned DeliveryJobEventKind = "delivery-job-unassigned"

	DeliveryJobEventKindDeliveryPickedUp DeliveryJobEventKind = "delivery-picked-up"

	DeliveryJobEventKindReceivedNewCourierPosition DeliveryJobEventKind = "received-new-courier-position"

	DeliveryJobEventKindUnassignedNextCourier DeliveryJobEventKind = "unassigned-next-courier"
)

Defines values for DeliveryJobEventKind.

type DeliveryJobPackageHolder

type DeliveryJobPackageHolder string

DeliveryJobPackageHolder defines model for DeliveryJob.PackageHolder.

const (
	DeliveryJobPackageHolderCourier DeliveryJobPackageHolder = "courier"

	DeliveryJobPackageHolderReceiver DeliveryJobPackageHolder = "receiver"

	DeliveryJobPackageHolderShipper DeliveryJobPackageHolder = "shipper"

	DeliveryJobPackageHolderUnknown DeliveryJobPackageHolder = "unknown"
)

Defines values for DeliveryJobPackageHolder.

type DeliveryJobStage

type DeliveryJobStage string

DeliveryJobStage defines model for DeliveryJob.Stage.

const (
	DeliveryJobStageCourierAssignment DeliveryJobStage = "courier-assignment"

	DeliveryJobStageDeliveryCanceled DeliveryJobStage = "delivery-canceled"

	DeliveryJobStageDeliveryCompleted DeliveryJobStage = "delivery-completed"

	DeliveryJobStageDropOff DeliveryJobStage = "drop-off"

	DeliveryJobStagePickUp DeliveryJobStage = "pick-up"
)

Defines values for DeliveryJobStage.

type DeliveryOrder

type DeliveryOrder struct {
	DeliveryCharges DeliveryCharges     `json:"deliveryCharges"`
	DropOff         DeliveryService     `json:"dropOff"`
	ExternalID      string              `json:"externalID"`
	IsMock          bool                `json:"isMock"`
	PickUp          DeliveryService     `json:"pickUp"`
	ReceivedAt      time.Time           `json:"receivedAt"`
	Receiver        DeliveryOrderParty  `json:"receiver"`
	Shipper         DeliveryOrderParty  `json:"shipper"`
	Status          DeliveryOrderStatus `json:"status"`
	Uuid            openapi_types.UUID  `json:"uuid"`
}

DeliveryOrder defines model for DeliveryOrder.

type DeliveryOrderCreationRequest

type DeliveryOrderCreationRequest struct {
	DropOffAddress     CompleteAddress             `json:"dropOffAddress"`
	DropOffDeadlineAt  *time.Time                  `json:"dropOffDeadlineAt,omitempty"`
	DropOffNotes       *string                     `json:"dropOffNotes,omitempty"`
	DropOffNotifyParty *DeliveryServiceNotifyParty `json:"dropOffNotifyParty,omitempty"`
	ExternalID         string                      `json:"externalID"`
	IsMock             *bool                       `json:"isMock,omitempty"`
	PickUpAddress      CompleteAddress             `json:"pickUpAddress"`
	PickUpAfter        *time.Time                  `json:"pickUpAfter,omitempty"`
	PickUpDeadlineAt   *time.Time                  `json:"pickUpDeadlineAt,omitempty"`
	PickUpNotes        *string                     `json:"pickUpNotes,omitempty"`
	PickUpNotifyParty  *DeliveryServiceNotifyParty `json:"pickUpNotifyParty,omitempty"`
	Receiver           DeliveryOrderParty          `json:"receiver"`
	Shipper            DeliveryOrderParty          `json:"shipper"`
}

DeliveryOrderCreationRequest defines model for DeliveryOrderCreationRequest.

type DeliveryOrderParty

type DeliveryOrderParty struct {
	Email       *string `json:"email,omitempty"`
	IsBusiness  bool    `json:"isBusiness"`
	Name        string  `json:"name"`
	PhoneNumber *string `json:"phoneNumber,omitempty"`
}

DeliveryOrderParty defines model for DeliveryOrderParty.

type DeliveryOrderQuote

type DeliveryOrderQuote struct {
	DeliveryCharges        DeliveryCharges    `json:"deliveryCharges"`
	DropOffAddress         CompleteAddress    `json:"dropOffAddress"`
	DropOffAfter           time.Time          `json:"dropOffAfter"`
	DropOffDeadlineAt      time.Time          `json:"dropOffDeadlineAt"`
	EstimatedDropOffWindow TimeWindow         `json:"estimatedDropOffWindow"`
	EstimatedPickUpWindow  TimeWindow         `json:"estimatedPickUpWindow"`
	GoodUntil              time.Time          `json:"goodUntil"`
	IsMock                 bool               `json:"isMock"`
	PickUpAddress          CompleteAddress    `json:"pickUpAddress"`
	PickUpAfter            time.Time          `json:"pickUpAfter"`
	PickUpDeadlineAt       time.Time          `json:"pickUpDeadlineAt"`
	ReceivedAt             time.Time          `json:"receivedAt"`
	Uuid                   openapi_types.UUID `json:"uuid"`
}

DeliveryOrderQuote defines model for DeliveryOrderQuote.

type DeliveryOrderQuoteRequest

type DeliveryOrderQuoteRequest struct {
	DropOffAddress GeocodedAddress `json:"dropOffAddress"`
	IsMock         *bool           `json:"isMock,omitempty"`
	PickUpAddress  GeocodedAddress `json:"pickUpAddress"`
}

DeliveryOrderQuoteRequest defines model for DeliveryOrderQuoteRequest.

type DeliveryOrderRejection

type DeliveryOrderRejection struct {
	Message string                       `json:"message"`
	Reason  DeliveryOrderRejectionReason `json:"reason"`
}

DeliveryOrderRejection defines model for DeliveryOrderRejection.

type DeliveryOrderRejectionReason

type DeliveryOrderRejectionReason string

DeliveryOrderRejectionReason defines model for DeliveryOrderRejection.Reason.

const (
	DeliveryOrderRejectionReasonDeliveryDistanceTooLarge DeliveryOrderRejectionReason = "delivery-distance-too-large"

	DeliveryOrderRejectionReasonDropOffOutsideDeliveryArea DeliveryOrderRejectionReason = "drop-off-outside-delivery-area"

	DeliveryOrderRejectionReasonNoCapacity DeliveryOrderRejectionReason = "no-capacity"

	DeliveryOrderRejectionReasonOutsideDeliveryArea DeliveryOrderRejectionReason = "outside-delivery-area"

	DeliveryOrderRejectionReasonPickUpOutsideDeliveryArea DeliveryOrderRejectionReason = "pick-up-outside-delivery-area"

	DeliveryOrderRejectionReasonScheduledDeliveryNotSupported DeliveryOrderRejectionReason = "scheduled-delivery-not-supported"
)

Defines values for DeliveryOrderRejectionReason.

type DeliveryOrderStatus

type DeliveryOrderStatus string

DeliveryOrderStatus defines model for DeliveryOrder.Status.

const (
	DeliveryOrderStatusOrderAccepted DeliveryOrderStatus = "order-accepted"

	DeliveryOrderStatusOrderCanceled DeliveryOrderStatus = "order-canceled"

	DeliveryOrderStatusOrderReceived DeliveryOrderStatus = "order-received"

	DeliveryOrderStatusOrderRejected DeliveryOrderStatus = "order-rejected"
)

Defines values for DeliveryOrderStatus.

type DeliveryService

type DeliveryService struct {
	Address                CompleteAddress            `json:"address"`
	DeadlineAt             time.Time                  `json:"deadlineAt"`
	IsSelfServiceAvailable bool                       `json:"isSelfServiceAvailable"`
	Notes                  string                     `json:"notes"`
	NotifyParty            DeliveryServiceNotifyParty `json:"notifyParty"`
	ServiceAfter           time.Time                  `json:"serviceAfter"`
}

DeliveryService defines model for DeliveryService.

type DeliveryServiceNotifyParty

type DeliveryServiceNotifyParty struct {
	Email       *string `json:"email,omitempty"`
	Name        *string `json:"name,omitempty"`
	PhoneNumber *string `json:"phoneNumber,omitempty"`
}

DeliveryServiceNotifyParty defines model for DeliveryServiceNotifyParty.

type GeocodeLogEntry

type GeocodeLogEntry struct {
	GeocodedAddress GeocodedAddress `json:"geocodedAddress"`
	RecordedAt      time.Time       `json:"recordedAt"`
}

GeocodeLogEntry defines model for GeocodeLogEntry.

type GeocodedAddress

type GeocodedAddress struct {
	GooglePlaceID *string `json:"googlePlaceID,omitempty"`
	Lat           float64 `json:"lat"`
	Lng           float64 `json:"lng"`
}

GeocodedAddress defines model for GeocodedAddress.

type GetDeliveryJobCurrentCourierResponse

type GetDeliveryJobCurrentCourierResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Courier
}

func ParseGetDeliveryJobCurrentCourierResponse

func ParseGetDeliveryJobCurrentCourierResponse(rsp *http.Response) (*GetDeliveryJobCurrentCourierResponse, error)

ParseGetDeliveryJobCurrentCourierResponse parses an HTTP response from a GetDeliveryJobCurrentCourierWithResponse call

func (GetDeliveryJobCurrentCourierResponse) Status

Status returns HTTPResponse.Status

func (GetDeliveryJobCurrentCourierResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetDeliveryJobResponse

type GetDeliveryJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeliveryJob
}

func ParseGetDeliveryJobResponse

func ParseGetDeliveryJobResponse(rsp *http.Response) (*GetDeliveryJobResponse, error)

ParseGetDeliveryJobResponse parses an HTTP response from a GetDeliveryJobWithResponse call

func (GetDeliveryJobResponse) Status

func (r GetDeliveryJobResponse) Status() string

Status returns HTTPResponse.Status

func (GetDeliveryJobResponse) StatusCode

func (r GetDeliveryJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJobsForOrderResponse

type GetJobsForOrderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]DeliveryJob
}

func ParseGetJobsForOrderResponse

func ParseGetJobsForOrderResponse(rsp *http.Response) (*GetJobsForOrderResponse, error)

ParseGetJobsForOrderResponse parses an HTTP response from a GetJobsForOrderWithResponse call

func (GetJobsForOrderResponse) Status

func (r GetJobsForOrderResponse) Status() string

Status returns HTTPResponse.Status

func (GetJobsForOrderResponse) StatusCode

func (r GetJobsForOrderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrderByExternalIdResponse

type GetOrderByExternalIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeliveryOrder
}

func ParseGetOrderByExternalIdResponse

func ParseGetOrderByExternalIdResponse(rsp *http.Response) (*GetOrderByExternalIdResponse, error)

ParseGetOrderByExternalIdResponse parses an HTTP response from a GetOrderByExternalIdWithResponse call

func (GetOrderByExternalIdResponse) Status

Status returns HTTPResponse.Status

func (GetOrderByExternalIdResponse) StatusCode

func (r GetOrderByExternalIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrderResponse

type GetOrderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeliveryOrder
}

func ParseGetOrderResponse

func ParseGetOrderResponse(rsp *http.Response) (*GetOrderResponse, error)

ParseGetOrderResponse parses an HTTP response from a GetOrderWithResponse call

func (GetOrderResponse) Status

func (r GetOrderResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrderResponse) StatusCode

func (r GetOrderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InvalidClientActionError

type InvalidClientActionError struct {
	Message string                         `json:"message"`
	Reason  InvalidClientActionErrorReason `json:"reason"`
}

InvalidClientActionError defines model for InvalidClientActionError.

type InvalidClientActionErrorReason

type InvalidClientActionErrorReason string

InvalidClientActionErrorReason defines model for InvalidClientActionError.Reason.

const (
	InvalidClientActionErrorReasonDeactivatedClient InvalidClientActionErrorReason = "deactivated-client"

	InvalidClientActionErrorReasonInvalidArgument InvalidClientActionErrorReason = "invalid-argument"

	InvalidClientActionErrorReasonSelfServiceUnavailable InvalidClientActionErrorReason = "self-service-unavailable"
)

Defines values for InvalidClientActionErrorReason.

type PostJobCancelledJSONBody

type PostJobCancelledJSONBody interface{}

PostJobCancelledJSONBody defines parameters for PostJobCancelled.

type PostJobCancelledJSONRequestBody

type PostJobCancelledJSONRequestBody PostJobCancelledJSONBody

PostJobCancelledJSONRequestBody defines body for PostJobCancelled for application/json ContentType.

type PostJobCancelledResponse

type PostJobCancelledResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *InvalidClientActionError
}

func ParsePostJobCancelledResponse

func ParsePostJobCancelledResponse(rsp *http.Response) (*PostJobCancelledResponse, error)

ParsePostJobCancelledResponse parses an HTTP response from a PostJobCancelledWithResponse call

func (PostJobCancelledResponse) Status

func (r PostJobCancelledResponse) Status() string

Status returns HTTPResponse.Status

func (PostJobCancelledResponse) StatusCode

func (r PostJobCancelledResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostOrderDroppedOffJSONBody

type PostOrderDroppedOffJSONBody interface{}

PostOrderDroppedOffJSONBody defines parameters for PostOrderDroppedOff.

type PostOrderDroppedOffJSONRequestBody

type PostOrderDroppedOffJSONRequestBody PostOrderDroppedOffJSONBody

PostOrderDroppedOffJSONRequestBody defines body for PostOrderDroppedOff for application/json ContentType.

type PostOrderDroppedOffResponse

type PostOrderDroppedOffResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *InvalidClientActionError
}

func ParsePostOrderDroppedOffResponse

func ParsePostOrderDroppedOffResponse(rsp *http.Response) (*PostOrderDroppedOffResponse, error)

ParsePostOrderDroppedOffResponse parses an HTTP response from a PostOrderDroppedOffWithResponse call

func (PostOrderDroppedOffResponse) Status

Status returns HTTPResponse.Status

func (PostOrderDroppedOffResponse) StatusCode

func (r PostOrderDroppedOffResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostOrderPickedUpJSONBody

type PostOrderPickedUpJSONBody interface{}

PostOrderPickedUpJSONBody defines parameters for PostOrderPickedUp.

type PostOrderPickedUpJSONRequestBody

type PostOrderPickedUpJSONRequestBody PostOrderPickedUpJSONBody

PostOrderPickedUpJSONRequestBody defines body for PostOrderPickedUp for application/json ContentType.

type PostOrderPickedUpResponse

type PostOrderPickedUpResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *InvalidClientActionError
}

func ParsePostOrderPickedUpResponse

func ParsePostOrderPickedUpResponse(rsp *http.Response) (*PostOrderPickedUpResponse, error)

ParsePostOrderPickedUpResponse parses an HTTP response from a PostOrderPickedUpWithResponse call

func (PostOrderPickedUpResponse) Status

func (r PostOrderPickedUpResponse) Status() string

Status returns HTTPResponse.Status

func (PostOrderPickedUpResponse) StatusCode

func (r PostOrderPickedUpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestQuoteClientErrorResponse

type RequestQuoteClientErrorResponse interface{}

RequestQuoteClientErrorResponse defines model for RequestQuoteClientErrorResponse.

type RequestQuoteJSONBody

type RequestQuoteJSONBody DeliveryOrderQuoteRequest

RequestQuoteJSONBody defines parameters for RequestQuote.

type RequestQuoteJSONRequestBody

type RequestQuoteJSONRequestBody RequestQuoteJSONBody

RequestQuoteJSONRequestBody defines body for RequestQuote for application/json ContentType.

type RequestQuoteResponse

type RequestQuoteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeliveryOrderQuote
	JSON400      *RequestQuoteClientErrorResponse
}

func ParseRequestQuoteResponse

func ParseRequestQuoteResponse(rsp *http.Response) (*RequestQuoteResponse, error)

ParseRequestQuoteResponse parses an HTTP response from a RequestQuoteWithResponse call

func (RequestQuoteResponse) Status

func (r RequestQuoteResponse) Status() string

Status returns HTTPResponse.Status

func (RequestQuoteResponse) StatusCode

func (r RequestQuoteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetWebhookError

type SetWebhookError struct {
	Message string                `json:"message"`
	Reason  SetWebhookErrorReason `json:"reason"`
}

SetWebhookError defines model for SetWebhookError.

type SetWebhookErrorReason

type SetWebhookErrorReason string

SetWebhookErrorReason defines model for SetWebhookError.Reason.

const (
	SetWebhookErrorReasonInvalidUrl SetWebhookErrorReason = "invalid-url"
)

Defines values for SetWebhookErrorReason.

type SetWebhooksJSONBody

type SetWebhooksJSONBody Webhooks

SetWebhooksJSONBody defines parameters for SetWebhooks.

type SetWebhooksJSONRequestBody

type SetWebhooksJSONRequestBody SetWebhooksJSONBody

SetWebhooksJSONRequestBody defines body for SetWebhooks for application/json ContentType.

type SetWebhooksResponse

type SetWebhooksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Webhooks
	JSON400      *SetWebhookError
}

func ParseSetWebhooksResponse

func ParseSetWebhooksResponse(rsp *http.Response) (*SetWebhooksResponse, error)

ParseSetWebhooksResponse parses an HTTP response from a SetWebhooksWithResponse call

func (SetWebhooksResponse) Status

func (r SetWebhooksResponse) Status() string

Status returns HTTPResponse.Status

func (SetWebhooksResponse) StatusCode

func (r SetWebhooksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TimeWindow

type TimeWindow struct {
	From  time.Time `json:"from"`
	Until time.Time `json:"until"`
}

TimeWindow defines model for TimeWindow.

type Webhook

type Webhook struct {
	ApiKey string `json:"api_key"`
	Url    string `json:"url"`
}

Webhook defines model for Webhook.

type Webhooks

type Webhooks struct {
	CourierEvents     Webhook `json:"courierEvents"`
	DeliveryJobEvents Webhook `json:"deliveryJobEvents"`
}

Webhooks defines model for Webhooks.

Jump to

Keyboard shortcuts

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