ledger

package
Version: v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for ledger API

func (*Client) LedgerOpenPostOpenPost

func (a *Client) LedgerOpenPostOpenPost(params *LedgerOpenPostOpenPostParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerOpenPostOpenPostOK, error)

LedgerOpenPostOpenPost finds open posts corresponding with sent data

func (*Client) LedgerSearch

func (a *Client) LedgerSearch(params *LedgerSearchParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerSearchOK, error)

LedgerSearch gets ledger hovedbok

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	LedgerOpenPostOpenPost(params *LedgerOpenPostOpenPostParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerOpenPostOpenPostOK, error)

	LedgerSearch(params *LedgerSearchParams, authInfo runtime.ClientAuthInfoWriter) (*LedgerSearchOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new ledger API client.

type LedgerOpenPostOpenPostOK

type LedgerOpenPostOpenPostOK struct {
	Payload *models.ListResponseLedgerAccount
}

LedgerOpenPostOpenPostOK handles this case with default header values.

successful operation

func NewLedgerOpenPostOpenPostOK

func NewLedgerOpenPostOpenPostOK() *LedgerOpenPostOpenPostOK

NewLedgerOpenPostOpenPostOK creates a LedgerOpenPostOpenPostOK with default headers values

func (*LedgerOpenPostOpenPostOK) Error

func (o *LedgerOpenPostOpenPostOK) Error() string

func (*LedgerOpenPostOpenPostOK) GetPayload

type LedgerOpenPostOpenPostParams

type LedgerOpenPostOpenPostParams struct {

	/*AccountID
	  Element ID

	*/
	AccountID *int32
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*CustomerID
	  Element ID

	*/
	CustomerID *int32
	/*Date
	  Invoice date. Format is yyyy-MM-dd (to and excl.).

	*/
	Date string
	/*DepartmentID
	  Element ID

	*/
	DepartmentID *int32
	/*EmployeeID
	  Element ID

	*/
	EmployeeID *int32
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*ProductID
	  Element ID

	*/
	ProductID *int32
	/*ProjectID
	  Element ID

	*/
	ProjectID *int32
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string
	/*SupplierID
	  Element ID

	*/
	SupplierID *int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

LedgerOpenPostOpenPostParams contains all the parameters to send to the API endpoint for the ledger open post open post operation typically these are written to a http.Request

func NewLedgerOpenPostOpenPostParams

func NewLedgerOpenPostOpenPostParams() *LedgerOpenPostOpenPostParams

NewLedgerOpenPostOpenPostParams creates a new LedgerOpenPostOpenPostParams object with the default values initialized.

func NewLedgerOpenPostOpenPostParamsWithContext

func NewLedgerOpenPostOpenPostParamsWithContext(ctx context.Context) *LedgerOpenPostOpenPostParams

NewLedgerOpenPostOpenPostParamsWithContext creates a new LedgerOpenPostOpenPostParams object with the default values initialized, and the ability to set a context for a request

func NewLedgerOpenPostOpenPostParamsWithHTTPClient

func NewLedgerOpenPostOpenPostParamsWithHTTPClient(client *http.Client) *LedgerOpenPostOpenPostParams

NewLedgerOpenPostOpenPostParamsWithHTTPClient creates a new LedgerOpenPostOpenPostParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewLedgerOpenPostOpenPostParamsWithTimeout

func NewLedgerOpenPostOpenPostParamsWithTimeout(timeout time.Duration) *LedgerOpenPostOpenPostParams

NewLedgerOpenPostOpenPostParamsWithTimeout creates a new LedgerOpenPostOpenPostParams object with the default values initialized, and the ability to set a timeout on a request

func (*LedgerOpenPostOpenPostParams) SetAccountID

func (o *LedgerOpenPostOpenPostParams) SetAccountID(accountID *int32)

SetAccountID adds the accountId to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetContext

func (o *LedgerOpenPostOpenPostParams) SetContext(ctx context.Context)

SetContext adds the context to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetCount

func (o *LedgerOpenPostOpenPostParams) SetCount(count *int64)

SetCount adds the count to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetCustomerID

func (o *LedgerOpenPostOpenPostParams) SetCustomerID(customerID *int32)

SetCustomerID adds the customerId to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetDate

func (o *LedgerOpenPostOpenPostParams) SetDate(date string)

SetDate adds the date to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetDepartmentID

func (o *LedgerOpenPostOpenPostParams) SetDepartmentID(departmentID *int32)

SetDepartmentID adds the departmentId to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetEmployeeID

func (o *LedgerOpenPostOpenPostParams) SetEmployeeID(employeeID *int32)

SetEmployeeID adds the employeeId to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetFields

func (o *LedgerOpenPostOpenPostParams) SetFields(fields *string)

SetFields adds the fields to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetFrom

func (o *LedgerOpenPostOpenPostParams) SetFrom(from *int64)

SetFrom adds the from to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetHTTPClient

func (o *LedgerOpenPostOpenPostParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetProductID

func (o *LedgerOpenPostOpenPostParams) SetProductID(productID *int32)

SetProductID adds the productId to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetProjectID

func (o *LedgerOpenPostOpenPostParams) SetProjectID(projectID *int32)

SetProjectID adds the projectId to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetSorting

func (o *LedgerOpenPostOpenPostParams) SetSorting(sorting *string)

SetSorting adds the sorting to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetSupplierID

func (o *LedgerOpenPostOpenPostParams) SetSupplierID(supplierID *int32)

SetSupplierID adds the supplierId to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) SetTimeout

func (o *LedgerOpenPostOpenPostParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithAccountID

func (o *LedgerOpenPostOpenPostParams) WithAccountID(accountID *int32) *LedgerOpenPostOpenPostParams

WithAccountID adds the accountID to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithContext

WithContext adds the context to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithCount

WithCount adds the count to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithCustomerID

func (o *LedgerOpenPostOpenPostParams) WithCustomerID(customerID *int32) *LedgerOpenPostOpenPostParams

WithCustomerID adds the customerID to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithDate

WithDate adds the date to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithDepartmentID

func (o *LedgerOpenPostOpenPostParams) WithDepartmentID(departmentID *int32) *LedgerOpenPostOpenPostParams

WithDepartmentID adds the departmentID to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithEmployeeID

func (o *LedgerOpenPostOpenPostParams) WithEmployeeID(employeeID *int32) *LedgerOpenPostOpenPostParams

WithEmployeeID adds the employeeID to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithFields

WithFields adds the fields to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithFrom

WithFrom adds the from to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithProductID

func (o *LedgerOpenPostOpenPostParams) WithProductID(productID *int32) *LedgerOpenPostOpenPostParams

WithProductID adds the productID to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithProjectID

func (o *LedgerOpenPostOpenPostParams) WithProjectID(projectID *int32) *LedgerOpenPostOpenPostParams

WithProjectID adds the projectID to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithSorting

WithSorting adds the sorting to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithSupplierID

func (o *LedgerOpenPostOpenPostParams) WithSupplierID(supplierID *int32) *LedgerOpenPostOpenPostParams

WithSupplierID adds the supplierID to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WithTimeout

WithTimeout adds the timeout to the ledger open post open post params

func (*LedgerOpenPostOpenPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LedgerOpenPostOpenPostReader

type LedgerOpenPostOpenPostReader struct {
	// contains filtered or unexported fields
}

LedgerOpenPostOpenPostReader is a Reader for the LedgerOpenPostOpenPost structure.

func (*LedgerOpenPostOpenPostReader) ReadResponse

func (o *LedgerOpenPostOpenPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type LedgerSearchOK

type LedgerSearchOK struct {
	Payload *models.ListResponseLedgerAccount
}

LedgerSearchOK handles this case with default header values.

successful operation

func NewLedgerSearchOK

func NewLedgerSearchOK() *LedgerSearchOK

NewLedgerSearchOK creates a LedgerSearchOK with default headers values

func (*LedgerSearchOK) Error

func (o *LedgerSearchOK) Error() string

func (*LedgerSearchOK) GetPayload

type LedgerSearchParams

type LedgerSearchParams struct {

	/*AccountID
	  Element ID

	*/
	AccountID *int32
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*CustomerID
	  Element ID

	*/
	CustomerID *int32
	/*DateFrom
	  Format is yyyy-MM-dd (from and incl.).

	*/
	DateFrom string
	/*DateTo
	  Format is yyyy-MM-dd (to and excl.).

	*/
	DateTo string
	/*DepartmentID
	  Element ID

	*/
	DepartmentID *int32
	/*EmployeeID
	  Element ID

	*/
	EmployeeID *int32
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*OpenPostings
	  Deprecated

	*/
	OpenPostings *string
	/*ProductID
	  Element ID

	*/
	ProductID *int32
	/*ProjectID
	  Element ID

	*/
	ProjectID *int32
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string
	/*SupplierID
	  Element ID

	*/
	SupplierID *int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

LedgerSearchParams contains all the parameters to send to the API endpoint for the ledger search operation typically these are written to a http.Request

func NewLedgerSearchParams

func NewLedgerSearchParams() *LedgerSearchParams

NewLedgerSearchParams creates a new LedgerSearchParams object with the default values initialized.

func NewLedgerSearchParamsWithContext

func NewLedgerSearchParamsWithContext(ctx context.Context) *LedgerSearchParams

NewLedgerSearchParamsWithContext creates a new LedgerSearchParams object with the default values initialized, and the ability to set a context for a request

func NewLedgerSearchParamsWithHTTPClient

func NewLedgerSearchParamsWithHTTPClient(client *http.Client) *LedgerSearchParams

NewLedgerSearchParamsWithHTTPClient creates a new LedgerSearchParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewLedgerSearchParamsWithTimeout

func NewLedgerSearchParamsWithTimeout(timeout time.Duration) *LedgerSearchParams

NewLedgerSearchParamsWithTimeout creates a new LedgerSearchParams object with the default values initialized, and the ability to set a timeout on a request

func (*LedgerSearchParams) SetAccountID

func (o *LedgerSearchParams) SetAccountID(accountID *int32)

SetAccountID adds the accountId to the ledger search params

func (*LedgerSearchParams) SetContext

func (o *LedgerSearchParams) SetContext(ctx context.Context)

SetContext adds the context to the ledger search params

func (*LedgerSearchParams) SetCount

func (o *LedgerSearchParams) SetCount(count *int64)

SetCount adds the count to the ledger search params

func (*LedgerSearchParams) SetCustomerID

func (o *LedgerSearchParams) SetCustomerID(customerID *int32)

SetCustomerID adds the customerId to the ledger search params

func (*LedgerSearchParams) SetDateFrom

func (o *LedgerSearchParams) SetDateFrom(dateFrom string)

SetDateFrom adds the dateFrom to the ledger search params

func (*LedgerSearchParams) SetDateTo

func (o *LedgerSearchParams) SetDateTo(dateTo string)

SetDateTo adds the dateTo to the ledger search params

func (*LedgerSearchParams) SetDepartmentID

func (o *LedgerSearchParams) SetDepartmentID(departmentID *int32)

SetDepartmentID adds the departmentId to the ledger search params

func (*LedgerSearchParams) SetEmployeeID

func (o *LedgerSearchParams) SetEmployeeID(employeeID *int32)

SetEmployeeID adds the employeeId to the ledger search params

func (*LedgerSearchParams) SetFields

func (o *LedgerSearchParams) SetFields(fields *string)

SetFields adds the fields to the ledger search params

func (*LedgerSearchParams) SetFrom

func (o *LedgerSearchParams) SetFrom(from *int64)

SetFrom adds the from to the ledger search params

func (*LedgerSearchParams) SetHTTPClient

func (o *LedgerSearchParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the ledger search params

func (*LedgerSearchParams) SetOpenPostings

func (o *LedgerSearchParams) SetOpenPostings(openPostings *string)

SetOpenPostings adds the openPostings to the ledger search params

func (*LedgerSearchParams) SetProductID

func (o *LedgerSearchParams) SetProductID(productID *int32)

SetProductID adds the productId to the ledger search params

func (*LedgerSearchParams) SetProjectID

func (o *LedgerSearchParams) SetProjectID(projectID *int32)

SetProjectID adds the projectId to the ledger search params

func (*LedgerSearchParams) SetSorting

func (o *LedgerSearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the ledger search params

func (*LedgerSearchParams) SetSupplierID

func (o *LedgerSearchParams) SetSupplierID(supplierID *int32)

SetSupplierID adds the supplierId to the ledger search params

func (*LedgerSearchParams) SetTimeout

func (o *LedgerSearchParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the ledger search params

func (*LedgerSearchParams) WithAccountID

func (o *LedgerSearchParams) WithAccountID(accountID *int32) *LedgerSearchParams

WithAccountID adds the accountID to the ledger search params

func (*LedgerSearchParams) WithContext

WithContext adds the context to the ledger search params

func (*LedgerSearchParams) WithCount

func (o *LedgerSearchParams) WithCount(count *int64) *LedgerSearchParams

WithCount adds the count to the ledger search params

func (*LedgerSearchParams) WithCustomerID

func (o *LedgerSearchParams) WithCustomerID(customerID *int32) *LedgerSearchParams

WithCustomerID adds the customerID to the ledger search params

func (*LedgerSearchParams) WithDateFrom

func (o *LedgerSearchParams) WithDateFrom(dateFrom string) *LedgerSearchParams

WithDateFrom adds the dateFrom to the ledger search params

func (*LedgerSearchParams) WithDateTo

func (o *LedgerSearchParams) WithDateTo(dateTo string) *LedgerSearchParams

WithDateTo adds the dateTo to the ledger search params

func (*LedgerSearchParams) WithDepartmentID

func (o *LedgerSearchParams) WithDepartmentID(departmentID *int32) *LedgerSearchParams

WithDepartmentID adds the departmentID to the ledger search params

func (*LedgerSearchParams) WithEmployeeID

func (o *LedgerSearchParams) WithEmployeeID(employeeID *int32) *LedgerSearchParams

WithEmployeeID adds the employeeID to the ledger search params

func (*LedgerSearchParams) WithFields

func (o *LedgerSearchParams) WithFields(fields *string) *LedgerSearchParams

WithFields adds the fields to the ledger search params

func (*LedgerSearchParams) WithFrom

func (o *LedgerSearchParams) WithFrom(from *int64) *LedgerSearchParams

WithFrom adds the from to the ledger search params

func (*LedgerSearchParams) WithHTTPClient

func (o *LedgerSearchParams) WithHTTPClient(client *http.Client) *LedgerSearchParams

WithHTTPClient adds the HTTPClient to the ledger search params

func (*LedgerSearchParams) WithOpenPostings

func (o *LedgerSearchParams) WithOpenPostings(openPostings *string) *LedgerSearchParams

WithOpenPostings adds the openPostings to the ledger search params

func (*LedgerSearchParams) WithProductID

func (o *LedgerSearchParams) WithProductID(productID *int32) *LedgerSearchParams

WithProductID adds the productID to the ledger search params

func (*LedgerSearchParams) WithProjectID

func (o *LedgerSearchParams) WithProjectID(projectID *int32) *LedgerSearchParams

WithProjectID adds the projectID to the ledger search params

func (*LedgerSearchParams) WithSorting

func (o *LedgerSearchParams) WithSorting(sorting *string) *LedgerSearchParams

WithSorting adds the sorting to the ledger search params

func (*LedgerSearchParams) WithSupplierID

func (o *LedgerSearchParams) WithSupplierID(supplierID *int32) *LedgerSearchParams

WithSupplierID adds the supplierID to the ledger search params

func (*LedgerSearchParams) WithTimeout

func (o *LedgerSearchParams) WithTimeout(timeout time.Duration) *LedgerSearchParams

WithTimeout adds the timeout to the ledger search params

func (*LedgerSearchParams) WriteToRequest

func (o *LedgerSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type LedgerSearchReader

type LedgerSearchReader struct {
	// contains filtered or unexported fields
}

LedgerSearchReader is a Reader for the LedgerSearch structure.

func (*LedgerSearchReader) ReadResponse

func (o *LedgerSearchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

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