api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	ApiKeyHeaderScopes = "apiKeyHeader.Scopes"
	ApiKeyQueryScopes  = "apiKeyQuery.Scopes"
)

Variables

This section is empty.

Functions

func NewGetRequestdocsRequest

func NewGetRequestdocsRequest(server string, params *GetRequestdocsParams) (*http.Request, error)

NewGetRequestdocsRequest generates requests for GetRequestdocs

func NewGetRequesttransmitteddocsRequest

func NewGetRequesttransmitteddocsRequest(server string, params *GetRequesttransmitteddocsParams) (*http.Request, error)

NewGetRequesttransmitteddocsRequest generates requests for GetRequesttransmitteddocs

func NewPostCancelinvoiceRequest

func NewPostCancelinvoiceRequest(server string, params *PostCancelinvoiceParams) (*http.Request, error)

NewPostCancelinvoiceRequest generates requests for PostCancelinvoice

func NewPostSendexpensesclassificationRequest

func NewPostSendexpensesclassificationRequest(server string, params *PostSendexpensesclassificationParams) (*http.Request, error)

NewPostSendexpensesclassificationRequest generates requests for PostSendexpensesclassification

func NewPostSendincomeclassificationRequest

func NewPostSendincomeclassificationRequest(server string, params *PostSendincomeclassificationParams) (*http.Request, error)

NewPostSendincomeclassificationRequest generates requests for PostSendincomeclassification

func NewPostSendinvoicesRequest

func NewPostSendinvoicesRequest(server string, params *PostSendinvoicesParams) (*http.Request, error)

NewPostSendinvoicesRequest generates requests for PostSendinvoices

Types

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) GetRequestdocs

func (c *Client) GetRequestdocs(ctx context.Context, params *GetRequestdocsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRequesttransmitteddocs

func (c *Client) GetRequesttransmitteddocs(ctx context.Context, params *GetRequesttransmitteddocsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostCancelinvoice

func (c *Client) PostCancelinvoice(ctx context.Context, params *PostCancelinvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSendexpensesclassification

func (c *Client) PostSendexpensesclassification(ctx context.Context, params *PostSendexpensesclassificationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSendincomeclassification

func (c *Client) PostSendincomeclassification(ctx context.Context, params *PostSendincomeclassificationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSendinvoices

func (c *Client) PostSendinvoices(ctx context.Context, params *PostSendinvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// PostCancelinvoice request
	PostCancelinvoice(ctx context.Context, params *PostCancelinvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRequestdocs request
	GetRequestdocs(ctx context.Context, params *GetRequestdocsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRequesttransmitteddocs request
	GetRequesttransmitteddocs(ctx context.Context, params *GetRequesttransmitteddocsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSendexpensesclassification request
	PostSendexpensesclassification(ctx context.Context, params *PostSendexpensesclassificationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSendincomeclassification request
	PostSendincomeclassification(ctx context.Context, params *PostSendincomeclassificationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSendinvoices request
	PostSendinvoices(ctx context.Context, params *PostSendinvoicesParams, 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 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) GetRequestdocsWithResponse

func (c *ClientWithResponses) GetRequestdocsWithResponse(ctx context.Context, params *GetRequestdocsParams, reqEditors ...RequestEditorFn) (*GetRequestdocsResponse, error)

GetRequestdocsWithResponse request returning *GetRequestdocsResponse

func (*ClientWithResponses) GetRequesttransmitteddocsWithResponse

func (c *ClientWithResponses) GetRequesttransmitteddocsWithResponse(ctx context.Context, params *GetRequesttransmitteddocsParams, reqEditors ...RequestEditorFn) (*GetRequesttransmitteddocsResponse, error)

GetRequesttransmitteddocsWithResponse request returning *GetRequesttransmitteddocsResponse

func (*ClientWithResponses) PostCancelinvoiceWithResponse

func (c *ClientWithResponses) PostCancelinvoiceWithResponse(ctx context.Context, params *PostCancelinvoiceParams, reqEditors ...RequestEditorFn) (*PostCancelinvoiceResponse, error)

PostCancelinvoiceWithResponse request returning *PostCancelinvoiceResponse

func (*ClientWithResponses) PostSendexpensesclassificationWithResponse

func (c *ClientWithResponses) PostSendexpensesclassificationWithResponse(ctx context.Context, params *PostSendexpensesclassificationParams, reqEditors ...RequestEditorFn) (*PostSendexpensesclassificationResponse, error)

PostSendexpensesclassificationWithResponse request returning *PostSendexpensesclassificationResponse

func (*ClientWithResponses) PostSendincomeclassificationWithResponse

func (c *ClientWithResponses) PostSendincomeclassificationWithResponse(ctx context.Context, params *PostSendincomeclassificationParams, reqEditors ...RequestEditorFn) (*PostSendincomeclassificationResponse, error)

PostSendincomeclassificationWithResponse request returning *PostSendincomeclassificationResponse

func (*ClientWithResponses) PostSendinvoicesWithResponse

func (c *ClientWithResponses) PostSendinvoicesWithResponse(ctx context.Context, params *PostSendinvoicesParams, reqEditors ...RequestEditorFn) (*PostSendinvoicesResponse, error)

PostSendinvoicesWithResponse request returning *PostSendinvoicesResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// PostCancelinvoice request
	PostCancelinvoiceWithResponse(ctx context.Context, params *PostCancelinvoiceParams, reqEditors ...RequestEditorFn) (*PostCancelinvoiceResponse, error)

	// GetRequestdocs request
	GetRequestdocsWithResponse(ctx context.Context, params *GetRequestdocsParams, reqEditors ...RequestEditorFn) (*GetRequestdocsResponse, error)

	// GetRequesttransmitteddocs request
	GetRequesttransmitteddocsWithResponse(ctx context.Context, params *GetRequesttransmitteddocsParams, reqEditors ...RequestEditorFn) (*GetRequesttransmitteddocsResponse, error)

	// PostSendexpensesclassification request
	PostSendexpensesclassificationWithResponse(ctx context.Context, params *PostSendexpensesclassificationParams, reqEditors ...RequestEditorFn) (*PostSendexpensesclassificationResponse, error)

	// PostSendincomeclassification request
	PostSendincomeclassificationWithResponse(ctx context.Context, params *PostSendincomeclassificationParams, reqEditors ...RequestEditorFn) (*PostSendincomeclassificationResponse, error)

	// PostSendinvoices request
	PostSendinvoicesWithResponse(ctx context.Context, params *PostSendinvoicesParams, reqEditors ...RequestEditorFn) (*PostSendinvoicesResponse, error)
}

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

type GetRequestdocsParams

type GetRequestdocsParams struct {
	// Μοναδικός Αριθμός Καταχώρησης
	Mark *GetRequestdocsParamsMark `json:"mark,omitempty"`

	// aade-user-id
	AadeUserId GetRequestdocsParamsAadeUserId `json:"aade-user-id"`
}

GetRequestdocsParams defines parameters for GetRequestdocs.

type GetRequestdocsParamsAadeUserId

type GetRequestdocsParamsAadeUserId string

GetRequestdocsParamsAadeUserId defines parameters for GetRequestdocs.

type GetRequestdocsParamsMark

type GetRequestdocsParamsMark string

GetRequestdocsParamsMark defines parameters for GetRequestdocs.

type GetRequestdocsResponse

type GetRequestdocsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetRequestdocsResponse

func ParseGetRequestdocsResponse(rsp *http.Response) (*GetRequestdocsResponse, error)

ParseGetRequestdocsResponse parses an HTTP response from a GetRequestdocsWithResponse call

func (GetRequestdocsResponse) Status

func (r GetRequestdocsResponse) Status() string

Status returns HTTPResponse.Status

func (GetRequestdocsResponse) StatusCode

func (r GetRequestdocsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRequesttransmitteddocsParams

type GetRequesttransmitteddocsParams struct {
	// Μοναδικός Αριθμός Καταχώρησης
	Mark GetRequesttransmitteddocsParamsMark `json:"mark"`

	// User Id
	AadeUserId GetRequesttransmitteddocsParamsAadeUserId `json:"aade-user-id"`
}

GetRequesttransmitteddocsParams defines parameters for GetRequesttransmitteddocs.

type GetRequesttransmitteddocsParamsAadeUserId

type GetRequesttransmitteddocsParamsAadeUserId string

GetRequesttransmitteddocsParamsAadeUserId defines parameters for GetRequesttransmitteddocs.

type GetRequesttransmitteddocsParamsMark

type GetRequesttransmitteddocsParamsMark string

GetRequesttransmitteddocsParamsMark defines parameters for GetRequesttransmitteddocs.

type GetRequesttransmitteddocsResponse

type GetRequesttransmitteddocsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetRequesttransmitteddocsResponse

func ParseGetRequesttransmitteddocsResponse(rsp *http.Response) (*GetRequesttransmitteddocsResponse, error)

ParseGetRequesttransmitteddocsResponse parses an HTTP response from a GetRequesttransmitteddocsWithResponse call

func (GetRequesttransmitteddocsResponse) Status

Status returns HTTPResponse.Status

func (GetRequesttransmitteddocsResponse) StatusCode

func (r GetRequesttransmitteddocsResponse) 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 PostCancelinvoiceParams

type PostCancelinvoiceParams struct {
	// Μοναδικός αριθμός καταχώρησης
	// παραστατικού προς ακύρωση
	Mark PostCancelinvoiceParamsMark `json:"mark"`

	// User Id
	AadeUserId PostCancelinvoiceParamsAadeUserId `json:"aade-user-id"`
}

PostCancelinvoiceParams defines parameters for PostCancelinvoice.

type PostCancelinvoiceParamsAadeUserId

type PostCancelinvoiceParamsAadeUserId string

PostCancelinvoiceParamsAadeUserId defines parameters for PostCancelinvoice.

type PostCancelinvoiceParamsMark

type PostCancelinvoiceParamsMark string

PostCancelinvoiceParamsMark defines parameters for PostCancelinvoice.

type PostCancelinvoiceResponse

type PostCancelinvoiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostCancelinvoiceResponse

func ParsePostCancelinvoiceResponse(rsp *http.Response) (*PostCancelinvoiceResponse, error)

ParsePostCancelinvoiceResponse parses an HTTP response from a PostCancelinvoiceWithResponse call

func (PostCancelinvoiceResponse) Status

func (r PostCancelinvoiceResponse) Status() string

Status returns HTTPResponse.Status

func (PostCancelinvoiceResponse) StatusCode

func (r PostCancelinvoiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSendexpensesclassificationParams

type PostSendexpensesclassificationParams struct {
	// User Id
	AadeUserId PostSendexpensesclassificationParamsAadeUserId `json:"{aade-user-id}"`
}

PostSendexpensesclassificationParams defines parameters for PostSendexpensesclassification.

type PostSendexpensesclassificationParamsAadeUserId

type PostSendexpensesclassificationParamsAadeUserId string

PostSendexpensesclassificationParamsAadeUserId defines parameters for PostSendexpensesclassification.

type PostSendexpensesclassificationResponse

type PostSendexpensesclassificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostSendexpensesclassificationResponse

func ParsePostSendexpensesclassificationResponse(rsp *http.Response) (*PostSendexpensesclassificationResponse, error)

ParsePostSendexpensesclassificationResponse parses an HTTP response from a PostSendexpensesclassificationWithResponse call

func (PostSendexpensesclassificationResponse) Status

Status returns HTTPResponse.Status

func (PostSendexpensesclassificationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostSendincomeclassificationParams

type PostSendincomeclassificationParams struct {
	// User Id
	AadeUserId PostSendincomeclassificationParamsAadeUserId `json:"aade-user-id"`
}

PostSendincomeclassificationParams defines parameters for PostSendincomeclassification.

type PostSendincomeclassificationParamsAadeUserId

type PostSendincomeclassificationParamsAadeUserId string

PostSendincomeclassificationParamsAadeUserId defines parameters for PostSendincomeclassification.

type PostSendincomeclassificationResponse

type PostSendincomeclassificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostSendincomeclassificationResponse

func ParsePostSendincomeclassificationResponse(rsp *http.Response) (*PostSendincomeclassificationResponse, error)

ParsePostSendincomeclassificationResponse parses an HTTP response from a PostSendincomeclassificationWithResponse call

func (PostSendincomeclassificationResponse) Status

Status returns HTTPResponse.Status

func (PostSendincomeclassificationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostSendinvoicesParams

type PostSendinvoicesParams struct {
	// User Id
	AadeUserId PostSendinvoicesParamsAadeUserId `json:"aade-user-id"`
}

PostSendinvoicesParams defines parameters for PostSendinvoices.

type PostSendinvoicesParamsAadeUserId

type PostSendinvoicesParamsAadeUserId string

PostSendinvoicesParamsAadeUserId defines parameters for PostSendinvoices.

type PostSendinvoicesResponse

type PostSendinvoicesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePostSendinvoicesResponse

func ParsePostSendinvoicesResponse(rsp *http.Response) (*PostSendinvoicesResponse, error)

ParsePostSendinvoicesResponse parses an HTTP response from a PostSendinvoicesWithResponse call

func (PostSendinvoicesResponse) Status

func (r PostSendinvoicesResponse) Status() string

Status returns HTTPResponse.Status

func (PostSendinvoicesResponse) StatusCode

func (r PostSendinvoicesResponse) 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

Jump to

Keyboard shortcuts

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